Class SvgGlyphStyle
[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
StrokeDashesCount
Returns the number of dashes in the dash array.
public int StrokeDashesCount { get; }
Property Value
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
BrushDescribes how the stroke is painted.
strokeWidth
floatThe 'context-value' for the 'stroke-width' property.
dashes
float[]The 'context-value' for the 'stroke-dasharray' property.
dashesCount
intThe the number of dashes in the dash array.
dashOffset
floatThe '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
BrushDescribes how the stroke is painted. A null brush will cause the context-stroke value to be none.
strokeWidth
floatSpecifies 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
intThe the number of dashes in the dash array.
dashOffset
floatSpecifies the 'context-value' for the 'stroke-dashoffset' property.
Operators
explicit operator SvgGlyphStyle(nint)
public static explicit operator SvgGlyphStyle(nint nativePtr)
Parameters
nativePtr
nint