Class D2D1StrokeStyle
Describes the caps, miter limit, line join, and dash information for a stroke.
Inherited Members
Namespace: JeremyAnsel.DirectX.D2D1
Assembly: JeremyAnsel.DirectX.D2D1.dll
Syntax
public sealed class D2D1StrokeStyle : D2D1Resource, IDisposable, ID2D1Releasable
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 |
Handle
Gets an handle representing the D2D1 object interface.
Declaration
public override object Handle { get; }
Property Value
Type | Description |
---|---|
object |
Overrides
| Edit this page View SourceLineJoin
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. |
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. |