共用方式為


ShapeHasDecorators 類別

DomainRelationship ShapeHasDecorators

繼承階層架構

System.Object
  Microsoft.VisualStudio.Modeling.ModelElement
    Microsoft.VisualStudio.Modeling.ElementLink
      Microsoft.VisualStudio.Modeling.DslDefinition.DiagramElementHasDecorators
        Microsoft.VisualStudio.Modeling.DslDefinition.ShapeHasDecorators

命名空間:  Microsoft.VisualStudio.Modeling.DslDefinition
組件:  Microsoft.VisualStudio.Modeling.Sdk.DslDefinition.11.0 (在 Microsoft.VisualStudio.Modeling.Sdk.DslDefinition.11.0.dll 中)

語法

'宣告
<DomainRelationshipAttribute(IsEmbedding := True)> _
<DomainObjectIdAttribute("7034c873-5c15-44f0-b1b3-8736c0f9e101")> _
<DisplayNameResourceAttribute("Microsoft.VisualStudio.Modeling.DslDefinition.ShapeHasDecorators.DisplayName",  _
    GetType(DslDefinitionModelDomainModel), "Microsoft.VisualStudio.Modeling.DslDefinition.GeneratedCode.DomainModelResx")> _
<DescriptionResourceAttribute("Microsoft.VisualStudio.Modeling.DslDefinition.ShapeHasDecorators.Description",  _
    GetType(DslDefinitionModelDomainModel), "Microsoft.VisualStudio.Modeling.DslDefinition.GeneratedCode.DomainModelResx")> _
<DomainModelOwnerAttribute(GetType(DslDefinitionModelDomainModel))> _
<CLSCompliantAttribute(True)> _
Public NotInheritable Class ShapeHasDecorators _
    Inherits DiagramElementHasDecorators
[DomainRelationshipAttribute(IsEmbedding = true)]
[DomainObjectIdAttribute("7034c873-5c15-44f0-b1b3-8736c0f9e101")]
[DisplayNameResourceAttribute("Microsoft.VisualStudio.Modeling.DslDefinition.ShapeHasDecorators.DisplayName", 
    typeof(DslDefinitionModelDomainModel), "Microsoft.VisualStudio.Modeling.DslDefinition.GeneratedCode.DomainModelResx")]
[DescriptionResourceAttribute("Microsoft.VisualStudio.Modeling.DslDefinition.ShapeHasDecorators.Description", 
    typeof(DslDefinitionModelDomainModel), "Microsoft.VisualStudio.Modeling.DslDefinition.GeneratedCode.DomainModelResx")]
[DomainModelOwnerAttribute(typeof(DslDefinitionModelDomainModel))]
[CLSCompliantAttribute(true)]
public sealed class ShapeHasDecorators : DiagramElementHasDecorators

ShapeHasDecorators 型別會公開下列成員。

建構函式

  名稱 說明
公用方法 ShapeHasDecorators(Partition, array<RoleAssignment[]) 建構函式
公用方法 ShapeHasDecorators(Shape, Decorator) 建構函式會建立 ShapeHasDecorators 連結以相同的磁碟分割,以指定的圖案
公用方法 ShapeHasDecorators(Store, array<RoleAssignment[]) 建構函式
公用方法 ShapeHasDecorators(Partition, array<RoleAssignment[], array<PropertyAssignment[]) 建構函式
公用方法 ShapeHasDecorators(Store, array<RoleAssignment[], array<PropertyAssignment[]) 建構函式

回頁首

屬性

  名稱 說明
公用屬性 Decorator DomainRole 裝飾圖形定義裝飾。 (覆寫 DiagramElementHasDecorators.Decorator。)
公用屬性 DiagramElement 取得圖案的網域角色的項目。圖表項目的裝飾。 (覆寫 DiagramElementHasDecorators.DiagramElement。)
公用屬性 HorizontalOffset 取得或設定 HorizontalOffset 網域屬性的值。水平位移以英吋,相對於裝飾的預設位置。
公用屬性 Id 取得項目的 ID。 (繼承自 ModelElement)。
公用屬性 IsActive 取得 IsActive 旗標,並確認,查看是否為作用中的項目。 (繼承自 ModelElement)。
公用屬性 IsDeleted 取得 IsDeleted 旗標和檢查,以查看是否已從模型刪除的項目。 (繼承自 ModelElement)。
公用屬性 IsDeleting 取得 IsDeleting 旗標,並驗證是否將項目從模型來刪除。 (繼承自 ModelElement)。
公用屬性 IsMoveable 取得或設定 IsMoveable 網域屬性的值。如果為 true,使用者可以加以移動裝飾。
公用屬性 LinkedElements 取得這個項目連結連接的項目唯讀集合。 (繼承自 ElementLink)。
公用屬性 Partition 取得或設定Partition所包含的項目。 (繼承自 ModelElement)。
公用屬性 Position 取得或設定位置網域屬性的值。裝飾的預設位置。
公用屬性 Shape DomainRole 圖形裝飾圖形所定義。
公用屬性 Store 取得Store所包含的項目。 (繼承自 ModelElement)。
公用屬性 VerticalOffset 取得或設定 VerticalOffset 網域屬性的值。垂直位移以英吋,相對於裝飾的預設位置。

回頁首

方法

  名稱 說明
公用方法 Copy() 建立模型中的項目的複本。 (繼承自 ModelElement)。
公用方法 Copy(IEnumerable<Guid>) 連結和項目,請建立一份項目,且它的子項。 (繼承自 ModelElement)。
公用方法 Delete() 從模型中刪除的項目。 (繼承自 ModelElement)。
公用方法 Delete(array<Guid[]) 從模型中刪除的項目。 (繼承自 ModelElement)。
公用方法 Equals 判斷指定的物件是否等於目前物件。 (繼承自 Object)。
公用方法靜態成員 GetDecorators 取得裝飾的清單。
公用方法 GetDomainClass 取得這個項目中最具衍生性的網域類別。 (繼承自 ModelElement)。
公用方法 GetDomainRelationship 取得這個連結會具現化的網域關聯性。 (繼承自 ElementLink)。
公用方法 GetHashCode 做為特定型別的雜湊函式。 (繼承自 Object)。
公用方法靜態成員 GetLink 取得一個 ShapeHasDecorators 之間的連結指定的 Shapeand 裝飾。
公用方法靜態成員 GetLinks 取得 ShapeHasDecorators 間的連結指定的圖案和裝飾。
公用方法靜態成員 GetLinksToDecorators 取得圖案的 ShapeHasDecorators 連結清單。
公用方法靜態成員 GetLinkToShape 取得裝飾的 [ShapeHasDecorators] 連結。
公用方法靜態成員 GetShape 取得圖案。
公用方法 GetType 取得目前執行個體的 Type。 (繼承自 Object)。
公用方法 MoveBefore 變更連接到的項目中,然後再移動另一個之前,此連結的連結順序。 (繼承自 ElementLink)。
公用方法 MoveToIndex 此連結移到清單中的指定的索引位置。 (繼承自 ElementLink)。
受保護的方法 OnCopy 已為另一個項目的複本建立這個項目時,會呼叫它。 (繼承自 ModelElement)。
受保護的方法 OnDeleted 從模型中刪除這個項目時,會呼叫它。 (繼承自 ModelElement)。
受保護的方法 OnDeleting 刪除這個項目時呼叫。 (繼承自 ModelElement)。
受保護的方法 OnResurrected 當這個項目加入至模型時,會呼叫它。 (繼承自 ModelElement)。
受保護的方法 OnRolePlayerPositionChanged 角色的位置已變更時呼叫。 (繼承自 ModelElement)。
受保護的方法 OnRolePlayerPositionChanging 當角色玩家位置變更時呼叫。 (繼承自 ModelElement)。
公用方法靜態成員 SetShape 設定圖案。
公用方法 ToString 傳回表示目前物件的字串。 (繼承自 Object)。

回頁首

擴充方法

  名稱 說明
公用擴充方法 AddExtension(Guid) 多載。 延伸此 ModelElement 已識別的網域型別的新執行個體化的副檔名。如果項目已經有該類型的副檔名,將會擲回的 InvalidOperationException。 (以 ModelElementExtensionMethods 定義。)
公用擴充方法 AddExtension(Type) 多載。 延伸此 ModelElement,以指定之型別的新執行個體化的副檔名。如果項目已經有該類型的副檔名,將會擲回的 InvalidOperationException。 (以 ModelElementExtensionMethods 定義。)
公用擴充方法 AddExtension(DomainClassInfo) 多載。 延伸此 ModelElement 指定的網域型別的新執行個體化的副檔名。如果項目已經有該類型的副檔名,將會擲回的 InvalidOperationException。 (以 ModelElementExtensionMethods 定義。)
公用擴充方法 AddExtension(ExtensionElement) 多載。 擴充帶有特定延伸此 ModelElement。如果項目已經有相同類型的副檔名,將會擲回的 InvalidOperationException。 (以 ModelElementExtensionMethods 定義。)
公用擴充方法 AddExtension<T>() 多載。 延伸此 ModelElement 特定型別的新執行個體化的副檔名。如果項目已經有相同類型的副檔名,將會擲回的 InvalidOperationException。 (以 ModelElementExtensionMethods 定義。)
公用擴充方法 CanDelete 從模型中刪除的項目。 (以 ImmutabilityExtensionMethods 定義。)
公用擴充方法 GetAllExtensions 傳回可列舉,以便在執行、 強效且具內嵌在這個 ModelElement 的第一個周遊整個樹狀結構的延伸項目。 (以 ModelElementExtensionMethods 定義。)
公用擴充方法 GetBaseElement 傳回用來加入指定的 ModelElement 虛擬 MEL 的根目錄。 (以 ModelElementExtensionMethods 定義。)
公用擴充方法 GetExtension(Guid) 多載。 (以 ModelElementExtensionMethods 定義。)
公用擴充方法 GetExtension(Type) 多載。 取得指定之型別的 ExtensionElement,從可用的延伸此 ModelElement。如果沒有這類的延伸項目將會產生 InvalidOperationException。 (以 ModelElementExtensionMethods 定義。)
公用擴充方法 GetExtension(DomainClassInfo) 多載。 (以 ModelElementExtensionMethods 定義。)
公用擴充方法 GetExtension<T>() 多載。 取得指定之型別的 ExtensionElement,從可用的延伸此 ModelElement。如果沒有這類的延伸項目將會產生 InvalidOperationException。 (以 ModelElementExtensionMethods 定義。)
公用擴充方法 GetLocks 取得這個項目鎖定旗標。這會包括任何包含項目的的磁碟分割上啟用的鎖定。 (以 ImmutabilityExtensionMethods 定義。)
公用擴充方法 IsExtendedBy(Guid) 多載。 查詢是否依特定類型的 ExtensionElement 目前延伸此 ModelElement。 (以 ModelElementExtensionMethods 定義。)
公用擴充方法 IsExtendedBy(Type) 多載。 查詢是否依特定類型的 ExtensionElement 目前延伸此 ModelElement。 (以 ModelElementExtensionMethods 定義。)
公用擴充方法 IsExtendedBy(DomainClassInfo) 多載。 查詢是否依特定類型的 ExtensionElement 目前延伸此 ModelElement。 (以 ModelElementExtensionMethods 定義。)
公用擴充方法 IsLocked 測試是否這個項目會有任何一組指定的鎖定 (以 ImmutabilityExtensionMethods 定義。)
公用擴充方法 RemoveExtension(Type) 多載。 移除其他的特定型別的這個 ModelElement 的副檔名。 (以 ModelElementExtensionMethods 定義。)
公用擴充方法 RemoveExtension(Guid) 多載。 移除屬於特定型別指定任何的 ModelElement 副檔名。 (以 ModelElementExtensionMethods 定義。)
公用擴充方法 RemoveExtension(DomainClassInfo) 多載。 移除屬於特定型別指定任何的 ModelElement 副檔名。 (以 ModelElementExtensionMethods 定義。)
公用擴充方法 RemoveExtension(ExtensionElement) 多載。 指定的 ExtensionElement 移除這個 ModelElement 的副檔名。 (以 ModelElementExtensionMethods 定義。)
公用擴充方法 SetLocks 設定這個項目的鎖定旗標 (以 ImmutabilityExtensionMethods 定義。)
公用擴充方法 TryGetExtension(Guid) 多載。 (以 ModelElementExtensionMethods 定義。)
公用擴充方法 TryGetExtension(Type) 多載。 (以 ModelElementExtensionMethods 定義。)
公用擴充方法 TryGetExtension(DomainClassInfo) 多載。 (以 ModelElementExtensionMethods 定義。)
公用擴充方法 TryGetExtension<T>() 多載。 取得指定之型別的 ExtensionElement,從可用的延伸此 ModelElement。如果這個項目有沒有這類副檔名結果會是 null。 (以 ModelElementExtensionMethods 定義。)

回頁首

欄位

  名稱 說明
公用欄位靜態成員 DecoratorDomainRoleId 裝飾的網域角色識別碼。
公用欄位靜態成員 DomainClassId ShapeHasDecorators 網域類別識別碼。
公用欄位靜態成員 HorizontalOffsetDomainPropertyId HorizontalOffset 的網域內容識別碼。
公用欄位靜態成員 IsMoveableDomainPropertyId IsMoveable 的網域內容識別碼。
公用欄位靜態成員 PositionDomainPropertyId 位置的網域內容識別碼。
公用欄位靜態成員 ShapeDomainRoleId 圖形網域角色識別碼。
公用欄位靜態成員 VerticalOffsetDomainPropertyId VerticalOffset 的網域內容識別碼。

回頁首

明確介面實作

  名稱 說明
明確介面實作私用方法 IMergeElements.CanMerge 如果這個項目可以合併具有原型的內容,則傳回 true。 (繼承自 ModelElement)。
明確介面實作私用方法 IMergeElements.ChooseMergeTarget(ElementGroup) (繼承自 ModelElement)。
明確介面實作私用方法 IMergeElements.ChooseMergeTarget(ElementGroupPrototype) (繼承自 ModelElement)。
明確介面實作私用方法 IMergeElements.MergeConfigure (繼承自 ModelElement)。
明確介面實作私用方法 IMergeElements.MergeDisconnect (繼承自 ModelElement)。
明確介面實作私用方法 IMergeElements.MergeRelate (繼承自 ModelElement)。

回頁首

執行緒安全

這個型別的任何 Public static (在 Visual Basic 中為 Shared) 成員都具備執行緒安全。不保證任何執行個體成員是安全執行緒。

請參閱

參考

Microsoft.VisualStudio.Modeling.DslDefinition 命名空間