BrushDescriptor Class
The BrushStyleSetInfo for a class and an instance of the Brush described by that info (if it's already been created). The BrushDescriptor is what gets cached for later use.
Inheritance Hierarchy
System.Object
Microsoft.VisualStudio.Modeling.Diagrams.BrushDescriptor
Namespace: Microsoft.VisualStudio.Modeling.Diagrams
Assembly: Microsoft.VisualStudio.Modeling.Sdk.Diagrams.12.0 (in Microsoft.VisualStudio.Modeling.Sdk.Diagrams.12.0.dll)
Syntax
'Declaration
Public Class BrushDescriptor
public class BrushDescriptor
public ref class BrushDescriptor
type BrushDescriptor = class end
public class BrushDescriptor
The BrushDescriptor type exposes the following members.
Constructors
Name | Description | |
---|---|---|
BrushDescriptor | Constructor that creates a descriptor based on a specified BrushStyleSetInfo. |
Top
Properties
Name | Description | |
---|---|---|
Brush | Gets an instance of the Brush defined by this descriptor. If the brush has not been previously created, it creates it first. This is a singleton. Do not dispose - this will crash! Use immediately. | |
BrushStyleSetInfo | Gets the brush information for this descriptor. |
Top
Methods
Name | Description | |
---|---|---|
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.) | |
GetHashCode | Serves as the default hash function. (Inherited from Object.) | |
GetType | Gets the Type of the current instance. (Inherited from Object.) | |
MemberwiseClone | Creates a shallow copy of the current Object. (Inherited from Object.) | |
ToString | Returns a string that represents the current object. (Inherited from Object.) |
Top
Remarks
The BrushStyleSetInfo for a class and an instance of the Brush that is described by that info (if it has already been created). The BrushDescriptor is cached for later use.
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.