FillStyle()

Summary

Creates a new fill style.

Syntax

fillstyle = FillStyle(array specification)

Argument Contents
specification An array of eight strings containing eight characters each

Returns

A string indicating the new fill style.

Notes

  • The strings define an 8x8 pattern grid. Spaces are filled with the background color and non-spaces are filled with the foreground color.

  • Passing null for the specification returns the not filled fillstyle.

Example

str1 = "XXXXXXXX"
str2 = " "
str3 = "X X X X "
str4 = " X X X X"
solid = FillStyle({str1, str1, str1, str1, str1, str1, str1, str1})
empty = FillStyle({str2, str2, str2, str2, str2, str2, str2, str2})
shaded = FillStyle({str3, str4, str3, str4, str3, str4, str3, str4})

Error Codes

Error Type Meaning
Error The specification is invalid.

See Also

Function Summary
SetFillStyle() Sets the style used to fill area features
GetFillStyle() Returns the style used to fill area features
GetFillStyleDefinition() Returns an array defining the fill style
LineStyle() Creates a new line style