ListView.Alignment Property

Definition

获取或设置控件中项的对齐方式。Gets or sets the alignment of items in the control.

public:
 property System::Windows::Forms::ListViewAlignment Alignment { System::Windows::Forms::ListViewAlignment get(); void set(System::Windows::Forms::ListViewAlignment value); };
public System.Windows.Forms.ListViewAlignment Alignment { get; set; }
member this.Alignment : System.Windows.Forms.ListViewAlignment with get, set
Public Property Alignment As ListViewAlignment

Property Value

ListViewAlignment

ListViewAlignment 值之一。One of the ListViewAlignment values. 默认为 TopThe default is Top.

Exceptions

指定的值不是 ListViewAlignment 值之一。The value specified is not one of the ListViewAlignment values.

Remarks

仅当 View 属性设置为 LargeIconSmallIcon时,Alignment 属性才会影响对齐。The Alignment property only affects alignment when the View property is set to LargeIcon or SmallIcon.

Note

此属性在 View 属性设置为 List时不起作用。This property has no effect with the View property is set to List.

Applies to

See also