Stroke StylesStrokeStyles

A collection of stroke styles.

Instance Properties

Name Description Access
length number The number of objects in the collection. read-only

Methods

anyItem(
)
 → StrokeStyle
count(
)
 → number
item(
index)
 → StrokeStyle
itemByID(
id)
 → StrokeStyle
itemByName(
name)
 → StrokeStyle
itemByRange(
from, to)
 → StrokeStyle
nextItem(
obj)
 → StrokeStyle
toSource(
)
 → string
anyItem(
)
 → StrokeStyle
Returns any StrokeStyle in the collection.
count(
)
 → number
Displays the number of elements in the StrokeStyle.
everyItem(
)
 → StrokeStyle
Returns every StrokeStyle in the collection.
firstItem(
)
 → StrokeStyle
Returns the first StrokeStyle in the collection.
item(
index)
 → StrokeStyle
Returns the StrokeStyle with the specified index or name.
index The index or name. Can accept: Long Integer or String.
itemByID(
id)
 → StrokeStyle
Returns the StrokeStyle with the specified ID.
id number The ID.
itemByName(
name)
 → StrokeStyle
Returns the StrokeStyle with the specified name.
name string The name.
itemByRange(
from, to)
 → StrokeStyle
Returns the StrokeStyles within the specified range.
from The StrokeStyle, index, or name at the beginning of the range. Can accept: StrokeStyle, Long Integer or String.
to The StrokeStyle, index, or name at the end of the range. Can accept: StrokeStyle, Long Integer or String.
lastItem(
)
 → StrokeStyle
Returns the last StrokeStyle in the collection.
middleItem(
)
 → StrokeStyle
Returns the middle StrokeStyle in the collection.
nextItem(
obj)
 → StrokeStyle
Returns the StrokeStyle whose index follows the specified StrokeStyle in the collection.
obj StrokeStyle The StrokeStyle whose index comes before the desired StrokeStyle.
previousItem(
obj)
 → StrokeStyle
Returns the StrokeStyle with the index previous to the specified index.
obj StrokeStyle The index of the StrokeStyle that follows the desired StrokeStyle.
toSource(
)
 → string
Generates a string which, if executed, will return the StrokeStyle.