Table of Contents

Class SvgGlyphStyle

Namespace
SharpDX.Direct2D1
Assembly
SharpDX.Direct2D1.dll
[Guid("af671749-d241-4db8-8e41-dcc2e5c1a438")]
public class SvgGlyphStyle : Resource
Inheritance
SvgGlyphStyle
Inherited Members

Constructors

SvgGlyphStyle(nint)

public SvgGlyphStyle(nint nativePtr)

Parameters

nativePtr nint

Properties

Fill

Returns or sets the requested fill parameters.

public Brush Fill { get; set; }

Property Value

Brush

StrokeDashesCount

Returns the number of dashes in the dash array.

public int StrokeDashesCount { get; }

Property Value

int

Methods

GetStroke(out Brush, out float, float[], int, out float)

Returns the requested stroke parameters. Any parameters that are non-null will receive the value of the requested parameter.

public void GetStroke(out Brush brush, out float strokeWidth, float[] dashes, int dashesCount, out float dashOffset)

Parameters

brush Brush

Describes how the stroke is painted.

strokeWidth float

The 'context-value' for the 'stroke-width' property.

dashes float[]

The 'context-value' for the 'stroke-dasharray' property.

dashesCount int

The the number of dashes in the dash array.

dashOffset float

The 'context-value' for the 'stroke-dashoffset' property.

SetStroke(Brush, float, float[], int, float)

Provides values to an SVG glyph for stroke properties. The brush with opacity set to 1 is used as the 'context-stroke'. The opacity of the brush is used as the 'context-stroke-opacity' value.

public void SetStroke(Brush brush, float strokeWidth, float[] dashes, int dashesCount, float dashOffset)

Parameters

brush Brush

Describes how the stroke is painted. A null brush will cause the context-stroke value to be none.

strokeWidth float

Specifies the 'context-value' for the 'stroke-width' property.

dashes float[]

Specifies the 'context-value' for the 'stroke-dasharray' property. A null value will cause the stroke-dasharray to be set to 'none'.

dashesCount int

The the number of dashes in the dash array.

dashOffset float

Specifies the 'context-value' for the 'stroke-dashoffset' property.

Operators

explicit operator SvgGlyphStyle(nint)

public static explicit operator SvgGlyphStyle(nint nativePtr)

Parameters

nativePtr nint

Returns

SvgGlyphStyle