3 overrides of TextDirection
System.Windows.Forms (3)
System\Windows\Forms\Controls\ToolStrips\ToolStripControlHost.cs (1)
420public override ToolStripTextDirection TextDirection
System\Windows\Forms\Controls\ToolStrips\ToolStripSeparator.cs (1)
220public override ToolStripTextDirection TextDirection
System\Windows\Forms\Controls\ToolStrips\ToolStripSplitButton.ToolStripSplitButtonButton.cs (1)
63public override ToolStripTextDirection TextDirection
32 writes to TextDirection
System.Windows.Forms (4)
System\Windows\Forms\Controls\ToolStrips\ToolStripControlHost.cs (1)
423set => base.TextDirection = value;
System\Windows\Forms\Controls\ToolStrips\ToolStripItem.cs (1)
3417public virtual void ResetTextDirection() => TextDirection = ToolStripTextDirection.Inherit;
System\Windows\Forms\Controls\ToolStrips\ToolStripMenuItem.cs (1)
529menuItem.TextDirection = TextDirection;
System\Windows\Forms\Controls\ToolStrips\ToolStripSeparator.cs (1)
223set => base.TextDirection = value;
System.Windows.Forms.Tests (28)
System\Windows\Forms\ToolStripButtonTests.cs (3)
1282TextDirection = ToolStripTextDirection.Vertical270, 1373TextDirection = ToolStripTextDirection.Vertical270, 1470TextDirection = ToolStripTextDirection.Vertical270,
System\Windows\Forms\ToolStripItemTests.cs (18)
8564TextDirection = value 8569item.TextDirection = value; 8606item.TextDirection = value; 8612item.TextDirection = value; 8655item.TextDirection = value; 8664item.TextDirection = value; 8696item.TextDirection = value; 8702item.TextDirection = value; 8738item.TextDirection = value; 8747item.TextDirection = value; 8766Assert.Throws<InvalidEnumArgumentException>("value", () => item.TextDirection = value); 8776item.TextDirection = ToolStripTextDirection.Vertical270; 8780item.TextDirection = ToolStripTextDirection.Vertical90; 8784item.TextDirection = ToolStripTextDirection.Horizontal; 8800item.TextDirection = ToolStripTextDirection.Vertical270; 8804item.TextDirection = ToolStripTextDirection.Vertical90; 8808item.TextDirection = ToolStripTextDirection.Horizontal; 14244item.TextDirection = ToolStripTextDirection.Vertical90;
System\Windows\Forms\ToolStripMenuItemTests.cs (1)
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\ToolStripTests.cs (4)
3932TextDirection = ToolStripTextDirection.Vertical90 3936TextDirection = ToolStripTextDirection.Vertical270 4034TextDirection = ToolStripTextDirection.Vertical90 4038TextDirection = ToolStripTextDirection.Vertical270
69 references to TextDirection
System.Windows.Forms (9)
System\Windows\Forms\Controls\ToolStrips\ToolStripControlHost.cs (1)
422get => base.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.ToolStripItemInternalLayout.cs (1)
148if (Owner.TextDirection != ToolStripTextDirection.Horizontal)
System\Windows\Forms\Controls\ToolStrips\ToolStripItemTextRenderEventArgs.cs (2)
36TextDirection = item.TextDirection; 60TextDirection = item.TextDirection;
System\Windows\Forms\Controls\ToolStrips\ToolStripMenuItem.cs (1)
529menuItem.TextDirection = TextDirection;
System\Windows\Forms\Controls\ToolStrips\ToolStripSeparator.cs (1)
222get => base.TextDirection;
System\Windows\Forms\Controls\ToolStrips\ToolStripSplitButton.ToolStripSplitButtonButton.cs (1)
67return _owner.TextDirection;
System.Windows.Forms.Tests (60)
System\Windows\Forms\ToolStripButtonTests.cs (6)
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);
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\ToolStripItemTests.cs (29)
86Assert.Equal(ToolStripTextDirection.Horizontal, item.TextDirection); 171Assert.Equal(ToolStripTextDirection.Horizontal, item.TextDirection); 266Assert.Equal(ToolStripTextDirection.Horizontal, item.TextDirection); 8510Assert.Equal(expected, item.TextDirection); 8528Assert.Equal(expected, item.TextDirection); 8547Assert.Equal(ToolStripTextDirection.Vertical270, item.TextDirection); 8566Assert.Equal(expected, item.TextDirection); 8570Assert.Equal(expected, item.TextDirection); 8607Assert.Equal(expected, item.TextDirection); 8613Assert.Equal(expected, item.TextDirection); 8656Assert.Equal(expected, item.TextDirection); 8665Assert.Equal(expected, item.TextDirection); 8697Assert.Equal(expected, item.TextDirection); 8703Assert.Equal(expected, item.TextDirection); 8739Assert.Equal(expected, item.TextDirection); 8748Assert.Equal(expected, item.TextDirection); 8772PropertyDescriptor property = TypeDescriptor.GetProperties(typeof(ToolStripItem))[nameof(ToolStripItem.TextDirection)]; 8777Assert.Equal(ToolStripTextDirection.Vertical270, item.TextDirection); 8781Assert.Equal(ToolStripTextDirection.Vertical90, item.TextDirection); 8785Assert.Equal(ToolStripTextDirection.Horizontal, item.TextDirection); 8789Assert.Equal(ToolStripTextDirection.Horizontal, item.TextDirection); 8796PropertyDescriptor property = TypeDescriptor.GetProperties(typeof(ToolStripItem))[nameof(ToolStripItem.TextDirection)]; 8801Assert.Equal(ToolStripTextDirection.Vertical270, item.TextDirection); 8805Assert.Equal(ToolStripTextDirection.Vertical90, item.TextDirection); 8809Assert.Equal(ToolStripTextDirection.Horizontal, item.TextDirection); 8813Assert.Equal(ToolStripTextDirection.Horizontal, item.TextDirection); 14241Assert.Equal(ToolStripTextDirection.Horizontal, item.TextDirection); 14246Assert.Equal(ToolStripTextDirection.Horizontal, item.TextDirection); 14250Assert.Equal(ToolStripTextDirection.Horizontal, item.TextDirection);
System\Windows\Forms\ToolStripItemTextRenderEventArgsTests.cs (2)
32Assert.Equal(item.TextDirection, e.TextDirection); 58Assert.Equal(item.TextDirection, e.TextDirection);
System\Windows\Forms\ToolStripMenuItemTests.cs (3)
96Assert.Equal(ToolStripTextDirection.Horizontal, item.TextDirection); 349clone.TextDirection.Should().Be(original.TextDirection);
System\Windows\Forms\ToolStripTests.cs (16)
3908Assert.Equal(expected, item1.TextDirection); 3909Assert.Equal(expected, item2.TextDirection); 3916Assert.Equal(expected, item1.TextDirection); 3917Assert.Equal(expected, item2.TextDirection); 3951Assert.Equal(ToolStripTextDirection.Vertical90, item1.TextDirection); 3952Assert.Equal(ToolStripTextDirection.Vertical270, item2.TextDirection); 3959Assert.Equal(ToolStripTextDirection.Vertical90, item1.TextDirection); 3960Assert.Equal(ToolStripTextDirection.Vertical270, item2.TextDirection); 3999Assert.Equal(expected, item1.TextDirection); 4000Assert.Equal(expected, item2.TextDirection); 4010Assert.Equal(expected, item1.TextDirection); 4011Assert.Equal(expected, item2.TextDirection); 4064Assert.Equal(ToolStripTextDirection.Vertical90, item1.TextDirection); 4065Assert.Equal(ToolStripTextDirection.Vertical270, item2.TextDirection); 4075Assert.Equal(ToolStripTextDirection.Vertical90, item1.TextDirection); 4076Assert.Equal(ToolStripTextDirection.Vertical270, item2.TextDirection);