Skip to content

Latest commit

 

History

History
49 lines (35 loc) · 2.49 KB

File metadata and controls

49 lines (35 loc) · 2.49 KB
-api-id -api-type
T:Windows.UI.Xaml.Documents.Inline
winrt class

Windows.UI.Xaml.Documents.Inline

-description

Provides a base class for inline text elements, such as Span and Run.

-remarks

InlineCollection is a strongly typed collection class that is used by various Inlines properties: TextBlock.Inlines, Paragraph.Inlines and Span.Inlines. By specifying XAML object elements within one of these Inlines properties, you can assign multiple Inline elements to be the text content for an inline text container. This is usually done using an implicit collection and XAML property syntax, such that the inline child elements appear as direct children of the container in XAML markup. This example uses all of the common Inline types as content for a Paragraph:

<Paragraph>
  <Bold>Bold</Bold><LineBreak/>
  <Hyperlink>Hyperlink</Hyperlink><LineBreak/>
  <InlineUIContainer>
    <Ellipse Fill="Red" Height="20" Width="20"/>
  </InlineUIContainer><LineBreak/>
  <Italic>Italic</Italic><LineBreak/>
  <Run>Run</Run><LineBreak/>
  <Span>Span</Span><LineBreak/>
  <Underline>Underline</Underline><LineBreak/>
 </Paragraph>

Inline derived classes

Inline is the parent class for several immediately derived classes that further define varieties of inline text for the XAML text object model:

Span has several derived classes too: Bold, Hyperlink, Italic, and Underline. Span can also be used as a formatting element to apply TextElement properties to mixed content (inlines and plain text). Block and Inline are both considered base classes (you don't typically see a <Inline> tag in XAML). For more info on how to use block and inline elements, see Quickstart: Displaying text.

-examples

-see-also

TextElement, Run, Span, Paragraph.Inlines, TextBlock.Inlines, Quickstart: Displaying text