Class D2D1StrokeStyle
Describes the caps, miter limit, line join, and dash information for a stroke.
Implements
Inherited Members
Namespace: JeremyAnsel.DirectX.D2D1
Assembly: JeremyAnsel.DirectX.D2D1.dll
Syntax
[SecurityCritical]
public class D2D1StrokeStyle : D2D1Resource, IDisposable
Constructors
| Edit this page View SourceD2D1StrokeStyle(nint)
Initializes a new instance of the D2D1StrokeStyle class.
Declaration
public D2D1StrokeStyle(nint comPtr)
Parameters
| Type | Name | Description |
|---|---|---|
| nint | comPtr |
Fields
| Edit this page View SourceD2D1StrokeStyleGuid
The interface GUID.
Declaration
public static readonly Guid D2D1StrokeStyleGuid
Field Value
| Type | Description |
|---|---|
| Guid |
Properties
| Edit this page View SourceDashCap
Gets a value that specifies how the ends of each dash are drawn.
Declaration
public D2D1CapStyle DashCap { get; }
Property Value
| Type | Description |
|---|---|
| D2D1CapStyle |
DashOffset
Gets a value that specifies how far in the dash sequence the stroke will start.
Declaration
public float DashOffset { get; }
Property Value
| Type | Description |
|---|---|
| float |
DashStyle
Gets a value that describes the stroke's dash pattern.
Declaration
public D2D1DashStyle DashStyle { get; }
Property Value
| Type | Description |
|---|---|
| D2D1DashStyle |
EndCap
Gets the type of shape used at the end of a stroke.
Declaration
public D2D1CapStyle EndCap { get; }
Property Value
| Type | Description |
|---|---|
| D2D1CapStyle |
LineJoin
Gets the type of joint used at the vertices of a shape's outline.
Declaration
public D2D1LineJoin LineJoin { get; }
Property Value
| Type | Description |
|---|---|
| D2D1LineJoin |
MiterLimit
Gets the limit on the ratio of the miter length to half the stroke's thickness.
Declaration
public float MiterLimit { get; }
Property Value
| Type | Description |
|---|---|
| float |
StartCap
Gets the type of shape used at the beginning of a stroke.
Declaration
public D2D1CapStyle StartCap { get; }
Property Value
| Type | Description |
|---|---|
| D2D1CapStyle |
Methods
| Edit this page View SourceGetDashes()
Copies the dash pattern to the specified array.
Declaration
public float[] GetDashes()
Returns
| Type | Description |
|---|---|
| float[] | An array that will receive the dash pattern. |
GetDashes(Span<float>)
Copies the dash pattern to the specified array.
Declaration
public void GetDashes(Span<float> dashes)
Parameters
| Type | Name | Description |
|---|---|---|
| Span<float> | dashes | An array that will receive the dash pattern. |
GetDashesCount()
Retrieves the number of entries in the dashes array.
Declaration
public uint GetDashesCount()
Returns
| Type | Description |
|---|---|
| uint | The number of entries in the dashes array if the stroke is dashed; otherwise, 0. |