fillStyle property
[This documentation is preliminary and is subject to change.]
Gets or sets the current style that is used to fill shapes.
![]() ![]() |
Syntax
HRESULT value = object.put_fillStyle(VARIANT v);HRESULT value = object.get_fillStyle(VARIANT* p);
Property values
Type: VARIANT
The fill style, as specified by one of the following values:
CSS color
A string that contains a CSS color value to create a solid color fill (for example, blue, red, or black).
Gradient
A CanvasGradient object to create a gradient fill.
repeat-y
A CanvasPattern object to create a pattern fill.
no-repeat
The pattern prints only once and does not repeat.
Standards information
- HTML Canvas 2D Context, Section 5
Remarks
Invalid values are ignored.
Build date: 1/23/2012
.png)
.png)