Class EditStyle
Encapsulates the edit properties of an object.
Implements
Inherited Members
Namespace: Syncfusion.Windows.Forms.Diagram
Assembly: Syncfusion.Diagram.Base.dll
Syntax
public class EditStyle : PropertyContainer, IServiceReferenceHolder, IServiceReferenceProvider, IPropertyObserver, IPropertyContainer, ICloneable, ISerializable, IDisposable
Constructors
EditStyle()
Initializes a new instance of the EditStyle class.
Declaration
public EditStyle()
EditStyle(EditStyle)
Initializes a new instance of the EditStyle class.
Declaration
public EditStyle(EditStyle src)
Parameters
Type | Name | Description |
---|---|---|
EditStyle | src | The edit style. |
EditStyle(SerializationInfo, StreamingContext)
Initializes a new instance of the EditStyle class.
Declaration
protected EditStyle(SerializationInfo info, StreamingContext context)
Parameters
Type | Name | Description |
---|---|---|
System.Runtime.Serialization.SerializationInfo | info | The info. |
System.Runtime.Serialization.StreamingContext | context | The context. |
Properties
AllowChangeHeight
Gets or sets a value indicating whether the object's Height can be changed.
Declaration
public bool AllowChangeHeight { get; set; }
Property Value
Type |
---|
System.Boolean |
AllowChangeWidth
Gets or sets a value indicating whether the object's Width can be changed.
Declaration
public bool AllowChangeWidth { get; set; }
Property Value
Type |
---|
System.Boolean |
AllowDelete
Gets or sets a value indicating whether object can be deleted.
Declaration
public bool AllowDelete { get; set; }
Property Value
Type |
---|
System.Boolean |
AllowMove
Gets or sets a value indicating whether node can be moved. Property is obsolete. Use AllowMoveX and AllowMoveY properties instead.
Declaration
[Obsolete]
public bool AllowMove { get; set; }
Property Value
Type |
---|
System.Boolean |
AllowMoveX
Gets or sets a value indicating whether the object can be moved in X direction.
Declaration
public bool AllowMoveX { get; set; }
Property Value
Type |
---|
System.Boolean |
AllowMoveY
Gets or sets a value indicating whether the object can be moved in Y axis.
Declaration
public bool AllowMoveY { get; set; }
Property Value
Type |
---|
System.Boolean |
AllowResize
Gets or sets a value indicating whether node can be resized. Property is obsolete. Use AllowChangeHeight and AllowChangeWidth properties instead.
Declaration
[Obsolete]
public bool AllowResize { get; set; }
Property Value
Type |
---|
System.Boolean |
AllowRotate
Gets or sets a value indicating whether the object can be rotated.
Declaration
public bool AllowRotate { get; set; }
Property Value
Type |
---|
System.Boolean |
AllowSelect
Gets or sets a value indicating whether the object can be selected.
Declaration
public bool AllowSelect { get; set; }
Property Value
Type |
---|
System.Boolean |
AllowVertexEdit
Gets or sets a value indicating whether object's vertices can be edited.
Declaration
public bool AllowVertexEdit { get; set; }
Property Value
Type |
---|
System.Boolean |
AspectRatio
Gets or sets a value indicating whether node will be resized proportionally.
Declaration
public bool AspectRatio { get; set; }
Property Value
Type |
---|
System.Boolean |
DefaultHandleEditMode
Gets or sets default mode for editing the object using selection handles.
Declaration
public HandleEditMode DefaultHandleEditMode { get; set; }
Property Value
Type |
---|
HandleEditMode |
Enabled
Gets or sets a value indicating whether the object is enabled or disabled.
Declaration
public bool Enabled { get; set; }
Property Value
Type |
---|
System.Boolean |
HidePinPoint
Gets or sets a value indicating whether node will display pin point in diagram.
Declaration
public bool HidePinPoint { get; set; }
Property Value
Type |
---|
System.Boolean |
HideRotationHandle
Gets or sets a value indicating whether node will display rotation handle in diagram.
Declaration
public bool HideRotationHandle { get; set; }
Property Value
Type | Description |
---|---|
System.Boolean |
|
InheritContainerMeasureUnits
Gets or sets a value indicating whether current instance inherit container measure units.
Declaration
public override bool InheritContainerMeasureUnits { get; set; }
Property Value
Type | Description |
---|---|
System.Boolean |
|
Overrides
MeasureUnit
Gets or sets the measure unit.
Declaration
public override MeasureUnits MeasureUnit { get; set; }
Property Value
Type | Description |
---|---|
MeasureUnits | The measure unit. |
Overrides
Methods
CanChangeHeight(Node)
Determines if the given node's width can be changed.
Declaration
public static bool CanChangeHeight(Node node)
Parameters
Type | Name | Description |
---|---|---|
Node | node | Node to test. |
Returns
Type | Description |
---|---|
System.Boolean | True if node's Width can be changed; otherwise False. |
CanChangeWidth(Node)
Determines if the given node's width can be changed.
Declaration
public static bool CanChangeWidth(Node node)
Parameters
Type | Name | Description |
---|---|---|
Node | node | Node to test. |
Returns
Type | Description |
---|---|
System.Boolean | True if node's Width can be changed; otherwise False. |
CanDelete(Node)
Determines if the given node can be deleted from its container or not.
Declaration
public static bool CanDelete(Node node)
Parameters
Type | Name | Description |
---|---|---|
Node | node | Node to test. |
Returns
Type | Description |
---|---|
System.Boolean | True if node can be deleted; otherwise False. |
CanMoveX(Node)
Determines if the given node can be moved by X axis.
Declaration
public static bool CanMoveX(Node node)
Parameters
Type | Name | Description |
---|---|---|
Node | node | Node to test. |
Returns
Type | Description |
---|---|
System.Boolean | True if node can be moved; otherwise False. |
CanMoveY(Node)
Determines if the given node can be moved or not.
Declaration
public static bool CanMoveY(Node node)
Parameters
Type | Name | Description |
---|---|---|
Node | node | Node to test. |
Returns
Type | Description |
---|---|
System.Boolean | True if node can be moved; otherwise False. |
CanRotate(Node)
Determines whether given node can be rotated.
Declaration
public static bool CanRotate(Node node)
Parameters
Type | Name | Description |
---|---|---|
Node | node | Node to test |
Returns
Type | Description |
---|---|
System.Boolean | True if node can be moved; otherwise False. |
CanSelect(Node)
Determines if the given node can be selected or not.
Declaration
public static bool CanSelect(Node node)
Parameters
Type | Name | Description |
---|---|---|
Node | node | Node to test. |
Returns
Type | Description |
---|---|
System.Boolean | True if node can be selected; otherwise False. |
Clone()
Creates a new object that is a copy of the current instance.
Declaration
public override object Clone()
Returns
Type | Description |
---|---|
System.Object | A new object that is a copy of this instance. |
Overrides
GetObjectData(SerializationInfo, StreamingContext)
Populates a System.Runtime.Serialization.SerializationInfo with the data needed to serialize the target object.
Declaration
protected override void GetObjectData(SerializationInfo info, StreamingContext context)
Parameters
Type | Name | Description |
---|---|---|
System.Runtime.Serialization.SerializationInfo | info | The System.Runtime.Serialization.SerializationInfo to populate with data. |
System.Runtime.Serialization.StreamingContext | context | The destination (see System.Runtime.Serialization.StreamingContext) for this serialization. |
Overrides
Exceptions
Type | Condition |
---|---|
System.Security.SecurityException | The caller does not have the required permission. |
GetPropertyContainerName()
Gets the name of the property container.
Declaration
protected override string GetPropertyContainerName()
Returns
Type | Description |
---|---|
System.String | Property container name. |
Overrides
IsEnabled(Node)
Determines if the given node is enabled or disabled.
Declaration
public static bool IsEnabled(Node node)
Parameters
Type | Name | Description |
---|---|---|
Node | node | Node to test. |
Returns
Type | Description |
---|---|
System.Boolean | True if enabled; False if disabled. |