TextBlockSetTextAlignment Method
Writes the attached property BaselineOffset to the given element.
Namespace: Avalonia.ControlsAssembly: Avalonia.Controls (in Avalonia.Controls.dll) Version: 11.3.999
public static void SetTextAlignment(
Control control,
TextAlignment alignment
)
Public Shared Sub SetTextAlignment (
control As Control,
alignment As TextAlignment
)
static member SetTextAlignment :
control : Control *
alignment : TextAlignment -> unit
Parameters
- control Control
- The element to which to write the attached property.
- alignment TextAlignment
- The property value to set