GraphSchema 类

继承层次结构

System.Object
  Microsoft.VisualStudio.GraphModel.GraphObject
    Microsoft.VisualStudio.GraphModel.Graph
      Microsoft.VisualStudio.GraphModel.GraphSchema

命名空间:  Microsoft.VisualStudio.GraphModel
程序集:  Microsoft.VisualStudio.GraphModel(在 Microsoft.VisualStudio.GraphModel.dll 中)

语法

声明
<SerializableAttribute> _
Public Class GraphSchema _
    Inherits Graph
[SerializableAttribute]
public class GraphSchema : Graph
[SerializableAttribute]
public ref class GraphSchema : public Graph
[<SerializableAttribute>]
type GraphSchema =  
    class
        inherit Graph
    end
public class GraphSchema extends Graph

GraphSchema 类型公开以下成员。

构造函数

  名称 说明
公共方法 GraphSchema(Boolean, String)
受保护的方法 GraphSchema(SerializationInfo, StreamingContext)

页首

属性

  名称 说明
公共属性 Categories
公共属性 CategoryCount 返回对象中的类别数。 (继承自 GraphObject。)
公共属性 DescriptiveCategoryCaption (继承自 GraphObject。)
公共属性 IsCollapsed 获取该节点是否处于折叠状态。 (继承自 GraphObject。)
公共属性 IsDocumentSchema
公共属性 IsExpanded 获取该节点是否处于折叠状态。 (继承自 GraphObject。)
公共属性 IsGroup 获取该对象是否为 IsGroup。它会查找 GraphProperties.StyleForGroup (继承自 GraphObject。)
公共属性 IsPseudo 获取该对象是否为 Pseudo。它会查找 GraphProperties.IsPseudo (继承自 GraphObject。)
公共属性 Item 获取或设置属性值的属性。 (继承自 GraphObject。)
公共属性 Links 获取链接的集合。 (继承自 Graph。)
公共属性 Name
公共属性 Nodes 获取节点的集合。 (继承自 Graph。)
公共属性 Owner 获取该对象所属的 Graph 对象。 (继承自 GraphObject。)
公共属性 Paths 序列化程序在加载期间找到的 CommonPaths,我们还将在保存过程中使用它。 (继承自 Graph。)
公共属性 Properties
公共属性 PropertyCount 返回所有注释的编号的属性。 (继承自 GraphObject。)
公共属性 PropertyKeys 返回所有注释键的枚举的属性。枚举的顺序是随机的。 (继承自 GraphObject。)
公共属性 PropertyValues 返回所有注释值的枚举的属性。枚举的顺序是随机的。 (继承自 GraphObject。)
公共属性 Schemas 与关系图相关的架构集合 (继承自 Graph。)
公共属性 Styles 获取样式的集合。 (继承自 Graph。)
公共属性 Visibility Helper 属性用于获取或设置图形对象可见性。 (继承自 GraphObject。)
公共属性 VisibleLinks 返回可见的链接 (link.IsVisible == true)。 (继承自 Graph。)
公共属性 VisibleNodes 返回可见的节点 (node.IsVisible == true)。 (继承自 Graph。)

页首

方法

  名称 说明
公共方法 AddCategory 将类别添加到对象 (继承自 GraphObject。)
公共方法 AddSchema (重写 Graph.AddSchema(GraphSchema)。)
公共方法 ClearCategories 从此对象中移除所有类别。 (继承自 GraphObject。)
公共方法 ClearValue(GraphProperty) 返回指定的属性的值 (继承自 GraphObject。)
公共方法 Copy 创建此图的副本。 (继承自 Graph。)
公共方法 CopyCategories 从给定对象复制所有现有类别,同时保留现有类别。 (继承自 GraphObject。)
公共方法 CopyProperties 从给定对象复制所有现有属性,同时将现有属性值保持不变。 (继承自 GraphObject。)
公共方法 Equals 确定指定的 Object 是否等于当前的 Object。 (继承自 Object。)
受保护的方法 Finalize 允许对象在“垃圾回收”回收之前尝试释放资源并执行其他清理操作。 (继承自 Object。)
公共方法 FindCategories
公共方法 FindCategory
公共方法 FindProperties
公共方法 FindProperty
公共方法 GetDocumentSchema (重写 Graph.GetDocumentSchema()。)
公共方法 GetHashCode 用作特定类型的哈希函数。 (继承自 Object。)
公共方法 GetObjectData (重写 Graph.GetObjectData(SerializationInfo, StreamingContext)。)
公共方法 GetType 获取当前实例的 Type。 (继承自 Object。)
公共方法 GetValue(GraphProperty) 获取指定批注的值。 (继承自 GraphObject。)
公共方法 GetValue<T>(GraphProperty, Graph) 获取指定属性的值。 (继承自 GraphObject。)
公共方法 GetValue<T>(GraphProperty, T) 获取指定批注的值。如果属性没有设置,我们返回调用方传递给此方法的默认值 (继承自 GraphObject。)
公共方法 GetValue<T>(GraphProperty, Graph, GraphCategory%) 获取指定属性的值,也可以返回此属性值被继承的分类(如果有的话)。 (继承自 GraphObject。)
公共方法 GetValueAsString 使用给定的区域性以字符串的形式返回给定的属性。 (继承自 GraphObject。)
公共方法 HasCategory(String) 如果对象具有给定类别,则返回 true。 (继承自 GraphObject。)
公共方法 HasCategory(GraphCategory) 如果对象具有给定类别,则返回 true。 (继承自 GraphObject。)
公共方法 HasCategory(IEnumerable<GraphCategory>) 如果对象具有任何给定类别,则返回 true。 (继承自 GraphObject。)
公共方法 HasCategoryInSet 确定给定的类别集合是否适用于此对象。 (继承自 GraphObject。)
公共方法 HasValue 如果指定的注释存在,则返回 true。 (继承自 GraphObject。)
公共方法 HideOrphans 隐藏孤立节点。孤立是一个未包含在组中的节点。 (继承自 Graph。)
公共方法 ImportLink 将链接与其源和目标节点一起导入,因此它们也属于关系图。必须合并任何节点或链接属性以及类别。 (继承自 Graph。)
公共方法 ImportNode 将节点导入关系图。必须合并任何类别和属性。 (继承自 Graph。)
公共方法 ImportSubset 克隆给定节点及其属性,给定数目的链接级别以及这些链接指向的所有节点,并将所有这些新节点和链接导入此图。如果级别零则不复制任何链接。如果级别为 1,则它会复制一级链接和它们指向的所有节点。 (继承自 Graph。)
受保护的方法 InitializeDefaultSchemas (重写 Graph.InitializeDefaultSchemas()。)
受保护的方法 MemberwiseClone 创建当前 Object 的浅表副本。 (继承自 Object。)
公共方法 Merge(Graph) 将给定关系图中的所有新的节点和链接合并到此关系图中 (继承自 Graph。)
公共方法 Merge(IEnumerable<GraphConditionalStyle>) (继承自 Graph。)
公共方法 Merge(IEnumerable<GraphLink>) 将给定链接列表中的所有链接合并到此关系图中 (继承自 Graph。)
公共方法 Merge(IEnumerable<GraphNode>) 将给定节点列表中的所有节点合并到此关系图中 (继承自 Graph。)
公共方法 Merge(IEnumerable<GraphObject>) 将给定关系图对象列表中的所有新的节点和链接合并到此关系图中 (继承自 Graph。)
公共方法 RemoveCategory 移除此对象的类别 (继承自 GraphObject。)
公共方法 RenameNode(String, String) 重命名关系图中的节点(复制新节点,然后移除原始节点) (继承自 Graph。)
公共方法 RenameNode(GraphNode, GraphNodeId) (继承自 Graph。)
公共方法 RenameNode(GraphNodeId, GraphNodeId) (继承自 Graph。)
公共方法 Save 保存 Graph 文件。 (继承自 Graph。)
公共方法 SetMetadata (重写 Graph.SetMetadata(Object, GraphMetadata)。)
公共方法 SetValue<T> 设置给定属性的值。如果属性已存在,则将覆盖其值,除非注释标记防止被覆盖。 (继承自 GraphObject。)
公共方法 ToString (重写 Object.ToString()。)
公共方法 ToXml() (继承自 Graph。)
公共方法 ToXml(Int32) 使用 GraphSerializer 将图表转换为 XML。 (继承自 Graph。)

页首

事件

  名称 说明
公共事件 Updated GraphUpdated 的事件实现。 (继承自 Graph。)
公共事件 Updating BeforeUpdate 的事件实现。这是一个事件,可以侦听和取消对图形所做的更改。 (继承自 Graph。)

页首

线程安全

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

请参见

参考

Microsoft.VisualStudio.GraphModel 命名空间