67 references to LeftRightAlignment
System.Windows.Forms (23)
System\Windows\Forms\Control.cs (8)
10517
protected
LeftRightAlignment
RtlTranslateAlignment(
LeftRightAlignment
align)
10547
protected
LeftRightAlignment
RtlTranslateLeftRight(
LeftRightAlignment
align)
10551
if (align ==
LeftRightAlignment
.Left)
10553
return
LeftRightAlignment
.Right;
10555
else if (align ==
LeftRightAlignment
.Right)
10557
return
LeftRightAlignment
.Left;
System\Windows\Forms\Controls\DateTimePicker\DateTimePicker.cs (5)
472
[DefaultValue(
LeftRightAlignment
.Left)]
476
public
LeftRightAlignment
DropDownAlign
478
get => (_style & PInvoke.DTS_RIGHTALIGN) != 0 ?
LeftRightAlignment
.Right :
LeftRightAlignment
.Left;
483
SetStyleBit(value ==
LeftRightAlignment
.Right, PInvoke.DTS_RIGHTALIGN);
System\Windows\Forms\Controls\UpDown\UpDownBase.cs (7)
23
private const
LeftRightAlignment
DefaultUpDownAlign =
LeftRightAlignment
.Right;
30
private
LeftRightAlignment
_upDownAlign = DefaultUpDownAlign;
422
[DefaultValue(
LeftRightAlignment
.Right)]
424
public
LeftRightAlignment
UpDownAlign
870
LeftRightAlignment
updownAlign = UpDownAlign;
874
if (updownAlign ==
LeftRightAlignment
.Left)
System\Windows\Forms\SystemInformation.cs (3)
617
public static
LeftRightAlignment
PopupMenuAlignment
619
?
LeftRightAlignment
.Left :
LeftRightAlignment
.Right;
System.Windows.Forms.Tests (44)
System\Windows\Forms\ControlTests.cs (4)
1414
public new
LeftRightAlignment
RtlTranslateAlignment(
LeftRightAlignment
align) => base.RtlTranslateAlignment(align);
1422
public new
LeftRightAlignment
RtlTranslateLeftRight(
LeftRightAlignment
align) => base.RtlTranslateLeftRight(align);
System\Windows\Forms\ControlTests.Methods.cs (10)
6884
public void Control_RtlTranslateAlignment_InvokeLeftRightAlignment_ReturnsExpected(RightToLeft rightToLeft,
LeftRightAlignment
align,
LeftRightAlignment
expected)
6951
foreach (
LeftRightAlignment
align in Enum.GetValues(typeof(
LeftRightAlignment
)))
6957
yield return new object[] { RightToLeft.Yes,
LeftRightAlignment
.Left,
LeftRightAlignment
.Right };
6958
yield return new object[] { RightToLeft.Yes,
LeftRightAlignment
.Right,
LeftRightAlignment
.Left };
6963
public void Control_RtlTranslateLeftRight_Invoke_ReturnsExpected(RightToLeft rightToLeft,
LeftRightAlignment
align,
LeftRightAlignment
expected)
System\Windows\Forms\DateTimePickerTests.cs (6)
71
Assert.Equal(
LeftRightAlignment
.Left, control.DropDownAlign);
356
_dateTimePicker.DropDownAlign.Should().Be(
LeftRightAlignment
.Left);
358
_dateTimePicker.DropDownAlign =
LeftRightAlignment
.Right;
359
_dateTimePicker.DropDownAlign.Should().Be(
LeftRightAlignment
.Right);
361
_dateTimePicker.DropDownAlign =
LeftRightAlignment
.Left;
362
_dateTimePicker.DropDownAlign.Should().Be(
LeftRightAlignment
.Left);
System\Windows\Forms\DomainUpDownTests.cs (1)
143
_sub.UpDownAlign.Should().Be(
LeftRightAlignment
.Right);
System\Windows\Forms\SystemInformationTests.cs (1)
611
LeftRightAlignment
alignment = SystemInformation.PopupMenuAlignment;
System\Windows\Forms\UpDownBaseTests.cs (22)
126
Assert.Equal(
LeftRightAlignment
.Right, control.UpDownAlign);
1433
yield return new object[] { borderStyle, rightToLeft,
LeftRightAlignment
.Left };
1434
yield return new object[] { borderStyle, rightToLeft,
LeftRightAlignment
.Right };
1441
public void UpDownBase_UpDownAlign_Set_GetReturnsExpected(BorderStyle borderStyle, RightToLeft rightToLeft,
LeftRightAlignment
value)
1464
yield return new object[] { borderStyle, rightToLeft,
LeftRightAlignment
.Left, 1 };
1465
yield return new object[] { borderStyle, rightToLeft,
LeftRightAlignment
.Right, 0 };
1472
public void UpDownBase_UpDownAlign_SetWithHandle_GetReturnsExpected(BorderStyle borderStyle, RightToLeft rightToLeft,
LeftRightAlignment
value, int expectedInvalidatedCallCount)
1504
[InvalidEnumData<
LeftRightAlignment
>]
1505
public void UpDownBase_UpDownAlign_SetInvalidValue_ThrowsInvalidEnumArgumentException(
LeftRightAlignment
value)
1769
foreach (
LeftRightAlignment
upDownAlign in Enum.GetValues(typeof(
LeftRightAlignment
)))
1780
public void UpDownBase_OnFontChanged_Invoke_CallsFontChanged(BorderStyle borderStyle, RightToLeft rightToLeft,
LeftRightAlignment
upDownAlign, EventArgs eventArgs)
1819
foreach (
LeftRightAlignment
upDownAlign in Enum.GetValues(typeof(
LeftRightAlignment
)))
1830
public void UpDownBase_OnHandleCreated_Invoke_CallsHandleCreated(BorderStyle borderStyle, RightToLeft rightToLeft,
LeftRightAlignment
upDownAlign, EventArgs eventArgs)
1863
public void UpDownBase_OnHandleCreated_InvokeWithHandle_CallsHandleCreated(BorderStyle borderStyle, RightToLeft rightToLeft,
LeftRightAlignment
upDownAlign, EventArgs eventArgs)
1960
foreach (
LeftRightAlignment
upDownAlign in Enum.GetValues(typeof(
LeftRightAlignment
)))
1972
public void UpDownBase_OnLayout_Invoke_CallsLayout(BorderStyle borderStyle, RightToLeft rightToLeft,
LeftRightAlignment
upDownAlign, LayoutEventArgs eventArgs)
2504
foreach (
LeftRightAlignment
upDownAlign in Enum.GetValues(typeof(
LeftRightAlignment
)))
2517
public void UpDownBase_OnTextBoxResize_Invoke_CallsTextBoxResize(BorderStyle borderStyle, RightToLeft rightToLeft,
LeftRightAlignment
upDownAlign, object source, EventArgs eventArgs)