GraphSchema Class
Inheritance Hierarchy
System.Object
Microsoft.VisualStudio.GraphModel.GraphObject
Microsoft.VisualStudio.GraphModel.Graph
Microsoft.VisualStudio.GraphModel.GraphSchema
Namespace: Microsoft.VisualStudio.GraphModel
Assembly: Microsoft.VisualStudio.GraphModel (in Microsoft.VisualStudio.GraphModel.dll)
Syntax
'Declaration
<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
The GraphSchema type exposes the following members.
Constructors
Name | Description | |
---|---|---|
GraphSchema(Boolean, String) | ||
GraphSchema(SerializationInfo, StreamingContext) |
Top
Properties
Name | Description | |
---|---|---|
Categories | ||
CategoryCount | Return number of categories in the object. (Inherited from GraphObject.) | |
DescriptiveCategoryCaption | (Inherited from GraphObject.) | |
IsCollapsed | Get whether this node is collapsed. (Inherited from GraphObject.) | |
IsDocumentSchema | ||
IsExpanded | Get whether this node is expanded. (Inherited from GraphObject.) | |
IsGroup | Get whether this object is IsGroup. It looks for the GraphProperties.StyleForGroup (Inherited from GraphObject.) | |
IsPseudo | Get whether this object is Pseudo. It looks for the GraphProperties.IsPseudo (Inherited from GraphObject.) | |
Item | Property that gets or sets a property value. (Inherited from GraphObject.) | |
Links | Get the collection of links (Inherited from Graph.) | |
Name | ||
Nodes | Get the collection of nodes (Inherited from Graph.) | |
Owner | Get the Graph object that this object belongs to. (Inherited from GraphObject.) | |
Paths | CommonPaths found by the serializer during load which we will also use during save. (Inherited from Graph.) | |
Properties | ||
PropertyCount | Property that returns an number of of all annotations. (Inherited from GraphObject.) | |
PropertyKeys | Property that returns an enumeration of all annotation keys. The order of the enumeration is random. (Inherited from GraphObject.) | |
PropertyValues | Property that returns an enumeration of all annotation values. The order of the enumeration is random. (Inherited from GraphObject.) | |
Schemas | The set of schemas associated with the Graph (Inherited from Graph.) | |
Styles | Get the collection of styles (Inherited from Graph.) | |
Visibility | Helper property to get/set visibility property of a GraphObject (Inherited from GraphObject.) | |
VisibleLinks | Return the visible links (link.IsVisible == true). (Inherited from Graph.) | |
VisibleNodes | Return the visible nodes (node.IsVisible == true). (Inherited from Graph.) |
Top
Methods
Name | Description | |
---|---|---|
AddCategory | Add a category to the object (Inherited from GraphObject.) | |
AddSchema | (Overrides Graph.AddSchema(GraphSchema).) | |
ClearCategories | Remove all categories from this object. (Inherited from GraphObject.) | |
ClearValue(GraphProperty) | Removes the value of the specified property (Inherited from GraphObject.) | |
Copy | Create a copy of this graph. (Inherited from Graph.) | |
CopyCategories | Copy any new categories from the given object, keeping existing categories. (Inherited from GraphObject.) | |
CopyProperties | Copy any new properties from the given object, keeping existing property values unchanged. (Inherited from GraphObject.) | |
Equals | Determines whether the specified Object is equal to the current Object. (Inherited from Object.) | |
Finalize | Allows an object to try to free resources and perform other cleanup operations before it is reclaimed by garbage collection. (Inherited from Object.) | |
FindCategories | ||
FindCategory | ||
FindProperties | ||
FindProperty | ||
GetDocumentSchema | (Overrides Graph.GetDocumentSchema().) | |
GetHashCode | Serves as a hash function for a particular type. (Inherited from Object.) | |
GetObjectData | (Overrides Graph.GetObjectData(SerializationInfo, StreamingContext).) | |
GetType | Gets the Type of the current instance. (Inherited from Object.) | |
GetValue(GraphProperty) | Gets the value of the specified annotation. (Inherited from GraphObject.) | |
GetValue<T>(GraphProperty, Graph) | Gets the value of the specified property. (Inherited from GraphObject.) | |
GetValue<T>(GraphProperty, T) | Gets the value of the specified annotation. if property is not set we reutnr the default value that the caller pass to this method (Inherited from GraphObject.) | |
GetValue<T>(GraphProperty, Graph, GraphCategory%) | Gets the value of the specified property, and also return the category that this property value was inherited from if any. (Inherited from GraphObject.) | |
GetValueAsString | Returns the given property as a string using the given culture. (Inherited from GraphObject.) | |
HasCategory(String) | Return true if the object has the given category. (Inherited from GraphObject.) | |
HasCategory(GraphCategory) | Return true if the object has the given category. (Inherited from GraphObject.) | |
HasCategory(IEnumerable<GraphCategory>) | Return true if the object has any of the given categories. (Inherited from GraphObject.) | |
HasCategoryInSet | Determines if the given set of categories applies to this object. (Inherited from GraphObject.) | |
HasValue | Return true if the specified annotation exists. (Inherited from GraphObject.) | |
HideOrphans | Hides orphan nodes. An orphan is a node that is not contained by a group. (Inherited from Graph.) | |
ImportLink | Imports a Link along with its source and target nodes so they belong to the graph also. Merges any node or link properties and categories necessary. (Inherited from Graph.) | |
ImportNode | Imports a node into a graph. Merging any categories and properties necessary. (Inherited from Graph.) | |
ImportSubset | Clone the given node and it's properties and the given number of levels of links and all the nodes those links point to and import all these new nodes and links into this graph. If levels is zero then no links are copied. If levels is 1 then it copies one level of links and all the nodes they point to. (Inherited from Graph.) | |
InitializeDefaultSchemas | (Overrides Graph.InitializeDefaultSchemas().) | |
MemberwiseClone | Creates a shallow copy of the current Object. (Inherited from Object.) | |
Merge(Graph) | Merge all new nodes and links from the given graph into this graph (Inherited from Graph.) | |
Merge(IEnumerable<GraphConditionalStyle>) | (Inherited from Graph.) | |
Merge(IEnumerable<GraphLink>) | Merge all of the links from the given link list into this graph (Inherited from Graph.) | |
Merge(IEnumerable<GraphNode>) | Merge all of the nodes from the given node list into this graph (Inherited from Graph.) | |
Merge(IEnumerable<GraphObject>) | Merge all new nodes and links from the given list of graph objects into this graph (Inherited from Graph.) | |
RemoveCategory | Remove the category of this object (Inherited from GraphObject.) | |
RenameNode(String, String) | Renames a Node in the Graph (clones to new Node and removed original) (Inherited from Graph.) | |
RenameNode(GraphNode, GraphNodeId) | (Inherited from Graph.) | |
RenameNode(GraphNodeId, GraphNodeId) | (Inherited from Graph.) | |
Save | Save the Graph the a file. (Inherited from Graph.) | |
SetMetadata | (Overrides Graph.SetMetadata(Object, GraphMetadata).) | |
SetValue<T> | Sets the value of the given property. If the proeprty already exists, its value is overwritten unless the annotation flags prevent otherwise. (Inherited from GraphObject.) | |
ToString | (Overrides Object.ToString().) | |
ToXml() | (Inherited from Graph.) | |
ToXml(Int32) | Convert the graph to XML using the GraphSerializer. (Inherited from Graph.) |
Top
Events
Name | Description | |
---|---|---|
Updated | Event implementation for GraphUpdated. (Inherited from Graph.) | |
Updating | Event implementation for BeforeUpdate. This is an event that can be listened on and cancel the changes to a graph. (Inherited from Graph.) |
Top
Thread Safety
Any public static (Shared in Visual Basic) members of this type are thread safe. Any instance members are not guaranteed to be thread safe.