DesignSurfaceElementOperations 類別
藉由加入 GhostShapeCollections 支援擴充 IMS ElementOperations 類別。
繼承階層架構
System.Object
Microsoft.VisualStudio.Modeling.ElementOperations
Microsoft.VisualStudio.Modeling.Diagrams.DesignSurfaceElementOperations
命名空間: Microsoft.VisualStudio.Modeling.Diagrams
組件: Microsoft.VisualStudio.Modeling.Sdk.Diagrams.11.0 (在 Microsoft.VisualStudio.Modeling.Sdk.Diagrams.11.0.dll 中)
語法
'宣告
Public Class DesignSurfaceElementOperations _
Inherits ElementOperations
public class DesignSurfaceElementOperations : ElementOperations
DesignSurfaceElementOperations 型別會公開下列成員。
建構函式
名稱 | 說明 | |
---|---|---|
DesignSurfaceElementOperations(IServiceProvider, Diagram) | 初始化模型磁碟分割會被假設為的模型項目正在檢視的圖表的特定圖表的 DesignSurfaceElementOperations 類別的新執行個體。 | |
DesignSurfaceElementOperations(IServiceProvider, Partition) | 初始化 DesignSurfaceElementOperations 類別的新執行個體。請注意因為未不指定任何圖表,則將不再受到支援多個圖表,任何合併的 PELs 最後會在預設的圖表 (第一個建立的圖表檢視模型) | |
DesignSurfaceElementOperations(IServiceProvider, Partition, Diagram) | 初始化 DesignSurfaceElementOperations 類別的新執行個體。 |
回頁首
屬性
名稱 | 說明 | |
---|---|---|
Diagram | ||
Partition | (繼承自 ElementOperations)。 | |
ServiceProvider | (繼承自 ElementOperations)。 | |
Store | (繼承自 ElementOperations)。 |
回頁首
方法
名稱 | 說明 | |
---|---|---|
AddCustomFormat | 加入指定的 IDataObject 使用指定的 ModelElements 集合中的一或多個自訂的資料格式。 (繼承自 ElementOperations)。 | |
AddElementGroupFormat(IDataObject, ICollection<ModelElement>, ClosureType) | 加入指定的 IDataObject 使用指定的 ModelElements 集合中的 ElementGroupPrototype 格式。這個方法會呼叫下列 3 可覆寫的方法 (依順序)。CreateElementGroup b。MarkRootElements c。CreateElementGroupPrototype It 再 stashes 建立的 ElementGroupPrototype 中的資料參數。 (繼承自 ElementOperations)。 | |
AddElementGroupFormat(IDataObject, ICollection<ModelElement>, ClosureType, Boolean) | 加入指定的 IDataObject 使用指定的 ModelElements 集合中的 ElementGroupPrototype 格式。可呼叫從衍生的類別,以強制要求載入的項目連結,以建立模型項目的集合。 (繼承自 ElementOperations)。 | |
AddGhostShapesContext | 新增在指定的 IDataObject ElementGroupPrototype GhostShapeCollection。 | |
CanAddCustomFormat | 傳回值,指出 ModelElement 集合可用來建立自訂的格式。 (繼承自 ElementOperations)。 | |
CanAddElementGroupFormat | 傳回值,指出 ModelElement 集合可用來建立以 ElementGroupPrototype 格式。 (繼承自 ElementOperations)。 | |
CanCopy(ICollection<ModelElement>) | 取得值,指出是否可以將 ModelElements 的集合複製到 IDataObject。 (繼承自 ElementOperations)。 | |
CanCopy(ICollection<ModelElement>, ClosureType) | 取得值,指出是否可以將 ModelElements 的集合複製到 IDataObject。呼叫以進行作業的 CanCopyCore。 (繼承自 ElementOperations)。 | |
CanCopyCore | 取得值,指出是否可以將 ModelElements 的集合複製到 IDataObject。 (繼承自 ElementOperations)。 | |
CanDelete(ModelElement, array<Guid[]) | 查詢是否可以刪除指定的項目,納入考量任何 IMS 鎖定適用於任何項目中刪除關閉的項目。 (繼承自 ElementOperations)。 | |
CanDelete(IEnumerable<ModelElement>, array<Guid[]) | 查詢是否可以刪除指定的一組項目,鎖定適用於任何在完整的項目納入考量任何 IMS 刪除結案的項目。 (繼承自 ElementOperations)。 | |
CanMerge | 傳回值,指出是否可以合併來自 IDataObject ElementGroupPrototype (也就是貼上或卸除) 插入 ModelElement 的目標。 (繼承自 ElementOperations)。 | |
CanMergeElementGroupPrototype(ModelElement, ElementGroupPrototype) | (覆寫 ElementOperations.CanMergeElementGroupPrototype(ModelElement, ElementGroupPrototype)。) | |
CanMergeElementGroupPrototype(ModelElement, ProtoElementBase, ElementGroupPrototype) | (覆寫 ElementOperations.CanMergeElementGroupPrototype(ModelElement, ProtoElementBase, ElementGroupPrototype)。) | |
CanMove | 取得值,指出是否可移動的 ModelElements 集合。 (繼承自 ElementOperations)。 | |
ChooseMergeTarget(ModelElement, ElementGroup) | 指定建議的 targetElement 合併,取得目標項目。這讓 ElementOperations 有機會變更預期的目標,進行合併。根據預設,這個方法會提供目標項目有機會變更預期的目標。 (覆寫 ElementOperations.ChooseMergeTarget(ModelElement, ElementGroup)。) | |
ChooseMergeTarget(ModelElement, ElementGroupPrototype) | 指定建議的 targetElement 合併,取得目標項目。這讓 ElementOperations 有機會變更預期的目標,進行合併。根據預設,這個方法會提供目標項目有機會變更預期的目標。 (覆寫 ElementOperations.ChooseMergeTarget(ModelElement, ElementGroupPrototype)。) | |
Copy(IDataObject, ICollection<ModelElement>) | 將 ModelElements 的集合複製到指定的 IDataObject 一或多個資料格式。 (繼承自 ElementOperations)。 | |
Copy(IDataObject, ICollection<ModelElement>, ClosureType) | 將 ModelElements 的集合複製到指定的 IDataObject 一或多個資料格式。 (繼承自 ElementOperations)。 | |
Copy(IDataObject, ICollection<ModelElement>, PointF) | 將 ModelElements 的集合複製到指定的 IDataObject 一或多個資料格式。 (繼承自 ElementOperations)。 | |
Copy(IDataObject, ICollection<ModelElement>, ClosureType, PointF) | 將 ModelElements 的集合複製到指定的 IDataObject 一或多個資料格式。 (繼承自 ElementOperations)。 | |
CreateElementGroup | 會建立 ClosureElementGroup (繼承自 ElementOperations)。 | |
CreateElementGroupPrototype | (繼承自 ElementOperations)。 | |
Equals | 判斷指定的物件是否等於目前物件。 (繼承自 Object)。 | |
Finalize | 允許物件在記憶體回收進行回收之前,嘗試釋放資源並執行其他清除作業。 (繼承自 Object)。 | |
GetAssociatedModelElement | 取得與指定的 protoPresentationElement PresentationViewsSubject 關聯性透過相關聯的 ProtoElement。 | |
GetHashCode | 做為特定型別的雜湊函式。 (繼承自 Object)。 | |
GetTargetDiagramId | 取得圖表祕透過 ElementGroupPrototype 合併/CanMerge 源自於這個類別的執行個體的 Id。 | |
GetType | 取得目前執行個體的 Type。 (繼承自 Object)。 | |
MarkRootElements | ElementGroup 參數中的標記 RootElements。 (繼承自 ElementOperations)。 | |
MemberwiseClone | 建立目前 Object 的淺層複本 (Shallow Copy)。 (繼承自 Object)。 | |
Merge(ModelElement, IDataObject) | 合併 (也就是貼上或垂直距離) 從 IDataObject ElementGroupPrototype,ModelElement 的目標。 (繼承自 ElementOperations)。 | |
Merge(PresentationElement, IDataObject, PointF) | 合併 (也就是貼上或垂直距離) 從 IDataObject ElementGroupPrototype,ModelElement 的目標。 | |
MergeElementGroup | 合併來源 ElementGroup 與 ModelElement 指定的目標。 (繼承自 ElementOperations)。 | |
MergeElementGroupPrototype(ModelElement, ElementGroupPrototype) | (覆寫 ElementOperations.MergeElementGroupPrototype(ModelElement, ElementGroupPrototype)。) | |
MergeElementGroupPrototype(ModelElement, ElementGroupPrototype, PointF) | 合併來源 ElementGroupPrototype 與 ModelElement 指定的目標。 | |
OnElementsReconstituted | ElementGroupPrototype 中的項目已還原之後,但在之前在連線到其他的模型,請立即呼叫 MergeElementGroupPrototype。 (繼承自 ElementOperations)。 | |
OnMerged | 由 MergeElementGroupPrototype 前,立即呼叫本機交易被認可。規則在本機的交易排入佇列,以及交易認可時引發。本機交易包裝 reconstituting,並連接項目。這個方法會引發每一個根 protoElement 不會有相對應的 protoElement MEL 的 PEL 自訂模型事件 ShapeElementViewFixupEvent。這個事件規則處理如果還沒有 PEL 連接至圖表上。 (覆寫 ElementOperations.OnMerged(MergeElementGroupEventArgs)。) | |
OnMerging | 目標項目已選擇立即之後,但在 ElementGroupPrototype 中的項目已重新建置之前呼叫 MergeElementGroupPrototype。 (繼承自 ElementOperations)。 | |
PropagateElementGroupContextToTransaction | (覆寫 ElementOperations.PropagateElementGroupContextToTransaction(ModelElement, ElementGroup, Transaction)。) | |
ToString | 傳回表示目前物件的字串。 (繼承自 Object)。 |
回頁首
事件
名稱 | 說明 | |
---|---|---|
ElementsReconstituted | ElementGroupPrototype 中的項目已還原之後,但在之前在連線到其他的模型,請立即呼叫 MergeElementGroupPrototype。 (繼承自 ElementOperations)。 | |
Merged | 由 MergeElementGroupPrototype 前,立即呼叫本機交易被認可。規則在本機的交易排入佇列,以及交易認可時引發。本機交易包裝 reconstituting,並連接項目。 (繼承自 ElementOperations)。 | |
Merging | 目標項目已選擇立即之後,但在 ElementGroupPrototype 中的項目已重新建置之前呼叫 MergeElementGroupPrototype。 (繼承自 ElementOperations)。 |
回頁首
欄位
名稱 | 說明 | |
---|---|---|
TargetDiagramIdContextKey | 在合併的 ElementGroupPrototypes 的 TargetConext 圖表的 Id 的元素索引鍵 |
回頁首
備註
衍生自這個類別建立自訂的資料格式進行複製和貼上作業。
執行緒安全
這個型別的任何 Public static (在 Visual Basic 中為 Shared) 成員都具備執行緒安全。不保證任何執行個體成員是安全執行緒。