TX Text Control .NET for Windows Forms Documentation

InputFormat class

The InputFormat class represents all formatting attributes at the current text input position. All properties are automatically updated, when the input position changes so that the class can be used in a XAML data binding without code behind. This is useful when a TextControl or WPF.TextControl is connected with other controls which show the current state at the input position. If text is selected and the selection has no common value for a certain attribute, the corresponding property is null.

Introduced: 16.0.

Syntax

[C#] public class InputFormat
[Visual Basic] Public Class InputFormat

Properties

PropertyDescription
AllFrameLinesGets or sets a value specifying whether all frame lines, including all inner frame lines, are set for the selected text.
BoldGets or sets a value specifying whether text is bold at the current input position.
BottomDistanceGets or sets a bottom paragraph distance, in twips, at the current input position.
BottomFrameLineGets or sets a value specifying whether there is a frame line at the bottom of the text.
BoxFrameGets or sets a value specifying whether there is a complete frame around the text.
BulletCharacterGets or sets the bullet character at the current input position.
BulletedListGets or sets a value specifying whether there is a bulleted list at the current input position.
CenteredGets or sets a value specifying whether text is centered at the current input position.
FontFamilyGets or sets the font family at the current input position.
FontSizeGets or sets the font's size, in twips, at the current input position.
HangingIndentGets or sets the hanging indent, in twips, at the current input position.
InnerHorizontalFrameLinesGets or sets a value specifying whether all inner horizontal frame lines are set for the selected text.
InnerVerticalFrameLinesGets or sets a value specifying whether all inner vertical frame lines are set for the selected text.
ItalicGets or sets a value specifying whether the text is italic at the current input position.
JustifiedGets or sets a value specifying whether text is justified at the current input position.
LeftAlignedGets or sets a value specifying whether text is left aligned at the current input position.
LeftFrameLineGets or sets a value specifying whether there is a frame line at the left side of the text.
LeftIndentGets or sets the left indent, in twips, at the current input position.
LineSpacingGets or sets the line spacing, in percent, at the current input position.
NumberedListGets or sets a value specifying whether there is a numbered list at the current input position.
NumberedListFormatGets or sets the number format for a numbered list at the current input position.
NumberFormatsReturns an array of all supported number formats for numbered and structured lists.
RightAlignedGets or sets a value specifying whether text is right aligned at the current input position.
RightFrameLineGets or sets a value specifying whether there is a frame line at the right side of the text.
RightIndentGets or sets the right indent, in twips, at the current input position.
StrikeoutGets or sets a value specifying whether the text is strikeout at the current input position.
StructuredListGets or sets a value specifying whether there is a structured list at the current input position.
StructuredListFormatGets or sets the number format for a structured list at the current input position.
StyleNameGets or sets the formatting style name at the current input position.
StyleNamesReturns an array of the names of all formatting styles, the document contains.
SubscriptGets or sets a value specifying whether text is subscript at the current input position.
SuperscriptGets or sets a value specifying whether text is superscript at the current input position.
TextBackColorGets or sets the color used to display the text background color at the current input position.
TextColorReturns or sets the color used to display the text at the current input position.
TopDistanceGets or sets a top paragraph distance, in twips, at the current input position.
TopFrameLineGets or sets a value specifying whether there is a frame line at the top of the text.
UnderlineGets or sets a value specifying whether text is underlined at the current input position.
UnderlineStyleGets or sets the underline style at the current input position.
UnderlineStylesReturns an array of all supported underline styles.

Methods

MethodDescription
GetFontFamiliesReturns an array of strings specifying all supported fonts.
GetFontSizesOverloaded. Returns an array of strings specifying all possible font sizes for the font at the text input position or for the specified font.

See Also

 
 
 

Products

Support

Downloads

Corporate

Buy Now