MaskedTextProvider.Remove 方法
定義
重要
部分資訊涉及發行前產品,在發行之前可能會有大幅修改。 Microsoft 對此處提供的資訊,不做任何明確或隱含的瑕疵擔保。
移除格式化字串中最後一個被指派的字元。
多載
| 名稱 | Description |
|---|---|
| Remove() |
移除格式化字串中最後一個被指派的字元。 |
| Remove(Int32, MaskedTextResultHint) |
從格式化字串中移除最後分配的字元,然後輸出移除位置與描述資訊。 |
Remove()
移除格式化字串中最後一個被指派的字元。
public:
bool Remove();
public bool Remove();
member this.Remove : unit -> bool
Public Function Remove () As Boolean
傳回
true如果角色被成功移除;否則,。 false
備註
如果面具還沒有分配角色,這個 Remove 方法就不會生效。
當最後一個分配的字元從格式化字串中移除時,該位置的可編輯遮罩字元會被重置,允許後續輸入。
另請參閱
適用於
Remove(Int32, MaskedTextResultHint)
從格式化字串中移除最後分配的字元,然後輸出移除位置與描述資訊。
public:
bool Remove([Runtime::InteropServices::Out] int % testPosition, [Runtime::InteropServices::Out] System::ComponentModel::MaskedTextResultHint % resultHint);
public bool Remove(out int testPosition, out System.ComponentModel.MaskedTextResultHint resultHint);
member this.Remove : int * MaskedTextResultHint -> bool
Public Function Remove (ByRef testPosition As Integer, ByRef resultHint As MaskedTextResultHint) As Boolean
參數
- testPosition
- Int32
格式化字串中字元實際被移除的零基位置。 輸出參數。
- resultHint
- MaskedTextResultHint
MaskedTextResultHint A,簡潔地描述了手術的結果。 輸出參數。
傳回
true如果角色被成功移除;否則,。 false
備註
如果面具還沒有分配角色,這個 Remove 方法就不會生效。
當最後一個分配的字元從格式化字串中移除時,該位置的可編輯遮罩字元會被重置,允許後續輸入。