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