Class StrikeoutTextCmd
Sets the value of the Strikeout text property.
Implements
Inherited Members
System.Object.Equals(System.Object)
System.Object.Equals(System.Object, System.Object)
System.Object.GetHashCode()
System.Object.GetType()
System.Object.MemberwiseClone()
System.Object.ReferenceEquals(System.Object, System.Object)
System.Object.ToString()
Namespace: Syncfusion.Windows.Forms.Diagram
Assembly: Syncfusion.Diagram.Windows.dll
Syntax
public class StrikeoutTextCmd : TextFormatCmd, ICommand
Constructors
StrikeoutTextCmd(NodeCollection, Boolean)
Initializes a new instance of the StrikeoutTextCmd class.
Declaration
public StrikeoutTextCmd(NodeCollection nodesAffected, bool bNewStrikeoutFormatValue)
Parameters
Type | Name | Description |
---|---|---|
NodeCollection | nodesAffected | Collection of selection nodes. |
System.Boolean | bNewStrikeoutFormatValue | Formatted value. |
StrikeoutTextCmd(TextEditor, TextNode, Boolean)
Initializes a new instance of the StrikeoutTextCmd class.
Declaration
public StrikeoutTextCmd(TextEditor txtEditor, TextNode nodeEditing, bool bNewStrikeoutFormatValue)
Parameters
Type | Name | Description |
---|---|---|
TextEditor | txtEditor | Current text editor. |
TextNode | nodeEditing | Editable node. |
System.Boolean | bNewStrikeoutFormatValue | Formatted value. |
StrikeoutTextCmd(TextNode, Boolean)
Initializes a new instance of the StrikeoutTextCmd class.
Declaration
public StrikeoutTextCmd(TextNode nodeAffected, bool bNewStrikeoutFormatValue)
Parameters
Type | Name | Description |
---|---|---|
TextNode | nodeAffected | Selection node. |
System.Boolean | bNewStrikeoutFormatValue | Formatted value. |
Methods
Format(TextNode)
Applies formatting value to the given node.
Declaration
protected override object Format(TextNode nodeToFormat)
Parameters
Type | Name | Description |
---|---|---|
TextNode | nodeToFormat | Node to format. |
Returns
Type | Description |
---|---|
System.Object | Previous value of formatting property. |
Overrides
FormatTextEditor()
Applies formatting value to text in TextEditor.
Declaration
protected override void FormatTextEditor()
Overrides
UndoFormat(TextNode, Object)
Undo format text to given node without TextEditor.
Declaration
protected override void UndoFormat(TextNode nodeToFormat, object fmtValue)
Parameters
Type | Name | Description |
---|---|---|
TextNode | nodeToFormat | Node to format. |
System.Object | fmtValue | Formatting value. |
Overrides
UndoFormatTextEditor()
Undo format text in TextEditor.
Declaration
protected override void UndoFormatTextEditor()