class anychart.palettes.HatchFills Improve this Doc
Extends: anychart.core.Base
HatchFills palette class.
Methods Overview
Specific settings | |
itemAt() | Hatch fill by index. |
items() | Palette hatch fills list. |
Methods Description
itemAt
Getter for type palette HatchFills from list by index.
Params:
Name | Type | Description |
---|---|---|
index | number | Index to get type. |
Returns:
anychart.graphics.vector.HatchFill | anychart.graphics.vector.PatternFill - Marker type by index.Try it:
Setter for type palette HatchFills from list by index.
Params:
Name | Type | Description |
---|---|---|
index | number | Index of hatchFill to set. |
type | anychart.graphics.vector.HatchFill.HatchFillType | string | HatchFill type. |
color | string | Color. |
thickness | number | Thickness. |
size | number | Pattern size. |
Returns:
anychart.palettes.HatchFills - Self instance for method chaining.Try it:
Setter for type palette HatchFills from list by index using patternFill.
Params:
Name | Type | Description |
---|---|---|
index | number | Index of hatchFill to set. |
patternFill | anychart.graphics.vector.PatternFill | PatternFill settings. |
Returns:
anychart.palettes.HatchFills - Self instance for method chaining.Try it:
Setter for type palette HatchFills from list by index using instance.
Params:
Name | Type | Description |
---|---|---|
index | number | Index of hatchFill to set. |
instance | anychart.graphics.vector.HatchFill | HatchFill instance. |
Returns:
anychart.palettes.HatchFills - Self instance for method chaining.Try it:
Enables/disables type palette HatchFills from list by index.
Params:
Name | Type | Description |
---|---|---|
index | number | Index of hatchFill to set. |
state | boolean | State of hatch fill. |
Returns:
anychart.palettes.HatchFills - Self instance for method chaining.Try it:
items
Getter for HatchFills list of palette.
Returns:
Array.<(anychart.graphics.vector.HatchFill|anychart.graphics.vector.HatchFill.HatchFillType|anychart.graphics.vector.PatternFill)> - HatchFills list.Try it:
Setter for HatchFills list of palette.
Params:
Name | Type | Description |
---|---|---|
hatchFill | Array.<(anychart.graphics.vector.HatchFill|anychart.graphics.vector.HatchFill.HatchFillType|anychart.graphics.vector.PatternFill)> | HatchFills palette list to set. |
var_args | anychart.graphics.vector.HatchFill | anychart.graphics.vector.HatchFill.HatchFillType | anychart.graphics.vector.PatternFill | Another types. |
Returns:
anychart.palettes.HatchFills - Self instance for method chaining.