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.

Syntax

public class InputFormat
Public Class InputFormat

Introduced: 16.0.

Methods

Method Description
GetFontFamilies Returns an array of strings specifying all supported fonts.
GetFontSizes Returns all possible font sizes of a certain font.

Properties

Property Description
AllFrameLines Gets or sets a value specifying whether all frame lines, including all inner frame lines, are set for the selected text.
Bold Gets or sets a value specifying whether text is bold at the current input position.
BottomAligned Gets or sets a value specifying whether text is bottom aligned at the current input position.
BottomDistance Gets or sets a bottom paragraph distance, in twips, at the current input position.
BottomFrameLine Gets or sets a value specifying whether there is a frame line at the bottom of the text.
BoxFrame Gets or sets a value specifying whether there is a complete frame around the text.
BulletCharacter Gets or sets the bullet character at the current input position.
BulletedList Gets or sets a value specifying whether there is a bulleted list at the current input position.
Centered Gets or sets a value specifying whether text is centered at the current input position.
FontFamily Gets or sets the font family at the current input position.
FontSize Gets or sets the font's size, in twips, at the current input position.
FrameFillColor Gets or sets the color used to display the frame fill color at the current input position.
FrameLineColor Gets or sets the color used to display the color of frame lines at the current text input position.
FrameLineWidth Gets or sets the line width, in twips, of the paragraph's or table's frame at the current input position.
HangingIndent Gets or sets the hanging indent, in twips, at the current input position.
InnerHorizontalFrameLines Gets or sets a value specifying whether all inner horizontal frame lines are set for the selected text.
InnerVerticalFrameLines Gets or sets a value specifying whether all inner vertical frame lines are set for the selected text.
Italic Gets or sets a value specifying whether the text is italic at the current input position.
Justified Gets or sets a value specifying whether text is justified at the current input position.
LeftAligned Gets or sets a value specifying whether text is left aligned at the current input position.
LeftFrameLine Gets or sets a value specifying whether there is a frame line at the left side of the text.
LeftIndent Gets or sets the left indent, in twips, at the current input position.
LeftToRight Gets or sets a value specifying whether the writung direction is left-to-right at the current input position.
LineSpacing Gets or sets the line spacing, in percent, at the current input position.
NumberFormat Gets or sets a number format which can be used to automatically format numbers in table cells.
NumberFormats Returns an array of all supported number formats for numbered and structured lists.
NumberTextType Gets or sets a value specifying whether text at the current input position is interpreted as a number which means that the period character (.) is defined as decimal separator and the comma character (,) is defined as thousands separator.
NumberedList Gets or sets a value specifying whether there is a numbered list at the current input position.
NumberedListFormat Gets or sets the number format for a numbered list at the current input position.
RightAligned Gets or sets a value specifying whether text is right aligned at the current input position.
RightFrameLine Gets or sets a value specifying whether there is a frame line at the right side of the text.
RightIndent Gets or sets the right indent, in twips, at the current input position.
RightToLeft Gets or sets a value specifying whether the writing direction is right-to-left at the current input position.
StandardTextType Gets or sets a value specifying whether the text at the current input position is interpreted as standard text which means that it is displayed as it is.
Strikeout Gets or sets a value specifying whether the text is strikeout at the current input position.
StructureLevel Gets or sets the structure level of all selected paragraphs.
StructuredList Gets or sets a value specifying whether there is a structured list at the current input position.
StructuredListFormat Gets or sets the number format for a structured list at the current input position.
StyleName Gets or sets the formatting style name at the current input position.
StyleNames Returns an array of the names of all formatting styles, the document contains.
Subscript Gets or sets a value specifying whether text is subscript at the current input position.
Superscript Gets or sets a value specifying whether text is superscript at the current input position.
TextBackColor Gets or sets the color used to display the text background color at the current input position.
TextColor Returns or sets the color used to display the text at the current input position.
TopAligned Gets or sets a value specifying whether text is top aligned at the current input position.
TopDistance Gets or sets a top paragraph distance, in twips, at the current input position.
TopFrameLine Gets or sets a value specifying whether there is a frame line at the top of the text.
Underline Gets or sets a value specifying whether text is underlined at the current input position.
UnderlineStyle Gets or sets the underline style at the current input position.
UnderlineStyles Returns an array of all supported underline styles.
VerticallyCentered Gets or sets a value specifying whether text is vertically centered at the current text input position.