Inline Inline Inline Class

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

Syntax

Declaration

public class Inlinepublic class InlinePublic Class Inline

Inheritance Hierarchy

Inherited Members

, , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , ,

Remarks

InlineCollection is a strongly typed collection class that is used by various Inlines properties: Inlines, Inlines and 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 @Windows.UI.Xaml.Documents.Paragraph:```xaml Bold Hyperlink Italic Run Span Underline ```

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.

Device family

Windows 10 (introduced v10.0.10240.0)

API contract

Windows.Foundation.UniversalApiContract (introduced v1)

Attributes

Windows.Foundation.Metadata.MarshalingBehaviorAttribute
Windows.Foundation.Metadata.WebHostHiddenAttribute
Windows.Foundation.Metadata.ThreadingAttribute
Windows.Foundation.Metadata.ComposableAttribute
Windows.Foundation.Metadata.ContractVersionAttribute

Details

Assembly

Windows.UI.Xaml.Documents.dll