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