1 override of RightToLeft
System.Windows.Forms (1)
System\Windows\Forms\Controls\ToolStrips\ToolStripControlHost.cs (1)
324
public override RightToLeft
RightToLeft
44 writes to RightToLeft
System.Windows.Forms (2)
System\Windows\Forms\Controls\ToolStrips\ToolStripItem.cs (1)
3411
public virtual void ResetRightToLeft() =>
RightToLeft
= RightToLeft.Inherit;
System\Windows\Forms\Controls\ToolStrips\ToolStripMenuItem.cs (1)
518
menuItem.
RightToLeft
= RightToLeft;
System.Windows.Forms.Tests (42)
System\Windows\Forms\ToolStripButtonTests.cs (2)
1279
RightToLeft
= rightToLeft,
1370
RightToLeft
= rightToLeft,
System\Windows\Forms\ToolStripDropDownTests.cs (2)
2344
RightToLeft
= RightToLeft.Yes
2365
RightToLeft
= RightToLeft.No
System\Windows\Forms\ToolStripItemImageRenderEventArgsTests.cs (3)
38
RightToLeft
= RightToLeft.Yes,
55
RightToLeft
= RightToLeft.Yes
79
RightToLeft
= RightToLeft.Yes,
System\Windows\Forms\ToolStripItemTests.cs (27)
6555
RightToLeft
= rightToLeft
7153
RightToLeft
= value
7158
item.
RightToLeft
= value;
7200
item.
RightToLeft
= value;
7206
item.
RightToLeft
= value;
7249
item.
RightToLeft
= value;
7258
item.
RightToLeft
= value;
7303
item.
RightToLeft
= value;
7309
item.
RightToLeft
= value;
7345
item.
RightToLeft
= value;
7354
item.
RightToLeft
= value;
7382
item.
RightToLeft
= RightToLeft.Yes;
7387
item.
RightToLeft
= RightToLeft.Yes;
7392
item.
RightToLeft
= RightToLeft.No;
7398
item.
RightToLeft
= RightToLeft.Yes;
7408
Assert.Throws<InvalidEnumArgumentException>("value", () => item.
RightToLeft
= value);
7418
item.
RightToLeft
= RightToLeft.Yes;
7422
item.
RightToLeft
= RightToLeft.No;
7426
item.
RightToLeft
= RightToLeft.Inherit;
7430
item.
RightToLeft
= RightToLeft.No;
7446
item.
RightToLeft
= RightToLeft.Yes;
7450
item.
RightToLeft
= RightToLeft.No;
7454
item.
RightToLeft
= RightToLeft.Inherit;
7458
item.
RightToLeft
= RightToLeft.No;
12213
RightToLeft
= rightToLeft
12651
RightToLeft
= rightToLeft
14225
item.
RightToLeft
= RightToLeft.Yes;
System\Windows\Forms\ToolStripItemTextRenderEventArgsTests.cs (2)
14
yield return new object[] { new ToolStripButton() {
RightToLeft
= RightToLeft.Yes }, "text", new Rectangle(1, 2, 3, 4), Color.Red, SystemFonts.DefaultFont, TextFormatFlags.Bottom };
40
yield return new object[] { new ToolStripButton() {
RightToLeft
= RightToLeft.Yes }, "text", new Rectangle(1, 2, 3, 4), Color.Red, SystemFonts.DefaultFont, (ContentAlignment)(-1), TextFormatFlags.Default | TextFormatFlags.Bottom | TextFormatFlags.Right | TextFormatFlags.RightToLeft | TextFormatFlags.HidePrefix };
System\Windows\Forms\ToolStripMenuItemTests.cs (1)
298
RightToLeft
= RightToLeft.Yes,
System\Windows\Forms\ToolStripTests.cs (5)
3501
RightToLeft
= RightToLeft.Yes
3505
RightToLeft
= RightToLeft.No
6403
RightToLeft
= RightToLeft.Inherit
6452
RightToLeft
= RightToLeft.Yes
6456
RightToLeft
= RightToLeft.No
90 references to RightToLeft
System.Windows.Forms (26)
System\Windows\Forms\Controls\ToolStrips\ToolStripControlHost.cs (1)
328
return _control is not null ? _control.RightToLeft : base.
RightToLeft
;
System\Windows\Forms\Controls\ToolStrips\ToolStripDropDown.cs (1)
709
return OwnerItem.
RightToLeft
;
System\Windows\Forms\Controls\ToolStrips\ToolStripDropDownButton.ToolStripDropDownButtonInternalLayout.cs (1)
62
if (_ownerItem.
RightToLeft
== RightToLeft.Yes)
System\Windows\Forms\Controls\ToolStrips\ToolStripDropDownItem.cs (5)
132
(
RightToLeft
!= parent.RightToLeft && (
RightToLeft
!= RightToLeft.Inherit)))
134
dropDownDirection = RTLTranslateDropDownDirection(dropDownDirection,
RightToLeft
);
147
RightToLeft toggledRightToLeft = (
RightToLeft
== RightToLeft.Yes) ? RightToLeft.No : RightToLeft.Yes;
388
bool rtl = (
RightToLeft
== RightToLeft.Yes);
System\Windows\Forms\Controls\ToolStrips\ToolStripItem.cs (4)
1668
RightToLeft oldValue =
RightToLeft
;
1675
if (oldValue !=
RightToLeft
)
2960
if (rightToLeft == RightToLeft.Inherit &&
RightToLeft
!= DefaultRightToLeft)
3349
/// Determines if the <see cref="
RightToLeft
"/> property needs to be persisted.
System\Windows\Forms\Controls\ToolStrips\ToolStripItem.ToolStripItemInternalLayout.cs (2)
119
layoutOptions.LayoutRTL = Owner.
RightToLeft
== RightToLeft.Yes;
126
layoutOptions.GdiTextFormatFlags = ContentAlignmentToTextFormat(Owner.TextAlign, Owner.
RightToLeft
== RightToLeft.Yes);
System\Windows\Forms\Controls\ToolStrips\ToolStripItemImageRenderEventArgs.cs (1)
14
Image = (item.RightToLeftAutoMirrorImage && item.
RightToLeft
== RightToLeft.Yes) ? item.MirroredImage : item.Image;
System\Windows\Forms\Controls\ToolStrips\ToolStripItemTextRenderEventArgs.cs (1)
58
TextFormat = ToolStripItem.ToolStripItemInternalLayout.ContentAlignmentToTextFormat(textAlign, item.
RightToLeft
== RightToLeft.Yes);
System\Windows\Forms\Controls\ToolStrips\ToolStripMenuItem.cs (2)
518
menuItem.RightToLeft =
RightToLeft
;
972
bool rightToLeft = (
RightToLeft
== RightToLeft.Yes);
System\Windows\Forms\Controls\ToolStrips\ToolstripProfessionalRenderer.cs (3)
160
bool rightToLeft = item.
RightToLeft
== RightToLeft.Yes;
287
Padding deflatePadding = item.
RightToLeft
== RightToLeft.Yes ? new Padding(0, 1, 1, 1) : new Padding(1, 1, 0, 1);
1505
bool rightToLeft = (item.
RightToLeft
== RightToLeft.Yes);
System\Windows\Forms\Controls\ToolStrips\ToolStripSplitButton.cs (1)
312
if (
RightToLeft
== RightToLeft.No)
System\Windows\Forms\Controls\ToolStrips\ToolStripSystemRenderer.cs (4)
437
RenderSmall3DBorderInternal(g, bounds, state, (item.
RightToLeft
== RightToLeft.Yes));
523
bool rightToLeft = splitButton.
RightToLeft
== RightToLeft.Yes;
668
RenderSmall3DBorderInternal(g, new Rectangle(Point.Empty, item.Size), state, (item.
RightToLeft
== RightToLeft.Yes));
713
bool rightToLeft = (item.
RightToLeft
== RightToLeft.Yes);
System.Windows.Forms.Design (3)
System\Windows\Forms\Design\ToolStripTemplateNode.cs (3)
1231
_miniToolStrip.RightToLeft = stripItem.
RightToLeft
;
1346
_contextMenu.RightToLeft = stripItem.
RightToLeft
;
1483
_miniToolStrip.RightToLeft = stripItem.
RightToLeft
;
System.Windows.Forms.Tests (61)
System\Windows\Forms\ToolStripButtonTests.cs (6)
78
Assert.Equal(RightToLeft.Inherit, item.
RightToLeft
);
159
Assert.Equal(RightToLeft.Inherit, item.
RightToLeft
);
246
Assert.Equal(RightToLeft.Inherit, item.
RightToLeft
);
336
Assert.Equal(RightToLeft.Inherit, item.
RightToLeft
);
424
Assert.Equal(RightToLeft.Inherit, item.
RightToLeft
);
522
Assert.Equal(RightToLeft.Inherit, item.
RightToLeft
);
System\Windows\Forms\ToolStripDropDownItemTests.cs (4)
78
Assert.Equal(RightToLeft.Inherit, item.
RightToLeft
);
167
Assert.Equal(RightToLeft.Inherit, item.
RightToLeft
);
266
Assert.Equal(RightToLeft.Inherit, item.
RightToLeft
);
374
Assert.Equal(RightToLeft.Inherit, item.
RightToLeft
);
System\Windows\Forms\ToolStripItemTests.cs (39)
77
Assert.Equal(RightToLeft.Inherit, item.
RightToLeft
);
162
Assert.Equal(RightToLeft.Inherit, item.
RightToLeft
);
257
Assert.Equal(RightToLeft.Inherit, item.
RightToLeft
);
6567
Assert.Equal(expectedRightToLeft, item.
RightToLeft
);
6573
Assert.Equal(expectedRightToLeft, item.
RightToLeft
);
7108
Assert.Equal(expected, item.
RightToLeft
);
7125
Assert.Equal(expected, item.
RightToLeft
);
7144
Assert.Equal(RightToLeft.Yes, item.
RightToLeft
);
7155
Assert.Equal(value, item.
RightToLeft
);
7159
Assert.Equal(value, item.
RightToLeft
);
7201
Assert.Equal(expected, item.
RightToLeft
);
7207
Assert.Equal(expected, item.
RightToLeft
);
7250
Assert.Equal(expected, item.
RightToLeft
);
7259
Assert.Equal(expected, item.
RightToLeft
);
7304
Assert.Equal(expected, item.
RightToLeft
);
7310
Assert.Equal(expected, item.
RightToLeft
);
7346
Assert.Equal(expected, item.
RightToLeft
);
7355
Assert.Equal(expected, item.
RightToLeft
);
7383
Assert.Equal(RightToLeft.Yes, item.
RightToLeft
);
7388
Assert.Equal(RightToLeft.Yes, item.
RightToLeft
);
7393
Assert.Equal(RightToLeft.No, item.
RightToLeft
);
7399
Assert.Equal(RightToLeft.Yes, item.
RightToLeft
);
7414
PropertyDescriptor property = TypeDescriptor.GetProperties(typeof(ToolStripItem))[nameof(ToolStripItem.
RightToLeft
)];
7419
Assert.Equal(RightToLeft.Yes, item.
RightToLeft
);
7423
Assert.Equal(RightToLeft.No, item.
RightToLeft
);
7427
Assert.Equal(RightToLeft.Inherit, item.
RightToLeft
);
7431
Assert.Equal(RightToLeft.No, item.
RightToLeft
);
7435
Assert.Equal(RightToLeft.Inherit, item.
RightToLeft
);
7442
PropertyDescriptor property = TypeDescriptor.GetProperties(typeof(ToolStripItem))[nameof(ToolStripItem.
RightToLeft
)];
7447
Assert.Equal(RightToLeft.Yes, item.
RightToLeft
);
7451
Assert.Equal(RightToLeft.No, item.
RightToLeft
);
7455
Assert.Equal(RightToLeft.Inherit, item.
RightToLeft
);
7459
Assert.Equal(RightToLeft.No, item.
RightToLeft
);
7463
Assert.Equal(RightToLeft.Inherit, item.
RightToLeft
);
12235
Assert.Equal(expectedRightToLeft, item.
RightToLeft
);
12243
Assert.Equal(expectedRightToLeft, item.
RightToLeft
);
14222
Assert.Equal(RightToLeft.Inherit, item.
RightToLeft
);
14227
Assert.Equal(RightToLeft.Inherit, item.
RightToLeft
);
14231
Assert.Equal(RightToLeft.Inherit, item.
RightToLeft
);
System\Windows\Forms\ToolStripMenuItemTests.cs (3)
85
Assert.Equal(RightToLeft.Inherit, item.
RightToLeft
);
343
clone.
RightToLeft
.Should().Be(original.
RightToLeft
);
System\Windows\Forms\ToolStripSeparatorTests.cs (1)
75
Assert.Equal(RightToLeft.Inherit, item.
RightToLeft
);
System\Windows\Forms\ToolStripTests.cs (8)
3483
Assert.Equal(expected, item1.
RightToLeft
);
3484
Assert.Equal(expected, item2.
RightToLeft
);
3490
Assert.Equal(expected, item1.
RightToLeft
);
3491
Assert.Equal(expected, item2.
RightToLeft
);
3513
Assert.Equal(RightToLeft.Yes, item1.
RightToLeft
);
3514
Assert.Equal(RightToLeft.No, item2.
RightToLeft
);
3520
Assert.Equal(RightToLeft.Yes, item1.
RightToLeft
);
3521
Assert.Equal(RightToLeft.No, item2.
RightToLeft
);