Inline Inline Inline Class


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
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


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:

    <Ellipse Fill="Red" Height="20" Width="20"/>

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.


Inline() Inline() Inline()

Provides base class initialization behavior for Inline derived classes.

protected Inline()protected Inline()Protected Sub New()

See Also