IShellFolderView::ArrangeGrid method (shlobj_core.h)
[ArrangeGrid 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 align to an invisible grid.
Syntax
HRESULT ArrangeGrid();
Return value
Type: HRESULT
If this method succeeds, it returns S_OK. Otherwise, it returns an HRESULT error code.
Remarks
This method has the same effect as selecting View | Arrange Icons By | Align to Grid in Windows Explorer on Windows XP, and also the same as right-clicking the desktop and selecting Arrange Icons By | Align to Grid 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 |