Class RTFHorizontalAlignmentCmd
Command used to set horizontal alignment of text.
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 RTFHorizontalAlignmentCmd : RTFFormatCmd, ICommand
Constructors
RTFHorizontalAlignmentCmd(TextEditor, RichTextNode, Int32, Int32, StringAlignment, StringAlignment)
Initializes a new instance of the RTFHorizontalAlignmentCmd class.
Declaration
public RTFHorizontalAlignmentCmd(TextEditor textEditor, RichTextNode nodeFormatting, int nSelectionStart, int nSelectionLength, StringAlignment previous, StringAlignment alignment)
Parameters
Type | Name | Description |
---|---|---|
TextEditor | textEditor | current text editor |
RichTextNode | nodeFormatting | RichText node |
System.Int32 | nSelectionStart | selection start position |
System.Int32 | nSelectionLength | selection length |
System.Drawing.StringAlignment | previous | previous alignment value |
System.Drawing.StringAlignment | alignment | alignment enum value |
Methods
CanMerge(ICommand)
Checks whether text can be merged.
Declaration
public override bool CanMerge(ICommand cmd)
Parameters
Type | Name | Description |
---|---|---|
ICommand | cmd | Merging command |
Returns
Type | Description |
---|---|
System.Boolean | true - can be merged; false - not |
Overrides
FormatText()
Execute format text.
Declaration
protected override void FormatText()
Overrides
Merge(ICommand)
Merge text with command.
Declaration
public override void Merge(ICommand cmd)
Parameters
Type | Name | Description |
---|---|---|
ICommand | cmd | Merging command |
Overrides
UndoFormatText()
Undo format text.
Declaration
protected override void UndoFormatText()