Class ViewInfo
Serializable class used for persisting the View data.
Inheritance
Implements
Inherited Members
Namespace: Syncfusion.Windows.Forms.Diagram
Assembly: Syncfusion.Diagram.Base.dll
Syntax
public class ViewInfo : ISerializable
Remarks
When using a custom View for the diagram control that contains its own persistence data, use a subclass of the ViewInfo type for serializing the new View data. GetViewInfo() SetViewInfo(ViewInfo)
Constructors
ViewInfo(View)
Initializes a new instance of the ViewInfo class.
Declaration
public ViewInfo(View srcview)
Parameters
Type | Name | Description |
---|---|---|
View | srcview | The view. |
ViewInfo(SerializationInfo, StreamingContext)
Initializes a new instance of the ViewInfo class.
Declaration
protected ViewInfo(SerializationInfo info, StreamingContext context)
Parameters
Type | Name | Description |
---|---|---|
System.Runtime.Serialization.SerializationInfo | info | SerializationInfo object to populate. |
System.Runtime.Serialization.StreamingContext | context | Destination streaming context. |
Fields
backgroundColor
Background color.
Declaration
protected Color backgroundColor
Field Value
Type |
---|
System.Drawing.Color |
handleAnchorColor
Color of the handle anchor.
Declaration
protected Color handleAnchorColor
Field Value
Type |
---|
System.Drawing.Color |
handleColor
Color of the handle.
Declaration
protected Color handleColor
Field Value
Type |
---|
System.Drawing.Color |
handleDisabledColor
Color of the disabled color.
Declaration
protected Color handleDisabledColor
Field Value
Type |
---|
System.Drawing.Color |
handleOutlineColor
Outline color of the handle.
Declaration
protected Color handleOutlineColor
Field Value
Type |
---|
System.Drawing.Color |
handleSize
Size of the handle.
Declaration
protected int handleSize
Field Value
Type |
---|
System.Int32 |
ptOrigin
Origin of the view.
Declaration
protected PointF ptOrigin
Field Value
Type |
---|
System.Drawing.PointF |
rcBounds
The bounding rectangle.
Declaration
protected Rectangle rcBounds
Field Value
Type |
---|
System.Drawing.Rectangle |
szMagnification
Size of the magnification.
Declaration
protected Size szMagnification
Field Value
Type |
---|
System.Drawing.Size |
Methods
GetObjectData(SerializationInfo, StreamingContext)
Populates a SerializationInfo with the data needed to serialize the target object.
Declaration
protected virtual void GetObjectData(SerializationInfo info, StreamingContext context)
Parameters
Type | Name | Description |
---|---|---|
System.Runtime.Serialization.SerializationInfo | info | SerializationInfo object to populate. |
System.Runtime.Serialization.StreamingContext | context | Destination streaming context. |
Explicit Interface Implementations
ISerializable.GetObjectData(SerializationInfo, StreamingContext)
Populates a SerializationInfo with the data needed to serialize the target object.
Declaration
void ISerializable.GetObjectData(SerializationInfo info, StreamingContext context)
Parameters
Type | Name | Description |
---|---|---|
System.Runtime.Serialization.SerializationInfo | info | SerializationInfo object to populate. |
System.Runtime.Serialization.StreamingContext | context | Destination streaming context. |