GraphCategoryCollection Class
Definition
Important
Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.
public ref class GraphCategoryCollection : System::Collections::Generic::ICollection<Microsoft::VisualStudio::GraphModel::GraphCategory ^>, System::Collections::Generic::IEnumerable<Microsoft::VisualStudio::GraphModel::GraphCategory ^>
public class GraphCategoryCollection : System.Collections.Generic.ICollection<Microsoft.VisualStudio.GraphModel.GraphCategory>, System.Collections.Generic.IEnumerable<Microsoft.VisualStudio.GraphModel.GraphCategory>
type GraphCategoryCollection = class
interface ICollection<GraphCategory>
interface seq<GraphCategory>
interface IEnumerable
Public Class GraphCategoryCollection
Implements ICollection(Of GraphCategory), IEnumerable(Of GraphCategory)
- Inheritance
-
GraphCategoryCollection
- Implements
Constructors
GraphCategoryCollection(GraphSchema) |
Properties
Count |
Gets the number of elements contained in the collection |
IsReadOnly |
Gets a value indicating whether the collection is Read-only |
Schema |
Methods
Add(GraphCategory) |
Adds an item to the collection |
AddNewCategory(String, Func<GraphMetadata>) |
Registers a new GraphCategory |
AddNewCategory(String) |
Registers a new GraphCategory with default metadata creator. |
Clear() |
Removes all items from the collection. |
Contains(GraphCategory) |
Determines whether the collection contains a specific value. |
Copy(GraphCategoryCollection, Graph, Graph) |
Copy the GraphCategories from one collection to another one, including the metadata in the source graph to the destination graph. |
CopyTo(GraphCategory[], Int32) |
Copies the elements of the collection to a System.Array, starting at a particular System.Array index |
GetCategoriesBasedOn(GraphCategory) |
Gets an enumeration of all categories which are based upon the specified base category. |
GetEnumerator() |
Returns an enumerator for the graph categories |
Remove(GraphCategory) |
Removes the first occurrence of a specific object from the collection |
Explicit Interface Implementations
IEnumerable<GraphCategory>.GetEnumerator() |
Returns an enumerator for the graph categories |
Extension Methods
EmptyIfNull<T>(IEnumerable<T>) |
Return this enumeration in case it is not null. In case it is null return empty enumeration. |