ListViewAlignment ListViewAlignment ListViewAlignment ListViewAlignment Enum

定义

指定项在 ListView 中的对齐方式。Specifies how items align in the ListView.

public enum class ListViewAlignment
public enum ListViewAlignment
type ListViewAlignment = 
Public Enum ListViewAlignment
继承
ListViewAlignmentListViewAlignmentListViewAlignmentListViewAlignment

字段

Default Default Default Default 0

当用户移动某个项时,该项保持在被放下的位置。When the user moves an item, it remains where it is dropped.

Left Left Left Left 1

项与 ListView 控件左对齐。Items are aligned to the left of the ListView control.

SnapToGrid SnapToGrid SnapToGrid SnapToGrid 5

项与控件中的不可见网格对齐。Items are aligned to an invisible grid in the control. 当用户移动某个项时,该项移动到最近的网格结合点。When the user moves an item, it moves to the closest juncture in the grid.

Top Top Top Top 2

项与 ListView 控件顶部对齐。Items are aligned to the top of the ListView control.

注解

使用此枚举的成员来设置的值Alignment属性和ArrangeIcons方法的ListView控件。Use the members of this enumeration to set the value of the Alignment property and the ArrangeIcons method of the ListView control.

适用于

另请参阅