แก้ไข

แชร์ผ่าน


ListView.ArrangeIcons Method

Definition

Arranges items in the control when they are displayed as icons.

Overloads

ArrangeIcons()

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()

Source:
ListView.cs
Source:
ListView.cs
Source:
ListView.cs

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 ()

Remarks

The ArrangeIcons method is only useful when the View property is set to LargeIcon or SmallIcon. Calling this version of the ArrangeIcons method arranges the items based on the value of the Alignment property. 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.

See also

Applies to

ArrangeIcons(ListViewAlignment)

Source:
ListView.cs
Source:
ListView.cs
Source:
ListView.cs

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)

Parameters

value
ListViewAlignment

One of the ListViewAlignment values.

Exceptions

The value specified in the value parameter is not a member of the ListViewAlignment enumeration.

Remarks

The ArrangeIcons method is only useful when the View property is set to LargeIcon or SmallIcon. This version of the ArrangeIcons method arranges the icons in the ListView based on the ListViewAlignment value specified in the value parameter. Calling this method does not change the value of the Alignment property of the control. This method is used to arrange icons on the control using a different value than that of the Alignment property. To cause the items to be aligned based on the value of the Alignment property, use the other version of the ArrangeIcons method.

See also

Applies to