Click or drag to resize

BrushX Class

Holds all information neccessary to create a brush of any kind without allocating resources, so this class can be made serializable.
Inheritance Hierarchy
SystemObject
  Altaxo.DrawingBrushX

Namespace: Altaxo.Drawing
Assembly: AltaxoBase (in AltaxoBase.dll) Version: 4.8.3179.0 (4.8.3179.0)
Syntax
C#
[SerializableAttribute]
public class BrushX : IEquatable<BrushX>, 
	IImmutable

The BrushX type exposes the following members.

Constructors
 NameDescription
Public methodBrushX(BrushType)Initializes a new instance of the BrushX class
Public methodBrushX(NamedColor)Initializes a new instance of the BrushX class
Top
Properties
 NameDescription
Public propertyBackColor 
Public propertyBrushType 
Public propertyColor 
Public propertyStatic memberDefaultHatchBrush 
Public propertyStatic memberDefaultSyntheticBrush 
Public propertyStatic memberDefaultTextureBrush 
Public propertyStatic memberEmpty 
Public propertyExchangeColors 
Public propertyGradientAngle 
Public propertyGradientColorScale 
Public propertyGradientFocus 
Public propertyIsInvisible Returns true if the brush is invisible, i.e. is a solid and transparent brush.
Public propertyIsSolidBrush 
Public propertyIsVisible Returns true if the brush is visible, i.e. is not a transparent brush.
Public propertyTextureImage 
Public propertyTextureOffsetX 
Public propertyTextureOffsetY 
Public propertyTextureScale 
Public propertyWrapMode 
Top
Methods
 NameDescription
Protected methodCalculateHash 
Protected methodClone Clones this instance, and sets the cached HashCode to null.
Public methodEquals(BrushX) 
Public methodEquals(Object)
(Overrides ObjectEquals(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 methodGetHashCode
(Overrides ObjectGetHashCode)
Public methodGetTypeGets the Type of the current instance.
(Inherited from Object)
Protected methodMemberwiseCloneCreates a shallow copy of the current Object.
(Inherited from Object)
Public methodToStringReturns a string that represents the current object.
(Inherited from Object)
Public methodWithBackColor 
Public methodWithBrushType 
Public methodWithColor 
Public methodWithColors 
Public methodWithExchangedColors 
Public methodWithGradientAngle 
Public methodWithGradientColorScale 
Public methodWithGradientFocus 
Public methodWithTextureImage 
Public methodWithTextureOffsetX 
Public methodWithTextureOffsetY 
Public methodWithTextureScale 
Public methodWithWrapMode 
Top
Operators
Fields
 NameDescription
Protected field_angle 
Protected field_backColor 
Protected field_brushType 
Protected field_cachedHashCode Cached hash code. Must be invaliated after cloning the instance.
Protected field_exchangeColors 
Protected field_foreColor 
Protected field_gradientColorScale 
Protected field_offsetXFor a gradient brush, this is the GradientFocus property. For texture brushes, it is the X-Offset property.
Protected field_offsetY 
Protected field_textureImage 
Protected field_textureScale 
Protected field_wrapMode 
Top
See Also