Version

ExpansionIndicatorPadding Property

Gets or sets the amount of padding to use on the left and right sides of the expansion indicator.
Syntax
'Declaration
 
Public Property ExpansionIndicatorPadding As Integer
public int ExpansionIndicatorPadding {get; set;}
Remarks

Determines the amount of padding on the left and right of the expansion indicator. The value specified is applied to each side. For example, a value of 3 indicates 3 pixels of padding on the left and 3 pixels of padding on the right.

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

When ViewStlye 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 ViewStlye is WVista, the Indent property is ignored, and the indentation is automatically calculated to fit the ExpansionIndicatorSize and ExpansionIndicatorPadding.

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