Export (0) Print
Expand All

ListView.AutoArrange Property

Gets or sets whether icons are automatically kept arranged.

[Visual Basic]
Public Property AutoArrange As Boolean
[C#]
public bool AutoArrange {get; set;}
[C++]
public: __property bool get_AutoArrange();
public: __property void set_AutoArrange(bool);
[JScript]
public function get AutoArrange() : Boolean;
public function set AutoArrange(Boolean);

Property Value

true if icons are automatically kept arranged and snapped to the grid; otherwise, false. The default is true.

Remarks

The AutoArrange property only arranges items in the ListView control when the View property is set to View.LargeIcon or View.SmallIcon. To change the alignment of items in the ListView control, use the Alignment property. You can use AutoArrange to ensure that all items in your ListView control are automatically arranged to avoid overlapping at run time.

Requirements

Platforms: Windows 98, Windows NT 4.0, Windows Millennium Edition, Windows 2000, Windows XP Home Edition, Windows XP Professional, Windows Server 2003 family

See Also

ListView Class | ListView Members | System.Windows.Forms Namespace | Alignment

Show:
© 2014 Microsoft