ListView.Alignment 属性

定义

获取或设置控件中项的对齐方式。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

属性值

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

异常

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

注解

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

备注

此属性不起作用,View 属性设置为 ListThis property has no effect with the View property is set to List.

适用于

另请参阅