Home > Language Reference > Classes > Display
Pattern Property
Defines the pattern used to fill drawings.
Syntax
Public Property Get Pattern(ByVal iRow As Integer) As Byte
Public Property Let Pattern(ByVal iRow As Integer, ByVal bPattern As Byte)
| Parameter | Description |
| iRow | Line number. |
| bPattern | Bitmask for the specified line number. |
Remarks
The Pattern property defines the pattern used to fill the drawings specified by the Arc, Oval, Polygon and Rectangle methods. The pattern is 8x8 pixels large, and is defined line by line by an array of 8 bitmasks. Each bit equal to 1 in the pattern is filled with the foreground color, whilst each bit equal to 0 is filled with the background color.
The iRow parameter specifies the pattern line and must be between 0 and 7 inclusive. The value 0 corresponds to the top line of the pattern. The bPattern parameter specifies the bitmask corresponding to the line designated by the iRow parameter. The most significant bit corresponds to the lefthand column of the pattern.
Refer to the Pattern sample for an example that uses this property.
System requirements
| System | Minimal version | Remarks |
| Palm OS | Palm OS 3.0 | N/A |