Share via


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.12.0 (in Microsoft.VisualStudio.Modeling.Sdk.Diagrams.12.0.dll)

Syntax

'Declaration
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
Public method BrushSettings Default constructor.

Top

Properties

  Name Description
Public property 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.
Public property BrushSettingsFlags Gets the overridden properties in the BrushStyleSetInfo.
Public property BrushStyleSetInfo Gets or sets the BrushStyleSetInfo associated with these settings.
Public property BrushType Gets or sets the type of Brush. Only allows the change if the property is not immutable and sets the override flags appropriately.
Public property 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.
Public property 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.
Public property 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.
Public property 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.
Public property ImmutableBackColor Makes the BackColor setting immutable, unchangeable by others. Once it's make immutable, no one else can change it.
Public property ImmutableBrushType Makes the BrushType setting immutable, unchangeable by others. Once it's make immutable, no one else can change it.
Public property ImmutableColor Makes the Color setting immutable, unchangeable by others. Once it's make immutable, no one else can change it.
Public property ImmutableForeColor Makes the ForeColor setting immutable, unchangeable by others. Once it's make immutable, no one else can change it.
Public property ImmutableHatchStyle Makes the HatchStyle setting immutable, unchangeable by others. Once it's make immutable, no one else can change it.
Public property ImmutableImage Makes the Image setting immutable, unchangeable by others. Once it's make immutable, no one else can change it.
Public property ImmutableTransform Makes the Transform setting immutable, unchangeable by others. Once it's make immutable, no one else can change it.
Public property ImmutableWrapMode Makes the WrapMode setting immutable, unchangeable by others. Once it's make immutable, no one else can change it.
Public property 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.
Public property 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
Public method Equals Determines whether the specified object is equal to the current object. (Inherited from Object.)
Protected method Finalize Allows an object to try to free resources and perform other cleanup operations before it is reclaimed by garbage collection. (Inherited from Object.)
Public method GetHashCode Serves as the default hash function. (Inherited from Object.)
Public method GetType Gets the Type of the current instance. (Inherited from Object.)
Public method IsOverridden Tests whether certain BrushSettings are overridden.
Protected method MemberwiseClone Creates a shallow copy of the current Object. (Inherited from Object.)
Public method 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.

See Also

Reference

Microsoft.VisualStudio.Modeling.Diagrams Namespace