Skip to main content

SetTextAlignment Method

Writes the attached property BaselineOffset to the given element.

Definition

Namespace: Avalonia.Controls
Assembly: Avalonia.Controls (in Avalonia.Controls.dll)

public static void SetTextAlignment(
Control control,
TextAlignment alignment
)

Parameters

  Control
The element to which to write the attached property.
  TextAlignment
The property value to set

See Also

Reference

TextBlock Class
Avalonia.Controls Namespace