Skip to content

TextBlockMarkupExtensions.Text<T> method

Sets the text content; setting it replaces Inlines, and while runs are present the value is their concatenated text.

public static T Text<T>(this T target, string value)
where T : TextBlock
parameter description
T Receiver type.
target Target TextBlock.
value Value assigned to Text.

The same element for chaining.

Sets: TextBlock.Text