ListView.arrangeIcons

Overview | Methods | This Package | All Packages

ListView.arrangeIcons

Arranges items in Large Icon or Small Icon view.

Syntax

public void arrangeIcons()

public void arrangeIcons( int value )

Parameters

value

An integer that indicates how to arrange the icons in Large Icon or Small Icon view. The following constants are possible values: com.ms.win32.LVA_DEFAULT aligns items according to the current value of the list view's current alignment property. com.ms.win32.LVA_ALIGNLEFT aligns items along the left edge of the control. com.ms.win32.LVA_ALIGNTOP aligns items along the top edge of the control. com.ms.win32.LVA_SNAPTOGRID snaps all icons to the nearest grid position.

Exceptions

WFCInvalidArgumentException thrown if the specified value is not one of the supported icon arrangement constants.

Remarks

Using this method with no parameters arranges the items according to the current value of the list view's alignment property.