ICanvasDrawingStyles

ICanvasDrawingStyles interface

The ICanvasDrawingStyles interface provides methods and properties control how lines are drawn and how text is laid out.

public interface ICanvasDrawingStyles

Properties

Name Description
Font { get; set; } Font setting. Default value 10px sans-serif
LineCap { get; set; } Type of endings on the end of lines. Possible values: butt (default), round, square.
LineDashOffset { get; set; } Specifies where to start a dash array on a line.
LineJoin { get; set; } Defines the type of corners where two lines meet. Possible values: round, bevel, miter (default).
LineWidth { get; set; } Width of lines. Default 1.0
MiterLimit { get; set; } Miter limit ratio. Default 10.
TextAlign { get; set; } Text alignment setting. Possible values: start (default), end, left, right or center.
TextBaseline { get; set; } Baseline alignment setting. Possible values: top, hanging, middle, alphabetic (default), ideographic, bottom.

Methods

Name Description
GetLineDash() Returns the current line dash pattern array containing an even number of non-negative numbers.
SetLineDash(double[]) Sets the current line dash pattern.

See Also