Compartment 类

DomainClass 隔离舱定义一个隔离舱形状的隔离舱。

继承层次结构

System.Object
  Microsoft.VisualStudio.Modeling.ModelElement
    Microsoft.VisualStudio.Modeling.DslDefinition.DomainElement
      Microsoft.VisualStudio.Modeling.DslDefinition.Compartment

命名空间:  Microsoft.VisualStudio.Modeling.DslDefinition
程序集:  Microsoft.VisualStudio.Modeling.Sdk.DslDefinition.12.0(在 Microsoft.VisualStudio.Modeling.Sdk.DslDefinition.12.0.dll 中)

语法

声明
<DisplayNameResourceAttribute("Microsoft.VisualStudio.Modeling.DslDefinition.Compartment.DisplayName",  _
    GetType(DslDefinitionModelDomainModel), "Microsoft.VisualStudio.Modeling.DslDefinition.GeneratedCode.DomainModelResx")> _
<DescriptionResourceAttribute("Microsoft.VisualStudio.Modeling.DslDefinition.Compartment.Description",  _
    GetType(DslDefinitionModelDomainModel), "Microsoft.VisualStudio.Modeling.DslDefinition.GeneratedCode.DomainModelResx")> _
<DomainModelOwnerAttribute(GetType(DslDefinitionModelDomainModel))> _
<CLSCompliantAttribute(True)> _
<DomainObjectIdAttribute("4d2a3f07-db96-4774-93d3-6b82dc9bc3cc")> _
Public NotInheritable Class Compartment _
    Inherits DomainElement
[DisplayNameResourceAttribute("Microsoft.VisualStudio.Modeling.DslDefinition.Compartment.DisplayName", 
    typeof(DslDefinitionModelDomainModel), "Microsoft.VisualStudio.Modeling.DslDefinition.GeneratedCode.DomainModelResx")]
[DescriptionResourceAttribute("Microsoft.VisualStudio.Modeling.DslDefinition.Compartment.Description", 
    typeof(DslDefinitionModelDomainModel), "Microsoft.VisualStudio.Modeling.DslDefinition.GeneratedCode.DomainModelResx")]
[DomainModelOwnerAttribute(typeof(DslDefinitionModelDomainModel))]
[CLSCompliantAttribute(true)]
[DomainObjectIdAttribute("4d2a3f07-db96-4774-93d3-6b82dc9bc3cc")]
public sealed class Compartment : DomainElement

Compartment 类型公开以下成员。

构造函数

  名称 说明
公共方法 Compartment(Partition, array<PropertyAssignment[]) 构造函数
公共方法 Compartment(Store, array<PropertyAssignment[]) 构造函数

页首

属性

  名称 说明
公共属性 CompartmentMaps 获取 CompartmentMaps 的列表。
公共属性 DefaultExpandCollapseState 获取或设置 DefaultExpandCollapseState 域属性的值。如果已扩展,则在创建时显示隔离舱。
公共属性 EntryFontSize 获取或设置 EntryFontSize 域属性的值。隔离舱列表中项的字号。
公共属性 EntryFontStyle 获取或设置 EntryFontStyle 域属性的值。隔离舱列表中项的字体样式。
公共属性 EntryTextColor 获取或设置 EntryTextColor 域属性的值。隔离舱列表中的项的文本颜色。
公共属性 FillColor 获取或设置 FillColor 域属性的值。隔离舱的填充颜色。
公共属性 Id 获取元素的 ID。 (继承自 ModelElement。)
公共属性 IsActive 获取 IsActive 标志并验证该元素是否处于活动状态。 (继承自 ModelElement。)
公共属性 IsDeleted 获取 IsDeleted 标志并检查该元素是否已从该模型中删除。 (继承自 ModelElement。)
公共属性 IsDeleting 获取 IsDeleting 标志并验证该元素是否正在从该模型中删除。 (继承自 ModelElement。)
公共属性 Name 获取或设置姓名域属性的值。隔离舱的名称。
公共属性 Notes 获取或设置注释域属性的值。非正式说明关联的元素。 (继承自 DomainElement。)
公共属性 Partition 获取或设置包含元素的 Partition。 (继承自 ModelElement。)
公共属性 Shape 获取或设置“形状”。定义隔离舱的隔离舱形状。
公共属性 Store 获取包含元素的 Store。 (继承自 ModelElement。)
公共属性 Title 获取或设置 Title 域属性的值。显示为隔离舱的标题的文本。
公共属性 TitleFillColor 获取或设置 TitleFillColor 域属性的值。填充隔离舱标题区域的颜色。
公共属性 TitleFontSize 获取或设置 TitleFontSize 域属性的值。隔离舱标题文本的字号。
公共属性 TitleFontStyle 获取或设置 TitleFontStyle 域属性的值。隔离舱标题中文本的字体样式。
公共属性 TitleTextColor 获取或设置 TitleTextColor 域属性的值。隔离舱的标题的文本颜色。

页首

方法

  名称 说明
公共方法 Copy() 创建模型中元素的副本。 (继承自 ModelElement。)
公共方法 Copy(IEnumerable<Guid>) 创建此元素的复制品、其子链接以及元素。 (继承自 ModelElement。)
公共方法 Delete() 从模型中删除元素。 (继承自 ModelElement。)
公共方法 Delete(array<Guid[]) 从模型中删除元素。 (继承自 ModelElement。)
公共方法 Equals 确定指定的对象是否等于当前对象。 (继承自 Object。)
公共方法 GetDomainClass 获取该元素派生度最高的域类。 (继承自 ModelElement。)
公共方法 GetHashCode 作为默认哈希函数。 (继承自 Object。)
公共方法 GetType 获取当前实例的 Type。 (继承自 Object。)
受保护的方法 OnCopy 当此元素已创建为另一个元素的副本时调用。 (继承自 ModelElement。)
受保护的方法 OnDeleted 当已从该模型中删除此元素时调用。 (继承自 ModelElement。)
受保护的方法 OnDeleting 当此元素将要被删除时调用。 (继承自 ModelElement。)
受保护的方法 OnResurrected 当此元素已添加回一个模型时调用。 (继承自 ModelElement。)
受保护的方法 OnRolePlayerPositionChanged 在角色的位置发生更改时调用。 (继承自 ModelElement。)
受保护的方法 OnRolePlayerPositionChanging 当角色扮演者位置将更改时调用。 (继承自 ModelElement。)
公共方法 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) 已重载。 从此 ModelElement 可用扩展中获取指定类型的 ExtensionElement。如果该元素没有此类扩展名,则将引发 InvalidOperationException。 (由 ModelElementExtensionMethods 定义。)
公共扩展方法 GetExtension(DomainClassInfo) 已重载。 (由 ModelElementExtensionMethods 定义。)
公共扩展方法 GetExtension<T>() 已重载。 从此 ModelElement 可用扩展中获取指定类型的 ExtensionElement。如果该元素没有此类扩展名,则将引发 InvalidOperationException。 (由 ModelElementExtensionMethods 定义。)
公共扩展方法 GetLocks 获取此元素的锁定标识。这将包括可在分区包含元素中启用的任何锁。 (由 ImmutabilityExtensionMethods 定义。)
公共扩展方法 IsExtendedBy(Guid) 已重载。 询问该 ModelElement 当前是否由特定类型的 ExtensionElement 扩展。 (由 ModelElementExtensionMethods 定义。)
公共扩展方法 IsExtendedBy(Type) 已重载。 询问该 ModelElement 当前是否由特定类型的 ExtensionElement 扩展。 (由 ModelElementExtensionMethods 定义。)
公共扩展方法 IsExtendedBy(DomainClassInfo) 已重载。 询问该 ModelElement 当前是否由特定类型的 ExtensionElement 扩展。 (由 ModelElementExtensionMethods 定义。)
公共扩展方法 IsLocked 测试此元素是否存在一组指定的锁 (由 ImmutabilityExtensionMethods 定义。)
公共扩展方法 RemoveExtension(Type) 已重载。 移除属于特殊类型的该 ModelElement 的扩展名。 (由 ModelElementExtensionMethods 定义。)
公共扩展方法 RemoveExtension(Guid) 已重载。 移除属于特殊类型的指定 ModelElement 的扩展名。 (由 ModelElementExtensionMethods 定义。)
公共扩展方法 RemoveExtension(DomainClassInfo) 已重载。 移除属于特殊类型的指定 ModelElement 的扩展名。 (由 ModelElementExtensionMethods 定义。)
公共扩展方法 RemoveExtension(ExtensionElement) 已重载。 从该 ModelElement 的扩展移除指定的 ExtensionElement。 (由 ModelElementExtensionMethods 定义。)
公共扩展方法 SetLocks 设置此元素的锁定标识 (由 ImmutabilityExtensionMethods 定义。)
公共扩展方法 TryGetExtension(Guid) 已重载。 (由 ModelElementExtensionMethods 定义。)
公共扩展方法 TryGetExtension(Type) 已重载。 (由 ModelElementExtensionMethods 定义。)
公共扩展方法 TryGetExtension(DomainClassInfo) 已重载。 (由 ModelElementExtensionMethods 定义。)
公共扩展方法 TryGetExtension<T>() 已重载。 从此 ModelElement 可用扩展中获取指定类型的 ExtensionElement。如果钙元素没有此扩展,则结果为 NULL 。 (由 ModelElementExtensionMethods 定义。)

页首

字段

  名称 说明
公共字段静态成员 DefaultExpandCollapseStateDomainPropertyId DefaultExpandCollapseState 域属性 ID。
公共字段静态成员 DomainClassId 隔离舱域类ID。
公共字段静态成员 EntryFontSizeDomainPropertyId EntryFontSize 域属性 ID。
公共字段静态成员 EntryFontStyleDomainPropertyId EntryFontStyle 域属性 ID。
公共字段静态成员 EntryTextColorDomainPropertyId EntryTextColor 域属性 ID。
公共字段静态成员 FillColorDomainPropertyId FillColor 域属性 ID。
公共字段静态成员 NameDomainPropertyId 名称域属性 ID。
公共字段静态成员 TitleDomainPropertyId 标题域属性 ID。
公共字段静态成员 TitleFillColorDomainPropertyId TitleFillColor 域属性 ID。
公共字段静态成员 TitleFontSizeDomainPropertyId TitleFontSize 域属性 ID。
公共字段静态成员 TitleFontStyleDomainPropertyId TitleFontStyle 域属性 ID。
公共字段静态成员 TitleTextColorDomainPropertyId TitleTextColor 域属性 ID。

页首

显式接口实现  

  名称 说明
显式接口实现私有方法 IMergeElements.CanMerge 如果该元素可已与原型的内容合并则返回 true。 (继承自 ModelElement。)
显式接口实现私有方法 IMergeElements.ChooseMergeTarget(ElementGroup) (继承自 ModelElement。)
显式接口实现私有方法 IMergeElements.ChooseMergeTarget(ElementGroupPrototype) (继承自 ModelElement。)
显式接口实现私有方法 IMergeElements.MergeConfigure (继承自 ModelElement。)
显式接口实现私有方法 IMergeElements.MergeDisconnect (继承自 ModelElement。)
显式接口实现私有方法 IMergeElements.MergeRelate (继承自 ModelElement。)

页首

线程安全

此类型的任何公共 static(在 Visual Basic 中为 Shared) 成员都是线程安全的。但不保证所有实例成员都是线程安全的。

请参阅

参考

Microsoft.VisualStudio.Modeling.DslDefinition 命名空间