Back to Devexpress

CustomMaskEventArgs.ToString() Method

wpf-devexpress-dot-xpf-dot-editors-dot-custommaskeventargs-4cf6832a.md

latest1.8 KB
Original Source

CustomMaskEventArgs.ToString() Method

Gets the transcript of the user’s action in the following format: (InitialState)->UserAction->(FinalState).

Namespace : DevExpress.Xpf.Editors

Assembly : DevExpress.Xpf.Core.v25.2.dll

NuGet Package : DevExpress.Wpf.Core

Declaration

csharp
public override string ToString()
vb
Public Overrides Function ToString As String

Returns

TypeDescription
String

The transcript of the user’s action.

|

Remarks

A transcript returned by the ToString method allows you to analyze what triggered this event. This string includes the initial editor text, the user action, and the result of this action.

For example, if the editor displays the "ABC" string with a caret after the letter "B", and a user types "d", the ToString method returns (AB|C)->Insert(d)->(ABd|C). If a user presses the Backspace key instead, the resulting value is (AB|C)->Backspace->(A|C).

The ! transcript character stands for the selection anchor returned by the CurrentSelectionAnchor and ResultSelectionAnchor properties.

See Also

CustomMaskEventArgs Class

CustomMaskEventArgs Members

DevExpress.Xpf.Editors Namespace