Inline Inline Inline Class

Definition

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

public : class Inline : TextElement, IInlinepublic class Inline : TextElement, IInlinePublic Class Inline Inherits TextElement Implements IInline
Inheritance
Attributes
Windows 10 requirements
Device family
Windows 10 (introduced v10.0.10240.0)
API contract
Windows.Foundation.UniversalApiContract (introduced v1)

Inherited Members

Inherited properties

Inherited events

Inherited methods

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.

Constructors

Inline() Inline() Inline()

Provides base class initialization behavior for Inline derived classes.

protected : Inline()protected Inline()Protected Sub New()
Attributes

See Also