menu

WinForms

  • Code Examples
  • Upgrade Guide
  • User Guide
  • Demos
  • Support
  • Forums
  • Download
Class HorizontalAlignmentTextCmd - WindowsForms API Reference | Syncfusion

    Show / Hide Table of Contents

    Class HorizontalAlignmentTextCmd

    Sets the value of the Strikeout text property.

    Inheritance
    System.Object
    TextFormatCmd
    HorizontalAlignmentTextCmd
    Implements
    ICommand
    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()
    TextFormatCmd.CanMerge(ICommand)
    TextFormatCmd.CanUndo
    TextFormatCmd.Description
    TextFormatCmd.Do(Object)
    TextFormatCmd.m_fNewFormatValue
    TextFormatCmd.m_fOldFormatValue
    TextFormatCmd.m_hashOldFormatValues
    TextFormatCmd.m_nodesAffected
    TextFormatCmd.m_strDescription
    TextFormatCmd.m_txtEditor
    TextFormatCmd.Merge(ICommand)
    TextFormatCmd.NewFormatValue
    TextFormatCmd.NodeAffected
    TextFormatCmd.OldValues
    TextFormatCmd.Undo()
    Namespace: Syncfusion.Windows.Forms.Diagram
    Assembly: Syncfusion.Diagram.Windows.dll
    Syntax
    public class HorizontalAlignmentTextCmd : TextFormatCmd, ICommand

    Constructors

    HorizontalAlignmentTextCmd(NodeCollection, StringAlignment)

    Initializes a new instance of the HorizontalAlignmentTextCmd class.

    Declaration
    public HorizontalAlignmentTextCmd(NodeCollection nodesAffected, StringAlignment bNewAligmentFormatValue)
    Parameters
    Type Name Description
    NodeCollection nodesAffected

    Collection of selection nodes.

    System.Drawing.StringAlignment bNewAligmentFormatValue

    Formatted value.

    HorizontalAlignmentTextCmd(TextEditor, TextNode, StringAlignment)

    Initializes a new instance of the HorizontalAlignmentTextCmd class.

    Declaration
    public HorizontalAlignmentTextCmd(TextEditor txtEditor, TextNode nodeEditing, StringAlignment bNewAligmentFormatValue)
    Parameters
    Type Name Description
    TextEditor txtEditor

    Current text editor.

    TextNode nodeEditing

    Editable node.

    System.Drawing.StringAlignment bNewAligmentFormatValue

    Formatted value.

    HorizontalAlignmentTextCmd(TextNode, StringAlignment)

    Initializes a new instance of the HorizontalAlignmentTextCmd class.

    Declaration
    public HorizontalAlignmentTextCmd(TextNode nodeAffected, StringAlignment bNewAligmentFormatValue)
    Parameters
    Type Name Description
    TextNode nodeAffected

    Selection node.

    System.Drawing.StringAlignment bNewAligmentFormatValue

    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
    TextFormatCmd.Format(TextNode)

    FormatTextEditor()

    Applies formatting value to text in TextEditor.

    Declaration
    protected override void FormatTextEditor()
    Overrides
    TextFormatCmd.FormatTextEditor()

    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
    TextFormatCmd.UndoFormat(TextNode, Object)

    UndoFormatTextEditor()

    Undo format text in TextEditor.

    Declaration
    protected override void UndoFormatTextEditor()
    Overrides
    TextFormatCmd.UndoFormatTextEditor()

    Implements

    ICommand
    Back to top Generated by DocFX
    Copyright © 2001 - 2025 Syncfusion Inc. All Rights Reserved