User Guide
Ruby Component
The hatch style strings are as follows:
"HORIZONTAL"
"VERTICAL"
"FORWARDDIAGONAL"
"BACKWARDDIAGONAL"
"CROSS"
"DIAGONALCROSS"
"05PERCENT"
"10PERCENT"
"20PERCENT"
"25PERCENT"
"30PERCENT"
"40PERCENT"
"50PERCENT"
"60PERCENT"
"70PERCENT"
"75PERCENT"
"80PERCENT"
"90PERCENT"
"LIGHTDOWNWARDDIAGONAL"
"LIGHTUPWARDDIAGONAL"
"DARKDOWNWARDDIAGONAL"
"DARKUPWARDDIAGONAL"
"WIDEDOWNWARDDIAGONAL"
"WIDEUPWARDDIAGONAL"
"LIGHTVERTICAL"
"LIGHTHORIZONTAL"
"NARROWVERTICAL"
"NARROWHORIZONTAL"
"DARKVERTICAL"
"DARKHORIZONTAL"
"DASHEDDOWNWARDDIAGONAL"
"DASHEDUPWARDDIAGONAL"
"DASHEDHORIZONTAL"
"DASHEDVERTICAL"
"SMALLCONFETTI"
"LARGECONFETTI"
"ZIGZAG"
"WAVE"
"DIAGONALBRICK"
"HORIZONTALBRICK"
"WEAVE"
"PLAID"
"DIVOT"
"DOTTEDGRID"
"DOTTEDDIAMOND"
"SHINGLE"
"TRELLIS"
"SPHERE"
"SMALLGRID"
"SMALLCHECKERBOARD"
"LARGECHECKERBOARD"
"OUTLINEDDIAMOND"
"SOLIDDIAMOND"
The following example shows how to create and use a HatchBrush. The top rectangle uses a brush created using just a foreground colour.
You can see the background underneath as only the hatching is applied. The bottom rectangle has been defined with a white background
colour. We've also used the two different ways of specifying the hatch style in each rectangle – by index or by name.
138 of 212