RAD Studio VCL Reference
ContentsIndex
PreviousUpNext
TCustomListView.Arrange Method

Arranges icons in a list view that has a ViewStyle of vslcon or vsSmallIcon.

Pascal
procedure Arrange(Code: TListArrangement);
C++
__fastcall Arrange(TListArrangement Code);

Call Arrange to clean up the arrangement of the icons when the ViewStyle property is vslcon or vsSmallIcon. The Code parameter specifies how to arrange the icons. These are the possible values for the Code parameter:

Value 
Meaning 
arAlignBottom  
Aligns items along the bottom edge of the list view.  
arAlignLeft  
Aligns items along the left edge of the window.  
arAlignRight  
Aligns items along the right edge of the window.  
arAlignTop  
Aligns items along the top edge of the window.  
arDefault  
Aligns items according to the style associated with the list view when the window was created. For TCustomListView, this is aligned along the top.  
arSnapToGrid  
Snaps all icons to the nearest grid position. This value is not supported if the application is running in virtual mode.  

 

Copyright(C) 2009 Embarcadero Technologies, Inc. All Rights Reserved.
What do you think about this topic? Send feedback!