XAML in a Nutshell (In a Nutshell (OReilly))

InlineHierarchy: DependencyObject ContentElement FrameworkContentElement TextElement

<Inline BaselineAlignment="Baseline|Bottom|Center|Superscript| Subscript|TextTop|Top|TextBottom" TextDecorations="Collection of TextDecoration" />

<Inline .../> defines an inline element with no inherent rendering properties. Inline is the base class for several inline elements designed to apply formatting to text and text-based elements. Derived classes are:

  • AccessKey

  • Bold

  • Italic

  • Underline

Attributes

BaselineAlignment (optional)

Baseline

Aligns the text at the baseline

Bottom

Aligns the bottom toward the bottom of the container

Center

Centers the text vertically

Subscript

Aligns the baseline to the subscript position of the container

Superscript

Aligns the baseline to the superscript position of the container

TextBottom

Aligns toward text's bottom of container

TextTop

Aligns toward text's top of container

Top

Aligns toward the top of the container

TextDecorations (optional)

Specifies a collection of Textdecoration elements that will be applied to the content of Inline.

Категории