This documentation is archived and is not being maintained.

ListView.AutoArrange Property

Gets or sets whether icons are automatically kept arranged.

[Visual Basic]
Public Property AutoArrange As Boolean
public bool AutoArrange {get; set;}
public: __property bool get_AutoArrange();
public: __property void set_AutoArrange(bool);
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.


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.


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