BrushSettings Class
BrushSettings allows certain properties on a BrushStyleSetInfo to be marked as overridden or immutable. If certain Brush settings are marked as immutable, then they are not allowed to be changed again.
Inheritance Hierarchy
System.Object
Microsoft.VisualStudio.Modeling.Diagrams.BrushSettings
Namespace: Microsoft.VisualStudio.Modeling.Diagrams
Assembly: Microsoft.VisualStudio.Modeling.Sdk.Diagrams.10.0 (in Microsoft.VisualStudio.Modeling.Sdk.Diagrams.10.0.dll)
Syntax
'宣言
Public Class BrushSettings
public class BrushSettings
public ref class BrushSettings
type BrushSettings = class end
public class BrushSettings
The BrushSettings type exposes the following members.
Constructors
Name | Description | |
---|---|---|
BrushSettings | Default constructor. |
Top
Properties
Name | Description | |
---|---|---|
BackColor | Gets or sets the color of spaces between the hatch lines drawn by this HatchBrush object. Only allows the change if the property is not immutable and sets the override flags appropriately. | |
BrushSettingsFlags | Gets the overridden properties in the BrushStyleSetInfo. | |
BrushStyleSetInfo | Gets or sets the BrushStyleSetInfo associated with these settings. | |
BrushType | Gets or sets the type of Brush. Only allows the change if the property is not immutable and sets the override flags appropriately. | |
Color | Gets or sets the color of this SolidBrush object. Only allows the change if the property is not immutable and sets the override flags appropriately. | |
ForeColor | Gets or sets the color of hatch lines drawn by this HatchBrush object. Only allows the change if the property is not immutable and sets the override flags appropriately. | |
HatchStyle | Gets or sets the hatch style of this HatchBrush object. Only allows the change if the property is not immutable and sets the override flags appropriately. | |
Image | Gets or sets the Image object associated with this TextureBrush object. Only allows the change if the property is not immutable and sets the override flags appropriately. | |
ImmutableBackColor | Makes the BackColor setting immutable, unchangeable by others. Once it's make immutable, no one else can change it. | |
ImmutableBrushType | Makes the BrushType setting immutable, unchangeable by others. Once it's make immutable, no one else can change it. | |
ImmutableColor | Makes the Color setting immutable, unchangeable by others. Once it's make immutable, no one else can change it. | |
ImmutableForeColor | Makes the ForeColor setting immutable, unchangeable by others. Once it's make immutable, no one else can change it. | |
ImmutableHatchStyle | Makes the HatchStyle setting immutable, unchangeable by others. Once it's make immutable, no one else can change it. | |
ImmutableImage | Makes the Image setting immutable, unchangeable by others. Once it's make immutable, no one else can change it. | |
ImmutableTransform | Makes the Transform setting immutable, unchangeable by others. Once it's make immutable, no one else can change it. | |
ImmutableWrapMode | Makes the WrapMode setting immutable, unchangeable by others. Once it's make immutable, no one else can change it. | |
Transform | Gets or sets a Matrix object that defines a local geometric transformation for the image associated with this TextureBrush object. Only allows the change if the property is not immutable and sets the override flags appropriately. | |
WrapMode | Gets or sets a WrapMode enumeration that indicates the wrap mode for this TextureBrush object. Only allows the change if the property is not immutable and sets the override flags appropriately. |
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 a hash function for a particular type. (Inherited from Object.) | |
GetType | Gets the Type of the current instance. (Inherited from Object.) | |
IsOverridden | Tests whether certain BrushSettings are overridden. | |
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
BrushSettings allows certain properties on a BrushStyleSetInfo to be marked as overridden or immutable. If certain Brush settings are marked as immutable, they are not allowed to be changed again.
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.