Inlines property
Collapse the table of content
Expand the table of content

Span.Inlines property

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

Syntax


public:
property InlineCollection^ Inlines { 
   InlineCollection^ get();
   void set (InlineCollection^ value);
}


<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 (Windows 10 device family)

Device family

Universal, introduced version 10.0.10240.0

API contract

Windows.Foundation.UniversalApiContract, introduced version 1.0

Namespace

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

Metadata

Windows.Foundation.UniversalApiContract.winmd

Requirements (Windows 8.x and Windows Phone 8.x)

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:
© 2017 Microsoft