Span.Inlines property

Applies to Windows and Windows Phone

Gets an InlineCollection containing the top-level inline elements that include the contents of Span.

Syntax


public InlineCollection Inlines { get; set; }


<Span ...>
  oneOrMoreInlines
</Span>
-or-
<Span ...>
  mixedContent
</Span>

XAML Values

oneOrMoreInlines

One or more elements that derive from the Inline type.

mixedContent

A mixture of inner text and elements that derive from the Inline type.

Property value

Type: InlineCollection

An InlineCollection containing the inline elements that include the contents of the Span. This property has no default value.

Remarks

Hyperlink has restrictions on the content that can exist in its Inlines colllection. Specifically, a Hyperlink only permits Run and other Span types that aren't another Hyperlink. InlineUIContainer can't be in the Inlines colllection of a Hyperlink. Attempting to add restricted content throws an invalid args exception or XAML parse exception.

Requirements

Minimum supported client

Windows 8

Minimum supported server

Windows Server 2012

Minimum supported phone

Windows Phone 8.1 [Windows Runtime apps only]

Namespace

Windows.UI.Xaml.Documents
Windows::UI::Xaml::Documents [C++]

Metadata

Windows.winmd

See also

Span

 

 

Show:
© 2014 Microsoft