[]
        
(Showing Draft Content)

GrapeCity.Documents.DX.Direct2D.StrokeStyle

Class StrokeStyle

Namespace
GrapeCity.Documents.DX.Direct2D
Assembly
GcDocs.DX.Windows.dll

ID2D1StrokeStyle

[Guid("2cd9069d-12e2-11dc-9fed-001143a055f9")]
public class StrokeStyle : Resource, IDisposable, IUnknown
Inheritance
object
StrokeStyle
Implements
System.IDisposable
Inherited Members
object.ToString()
object.Equals(object)
object.Equals(object, object)
object.ReferenceEquals(object, object)
object.GetHashCode()
object.GetType()
object.MemberwiseClone()

Constructors

StrokeStyle(IntPtr)

Initializes a new instance of the StrokeStyle class.

public StrokeStyle(IntPtr nativePtr)

Parameters

nativePtr System.IntPtr

The native pointer.

Methods

Create(Factory, ref StrokeStyleProperties, float[])

Creates an StrokeStyle that describes start cap, dash pattern, and other features of a stroke.

public static StrokeStyle Create(Factory factory, ref StrokeStyleProperties properties, float[] dashes)

Parameters

factory Factory

an instance of Factory

properties StrokeStyleProperties

A structure that describes the stroke's line cap, dash offset, and other details of a stroke.

dashes float[]

An array whose elements are set to the length of each dash and space in the dash pattern. The first element sets the length of a dash, the second element sets the length of a space, the third element sets the length of a dash, and so on. The length of each dash and space in the dash pattern is the product of the element value in the array and the stroke width.

Returns

StrokeStyle

Create(Factory, ref StrokeStyleProperties)

Creates an StrokeStyle that describes start cap, dash pattern, and other features of a stroke.

public static StrokeStyle Create(Factory factory, ref StrokeStyleProperties properties)

Parameters

factory Factory

an instance of Factory

properties StrokeStyleProperties

a definition for this render target

Returns

StrokeStyle

GetDashCap()

D2D1_CAP_STYLE ID2D1StrokeStyle::GetDashCap()

public CapStyle GetDashCap()

Returns

CapStyle

GetDashes(float[], int)

void ID2D1StrokeStyle::GetDashes([Out, Buffer] float* dashes,[In] unsigned int dashesCount)

public void GetDashes(float[] dashes, int dashesCount)

Parameters

dashes float[]
dashesCount int

GetDashesCount()

unsigned int ID2D1StrokeStyle::GetDashesCount()

public int GetDashesCount()

Returns

int

GetDashOffset()

float ID2D1StrokeStyle::GetDashOffset()

public float GetDashOffset()

Returns

float

GetDashStyle()

D2D1_DASH_STYLE ID2D1StrokeStyle::GetDashStyle()

public DashStyle GetDashStyle()

Returns

DashStyle

GetEndCap()

D2D1_CAP_STYLE ID2D1StrokeStyle::GetEndCap()

public CapStyle GetEndCap()

Returns

CapStyle

GetLineJoin()

D2D1_LINE_JOIN ID2D1StrokeStyle::GetLineJoin()

public LineJoin GetLineJoin()

Returns

LineJoin

GetMiterLimit()

float ID2D1StrokeStyle::GetMiterLimit()

public float GetMiterLimit()

Returns

float

GetStartCap()

D2D1_CAP_STYLE ID2D1StrokeStyle::GetStartCap()

public CapStyle GetStartCap()

Returns

CapStyle

Operators

explicit operator StrokeStyle(IntPtr)

Performs an explicit conversion from System.IntPtr to StrokeStyle.

public static explicit operator StrokeStyle(IntPtr nativePointer)

Parameters

nativePointer System.IntPtr

Returns

StrokeStyle