CoerceText Method
Coerces the current text.
Definition
Namespace: Avalonia.Controls
Assembly: Avalonia.Controls (in Avalonia.Controls.dll)
- C#
- VB
- F#
protected override string? CoerceText(
string? text
)
Protected Overrides Function CoerceText (
text As String
) As String
abstract CoerceText :
text : string -> string
override CoerceText :
text : string -> string
Parameters
Return Value
String
A coerced text.
Remarks
This method also manages the internal undo/redo state whenever the text changes: if overridden, ensure that the base is called or undo/redo won't work correctly.