In This Article

XamlGlyph.XamlPath Class

Defines a XAML path for rendering a glyph.

public class XamlGlyph.XamlPath
Inheritance:
object object

Remarks

For internal use only.

Constructors

XamlPath(string)

Initializes a new instance of the XamlGlyph.XamlPath class.

public XamlPath(string data)
Parameter Type Description
data string

The XAML path data.

Properties

CanvasLocation

Gets or sets the location of the path relative to the upper-left corner of the containing canvas.

public Point CanvasLocation { get; set; }

Property Value

Point:

A point relative to the upper-left corner of the containing canvas.

Data

Gets or sets the path data.

public string Data { get; }

Property Value

string:

A string defining path data as geometry commands.

Fill

Gets or sets the fill of the path.

public XamlGlyph.XamlFill? Fill { get; set; }

Property Value

XamlGlyph.XamlFill?:

A XamlGlyph.XamlFill, or null if a fill should not be applied.

Stroke

Gets or sets the stroke of the path.

public XamlGlyph.XamlStroke? Stroke { get; set; }

Property Value

XamlGlyph.XamlStroke?:

A XamlGlyph.XamlStroke, or null if a stroke should not be applied.

Methods

WithCanvasLocation(Point)

Configures the path with the given canvas location.

public XamlGlyph.XamlPath WithCanvasLocation(Point location)
Parameter Type Description
location Point

The location.

Returns

XamlGlyph.XamlPath:

This XamlGlyph.XamlPath instance which can be used for method chaining.

WithCanvasLocation(int, int)

Configures the path with the given canvas location.

public XamlGlyph.XamlPath WithCanvasLocation(int x, int y)
Parameter Type Description
x int

The x-coordinate of the location.

y int

The y-coordinate of the location.

Returns

XamlGlyph.XamlPath:

This XamlGlyph.XamlPath instance which can be used for method chaining.

WithFill(XamlColor)

Configures the path with a fill color based on the given color.

public XamlGlyph.XamlPath WithFill(XamlGlyph.XamlColor xamlColor)
Parameter Type Description
xamlColor XamlGlyph.XamlColor

The color.

Returns

XamlGlyph.XamlPath:

This XamlGlyph.XamlPath instance which can be used for method chaining.

WithFill(XamlFill)

Configures the path with a fill.

public XamlGlyph.XamlPath WithFill(XamlGlyph.XamlFill fill)
Parameter Type Description
fill XamlGlyph.XamlFill

The fill.

Returns

XamlGlyph.XamlPath:

This XamlGlyph.XamlPath instance which can be used for method chaining.

WithFill(Color)

Configures the path with a fill color based on the given color.

public XamlGlyph.XamlPath WithFill(Color color)
Parameter Type Description
color Color

The color.

Returns

XamlGlyph.XamlPath:

This XamlGlyph.XamlPath instance which can be used for method chaining.

WithStroke(XamlColor)

Configures the path with a stroke based on the given color.

public XamlGlyph.XamlPath WithStroke(XamlGlyph.XamlColor xamlColor)
Parameter Type Description
xamlColor XamlGlyph.XamlColor

The color.

Returns

XamlGlyph.XamlPath:

This XamlGlyph.XamlPath instance which can be used for method chaining.

WithStroke(XamlColor, float)

Configures the path with a stroke based on the given color.

public XamlGlyph.XamlPath WithStroke(XamlGlyph.XamlColor xamlColor, float thickness)
Parameter Type Description
xamlColor XamlGlyph.XamlColor

The color.

thickness float

The stroke thickness.

Returns

XamlGlyph.XamlPath:

This XamlGlyph.XamlPath instance which can be used for method chaining.

WithStroke(XamlStroke)

Configures the path with a stroke.

public XamlGlyph.XamlPath WithStroke(XamlGlyph.XamlStroke stroke)
Parameter Type Description
stroke XamlGlyph.XamlStroke

The stroke.

Returns

XamlGlyph.XamlPath:

This XamlGlyph.XamlPath instance which can be used for method chaining.

WithStroke(Color)

Configures the path with a stroke color based on the given color.

public XamlGlyph.XamlPath WithStroke(Color color)
Parameter Type Description
color Color

The color.

Returns

XamlGlyph.XamlPath:

This XamlGlyph.XamlPath instance which can be used for method chaining.

Inherited Members