MaskedTextBox.CutCopyMaskFormat 屬性

定義

取得或設定值,這個值可判斷是否會將常值和提示字元複製到剪貼簿中。

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

屬性值

MaskFormat

其中一個 MaskFormat 值。 預設為 IncludeLiterals

例外狀況

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

備註

屬性 CutCopyMaskFormat 會決定控制項內 MaskedTextBox 選取的文字在複製到剪貼簿或透過 SelectedText 屬性擷取時,會解譯文字的方式。 具體而言,它會決定存取選取的文字時,是否包含常值字元、提示字元或兩者。 排除提示字元時,這些字元會轉換成複製字串中的空格。

注意

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

適用於

另請參閱