[]
ID2D1StrokeStyle
[Guid("2cd9069d-12e2-11dc-9fed-001143a055f9")]
public class StrokeStyle : Resource, IDisposable, IUnknown
Initializes a new instance of the StrokeStyle class.
public StrokeStyle(IntPtr nativePtr)
nativePtr
IntPtrThe native pointer.
Creates an StrokeStyle that describes start cap, dash pattern, and other features of a stroke.
public static StrokeStyle Create(Factory factory, ref StrokeStyleProperties properties)
factory
Factoryan instance of Factory
properties
StrokeStylePropertiesa definition for this render target
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)
factory
Factoryan instance of Factory
properties
StrokeStylePropertiesA 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.
D2D1_CAP_STYLE ID2D1StrokeStyle::GetDashCap()
public CapStyle GetDashCap()
float ID2D1StrokeStyle::GetDashOffset()
public float GetDashOffset()
D2D1_DASH_STYLE ID2D1StrokeStyle::GetDashStyle()
public DashStyle GetDashStyle()
void ID2D1StrokeStyle::GetDashes([Out, Buffer] float* dashes,[In] unsigned int dashesCount)
public void GetDashes(float[] dashes, int dashesCount)
unsigned int ID2D1StrokeStyle::GetDashesCount()
public int GetDashesCount()
D2D1_CAP_STYLE ID2D1StrokeStyle::GetEndCap()
public CapStyle GetEndCap()
D2D1_LINE_JOIN ID2D1StrokeStyle::GetLineJoin()
public LineJoin GetLineJoin()
float ID2D1StrokeStyle::GetMiterLimit()
public float GetMiterLimit()
D2D1_CAP_STYLE ID2D1StrokeStyle::GetStartCap()
public CapStyle GetStartCap()
Performs an explicit conversion from IntPtr to StrokeStyle.
public static explicit operator StrokeStyle(IntPtr nativePointer)
nativePointer
IntPtr