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