DataObjectPastingEventArgs.FormatToApply 屬性

定義

取得或設定字串,這個字串指定用於貼上作業的建議資料格式。

public:
 property System::String ^ FormatToApply { System::String ^ get(); void set(System::String ^ value); };
public string FormatToApply { get; set; }
member this.FormatToApply : string with get, set
Public Property FormatToApply As String

屬性值

String

字串,指定用於貼上作業的建議資料格式。

取得這個值會傳回要用於貼上作業的目前建議資料格式。

設定這個值會指定要用於貼上作業的新建議資料格式。

例外狀況

當嘗試將這個屬性設定為 null 時,就會引發。

當嘗試將這個屬性設定的資料格式不存在於 DataObject 屬性所參考的資料物件中時,就會引發。

適用於