MaskedTextBox.TextMaskFormat 屬性

定義

取得或設定值,這個值可判斷是否會將常值和提示字元包含在格式化的字串中。

public:
 property System::Windows::Forms::MaskFormat TextMaskFormat { System::Windows::Forms::MaskFormat get(); void set(System::Windows::Forms::MaskFormat value); };
public System.Windows.Forms.MaskFormat TextMaskFormat { get; set; }
member this.TextMaskFormat : System.Windows.Forms.MaskFormat with get, set
Public Property TextMaskFormat As MaskFormat

屬性值

MaskFormat

其中一個 MaskFormat 值。 預設為 IncludeLiterals

例外狀況

以無效的 MaskFormat 值所設定的屬性。

備註

屬性 TextMaskFormat 會決定產生格式化字串時,遮罩中的常值和提示字元如何處理。 更具體來說,它會判斷 屬性中是否包含 Text 常值字元、提示字元或兩者。 排除提示字元時,這些字元會轉換成格式化字串中的空格。

注意

屬性 CutCopyMaskFormat 在解譯屬性的方式 Text 方面提供類似的用途。

適用於

另請參閱