DragSourceContext 類別
提供在來源建立 ElementGroupPrototype 時一開始設定的拖曳來源資訊。 它為拖曳回饋和合併 (亦即,置放/貼上) 處理序使用。
繼承階層架構
System.Object
Microsoft.VisualStudio.Modeling.Diagrams.DragSourceContext
命名空間: Microsoft.VisualStudio.Modeling.Diagrams
組件: Microsoft.VisualStudio.Modeling.Sdk.Diagrams.12.0 (在 Microsoft.VisualStudio.Modeling.Sdk.Diagrams.12.0.dll 中)
語法
'宣告
<SerializableAttribute> _
Public Class DragSourceContext
[SerializableAttribute]
public class DragSourceContext
DragSourceContext 類型會公開下列成員。
方法
名稱 | 描述 | |
---|---|---|
![]() |
Equals | 判斷指定的物件是否等於目前物件。 (繼承自 Object)。 |
![]() |
Finalize | 允許物件在記憶體回收進行回收之前,嘗試釋放資源並執行其他清除作業。 (繼承自 Object)。 |
![]() ![]() |
GetDiagramId(ElementGroup) | 取得來源圖表 ID。如果未指定圖表識別碼,或是沒有拖曳來源內容可供使用,則可能會傳回 Guid.Empty。 |
![]() ![]() |
GetDiagramId(ElementGroupPrototype) | 取得來源圖表 ID。如果未指定圖表識別碼,或是沒有拖曳來源內容可供使用,則可能會傳回 Guid.Empty。 |
![]() ![]() |
GetGhostShapes(ElementGroup) | 取得來源虛構圖案集合。 |
![]() ![]() |
GetGhostShapes(ElementGroupPrototype) | 取得來源虛構圖案集合。 |
![]() |
GetHashCode | 做為預設雜湊函式。 (繼承自 Object)。 |
![]() ![]() |
GetInitialBoundingBox(ElementGroup) | 傳回包含所有圖形的周框方塊 (在絕對全局座標中)。 |
![]() ![]() |
GetInitialBoundingBox(ElementGroupPrototype) | 傳回包含所有圖形的周框方塊 (在絕對全局座標中)。 |
![]() ![]() |
GetInitialDragLocation(ElementGroup) | 傳回開始拖曳時的滑鼠位置 (以絕對全局座標表示)。 |
![]() ![]() |
GetInitialDragLocation(ElementGroupPrototype) | 傳回開始拖曳時的滑鼠位置 (以絕對全局座標表示)。 |
![]() ![]() |
GetInitialPrimaryShapeBounds(ElementGroup) | 傳回 ElementGroupPrototype 中主要圖形的界限 (在絕對全局座標中)。 |
![]() ![]() |
GetInitialPrimaryShapeBounds(ElementGroupPrototype) | 傳回 ElementGroupPrototype 中主要圖形的界限 (在絕對全局座標中)。 |
![]() ![]() |
GetInitialPrimaryShapeId(ElementGroup) | 傳回在 ElementGroupPototype 中的主要圖形的 Guid。 |
![]() ![]() |
GetInitialPrimaryShapeId(ElementGroupPrototype) | 傳回在 ElementGroupPototype 中的主要圖形的 Guid。 |
![]() ![]() |
GetProcessId(ElementGroup) | 取得來源處理序 ID。如果未指定處理序識別碼,或是沒有拖曳來源內容可供使用,則可能會傳回 0。 |
![]() ![]() |
GetProcessId(ElementGroupPrototype) | 取得來源處理序 ID。如果未指定處理序識別碼,或是沒有拖曳來源內容可供使用,則可能會傳回 0。 |
![]() ![]() |
GetStoreId(ElementGroup) | 取得來源存放區 ID。如果未指定儲存區識別碼,或是沒有拖曳來源內容可供使用,則可能會傳回 Guid.Empty。 |
![]() ![]() |
GetStoreId(ElementGroupPrototype) | 取得來源存放區 ID。如果未指定儲存區識別碼,或是沒有拖曳來源內容可供使用,則可能會傳回 Guid.Empty。 |
![]() |
GetType | 取得目前執行個體的 Type。 (繼承自 Object)。 |
![]() |
MemberwiseClone | 建立目前 Object 的淺層複本 (Shallow Copy)。 (繼承自 Object)。 |
![]() ![]() |
Set | 將拖曳來源資訊加入至 ElementGroupPrototype 的來源內容。 |
![]() |
ToString | 傳回表示目前物件的字串。 (繼承自 Object)。 |
回頁首
執行緒安全
這個類型的任何 Public static (在 Visual Basic 中為 Shared) 成員都是安全執行緒。不保證任何執行個體成員是安全執行緒。