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:

ValueAbbr.Description
LeftLShow the swatch to the left of the text
RightRShow the swatch to the right of the text

Default: Left

Indices

IndexDescription
keyAn 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")

See Also

ItemItemSwatchColorItemSwatchSize

  • No labels