DragGestureData クラスの新しいインスタンスを初期化します。
名前空間: 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, _
coordinateReference As Visual, _
startPosition As Point, _
currentPosition As Point, _
allowedEffects As DragDropEffects, _
data As IDataObject, _
sourceAdorner As DependencyObject, _
targetAdorner As DependencyObject _
)
public DragGestureData(
EditingContext context,
ModelItem sourceModel,
ModelItem targetModel,
Visual coordinateReference,
Point startPosition,
Point currentPosition,
DragDropEffects allowedEffects,
IDataObject data,
DependencyObject sourceAdorner,
DependencyObject targetAdorner
)
public:
DragGestureData(
EditingContext^ context,
ModelItem^ sourceModel,
ModelItem^ targetModel,
Visual^ coordinateReference,
Point startPosition,
Point currentPosition,
DragDropEffects allowedEffects,
IDataObject^ data,
DependencyObject^ sourceAdorner,
DependencyObject^ targetAdorner
)
new :
context:EditingContext *
sourceModel:ModelItem *
targetModel:ModelItem *
coordinateReference:Visual *
startPosition:Point *
currentPosition:Point *
allowedEffects:DragDropEffects *
data:IDataObject *
sourceAdorner:DependencyObject *
targetAdorner:DependencyObject -> DragGestureData
public function DragGestureData(
context : EditingContext,
sourceModel : ModelItem,
targetModel : ModelItem,
coordinateReference : Visual,
startPosition : Point,
currentPosition : Point,
allowedEffects : DragDropEffects,
data : IDataObject,
sourceAdorner : DependencyObject,
targetAdorner : DependencyObject
)
パラメーター
- context
型: Microsoft.Windows.Design.EditingContext
このジェスチャ データを所有している編集コンテキスト。
- sourceModel
型: Microsoft.Windows.Design.Model.ModelItem
ジェスチャが開始されたモデル。
- targetModel
型: Microsoft.Windows.Design.Model.ModelItem
現在のジェスチャの下にあるモデル。
- coordinateReference
型: System.Windows.Media.Visual
点の座標参照を表す入力要素。これは、DesignerView クラスのように移動されることのない要素である必要があります。
- startPosition
型: System.Windows.Point
ジェスチャが最初に開始されたときのマウスの位置。
- currentPosition
型: System.Windows.Point
マウスの現在位置。
- allowedEffects
型: System.Windows.DragDropEffects
有効なドラッグ アンド ドロップ効果。
- data
型: System.Windows.IDataObject
ドラッグされるデータ。
- sourceAdorner
型: System.Windows.DependencyObject
ジェスチャに関連するソースの装飾 (存在する場合)。このパラメーターは、nullnull 参照 (Visual Basic では Nothing) に設定できます。
- targetAdorner
型: System.Windows.DependencyObject
ジェスチャに関連するターゲットの装飾 (存在する場合)。このパラメーターは、nullnull 参照 (Visual Basic では Nothing) に設定できます。
.NET Framework セキュリティ
- 直前の呼び出し元に対する完全な信頼。 このメンバーは、部分的に信頼されているコードから使用することはできません。 詳細については、「部分信頼コードからのライブラリの使用」を参照してください。
参照
参照
Microsoft.Windows.Design.Interaction 名前空間