67 references to LeftRightAlignment
System.Windows.Forms (23)
System\Windows\Forms\Control.cs (8)
10484protected LeftRightAlignment RtlTranslateAlignment(LeftRightAlignment align) 10514protected LeftRightAlignment RtlTranslateLeftRight(LeftRightAlignment align) 10518if (align == LeftRightAlignment.Left) 10520return LeftRightAlignment.Right; 10522else if (align == LeftRightAlignment.Right) 10524return LeftRightAlignment.Left;
System\Windows\Forms\Controls\DateTimePicker\DateTimePicker.cs (5)
472[DefaultValue(LeftRightAlignment.Left)] 476public LeftRightAlignment DropDownAlign 478get => (_style & PInvoke.DTS_RIGHTALIGN) != 0 ? LeftRightAlignment.Right : LeftRightAlignment.Left; 483SetStyleBit(value == LeftRightAlignment.Right, PInvoke.DTS_RIGHTALIGN);
System\Windows\Forms\Controls\UpDown\UpDownBase.cs (7)
23private const LeftRightAlignment DefaultUpDownAlign = LeftRightAlignment.Right; 30private LeftRightAlignment _upDownAlign = DefaultUpDownAlign; 422[DefaultValue(LeftRightAlignment.Right)] 424public LeftRightAlignment UpDownAlign 870LeftRightAlignment updownAlign = UpDownAlign; 874if (updownAlign == LeftRightAlignment.Left)
System\Windows\Forms\SystemInformation.cs (3)
617public static LeftRightAlignment PopupMenuAlignment 619? LeftRightAlignment.Left : LeftRightAlignment.Right;
System.Windows.Forms.Tests (44)
System\Windows\Forms\ControlTests.cs (4)
1414public new LeftRightAlignment RtlTranslateAlignment(LeftRightAlignment align) => base.RtlTranslateAlignment(align); 1422public new LeftRightAlignment RtlTranslateLeftRight(LeftRightAlignment align) => base.RtlTranslateLeftRight(align);
System\Windows\Forms\ControlTests.Methods.cs (10)
6875public void Control_RtlTranslateAlignment_InvokeLeftRightAlignment_ReturnsExpected(RightToLeft rightToLeft, LeftRightAlignment align, LeftRightAlignment expected) 6942foreach (LeftRightAlignment align in Enum.GetValues(typeof(LeftRightAlignment))) 6948yield return new object[] { RightToLeft.Yes, LeftRightAlignment.Left, LeftRightAlignment.Right }; 6949yield return new object[] { RightToLeft.Yes, LeftRightAlignment.Right, LeftRightAlignment.Left }; 6954public void Control_RtlTranslateLeftRight_Invoke_ReturnsExpected(RightToLeft rightToLeft, LeftRightAlignment align, LeftRightAlignment expected)
System\Windows\Forms\DateTimePickerTests.cs (6)
71Assert.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)
611LeftRightAlignment alignment = SystemInformation.PopupMenuAlignment;
System\Windows\Forms\UpDownBaseTests.cs (22)
126Assert.Equal(LeftRightAlignment.Right, control.UpDownAlign); 1433yield return new object[] { borderStyle, rightToLeft, LeftRightAlignment.Left }; 1434yield return new object[] { borderStyle, rightToLeft, LeftRightAlignment.Right }; 1441public void UpDownBase_UpDownAlign_Set_GetReturnsExpected(BorderStyle borderStyle, RightToLeft rightToLeft, LeftRightAlignment value) 1464yield return new object[] { borderStyle, rightToLeft, LeftRightAlignment.Left, 1 }; 1465yield return new object[] { borderStyle, rightToLeft, LeftRightAlignment.Right, 0 }; 1472public void UpDownBase_UpDownAlign_SetWithHandle_GetReturnsExpected(BorderStyle borderStyle, RightToLeft rightToLeft, LeftRightAlignment value, int expectedInvalidatedCallCount) 1504[InvalidEnumData<LeftRightAlignment>] 1505public void UpDownBase_UpDownAlign_SetInvalidValue_ThrowsInvalidEnumArgumentException(LeftRightAlignment value) 1769foreach (LeftRightAlignment upDownAlign in Enum.GetValues(typeof(LeftRightAlignment))) 1780public void UpDownBase_OnFontChanged_Invoke_CallsFontChanged(BorderStyle borderStyle, RightToLeft rightToLeft, LeftRightAlignment upDownAlign, EventArgs eventArgs) 1819foreach (LeftRightAlignment upDownAlign in Enum.GetValues(typeof(LeftRightAlignment))) 1830public void UpDownBase_OnHandleCreated_Invoke_CallsHandleCreated(BorderStyle borderStyle, RightToLeft rightToLeft, LeftRightAlignment upDownAlign, EventArgs eventArgs) 1863public void UpDownBase_OnHandleCreated_InvokeWithHandle_CallsHandleCreated(BorderStyle borderStyle, RightToLeft rightToLeft, LeftRightAlignment upDownAlign, EventArgs eventArgs) 1960foreach (LeftRightAlignment upDownAlign in Enum.GetValues(typeof(LeftRightAlignment))) 1972public void UpDownBase_OnLayout_Invoke_CallsLayout(BorderStyle borderStyle, RightToLeft rightToLeft, LeftRightAlignment upDownAlign, LayoutEventArgs eventArgs) 2504foreach (LeftRightAlignment upDownAlign in Enum.GetValues(typeof(LeftRightAlignment))) 2517public void UpDownBase_OnTextBoxResize_Invoke_CallsTextBoxResize(BorderStyle borderStyle, RightToLeft rightToLeft, LeftRightAlignment upDownAlign, object source, EventArgs eventArgs)