ButtonPositions Property
- Namespace
TXTextControl
- Package
TXTextControl.asTextControl. WinForms. SDK TXTextControl.from the private NuGet feed or Text Control Offline PackagesWindows. Forms. dll
Description
Gets or sets an array of buttons the button bar consists of. The maximum size of the array is 31 buttons.
Syntax
public Button[] ButtonPositions { get; set; }Public Property ButtonPositions As Button()Members
| Value | Description |
|---|---|
| AlignmentLeftButton | Specifies a button for setting a left aligned paragraph. |
| AlignmentRightButton | Specifies a button for setting a right aligned paragraph. |
| AlignmentCenteredButton | Specifies a button for setting a centered paragraph. |
| AlignmentJustifiedButton | Specifies a button for setting a justified paragraph. |
| ControlCharsButton | Specifies a button for showing or hiding control characters. |
| DecreaseIndentButton | Specifies a button for decreasing a paragraph's indent. |
| FontNameComboBox | Specifies a combobox containing all fonts of the current formatting device. |
| FontSizeComboBox | Specifies a combobox containing all sizes of the current font. |
| FontBoldButton | Specifies a button for setting the font bold attribute. |
| FontItalicButton | Specifies a button for setting the font italic attribute. |
| FontUnderlineButton | Specifies a button for setting the font underline attribute. |
| GrowFontSizeButton | Specifies a button for growing the font size. |
| IncreaseIndentButton | Specifies a button for increasing a paragraph's indent. |
| LeftToRightButton | Specifies a button to set a paragraph's text direction from left to right. |
| ListBulletedButton | Specifies a button for setting a bulleted list. |
| ListNumberedButton | Specifies a button for setting a numbered list. |
| ListStructuredButton | Specifies a button for setting a structured numbered list. |
| RightToLeftButton | Specifies a button to set a paragraph's text direction from right to left. |
| ShrinkFontSizeButton | Specifies a button for shrinking the font size. |
| StrikeOutButton | Specifies a button for setting the font strike out attribute. |
| StyleComboBox | Specifies a combobox containing the document's formatting styles. |
| SubscriptButton | Specifies a button for setting the baseline of selected text to subscript. |
| SuperscriptButton | Specifies a button for setting the baseline of selected text to superscript. |
| TabLeftButton | Specifies a button for selecting a left aligned tab. |
| TabRightButton | Specifies a button for selecting a right aligned tab. |
| TabCenteredButton | Specifies a button for selecting a centered tab. |
| TabDecimalButton | Specifies a button for selecting a decimal tab. |
| XMLAddElementComboBox | Specifies a combobox for inserting XML elements. |
| XMLRemoveElementComboBox | Specifies a combobox for deleting XML elements. |
| ZoomComboBox | Specifies a combobox for setting the current zoom factor. |
Examples
The following example uses ButtonBar.ButtonPositions to configure button positions as part of the button bar workflow. The change is then applied to the active document or user interface.
buttonBar.ButtonPositions = new TXTextControl.Button[] { TXTextControl.Button.FontNameComboBox };
buttonBar.Update();buttonBar.ButtonPositions = New TXTextControl.Button() { TXTextControl.Button.FontNameComboBox }
buttonBar.Update()