MaskedTextProvider.Clear Method
Important
Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.
Clears all the input characters from the formatted string.
Clear() |
Clears all the editable input characters from the formatted string, replacing them with prompt characters. |
Clear(MaskedTextResultHint) |
Clears all the editable input characters from the formatted string, replacing them with prompt characters, and then outputs descriptive information. |
- Source:
- MaskedTextProvider.cs
- Source:
- MaskedTextProvider.cs
- Source:
- MaskedTextProvider.cs
Clears all the editable input characters from the formatted string, replacing them with prompt characters.
public:
void Clear();
public void Clear();
member this.Clear : unit -> unit
Public Sub Clear ()
Remarks
The Clear() method reinitializes the formatted string, inserting the prompt character into all editable positions.
See also
Applies to
.NET 10 and other versions
Product | Versions |
---|---|
.NET | Core 2.0, Core 2.1, Core 2.2, Core 3.0, Core 3.1, 5, 6, 7, 8, 9, 10 |
.NET Framework | 2.0, 3.0, 3.5, 4.0, 4.5, 4.5.1, 4.5.2, 4.6, 4.6.1, 4.6.2, 4.7, 4.7.1, 4.7.2, 4.8, 4.8.1 |
.NET Standard | 2.0, 2.1 |
- Source:
- MaskedTextProvider.cs
- Source:
- MaskedTextProvider.cs
- Source:
- MaskedTextProvider.cs
Clears all the editable input characters from the formatted string, replacing them with prompt characters, and then outputs descriptive information.
public:
void Clear([Runtime::InteropServices::Out] System::ComponentModel::MaskedTextResultHint % resultHint);
public void Clear(out System.ComponentModel.MaskedTextResultHint resultHint);
member this.Clear : MaskedTextResultHint -> unit
Public Sub Clear (ByRef resultHint As MaskedTextResultHint)
Parameters
- resultHint
- MaskedTextResultHint
A MaskedTextResultHint that succinctly describes the result of the operation. An output parameter.
Remarks
The Clear(MaskedTextResultHint) method reinitializes the formatted string, inserting the prompt character into all editable positions. It functions equivalently to the overridden version that takes no parameters, Clear(), except it outputs additional information.
See also
Applies to
.NET 10 and other versions
Product | Versions |
---|---|
.NET | Core 2.0, Core 2.1, Core 2.2, Core 3.0, Core 3.1, 5, 6, 7, 8, 9, 10 |
.NET Framework | 2.0, 3.0, 3.5, 4.0, 4.5, 4.5.1, 4.5.2, 4.6, 4.6.1, 4.6.2, 4.7, 4.7.1, 4.7.2, 4.8, 4.8.1 |
.NET Standard | 2.0, 2.1 |
.NET feedback
.NET is an open source project. Select a link to provide feedback: