Version

ExpansionIndicatorSize Property

Gets or sets the size of the expansion indicators.
Syntax
'Declaration
 
Public Property ExpansionIndicatorSize As Size
public Size ExpansionIndicatorSize {get; set;}
Remarks

ExpansionIndicatorSize, ExpansionIndicatorPadding, and Indent are closely related and the behavior of these three properties depends on the ViewStyle.

When ViewStyle is Standard, the actual indentation of the nodes in the tree will be the Indent property, unless the Indent is too small. If the Indent property value is too small to fit the ExpansionIndicatorSize and it's padding, then it will be enlarged to fit.

When ViewStyle is Vista, the Indent property is ignored, and the indentation is automatically calculated to fit the ExpansionIndicatorSize and ExpansionIndicatorPadding.

Note: When using Themes, the expansion indicators are drawn using the Windows Theme API. Themed expansion indicators have a maximum size of 9x9 and must be square (not rectangular). Specifying a larger size will leave extra padding around the expansion indicator, but the drawn image will not get any bigger.

Requirements

Target Platforms: Windows 10, Windows 8.1, Windows 8, Windows 7, Windows Server 2012, Windows 7, Windows Vista SP1 or later, Windows XP SP3, Windows Server 2008 (Server Core not supported), Windows Server 2008 R2 (Server Core supported with SP1 or later), Windows Server 2003 SP2

See Also