IShellFolderView::AutoArrange method (shlobj_core.h)
[AutoArrange is available for use in the operating systems specified in the Requirements section. It may be altered or unavailable in subsequent versions.]
Arranges moved icons so that they tend toward the left side of the viewing area and displace other icons with which they come into contact.
Syntax
HRESULT AutoArrange();
Return value
Type: HRESULT
Returns S_OK if successful, S_FALSE if the view is not in Auto Arrange mode, or an error value otherwise.
Remarks
This method has the same effect as selecting View | Arrange Icons By | Auto Arrange in Windows Explorer on Windows XP, and also the same as right-clicking the desktop and selecting Arrange Icons By | Auto Arrange on Windows XP or Windows Vista.
Requirements
Requirement | Value |
---|---|
Minimum supported client | Windows XP [desktop apps only] |
Minimum supported server | Windows Server 2003 [desktop apps only] |
Target Platform | Windows |
Header | shlobj_core.h |