Pen |
[SerializableAttribute] public class PenX : IImmutable, IEquatable<PenX>
The PenX type exposes the following members.
| Name | Description | |
|---|---|---|
| PenX | Initializes a new instance of the PenX class with default settings. | |
| PenX(NamedColor) | Initializes a new instance of the PenX class with the specified solid color. | |
| PenX(BrushX, Double) | Initializes a new instance of the PenX class with the specified brush and width. | |
| PenX(NamedColor, Double) | Initializes a new instance of the PenX class with the specified solid color and width. |
| Name | Description | |
|---|---|---|
| Alignment | Gets the pen alignment. | |
| Brush | Gets the brush used by the pen. | |
| Color | Gets the foreground color of the pen brush. | |
| CompoundArray | Gets the compound array used by the pen. | |
| DashCap | Gets the dash cap style. | |
| DashPattern | Gets the dash pattern. | |
| EndCap | Gets the end cap. | |
| IsInvisible | Determines if this pen is invisible. It is invisible if it has an invisible brush or the color is transparent. | |
| IsVisible | Determines if this pen is visible. It is visible if it has a visible brush. | |
| LineJoin | Gets the line-join style. | |
| MiterLimit | Gets the miter limit. | |
| StartCap | Gets the start cap. | |
| Transformation | Gets the optional transformation matrix. | |
| Width | Gets the pen width. |
| Name | Description | |
|---|---|---|
| AreEqualUnlessWidth | Determines whether two pens are equal when width differences are ignored. | |
| CalculateHash | Calculates the hash code for the current pen state. | |
| Equals(Object) | Determines whether the specified object is equal to the current object. (Overrides ObjectEquals(Object)) | |
| Equals(PenX) | Indicates whether the current object is equal to another object of the same type. | |
| 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. (Overrides ObjectGetHashCode) | |
| 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) | |
| WithAlignment | Returns a copy of this pen with a different alignment. | |
| WithBrush | Returns a copy of this pen with a different brush. | |
| WithColor | Returns a copy of this pen with a different foreground color. | |
| WithCompoundArray | Returns a copy of this pen with a different compound array. | |
| WithDashCap | Returns a copy of this pen with a different dash cap style. | |
| WithDashPattern | Returns a copy of this pen with a different dash pattern. | |
| WithEndCap | Returns a copy of this pen with a different end cap. | |
| WithLineJoin | Returns a copy of this pen with a different line join. | |
| WithMiterLimit | Returns a copy of this pen with a different miter limit. | |
| WithStartCap | Returns a copy of this pen with a different start cap. | |
| WithTransformation | Returns a copy of this pen with a different transformation matrix. | |
| WithWidth | Returns a copy of this pen with a different width. |
| Name | Description | |
|---|---|---|
| Equality(PenX, PenX) | Determines whether two PenX instances are equal. | |
| Inequality(PenX, PenX) | Determines whether two PenX instances are not equal. |
| Name | Description | |
|---|---|---|
| _alignment | The alignment of the pen. | |
| _brush | The brush of the pen. | |
| _cachedHashCode | Cached hash code. | |
| _compoundArray | The optional compound array. | |
| _dashCap | The dash cap style. | |
| _dashPattern | The dash pattern. | |
| _endCap | The end cap. | |
| _lineJoin | The line-join style. | |
| _miterLimit | The miter limit. | |
| _startCap | The start cap. | |
| _transformation | The optional transformation. | |
| _width | The width of the pen. | |
| DefaultAlignment | The default pen alignment. | |
| DefaultLineJoin | The default line join. | |
| DefaultMiterLimit | The default miter limit. | |
| DefaultWidth | The default pen width. |