GestureData 建構函式 (EditingContext, ModelItem, ModelItem, DependencyObject, DependencyObject)
初始化 GestureData 類別的新執行個體。
命名空間: Microsoft.Windows.Design.Interaction
組件: Microsoft.Windows.Design.Interaction (在 Microsoft.Windows.Design.Interaction.dll 中)
語法
'宣告
Public Sub New ( _
context As EditingContext, _
sourceModel As ModelItem, _
targetModel As ModelItem, _
sourceAdorner As DependencyObject, _
targetAdorner As DependencyObject _
)
public GestureData(
EditingContext context,
ModelItem sourceModel,
ModelItem targetModel,
DependencyObject sourceAdorner,
DependencyObject targetAdorner
)
public:
GestureData(
EditingContext^ context,
ModelItem^ sourceModel,
ModelItem^ targetModel,
DependencyObject^ sourceAdorner,
DependencyObject^ targetAdorner
)
new :
context:EditingContext *
sourceModel:ModelItem *
targetModel:ModelItem *
sourceAdorner:DependencyObject *
targetAdorner:DependencyObject -> GestureData
public function GestureData(
context : EditingContext,
sourceModel : ModelItem,
targetModel : ModelItem,
sourceAdorner : DependencyObject,
targetAdorner : DependencyObject
)
參數
- context
型別:Microsoft.Windows.Design.EditingContext
含有筆勢資料的編輯內容。
- sourceModel
型別:Microsoft.Windows.Design.Model.ModelItem
筆勢起始處的模型
- targetModel
型別:Microsoft.Windows.Design.Model.ModelItem
筆勢目前停留的模型。
- sourceAdorner
型別:System.Windows.DependencyObject
與筆勢相關聯的原始裝飾項 (如果存在的話)。這個參數可以是 nullNull 參照 (即 Visual Basic 中的 Nothing)。
- targetAdorner
型別:System.Windows.DependencyObject
與筆勢相關聯的目標裝飾項 (如果存在的話)。這個參數可以是 nullNull 參照 (即 Visual Basic 中的 Nothing)。
例外狀況
例外狀況 | 條件 |
---|---|
ArgumentNullException | context、sourceModel 或 targetModel 為 nullNull 參照 (即 Visual Basic 中的 Nothing)。 |
.NET Framework 安全性
- 完全信任立即呼叫者。這個成員無法供部分信任的程式碼使用。如需詳細資訊,請參閱從部分受信任程式碼使用程式庫。
請參閱
參考
Microsoft.Windows.Design.Interaction 命名空間