語言

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 價值。 預設值為 IncludeLiterals。

例外狀況

屬性設定的 MaskFormat 值並不有效。

備註

該 CutCopyMaskFormat 屬性決定了在控制項中 MaskedTextBox 選取的文字,在複製到剪貼簿或透過該 SelectedText 屬性檢索時,如何被解讀。 具體來說,它決定在選取文字時,是否包含字面字元、提示字元,或兩者兼有。 當提示字元被排除時,它們會被轉換成複製字串中的空格。

Note

TextMaskFormat該性質在解釋上Text也有類似的意義。

適用於

另請參閱