Class SetPropertyCmd
Sets the value of a property in one or more nodes.
Inheritance
Implements
Inherited Members
Namespace: Syncfusion.Windows.Forms.Diagram
Assembly: Syncfusion.Diagram.Base.dll
Syntax
public sealed class SetPropertyCmd : ICommand
Remarks
Constructors
SetPropertyCmd(IPropertyContainer, String, String)
Initializes a new instance of the SetPropertyCmd class.
Declaration
public SetPropertyCmd(IPropertyContainer propertyContainer, string strPropertyContainerName, string strPropertyName)
Parameters
Type | Name | Description |
---|---|---|
IPropertyContainer | propertyContainer | The property container. |
System.String | strPropertyContainerName | Name of the property container. |
System.String | strPropertyName | Name of the property. |
SetPropertyCmd(IPropertyContainer, String, String, SizeF)
Initializes a new instance of the SetPropertyCmd class.
Declaration
public SetPropertyCmd(IPropertyContainer propertyContainer, string strPropertyContainerName, string strPropertyName, SizeF szMoveOffset)
Parameters
Type | Name | Description |
---|---|---|
IPropertyContainer | propertyContainer | The property container. |
System.String | strPropertyContainerName | Name of the property container. |
System.String | strPropertyName | Name of the property. |
System.Drawing.SizeF | szMoveOffset | The move offset. |
Properties
AffectedProperty
Gets the affected property.
Declaration
public string AffectedProperty { get; }
Property Value
Type | Description |
---|---|
System.String | The affected property. |
AffectedPropertyPath
Gets the affected property path.
Declaration
public string AffectedPropertyPath { get; }
Property Value
Type | Description |
---|---|
System.String | The affected property path. |
CanUndo
Gets a value indicating whether or not the command supports undo.
Declaration
public bool CanUndo { get; }
Property Value
Type |
---|
System.Boolean |
Description
Gets short, user-friendly description of the command.
Declaration
public string Description { get; }
Property Value
Type |
---|
System.String |
PropertyContainer
Gets the property container.
Declaration
public IPropertyContainer PropertyContainer { get; }
Property Value
Type | Description |
---|---|
IPropertyContainer | The property container. |
Methods
CanMerge(ICommand)
Determines whether this instance can merge the specified CMD merging.
Declaration
public bool CanMerge(ICommand cmdMerging)
Parameters
Type | Name | Description |
---|---|---|
ICommand | cmdMerging | The CMD merging. |
Returns
Type | Description |
---|---|
System.Boolean |
|
Do(Object)
Does the specified command target.
Declaration
public bool Do(object cmdTarget)
Parameters
Type | Name | Description |
---|---|---|
System.Object | cmdTarget | The command target. |
Returns
Type | Description |
---|---|
System.Boolean | true, if do the specified command target. |
Merge(ICommand)
Merges the specified command to merge.
Declaration
public void Merge(ICommand cmtToMerge)
Parameters
Type | Name | Description |
---|---|---|
ICommand | cmtToMerge | The command to merge. |
Undo()
Reverses the command.
Declaration
public bool Undo()
Returns
Type | Description |
---|---|
System.Boolean | True if successful; otherwise False. |