Export (0) Print
Expand All

strokeStyle property

Gets or sets the current style that is used for strokes (lines) on shapes.

This property is read/write.

HTML Canvas 2D Context, Section 5Internet Explorer 9

Syntax

HRESULT put_strokeStyle(
  [in]           number v
);

HRESULT get_strokeStyle(
  [out, retval]  any *color
);

Property values

Type: any

A variable that specifies or receives one of the following:

CSS Color
CanvasGradient
CanvasPattern

Exceptions

ExceptionCondition
SecurityError

The p attribute is set to aCanvasPattern object that was created from a img or video element that is not of the same origin or domain as the document that owns the canvas element.

Standards information

Remarks

The style can consist of a parameter that contains a CSS color, CanvasGradient object, or CanvasPattern object.

 

 

Community Additions

ADD
Show:
© 2014 Microsoft