38 references to ListViewAlignment
System.Windows.Forms (11)
System\Windows\Forms\Controls\ListView\ListView.cs (11)
52private ListViewAlignment _alignStyle = ListViewAlignment.Top; 274[DefaultValue(ListViewAlignment.Top)] 277public ListViewAlignment Alignment 518(!value && Alignment == ListViewAlignment.Left && IsHandleCreated) || 645case ListViewAlignment.Top: 648case ListViewAlignment.Left: 2234public void ArrangeIcons(ListViewAlignment value) 2245case (ListViewAlignment)PInvoke.LVA_ALIGNLEFT: 2246case (ListViewAlignment)PInvoke.LVA_ALIGNTOP: 2247case (ListViewAlignment)PInvoke.LVA_SNAPTOGRID:
System.Windows.Forms.Tests (27)
System\Windows\Forms\ListViewTests.cs (27)
27Assert.Equal(ListViewAlignment.Top, control.Alignment); 274[EnumData<ListViewAlignment>] 275public void ListView_Alignment_Set_GetReturnsExpected(ListViewAlignment value) 291[InlineData(ListViewAlignment.Default, 2, 1)] 292[InlineData(ListViewAlignment.Top, 0, 0)] 293[InlineData(ListViewAlignment.Left, 2, 1)] 294[InlineData(ListViewAlignment.SnapToGrid, 2, 1)] 295public void ListView_Alignment_SetWithHandle_GetReturnsExpected(ListViewAlignment value, int expectedInvalidatedCallCount, int expectedCreatedCallCount) 323[InvalidEnumData<ListViewAlignment>] 324public void ListView_Alignment_SetInvalidValue_ThrowsInvalidEnumArgumentException(ListViewAlignment value) 797foreach (ListViewAlignment alignment in Enum.GetValues(typeof(ListViewAlignment))) 815public void ListView_CheckBoxes_Set_GetReturnsExpected(bool useCompatibleStateImageBehavior, View view, ListViewAlignment alignment, ImageList stateImageList, bool value) 841public void ListView_CheckBoxes_SetAutoArrange_GetReturnsExpected(bool useCompatibleStateImageBehavior, View view, ListViewAlignment alignment, ImageList stateImageList, bool value) 903foreach (ListViewAlignment alignment in Enum.GetValues(typeof(ListViewAlignment))) 917if (alignment != ListViewAlignment.Left) 941yield return new object[] { false, View.Details, ListViewAlignment.Left, imageListFactory(), true, 1, 0, 2, 1 }; 942yield return new object[] { false, View.LargeIcon, ListViewAlignment.Left, imageListFactory(), true, 2, 1, 4, 2 }; 943yield return new object[] { false, View.List, ListViewAlignment.Left, imageListFactory(), true, 1, 1, 2, 2 }; 944yield return new object[] { false, View.SmallIcon, ListViewAlignment.Left, imageListFactory(), true, 2, 1, 4, 2 }; 945yield return new object[] { false, View.Details, ListViewAlignment.Left, imageListFactory(), false, 0, 0, 1, 0 }; 946yield return new object[] { false, View.LargeIcon, ListViewAlignment.Left, imageListFactory(), false, 0, 0, 2, 1 }; 947yield return new object[] { false, View.List, ListViewAlignment.Left, imageListFactory(), false, 0, 0, 1, 1 }; 948yield return new object[] { false, View.SmallIcon, ListViewAlignment.Left, imageListFactory(), false, 0, 0, 2, 1 }; 954public void ListView_CheckBoxes_SetWithHandle_GetReturnsExpected(bool useCompatibleStateImageBehavior, View view, ListViewAlignment alignment, ImageList stateImageList, bool value, int expectedInvalidatedCallCount1, int expectedCreatedCallCount1, int expectedInvalidatedCallCount2, int expectedCreatedCallCount2) 997public void ListView_CheckBoxes_SetAutoArrangeWithHandle_GetReturnsExpected(bool useCompatibleStateImageBehavior, View view, ListViewAlignment alignment, ImageList stateImageList, bool value, int expectedInvalidatedCallCount1, int expectedCreatedCallCount1, int expectedInvalidatedCallCount2, int expectedCreatedCallCount2)