Skip to content

ControlExtensions.Bold method (1 of 2)

Sets the font weight to bold.

public static TextBlock Bold(this TextBlock textBlock)
parameter description
textBlock Target text block.

The text block for chaining.

Sets: TextElement.FontWeight


Sets the font weight to bold.

public static T Bold<T>(this T control)
where T : Control
parameter description
T Control type.
control Target control.

The control for chaining.