4.891 TextBlock

x:Object > DependencyObject > Visual > UIElement > FrameworkElement > TextBlock, IInputElement
TextBlock
(usage)
<TextBlock> [ Inline | UIElement | x:String ]* </TextBlock>
(description)
Provides a lightweight control for displaying small amounts of flow content.
[content property]
Inlines
[name property]
Name
[xml lang property]
Language
(properties)
Background
Brush
(description)
The Brush used to fill the background of content area.
BaselineOffset
x:Double
(description)
The amount by which each line of text is offset from the baseline.
FontFamily
FontFamily
(description)
The preferred top-level font family for the TextBlock.
FontSize
x:Double
(description)
The top-level font size for the TextBlock.
[text syntax]
FontSizeSyntax
FontStretch
FontStretch
(description)
The top-level font-stretching characteristics for the TextBlock.
FontStyle
FontStyle
(description)
The top-level font style for the TextBlock.
FontWeight
FontWeight
(description)
The top-level font weight for the TextBlock.
Foreground
Brush
(description)
The Brush to apply to the text contents of the TextBlock.
Inlines
InlineCollection
(description)
An InlineCollection containing the top-level Inline elements that comprise the contents of the TextBlock.
[read only]
true
IsHyphenationEnabled
x:Boolean
(description)
A value that indicates whether automatic hyphenation of words is enabled or disabled.
LineHeight
x:Double
(description)
The height of each line of content.
[text syntax]
LengthSyntax
LineStackingStrategy
LineStackingStrategy
(description)
The mechanism by which a line box is determined for each line of text within the TextBlock.
Padding
Thickness
(description)
A value that indicates the thickness of padding space between the boundaries of the content area, and the content displayed by a TextBlock.
Text
x:String
(description)
The text contents of a TextBlock.
TextAlignment
TextAlignment
(description)
A value that indicates the horizontal alignment of text content.
TextDecorations
TextDecorationCollection
(description)
A TextDecorationCollection that contains the effects to apply to the text of a TextBlock.
TextEffects
TextEffectCollection
(description)
The effects to apply to the text content in this element.
TextTrimming
TextTrimming
(description)
The text trimming behavior to employ when content overflows the content area.
TextWrapping
TextWrapping
(description)
How the TextBlock should wrap text.
(attachable properties)
TextBlock.BaselineOffset
x:Double
(description)
The amount by which each line of text is offset from the baseline.
[target type]
DependencyObject
TextBlock.FontFamily
FontFamily
(description)
The preferred top-level font family for the TextBlock.
[target type]
DependencyObject
TextBlock.FontSize
x:Double
(description)
The top-level font size for the TextBlock.
[target type]
DependencyObject
[text syntax]
FontSizeSyntax
TextBlock.FontStretch
FontStretch
(description)
The top-level font-stretching characteristics for the TextBlock.
[target type]
DependencyObject
TextBlock.FontStyle
FontStyle
(description)
The top-level font style for the TextBlock.
[target type]
DependencyObject
TextBlock.FontWeight
FontWeight
(description)
The top-level font weight for the TextBlock.
[target type]
DependencyObject
TextBlock.Foreground
Brush
(description)
The Brush to apply to the text contents of the TextBlock.
[target type]
DependencyObject
TextBlock.LineHeight
x:Double
(description)
The height of each line of content.
[target type]
DependencyObject
[text syntax]
LengthSyntax
TextBlock.LineStackingStrategy
LineStackingStrategy
(description)
The mechanism by which a line box is determined for each line of text within the TextBlock.
[target type]
DependencyObject
TextBlock.TextAlignment
TextAlignment
(description)
A value that indicates the horizontal alignment of text content.
[target type]
DependencyObject