ListViewAlignment 列舉

定義

指定 ListView 中項目的對齊方式。Specifies how items align in the ListView.

public enum class ListViewAlignment
public enum ListViewAlignment
type ListViewAlignment = 
Public Enum ListViewAlignment
繼承
ListViewAlignment

欄位

Default 0

當使用者移動項目時,它將維持在置放的位置。When the user moves an item, it remains where it is dropped.

Left 1

項目對齊 ListView 控制項的左方。Items are aligned to the left of the ListView control.

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 2

項目對齊 ListView 控制項的上方。Items are aligned to the top of the ListView control.

備註

使用這個列舉的成員來設定Alignment屬性的值ArrangeIconsListView控制項的方法。Use the members of this enumeration to set the value of the Alignment property and the ArrangeIcons method of the ListView control.

適用於

另請參閱