C# Класс Smrf.NodeXL.Layouts.LayoutSaver

Saves and restores a layout.
Pass a laid-out graph to the constructor, which saves the graph's vertex locations and group rectangles in private data. Call to restore the vertex locations and group rectangles to their saved values.

The number of vertices and group rectangles must remain constant between the two calls.

Наследование: LayoutsBase
Показать файл Открыть проект Примеры использования класса

Защищенные свойства (Protected)

Свойство Тип Описание
m_aoGroupRectangles System.Drawing.Rectangle[]
m_aoVertexLocations System.Drawing.PointF[]
m_oGraph IGraph

Открытые методы

Метод Описание
AssertValid ( ) : void
LayoutSaver ( IGraph graph ) : System

Initializes a new instance of the LayoutSaver class.

RestoreLayout ( ) : void

Защищенные методы

Метод Описание
TryGetGroupsToDraw ( IList &oGroupsToDraw ) : System.Boolean

Описание методов

AssertValid() публичный Метод

public AssertValid ( ) : void
Результат void

LayoutSaver() публичный Метод

Initializes a new instance of the LayoutSaver class.
public LayoutSaver ( IGraph graph ) : System
graph IGraph
Результат System

RestoreLayout() публичный Метод

public RestoreLayout ( ) : void
Результат void

TryGetGroupsToDraw() защищенный Метод

protected TryGetGroupsToDraw ( IList &oGroupsToDraw ) : System.Boolean
oGroupsToDraw IList
Результат System.Boolean

Описание свойств

m_aoGroupRectangles защищенное свойство

protected Rectangle[],System.Drawing m_aoGroupRectangles
Результат System.Drawing.Rectangle[]

m_aoVertexLocations защищенное свойство

protected PointF[],System.Drawing m_aoVertexLocations
Результат System.Drawing.PointF[]

m_oGraph защищенное свойство

protected IGraph m_oGraph
Результат IGraph