更新 : 2007 年 11 月
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 _
)
'使用
Dim context As EditingContext
Dim sourceModel As ModelItem
Dim targetModel As ModelItem
Dim coordinateReference As Visual
Dim startPosition As Point
Dim currentPosition As Point
Dim allowedEffects As DragDropEffects
Dim data As IDataObject
Dim instance As New DragGestureData(context, _
sourceModel, targetModel, coordinateReference, _
startPosition, currentPosition, _
allowedEffects, data)
public DragGestureData(
EditingContext context,
ModelItem sourceModel,
ModelItem targetModel,
Visual coordinateReference,
Point startPosition,
Point currentPosition,
DragDropEffects allowedEffects,
IDataObject data
)
public:
DragGestureData(
EditingContext^ context,
ModelItem^ sourceModel,
ModelItem^ targetModel,
Visual^ coordinateReference,
Point startPosition,
Point currentPosition,
DragDropEffects allowedEffects,
IDataObject^ data
)
public function DragGestureData(
context : EditingContext,
sourceModel : ModelItem,
targetModel : ModelItem,
coordinateReference : Visual,
startPosition : Point,
currentPosition : Point,
allowedEffects : DragDropEffects,
data : IDataObject
)
パラメータ
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ドラッグされるデータ。
例外
| 例外 | 条件 |
|---|---|
| ArgumentNullException | context、sourceModel、targetModel、または data が nullnull 参照 (Visual Basic では Nothing) です。 |
アクセス許可
- 直前の呼び出し元に対する完全な信頼。このメンバは、部分的に信頼されているコードから使用することはできません。詳細については、「部分信頼コードからのライブラリの使用」を参照してください。
参照
参照
Microsoft.Windows.Design.Interaction 名前空間