TextBlock.Inlines Property

Definition

Gets the collection of inline text elements within a TextBlock.

Equivalent WinUI property: Microsoft.UI.Xaml.Controls.TextBlock.Inlines.

public:
 property InlineCollection ^ Inlines { InlineCollection ^ get(); };
InlineCollection Inlines();
public InlineCollection Inlines { get; }
var inlineCollection = textBlock.inlines;
Public ReadOnly Property Inlines As InlineCollection
<TextBlock
  oneOrMoreInlineElements
</TextBlock>

Property Value

InlineCollection

A collection that holds all inline text elements from the TextBlock. The default is an empty collection.

Applies to