Editor for WinForms | ComponentOne
C1.Win.C1Editor.4.5.2 Assembly / C1.Win.C1Editor.ToolStrips Namespace / CommandButton Enumeration
Example Example

In This Topic
    CommandButton Enumeration
    In This Topic
    Specifies the command used in a C1EditorToolStripButton.
    Syntax
    'Declaration
     
    Public Enum CommandButton 
       Inherits System.Enum
    public enum CommandButton : System.Enum 
    Members
    MemberDescription
    AddComment Adds comment.
    BigFont Big font.
    Bold Bold.
    Bookmark Bookmark.
    BulletedList Bulleted list.
    CellProperties Cell properties.
    Center Center.
    ClearFormatting Clear formatting.
    ColumnProperties Column properties.
    Copy Copy.
    Cut Cut.
    DecreaseIndent Decrease indent.
    DeleteAllComments Deletes all comments.
    DeleteColumn Delete column.
    DeleteComment Deletes the current comment.
    DeleteRow Delete row.
    DeleteTable Delete table.
    Design Design view.
    Find Find.
    FlashMovie FlashMovie.
    Hyperlink Hyperlink.
    IncreaseIndent Increase indent.
    InsertColumnAfter Insert column after.
    InsertColumnBefore Insert column before.
    InsertRowAbove Insert row above.
    InsertRowBelow Insert row below.
    Italic Italic.
    Justify Justify.
    Left Left.
    MoveNextComment Moves to the next comment.
    MovePreviousComment Moves to the previous comment.
    New New file.
    None Empty command.
    NumberedList Numbered list.
    Open Open file.
    Paste Paste.
    Picture Picture.
    Preview Preview.
    Print Print.
    Redo Redo.
    Replace Replace.
    ReplyComment Replies to the comment.
    Right Right.
    RowProperties Row properties.
    Save Save file.
    SelectAll Select all.
    ShowComments Shows comments.
    SmallFont Small font.
    Source Source view.
    Strikethrough Strikethrough.
    Subscript Subscript.
    Superscript Superscript.
    Table New table.
    TableProperties Table properties.
    Underline Underline.
    Undo Undo.
    Remarks
    The CommandButton enumeration is used by the C1EditorToolStripButton to set associated with the command text, tooltip and image. The command defines also whether the button is checked or unchecked and whether the button is enabled or disabled.
    Example
    The following code example demonstrates how to create a C1EditorToolStripButton and add it to a System.Windows.Forms.ToolStrip.
    C1EditorToolStripButton button = new C1EditorToolStripButton();
    button.Command = CommandButton.ClearFormatting;
    button.Editor = c1Editor1;
    toolStrip1.Items.Add(button);
    Inheritance Hierarchy

    System.Object
       System.ValueType
          System.Enum
             C1.Win.C1Editor.ToolStrips.CommandButton

    See Also