Structure Object Property: Alignment 

Purpose

Specifies the alignment of a Structure object.

Return Value

type CTreeStructureAlign.

Description

There are four valid values for the Alignment property:

Alignment property values

Value

Description

trvTreeAlignLeft = 0

The item’s alignment is left-justified. For hierarchy items, the expander symbol is left-aligned within the node’s level.

trvTreeAlignCenter = 1

The item is centered. For hierarchy items, the expander symbol is centered within the node’s level.

trvTreeAlignRight = 2

The item’s alignment is right-justified. For hierarchy items, the expander symbol is right-aligned within the node’s level.

trvTreeAlignAuto = 3

The item is aligned according to the size of the item. For hierarchy and image items, the alignment depends on the width of the corresponding bitmap or icon. For text items, the alignment depends on the text length and the selected font.