TX Text Control .NET for Windows Forms

ButtonPositions Property

Property
Namespace
TXTextControl
Package
TXTextControl.TextControl.WinForms.SDK as TXTextControl.Windows.Forms.dll from the private NuGet feed or Text Control Offline Packages

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; }

Members

ValueDescription
AlignmentLeftButtonSpecifies a button for setting a left aligned paragraph.
AlignmentRightButtonSpecifies a button for setting a right aligned paragraph.
AlignmentCenteredButtonSpecifies a button for setting a centered paragraph.
AlignmentJustifiedButtonSpecifies a button for setting a justified paragraph.
ControlCharsButtonSpecifies a button for showing or hiding control characters.
DecreaseIndentButtonSpecifies a button for decreasing a paragraph's indent.
FontNameComboBoxSpecifies a combobox containing all fonts of the current formatting device.
FontSizeComboBoxSpecifies a combobox containing all sizes of the current font.
FontBoldButtonSpecifies a button for setting the font bold attribute.
FontItalicButtonSpecifies a button for setting the font italic attribute.
FontUnderlineButtonSpecifies a button for setting the font underline attribute.
GrowFontSizeButtonSpecifies a button for growing the font size.
IncreaseIndentButtonSpecifies a button for increasing a paragraph's indent.
LeftToRightButtonSpecifies a button to set a paragraph's text direction from left to right.
ListBulletedButtonSpecifies a button for setting a bulleted list.
ListNumberedButtonSpecifies a button for setting a numbered list.
ListStructuredButtonSpecifies a button for setting a structured numbered list.
RightToLeftButtonSpecifies a button to set a paragraph's text direction from right to left.
ShrinkFontSizeButtonSpecifies a button for shrinking the font size.
StrikeOutButtonSpecifies a button for setting the font strike out attribute.
StyleComboBoxSpecifies a combobox containing the document's formatting styles.
SubscriptButtonSpecifies a button for setting the baseline of selected text to subscript.
SuperscriptButtonSpecifies a button for setting the baseline of selected text to superscript.
TabLeftButtonSpecifies a button for selecting a left aligned tab.
TabRightButtonSpecifies a button for selecting a right aligned tab.
TabCenteredButtonSpecifies a button for selecting a centered tab.
TabDecimalButtonSpecifies a button for selecting a decimal tab.
XMLAddElementComboBoxSpecifies a combobox for inserting XML elements.
XMLRemoveElementComboBoxSpecifies a combobox for deleting XML elements.
ZoomComboBoxSpecifies 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();