Skip to main content

SetText Method

Sets the value of the TextProperty attached property to a given Control.

Definition​

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

public static void SetText(
Control control,
string? text
)

Parameters​

  Control
The control.
  String
The search text to set.

See Also​

Reference​

TextSearch Class
Avalonia.Controls.Primitives Namespace