Block Properties
Collapse the table of content
Expand the table of content

Block Properties

[ This article is for Windows Phone 8 developers. If you’re developing for Windows 10, see the latest documentation. ]

The Block type exposes the following members.

  NameDescription
Public property CharacterSpacing Gets or sets the distance between characters of text in the control measured in 1000ths of the font size. (Inherited from TextElement.)
Public property ContentEnd Gets a TextPointer that represents the end of the content in the element. (Inherited from TextElement.)
Public property ContentStart Gets a TextPointer that represents the start of content in the element. (Inherited from TextElement.)
Public property Dispatcher Gets the Dispatcher this object is associated with. (Inherited from DependencyObject.)
Public property ElementEnd Gets a TextPointer that represents the position just after the end of the element. (Inherited from TextElement.)
Public property ElementStart Gets a TextPointer that represents the position just before the start of the element. (Inherited from TextElement.)
Public property FontFamily Gets or sets the preferred top-level font family for the content of the element. (Inherited from TextElement.)
Public property FontSize Gets or sets the font size for the content of the element. (Inherited from TextElement.)
Public property FontStretch Gets or sets the glyph width of the font in a family to select. (Inherited from TextElement.)
Public property FontStyle Gets or sets the font style for the content in this element. (Inherited from TextElement.)
Public property FontWeight Gets or sets the top-level font weight to select from the font family for the content in this element. (Inherited from TextElement.)
Public property Foreground Gets or sets the Brush to apply to the content in this element. (Inherited from TextElement.)
Public property Language Gets or sets the language of the content within an TextElement element. (Inherited from TextElement.)
Public property LineHeight Gets or sets the height of each line of content.
Public property LineStackingStrategy Gets or sets a value that indicates how a line box is determined for each line of text in a Block.
Public property Name Gets or sets a unique identification for the object. Name can only be set from initial parsing of XAML. (Inherited from TextElement.)
Public property TextAlignment Gets or sets the horizontal alignment of the text content.
Top

Show:
© 2017 Microsoft