Click or drag to resize

PenX Class

Graphics-framework-independent pen definition. Use Instance to convert it into a GDI pen.
Inheritance Hierarchy
SystemObject
  Altaxo.DrawingPenX

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

The PenX type exposes the following members.

Constructors
 NameDescription
Public methodPenX Initializes a new instance of the PenX class with default settings.
Public methodPenX(NamedColor) Initializes a new instance of the PenX class with the specified solid color.
Public methodPenX(BrushX, Double) Initializes a new instance of the PenX class with the specified brush and width.
Public methodPenX(NamedColor, Double) Initializes a new instance of the PenX class with the specified solid color and width.
Top
Properties
 NameDescription
Public propertyAlignment Gets the pen alignment.
Public propertyBrush Gets the brush used by the pen.
Public propertyColor Gets the foreground color of the pen brush.
Public propertyCompoundArray Gets the compound array used by the pen.
Public propertyDashCap Gets the dash cap style.
Public propertyDashPattern Gets the dash pattern.
Public propertyEndCap Gets the end cap.
Public propertyIsInvisible Determines if this pen is invisible. It is invisible if it has an invisible brush or the color is transparent.
Public propertyIsVisible Determines if this pen is visible. It is visible if it has a visible brush.
Public propertyLineJoin Gets the line-join style.
Public propertyMiterLimit Gets the miter limit.
Public propertyStartCap Gets the start cap.
Public propertyTransformation Gets the optional transformation matrix.
Public propertyWidth Gets the pen width.
Top
Methods
 NameDescription
Public methodStatic memberAreEqualUnlessWidth Determines whether two pens are equal when width differences are ignored.
Protected methodCalculateHash Calculates the hash code for the current pen state.
Public methodEquals(Object)Determines whether the specified object is equal to the current object.
(Overrides ObjectEquals(Object))
Public methodEquals(PenX)Indicates whether the current object is equal to another object of the same type.
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 methodGetHashCodeServes as the default hash function.
(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 methodWithAlignment Returns a copy of this pen with a different alignment.
Public methodWithBrush Returns a copy of this pen with a different brush.
Public methodWithColor Returns a copy of this pen with a different foreground color.
Public methodWithCompoundArray Returns a copy of this pen with a different compound array.
Public methodWithDashCap Returns a copy of this pen with a different dash cap style.
Public methodWithDashPattern Returns a copy of this pen with a different dash pattern.
Public methodWithEndCap Returns a copy of this pen with a different end cap.
Public methodWithLineJoin Returns a copy of this pen with a different line join.
Public methodWithMiterLimit Returns a copy of this pen with a different miter limit.
Public methodWithStartCap Returns a copy of this pen with a different start cap.
Public methodWithTransformation Returns a copy of this pen with a different transformation matrix.
Public methodWithWidth Returns a copy of this pen with a different width.
Top
Operators
 NameDescription
Public operatorStatic memberEquality(PenX, PenX) Determines whether two PenX instances are equal.
Public operatorStatic memberInequality(PenX, PenX) Determines whether two PenX instances are not equal.
Top
Fields
 NameDescription
Protected field_alignmentThe alignment of the pen.
Protected field_brushThe brush of the pen.
Protected field_cachedHashCode Cached hash code.
Protected field_compoundArray The optional compound array.
Protected field_dashCap The dash cap style.
Protected field_dashPattern The dash pattern.
Protected field_endCap The end cap.
Protected field_lineJoin The line-join style.
Protected field_miterLimit The miter limit.
Protected field_startCap The start cap.
Protected field_transformation The optional transformation.
Protected field_widthThe width of the pen.
Public fieldStatic memberDefaultAlignment The default pen alignment.
Public fieldStatic memberDefaultLineJoin The default line join.
Public fieldStatic memberDefaultMiterLimit The default miter limit.
Public fieldStatic memberDefaultWidth The default pen width.
Top
See Also