TextBlock.Inlines Property


Gets the collection of inline text elements within a TextBlock.

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

 property InlineCollection ^ Inlines { InlineCollection ^ get(); };
InlineCollection Inlines();
public InlineCollection Inlines { get; }
var inlineCollection = textBlock.inlines;
Public ReadOnly Property Inlines As InlineCollection

Property Value


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

Applies to