System.Windows.Forms.ListView.ArrangeIcons Method

Arranges items in the control when they are displayed as icons with a specified alignment setting.

Syntax

public void ArrangeIcons (ListViewAlignment value)

Parameters

value
One of the System.Windows.Forms.ListViewAlignment values.

Remarks

The ListView.ArrangeIcons(ListViewAlignment) method is only useful when the ListView.View property is set to View.LargeIcon or View.SmallIcon. This version of the ListView.ArrangeIcons(ListViewAlignment) method arranges the icons in the System.Windows.Forms.ListView based on the System.Windows.Forms.ListViewAlignment value specified in the value parameter. Calling this method does not change the value of the ListView.Alignment property of the control. This method is used to arrange icons on the control using a different value than that of the ListView.Alignment property. To cause the items to be aligned based on the value of the ListView.Alignment property, use the other version of the ListView.ArrangeIcons(ListViewAlignment) method.

Requirements

Namespace: System.Windows.Forms
Assembly: System.Windows.Forms (in System.Windows.Forms.dll)
Assembly Versions: 1.0.5000.0, 2.0.0.0