Span.Inlines Span.Inlines Span.Inlines Span.Inlines Property

Definition

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

public : InlineCollection Inlines { get; set; }
InlineCollection Inlines();

void Inlines(InlineCollection inlines);
public InlineCollection Inlines { get; set; }
Public ReadWrite Property Inlines As InlineCollection
<Span ...>
  oneOrMoreInlines
</Span>
-or-
<Span ...>
  mixedContent
</Span>

Property Value

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.