XamlGlyph Class
Defines the glyph built using XAML path data.
public class XamlGlyph : Glyph
Remarks
For internal use only.
Constructors
XamlGlyph(Size)
Initializes an instance of the class.
public XamlGlyph(Size canvasSize)
| Parameter | Type | Description |
|---|---|---|
| canvasSize | Size | The size of the canvas where individual paths of the glyph are positioned. |
XamlGlyph(Size, XamlPath)
Initializes an instance of the class.
public XamlGlyph(Size canvasSize, XamlGlyph.XamlPath path)
| Parameter | Type | Description |
|---|---|---|
| canvasSize | Size | The size of the canvas where individual paths of the glyph are positioned. |
| path | XamlGlyph.XamlPath | The XAML path data to be included. |
XamlGlyph(Size, params XamlPath[])
Initializes an instance of the class.
public XamlGlyph(Size canvasSize, params XamlGlyph.XamlPath[] paths)
| Parameter | Type | Description |
|---|---|---|
| canvasSize | Size | The size of the canvas where individual paths of the glyph are positioned. |
| paths | XamlPath[] | The XAML path data to be included. |
XamlGlyph(Size, string)
Initializes an instance of the class.
public XamlGlyph(Size canvasSize, string path)
| Parameter | Type | Description |
|---|---|---|
| canvasSize | Size | The size of the canvas where individual paths of the glyph are positioned. |
| path | string | The XAML path data to be included with the default stroke thickness and color. |
Properties
CanvasSize
The size of the canvas where individual paths of the glyph are positioned.
Paths
The list of paths which are used to render the glyph.
Methods
DrawCore(Graphics, Point, Color, SizeF)
Performs the core painting of the glyph at the given location.
protected override sealed void DrawCore(Graphics g, Point location, Color color, SizeF scaleFactor)
| Parameter | Type | Description |
|---|---|---|
| g | Graphics | The |
| location | Point | The location of the top-left corner of the glyph. |
| color | Color | The color used to paint. |
| scaleFactor | SizeF | The scale factor to apply when painting (e.g. |
GetUnscaledSize(SizeF)
Returns the original size of the glyph before scaling to the given scale factor.
protected override sealed Size GetUnscaledSize(SizeF scaleFactor)
| Parameter | Type | Description |
|---|---|---|
| scaleFactor | SizeF | The scale factor to apply when painting (e.g. |
Returns
- Size:
The size of the the glyph before it is scaled.
Inherited Members
- Glyph.Draw(Graphics, Point, Color, SizeF)
- Glyph.Draw(Graphics, Rectangle, Color, SizeF)
- Glyph.DrawRectangle(Graphics, Point, Rectangle, Color?, Color?, SizeF)
- Glyph.DrawRectangle(Graphics, Point, RectangleF, Color?, Color?, SizeF)
- Glyph.DrawPolygon(Graphics, Point, PointF[], Color?, Color?, SizeF)
- Glyph.DrawPolygon(Graphics, Point, PointF[], Color?, Color?, SizeF, PenAlignment)
- Glyph.GetScaledSize(SizeF)
- Glyph.IsHighDpi(SizeF)
- Glyph.ShouldUseAntiAlias(SizeF)
- Glyph.TransformAndScalePoints(Point, PointF[], SizeF)
- object.GetType()
- object.MemberwiseClone()
- object.ToString()
- object.Equals(object)
- object.Equals(object, object)
- object.ReferenceEquals(object, object)
- object.GetHashCode()