ListView.ArrangeIcons 方法

定义

当控件中的项显示为图标时,对其进行排列。Arranges items in the control when they are displayed as icons.

重载

ArrangeIcons()

当控件中的项根据 Alignment 属性的值以图标显示时,对其进行排列。Arranges items in the control when they are displayed as icons based on the value of the Alignment property.

ArrangeIcons(ListViewAlignment)

当控件中的项显示为带有指定的对齐方式设置的图标时,对其进行排列。Arranges items in the control when they are displayed as icons with a specified alignment setting.

ArrangeIcons()

当控件中的项根据 Alignment 属性的值以图标显示时,对其进行排列。Arranges items in the control when they are displayed as icons based on the value of the Alignment property.

public:
 void ArrangeIcons();
public void ArrangeIcons ();
member this.ArrangeIcons : unit -> unit
Public Sub ArrangeIcons ()

注解

仅当 @no__t 属性设置为 LargeIconSmallIcon 时,@no__t 0 方法才有用。The ArrangeIcons method is only useful when the View property is set to LargeIcon or SmallIcon. 调用此版本的 ArrangeIcons 方法会根据 @no__t 1 属性的值排列项。Calling this version of the ArrangeIcons method arranges the items based on the value of the Alignment property. 若要使项基于与 @no__t 0 属性不同的值对齐,请使用第一版 @no__t 方法。To cause the items to be aligned based on a value that differs from that of the Alignment property, use the other version of the ArrangeIcons method.

另请参阅

ArrangeIcons(ListViewAlignment)

当控件中的项显示为带有指定的对齐方式设置的图标时,对其进行排列。Arranges items in the control when they are displayed as icons with a specified alignment setting.

public:
 void ArrangeIcons(System::Windows::Forms::ListViewAlignment value);
public void ArrangeIcons (System.Windows.Forms.ListViewAlignment value);
member this.ArrangeIcons : System.Windows.Forms.ListViewAlignment -> unit
Public Sub ArrangeIcons (value As ListViewAlignment)

参数

value
ListViewAlignment

ListViewAlignment 值之一。One of the ListViewAlignment values.

异常

value 参数中指定的值不是 ListViewAlignment 枚举的成员。The value specified in the value parameter is not a member of the ListViewAlignment enumeration.

注解

仅当 @no__t 属性设置为 LargeIconSmallIcon 时,@no__t 0 方法才有用。The ArrangeIcons method is only useful when the View property is set to LargeIcon or SmallIcon. 此版本的 ArrangeIcons 方法基于 value 参数中指定的 ListViewAlignment 值排列 @no__t 中的图标。This version of the ArrangeIcons method arranges the icons in the ListView based on the ListViewAlignment value specified in the value parameter. 调用此方法不会更改控件的 Alignment 属性的值。Calling this method does not change the value of the Alignment property of the control. 此方法用于在控件上排列图标,其使用的值不同于 Alignment 属性的值。This method is used to arrange icons on the control using a different value than that of the Alignment property. 若要使项根据 @no__t 值0属性的值对齐,请使用第一版 @no__t 方法。To cause the items to be aligned based on the value of the Alignment property, use the other version of the ArrangeIcons method.

另请参阅

适用于