SetTextAlignment Method
Writes the attached property BaselineOffset to the given element.
Definition
Namespace: Avalonia.Controls
Assembly: Avalonia.Controls (in Avalonia.Controls.dll)
- C#
- VB
- F#
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
- The element to which to write the attached property.
- TextAlignment
- The property value to set