CoerceText Method
Coerces the current text.
Definition
Namespace: Avalonia.Controls
Assembly: Avalonia.Controls (in Avalonia.Controls.dll)
- C#
- VB
- F#
protected virtual string? CoerceText(
string? value
)
Protected Overridable Function CoerceText (
value As String
) As String
abstract CoerceText :
value : string -> string
override CoerceText :
value : string -> string
Parameters
- String
- The initial text.
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.