Export (0) Print
Expand All

GraphObject Class

[This documentation is for preview only, and is subject to change in later releases. Blank topics are included as placeholders.]

This class makes an object extensible by adding a strongly typed property bag of name/value pairs.

Namespace:  Microsoft.VisualStudio.GraphModel
Assembly:  Microsoft.VisualStudio.GraphModel (in Microsoft.VisualStudio.GraphModel.dll)

public abstract class GraphObject : IDynamicMetaObjectProvider, 
	INotifyPropertyChanged, IHasGraphOwner

The GraphObject type exposes the following members.

  NameDescription
Protected methodGraphObject()Protected constructor for Annotatable.
Protected methodGraphObject(Graph)Protected constructor for Annotatable.
Top

  NameDescription
Public propertyCategoriesReturns all categories. Never returns null.
Public propertyCategoryCountReturns the number of categories in the object.
Public propertyDescriptiveCategoryLabelCreates a delimited list of all category labels for this graph object.
Public propertyDocumentSchemaGets the document-local schema from the owner of this graph.
Public propertyIsGroupGets whether this object is IsGroup. It looks for the GraphProperties.StyleForGroup.
Public propertyIsPseudoGets whether this object is Pseudo. It looks for the GraphProperties.IsPseudo.
Public propertyItemProperty that gets or sets a property value.
Public propertyOwnerGets the Graph object that this object belongs to.
Public propertyPropertiesProperty that returns an enumeration of all annotations. The order of the enumeration is random.
Public propertyPropertyCountProperty that returns a number of all annotations.
Public propertyPropertyKeysProperty that returns an enumeration of all annotation keys. The order of the enumeration is random.
Public propertyPropertyValuesProperty that returns an enumeration of all annotation values. The order of the enumeration is random.
Public propertyVisibilityHelper property to get/set visibility property of a GraphObject.
Top

  NameDescription
Public methodAddCategoryAdds a category to the object.
Public methodAsNodeConverts the GraphObject to a GraphNode. If this is a GraphGroup, the inner node is returned. For types other than GraphNode/Group, null is returned.
Public methodClearCategoriesRemove all categories from this object.
Public methodClearValue(GraphProperty)Removes the value of the specified property.
Public methodClearValue<T>(GraphProperty)Clears the value of the specified property.
Public methodCopyCategoriesCopies any new categories from the given object, keeping existing categories.
Public methodCopyPropertiesCopies any new properties from the given object, keeping existing property values unchanged.
Public methodEqualsDetermines whether the specified object is equal to the current object. (Inherited from Object.)
Protected methodFinalizeAllows an object to try to free resources and perform other cleanup operations before it is reclaimed by garbage collection. (Inherited from Object.)
Public methodGetHashCodeServes as the default hash function. (Inherited from Object.)
Public methodGetMetaObject
Protected methodGetSchemaValueGets the schema-specific value of the property, if one exists.
Public methodGetTypeGets the Type of the current instance. (Inherited from Object.)
Public methodGetValue(String)Gets the value of the specified property.
Public methodGetValue(GraphProperty)Gets the value of the specified annotation.
Public methodGetValue<T>(String)Gets the value of the specified property.
Public methodGetValue<T>(GraphProperty)Gets the value of the specified property.
Public methodGetValue<T>(GraphProperty, Graph)Gets the value of the specified property.
Public methodGetValue<T>(GraphProperty, T)Gets the value of the specified annotation. If property is not set, we return the default value that the caller passed to this method.
Public methodGetValue<T>(GraphProperty, Graph, GraphCategory)Gets the value of the specified property, and also returns the category that this property value was inherited from, if any.
Public methodGetValueAsStringReturns the given property as a string that uses the given culture.
Public methodHasCategory(String)Returns true if the object has the given category.
Public methodHasCategory(GraphCategory)Returns true if the object has the given category.
Public methodHasCategory(IEnumerable<GraphCategory>)Returns true if the object has any of the given categories.
Public methodHasCategoryInSetDetermines whether the given set of categories applies to this object.
Public methodHasLocalValueReturns true if the specified property exists on this object with no category inheritance check.
Public methodHasValue(String)Find out whether the object has a value for the specified property.
Public methodHasValue(GraphProperty)Returns true if the specified annotation exists.
Protected methodMemberwiseCloneCreates a shallow copy of the current Object. (Inherited from Object.)
Protected methodOnCategoryChanged
Public methodOnPropertyChanged(String)Raises a PropertyChangd event for the named property.
Public methodOnPropertyChanged(GraphProperty)Raises a PropertyChangd event for the given GraphProperty.
Public methodRemoveCategoryRemoves the category of this object.
Public methodSetValue(String, Object)Adds an annotation, using the given key, type, and value.
Public methodSetValue<T>(GraphProperty, T)Sets the value of the given property. If the property already exists, its value is overwritten unless the annotation flags prevent otherwise.
Public methodToStringReturns a string that represents the current object. (Inherited from Object.)
Protected methodWrapGraphObjectModifies the current graph object to share the same property and categories as the given graph object. The wrapper and wrappee graph objects will always have identical sets of properties and categories.
Top

Any public static (Shared in Visual Basic) members of this type are thread safe. Any instance members are not guaranteed to be thread safe.
Show:
© 2014 Microsoft