Specifies the command used in a C1XmlEditorToolStripButton.

Namespace:  C1.Win.XmlEditor.ToolStrips
Assembly:  C1.Win.XmlEditor.2 (in C1.Win.XmlEditor.2.dll)

Syntax

C#
public enum CommandButton
Visual Basic (Declaration)
Public Enumeration CommandButton

Members

Member nameDescription
None
Empty command.
Bold
Bold.
Italic
Italic.
Underline
Underline.
Strikethrough
Strikethrough.
Subscript
Subscript.
Superscript
Superscript.
ClearFormatting
Clear formatting.
Left
Left.
Center
Center.
Right
Right.
Justify
Justify.
BigFont
Big font.
SmallFont
Small font.
New
New file.
Open
Open file.
Save
Save file.
Print
Print.
Cut
Cut.
Copy
Copy.
Paste
Paste.
Undo
Undo.
Redo
Redo.
SelectAll
Select all.
Find
Find.
Replace
Replace.
Design
Design view.
Source
Source view.
Preview
Preview.
Table
New table.
InsertRowAbove
Insert row above.
InsertRowBelow
Insert row below.
InsertColumnBefore
Insert column before.
InsertColumnAfter
Insert column after.
TableProperties
Table properties.
RowProperties
Row properties.
ColumnProperties
Column properties.
CellProperties
Cell properties.
DeleteTable
Delete table.
DeleteRow
Delete row.
DeleteColumn
Delete column.
Picture
Picture.
Hyperlink
Hyperlink.
Bookmark
Bookmark.
FlashMovie
FlashMovie.

Remarks

The CommandButton enumeration is used by the C1XmlEditorToolStripButton 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.

Examples

The following code example demonstrates how to create a C1XmlEditorToolStripButton and add it to a ToolStrip.
Copy CodeC#
C1XmlEditorToolStripButton button = new C1XmlEditorToolStripButton();
button.Command = CommandButton.ClearFormatting;
button.Editor = c1XmlEditor1;
toolStrip1.Items.Add(button);

See Also