255 references to ToolStripTextDirection
System.Windows.Forms (30)
System\Windows\Forms\Controls\ToolStrips\ToolStrip.cs (7)
1687[DefaultValue(ToolStripTextDirection.Horizontal)] 1690public virtual ToolStripTextDirection TextDirection 1694ToolStripTextDirection textDirection = Properties.GetValueOrDefault(s_propTextDirection, ToolStripTextDirection.Horizontal); 1696if (textDirection == ToolStripTextDirection.Inherit) 1698textDirection = ToolStripTextDirection.Horizontal; 1706Properties.AddOrRemoveValue(s_propTextDirection, value, defaultValue: ToolStripTextDirection.Horizontal);
System\Windows\Forms\Controls\ToolStrips\ToolStripControlHost.cs (2)
419[DefaultValue(ToolStripTextDirection.Horizontal)] 420public override ToolStripTextDirection TextDirection
System\Windows\Forms\Controls\ToolStrips\ToolStripDropDown.cs (2)
776[DefaultValue(ToolStripTextDirection.Horizontal)] 779public override ToolStripTextDirection TextDirection
System\Windows\Forms\Controls\ToolStrips\ToolStripDropDownButton.ToolStripDropDownButtonInternalLayout.cs (2)
36if (_ownerItem.TextDirection == ToolStripTextDirection.Horizontal) 55if (_ownerItem.TextDirection == ToolStripTextDirection.Horizontal)
System\Windows\Forms\Controls\ToolStrips\ToolStripItem.cs (10)
1900public virtual ToolStripTextDirection TextDirection 1904ToolStripTextDirection textDirection = Properties.GetValueOrDefault(s_textDirectionProperty, ToolStripTextDirection.Inherit); 1906if (textDirection == ToolStripTextDirection.Inherit) 1915textDirection = (Owner is null) ? ToolStripTextDirection.Horizontal : Owner.TextDirection; 1924Properties.AddOrRemoveValue(s_textDirectionProperty, value, defaultValue: ToolStripTextDirection.Inherit); 2970ToolStripTextDirection textDirection = Properties.GetValueOrDefault(s_textDirectionProperty, ToolStripTextDirection.Inherit); 2972if (textDirection == ToolStripTextDirection.Inherit) 3417public virtual void ResetTextDirection() => TextDirection = ToolStripTextDirection.Inherit;
System\Windows\Forms\Controls\ToolStrips\ToolStripItem.ToolStripItemInternalLayout.cs (1)
148if (Owner.TextDirection != ToolStripTextDirection.Horizontal)
System\Windows\Forms\Controls\ToolStrips\ToolStripItemTextRenderEventArgs.cs (1)
101public ToolStripTextDirection TextDirection { get; set; }
System\Windows\Forms\Controls\ToolStrips\ToolStripRenderer.cs (2)
874if (e.TextDirection != ToolStripTextDirection.Horizontal && textRect.Width > 0 && textRect.Height > 0) 883textBmp.RotateFlip((e.TextDirection == ToolStripTextDirection.Vertical90) ? RotateFlipType.Rotate90FlipNone : RotateFlipType.Rotate270FlipNone);
System\Windows\Forms\Controls\ToolStrips\ToolStripSeparator.cs (2)
219[DefaultValue(ToolStripTextDirection.Horizontal)] 220public override ToolStripTextDirection TextDirection
System\Windows\Forms\Controls\ToolStrips\ToolStripSplitButton.ToolStripSplitButtonButton.cs (1)
63public override ToolStripTextDirection TextDirection
System.Windows.Forms.Tests (225)
System\Windows\Forms\MdiControlStripTests.cs (1)
141Assert.Equal(ToolStripTextDirection.Horizontal, mdiControlStrip.TextDirection);
System\Windows\Forms\MenuStripTests.cs (1)
139Assert.Equal(ToolStripTextDirection.Horizontal, control.TextDirection);
System\Windows\Forms\StatusStripTests.cs (1)
142Assert.Equal(ToolStripTextDirection.Horizontal, control.TextDirection);
System\Windows\Forms\ToolStripButtonTests.cs (11)
87Assert.Equal(ToolStripTextDirection.Horizontal, item.TextDirection); 168Assert.Equal(ToolStripTextDirection.Horizontal, item.TextDirection); 255Assert.Equal(ToolStripTextDirection.Horizontal, item.TextDirection); 345Assert.Equal(ToolStripTextDirection.Horizontal, item.TextDirection); 433Assert.Equal(ToolStripTextDirection.Horizontal, item.TextDirection); 531Assert.Equal(ToolStripTextDirection.Horizontal, item.TextDirection); 1282TextDirection = ToolStripTextDirection.Vertical270, 1317Assert.Equal(ToolStripTextDirection.Vertical270, e.TextDirection); 1373TextDirection = ToolStripTextDirection.Vertical270, 1408Assert.Equal(ToolStripTextDirection.Vertical270, e.TextDirection); 1470TextDirection = ToolStripTextDirection.Vertical270,
System\Windows\Forms\ToolStripControlHostTests.cs (13)
116Assert.Equal(ToolStripTextDirection.Horizontal, item.TextDirection); 2330yield return new object[] { ToolStripTextDirection.Inherit, ToolStripTextDirection.Horizontal }; 2331yield return new object[] { ToolStripTextDirection.Horizontal, ToolStripTextDirection.Horizontal }; 2332yield return new object[] { ToolStripTextDirection.Vertical90, ToolStripTextDirection.Vertical90 }; 2333yield return new object[] { ToolStripTextDirection.Vertical270, ToolStripTextDirection.Vertical270 }; 2338public void ToolStripControlHost_TextDirection_Set_GetReturnsExpected(ToolStripTextDirection value, ToolStripTextDirection expected) 2353[InvalidEnumData<ToolStripTextDirection>] 2354public void ToolStripControlHost_TextDirection_SetInvalid_ThrowsInvalidEnumArgumentException(ToolStripTextDirection value)
System\Windows\Forms\ToolStripDropDownItemTests.cs (4)
87Assert.Equal(ToolStripTextDirection.Horizontal, item.TextDirection); 176Assert.Equal(ToolStripTextDirection.Horizontal, item.TextDirection); 275Assert.Equal(ToolStripTextDirection.Horizontal, item.TextDirection); 383Assert.Equal(ToolStripTextDirection.Horizontal, item.TextDirection);
System\Windows\Forms\ToolStripDropDownTests.cs (21)
147Assert.Equal(ToolStripTextDirection.Horizontal, control.TextDirection); 2748[InlineData(ToolStripTextDirection.Inherit, ToolStripTextDirection.Horizontal, 1)] 2749[InlineData(ToolStripTextDirection.Horizontal, ToolStripTextDirection.Horizontal, 1)] 2750[InlineData(ToolStripTextDirection.Vertical90, ToolStripTextDirection.Vertical90, 1)] 2751[InlineData(ToolStripTextDirection.Vertical270, ToolStripTextDirection.Vertical270, 1)] 2752public void ToolStripDropDown_TextDirection_Set_GetReturnsExpected(ToolStripTextDirection value, ToolStripTextDirection expected, int expectedLayoutCallCount) 2777[InlineData(ToolStripTextDirection.Inherit, ToolStripTextDirection.Horizontal, 1)] 2778[InlineData(ToolStripTextDirection.Horizontal, ToolStripTextDirection.Horizontal, 1)] 2779[InlineData(ToolStripTextDirection.Vertical90, ToolStripTextDirection.Vertical90, 1)] 2780[InlineData(ToolStripTextDirection.Vertical270, ToolStripTextDirection.Vertical270, 1)] 2781public void ToolStripDropDown_TextDirection_SetWithHandle_GetReturnsExpected(ToolStripTextDirection value, ToolStripTextDirection expected, int expectedLayoutCallCount)
System\Windows\Forms\ToolStripItemTests.cs (80)
86Assert.Equal(ToolStripTextDirection.Horizontal, item.TextDirection); 171Assert.Equal(ToolStripTextDirection.Horizontal, item.TextDirection); 266Assert.Equal(ToolStripTextDirection.Horizontal, item.TextDirection); 8496[InlineData(ToolStripTextDirection.Inherit, ToolStripTextDirection.Horizontal)] 8497[InlineData(ToolStripTextDirection.Horizontal, ToolStripTextDirection.Horizontal)] 8498[InlineData(ToolStripTextDirection.Vertical90, ToolStripTextDirection.Vertical90)] 8499[InlineData(ToolStripTextDirection.Vertical270, ToolStripTextDirection.Vertical270)] 8500public void ToolStripItem_TextDirection_GetWithOwner_ReturnsExpected(ToolStripTextDirection ownerTextDirection, ToolStripTextDirection expected) 8514[InlineData(ToolStripTextDirection.Inherit, ToolStripTextDirection.Horizontal)] 8515[InlineData(ToolStripTextDirection.Horizontal, ToolStripTextDirection.Horizontal)] 8516[InlineData(ToolStripTextDirection.Vertical90, ToolStripTextDirection.Vertical90)] 8517[InlineData(ToolStripTextDirection.Vertical270, ToolStripTextDirection.Vertical270)] 8518public void ToolStripItem_TextDirection_GetWithParent_ReturnsExpected(ToolStripTextDirection parentTextDirection, ToolStripTextDirection expected) 8536TextDirection = ToolStripTextDirection.Vertical90 8540TextDirection = ToolStripTextDirection.Vertical270 8547Assert.Equal(ToolStripTextDirection.Vertical270, item.TextDirection); 8552yield return new object[] { ToolStripTextDirection.Inherit, ToolStripTextDirection.Horizontal }; 8553yield return new object[] { ToolStripTextDirection.Horizontal, ToolStripTextDirection.Horizontal }; 8554yield return new object[] { ToolStripTextDirection.Vertical90, ToolStripTextDirection.Vertical90 }; 8555yield return new object[] { ToolStripTextDirection.Vertical270, ToolStripTextDirection.Vertical270 }; 8560public void ToolStripItem_TextDirection_Set_GetReturnsExpected(ToolStripTextDirection value, ToolStripTextDirection expected) 8575yield return new object[] { ToolStripTextDirection.Horizontal, ToolStripTextDirection.Inherit, ToolStripTextDirection.Horizontal }; 8576yield return new object[] { ToolStripTextDirection.Horizontal, ToolStripTextDirection.Horizontal, ToolStripTextDirection.Horizontal }; 8577yield return new object[] { ToolStripTextDirection.Horizontal, ToolStripTextDirection.Vertical90, ToolStripTextDirection.Vertical90 }; 8578yield return new object[] { ToolStripTextDirection.Horizontal, ToolStripTextDirection.Vertical270, ToolStripTextDirection.Vertical270 }; 8583public void ToolStripItem_TextDirection_SetWithOwner_GetReturnsExpected(ToolStripTextDirection ownerTextDirection, ToolStripTextDirection value, ToolStripTextDirection expected) 8625public void ToolStripItem_TextDirection_SetWithOwnerWithHandle_GetReturnsExpected(ToolStripTextDirection ownerTextDirection, ToolStripTextDirection value, ToolStripTextDirection expected) 8680public void ToolStripItem_TextDirection_SetWithParent_GetReturnsExpected(ToolStripTextDirection parentTextDirection, ToolStripTextDirection value, ToolStripTextDirection expected) 8715public void ToolStripItem_TextDirection_SetWithParentWithHandle_GetReturnsExpected(ToolStripTextDirection parentTextDirection, ToolStripTextDirection value, ToolStripTextDirection expected) 8762[InvalidEnumData<ToolStripTextDirection>] 8763public void ToolStripItem_TextDirection_SetInvalid_ThrowsInvalidEnumArgumentException(ToolStripTextDirection value) 8776item.TextDirection = ToolStripTextDirection.Vertical270; 8777Assert.Equal(ToolStripTextDirection.Vertical270, item.TextDirection); 8780item.TextDirection = ToolStripTextDirection.Vertical90; 8781Assert.Equal(ToolStripTextDirection.Vertical90, item.TextDirection); 8784item.TextDirection = ToolStripTextDirection.Horizontal; 8785Assert.Equal(ToolStripTextDirection.Horizontal, item.TextDirection); 8789Assert.Equal(ToolStripTextDirection.Horizontal, item.TextDirection); 8800item.TextDirection = ToolStripTextDirection.Vertical270; 8801Assert.Equal(ToolStripTextDirection.Vertical270, item.TextDirection); 8804item.TextDirection = ToolStripTextDirection.Vertical90; 8805Assert.Equal(ToolStripTextDirection.Vertical90, item.TextDirection); 8808item.TextDirection = ToolStripTextDirection.Horizontal; 8809Assert.Equal(ToolStripTextDirection.Horizontal, item.TextDirection); 8813Assert.Equal(ToolStripTextDirection.Horizontal, item.TextDirection); 14241Assert.Equal(ToolStripTextDirection.Horizontal, item.TextDirection); 14244item.TextDirection = ToolStripTextDirection.Vertical90; 14246Assert.Equal(ToolStripTextDirection.Horizontal, item.TextDirection); 14250Assert.Equal(ToolStripTextDirection.Horizontal, item.TextDirection);
System\Windows\Forms\ToolStripMenuItemTests.cs (2)
96Assert.Equal(ToolStripTextDirection.Horizontal, item.TextDirection); 304TextDirection = ToolStripTextDirection.Vertical90,
System\Windows\Forms\ToolStripRendererTests.cs (2)
304yield return new object[] { new SubToolStripItem() { TextDirection = ToolStripTextDirection.Vertical270 }, "Text", new Rectangle(1, 2, 3, 4), Color.Red, SystemFonts.MenuFont, TextFormatFlags.Left }; 305yield return new object[] { new SubToolStripItem() { TextDirection = ToolStripTextDirection.Vertical90 }, "Text", new Rectangle(1, 2, 3, 4), Color.Red, SystemFonts.MenuFont, TextFormatFlags.Left };
System\Windows\Forms\ToolStripSeparatorTests.cs (13)
84Assert.Equal(ToolStripTextDirection.Horizontal, item.TextDirection); 649yield return new object[] { ToolStripTextDirection.Inherit, ToolStripTextDirection.Horizontal }; 650yield return new object[] { ToolStripTextDirection.Horizontal, ToolStripTextDirection.Horizontal }; 651yield return new object[] { ToolStripTextDirection.Vertical90, ToolStripTextDirection.Vertical90 }; 652yield return new object[] { ToolStripTextDirection.Vertical270, ToolStripTextDirection.Vertical270 }; 657public void ToolStripSeparator_TextDirection_Set_GetReturnsExpected(ToolStripTextDirection value, ToolStripTextDirection expected) 671[InvalidEnumData<ToolStripTextDirection>] 672public void ToolStripSeparator_TextDirection_SetInvalid_ThrowsInvalidEnumArgumentException(ToolStripTextDirection value)
System\Windows\Forms\ToolStripTests.cs (76)
155Assert.Equal(ToolStripTextDirection.Horizontal, control.TextDirection); 310Assert.Equal(ToolStripTextDirection.Horizontal, control.TextDirection); 3815[InlineData(ToolStripTextDirection.Inherit, ToolStripTextDirection.Horizontal, 1)] 3816[InlineData(ToolStripTextDirection.Horizontal, ToolStripTextDirection.Horizontal, 1)] 3817[InlineData(ToolStripTextDirection.Vertical90, ToolStripTextDirection.Vertical90, 1)] 3818[InlineData(ToolStripTextDirection.Vertical270, ToolStripTextDirection.Vertical270, 1)] 3819public void ToolStrip_TextDirection_Set_GetReturnsExpected(ToolStripTextDirection value, ToolStripTextDirection expected, int expectedLayoutCallCount) 3844[InlineData(ToolStripTextDirection.Inherit, ToolStripTextDirection.Horizontal, 1)] 3845[InlineData(ToolStripTextDirection.Horizontal, ToolStripTextDirection.Horizontal, 1)] 3846[InlineData(ToolStripTextDirection.Vertical90, ToolStripTextDirection.Vertical90, 1)] 3847[InlineData(ToolStripTextDirection.Vertical270, ToolStripTextDirection.Vertical270, 1)] 3848public void ToolStrip_TextDirection_SetWithHandle_GetReturnsExpected(ToolStripTextDirection value, ToolStripTextDirection expected, int expectedLayoutCallCount) 3886[InlineData(ToolStripTextDirection.Inherit, ToolStripTextDirection.Horizontal, 1)] 3887[InlineData(ToolStripTextDirection.Horizontal, ToolStripTextDirection.Horizontal, 1)] 3888[InlineData(ToolStripTextDirection.Vertical90, ToolStripTextDirection.Vertical90, 1)] 3889[InlineData(ToolStripTextDirection.Vertical270, ToolStripTextDirection.Vertical270, 1)] 3890public void ToolStrip_TextDirection_SetWithItems_GetReturnsExpected(ToolStripTextDirection value, ToolStripTextDirection expected, int expectedLayoutCallCount) 3923[InlineData(ToolStripTextDirection.Inherit, ToolStripTextDirection.Horizontal, 1)] 3924[InlineData(ToolStripTextDirection.Horizontal, ToolStripTextDirection.Horizontal, 1)] 3925[InlineData(ToolStripTextDirection.Vertical90, ToolStripTextDirection.Vertical90, 1)] 3926[InlineData(ToolStripTextDirection.Vertical270, ToolStripTextDirection.Vertical270, 1)] 3927public void ToolStrip_TextDirection_SetWithItemsWithTextDirection_GetReturnsExpected(ToolStripTextDirection value, ToolStripTextDirection expected, int expectedLayoutCallCount) 3932TextDirection = ToolStripTextDirection.Vertical90 3936TextDirection = ToolStripTextDirection.Vertical270 3951Assert.Equal(ToolStripTextDirection.Vertical90, item1.TextDirection); 3952Assert.Equal(ToolStripTextDirection.Vertical270, item2.TextDirection); 3959Assert.Equal(ToolStripTextDirection.Vertical90, item1.TextDirection); 3960Assert.Equal(ToolStripTextDirection.Vertical270, item2.TextDirection); 3966[InlineData(ToolStripTextDirection.Inherit, ToolStripTextDirection.Horizontal, 1)] 3967[InlineData(ToolStripTextDirection.Horizontal, ToolStripTextDirection.Horizontal, 1)] 3968[InlineData(ToolStripTextDirection.Vertical90, ToolStripTextDirection.Vertical90, 1)] 3969[InlineData(ToolStripTextDirection.Vertical270, ToolStripTextDirection.Vertical270, 1)] 3970public void ToolStrip_TextDirection_SetWithItemsWithHandle_GetReturnsExpected(ToolStripTextDirection value, ToolStripTextDirection expected, int expectedLayoutCallCount) 4025[InlineData(ToolStripTextDirection.Inherit, ToolStripTextDirection.Horizontal, 1)] 4026[InlineData(ToolStripTextDirection.Horizontal, ToolStripTextDirection.Horizontal, 1)] 4027[InlineData(ToolStripTextDirection.Vertical90, ToolStripTextDirection.Vertical90, 1)] 4028[InlineData(ToolStripTextDirection.Vertical270, ToolStripTextDirection.Vertical270, 1)] 4029public void ToolStrip_TextDirection_SetWithItemsWithTextDirectionWithHandle_GetReturnsExpected(ToolStripTextDirection value, ToolStripTextDirection expected, int expectedLayoutCallCount) 4034TextDirection = ToolStripTextDirection.Vertical90 4038TextDirection = ToolStripTextDirection.Vertical270 4064Assert.Equal(ToolStripTextDirection.Vertical90, item1.TextDirection); 4065Assert.Equal(ToolStripTextDirection.Vertical270, item2.TextDirection); 4075Assert.Equal(ToolStripTextDirection.Vertical90, item1.TextDirection); 4076Assert.Equal(ToolStripTextDirection.Vertical270, item2.TextDirection); 4090[InvalidEnumData<ToolStripTextDirection>] 4091public void ToolStrip_TextDirection_SetInvalidValue_ThrowsInvalidEnumArgumentException(ToolStripTextDirection value)