An item's swatch position.
Usage
Set_Property(OLECtrlEntID, "OLE.ItemSwatchPosition[key]", OptionValue)
Values
OptionValue can be set to one of the following valid options:
Value | Abbr. | Description |
---|---|---|
Left | L | Show the swatch to the left of the text |
Right | R | Show the swatch to the right of the text |
Default: Left
Indices
Index | Description |
---|---|
key | An item's unique key |
Remarks
The ItemSwatchPosition property establishes whether an item's swatch appears to the left of the text or the right. A swatch is a patch of color that can be used to associate an item to a color. By default, this property is set to "Left", but you can set it to "Right."
TIP: Use the DefSwatchPosition property to set the default check box setting for new items.
Example
// Make the swatches appear to the right of all items Set_Property(@Window:".OLE_TREE", "OLE.ItemSwatchPosition[All]", "Right")