24 references to RightToLeft
System.Windows.Forms (9)
System\Windows\Forms\Controls\DataGridView\DataGridViewUtilities.cs (3)
144
tff |= TextFormatFlags.
RightToLeft
;
359
if ((flags & TextFormatFlags.
RightToLeft
) != 0)
465
TextFormatFlags.
RightToLeft
|
System\Windows\Forms\Controls\GroupBox\GroupBox.cs (1)
421
textFlags |= (TextFormatFlags.Right | TextFormatFlags.
RightToLeft
);
System\Windows\Forms\Controls\ListBoxes\CheckedListBox.cs (1)
697
flags |= TextFormatFlags.
RightToLeft
;
System\Windows\Forms\Controls\TextBox\TextBox.cs (2)
873
flags |= TextFormatFlags.
RightToLeft
;
892
flags &= ~TextFormatFlags.
RightToLeft
;
System\Windows\Forms\Controls\ToolStrips\ToolStripItem.ToolStripItemInternalLayout.cs (1)
88
textFormat |= TextFormatFlags.
RightToLeft
;
System\Windows\Forms\Rendering\ControlPaint.cs (1)
2608
flags |= TextFormatFlags.
RightToLeft
;
System.Windows.Forms.Tests (15)
System\Windows\Forms\TextRendererTests.cs (5)
96
yield return new object[] { hint, text, SystemFonts.MenuFont, Point.Empty, Color.Red, TextFormatFlags.
RightToLeft
};
137
yield return new object[] { hint, text, SystemFonts.MenuFont, Point.Empty, Color.Red, Color.Blue, TextFormatFlags.
RightToLeft
};
245
yield return new object[] { hint, text, SystemFonts.MenuFont, new Rectangle(1, 2, 300, 400), Color.Red, TextFormatFlags.
RightToLeft
};
289
yield return new object[] { hint, text, SystemFonts.MenuFont, new Rectangle(1, 2, 300, 400), Color.Red, Color.Blue, TextFormatFlags.
RightToLeft
};
452
yield return new object[] { "string", SystemFonts.MenuFont, new Size(100, 200), TextFormatFlags.
RightToLeft
};
System\Windows\Forms\ToolStripButtonTests.cs (9)
1229
yield return new object[] { ContentAlignment.TopLeft, RightToLeft.Yes, ToolStripItemDisplayStyle.Text, 0, 1, TextFormatFlags.Left | TextFormatFlags.Top | TextFormatFlags.HidePrefix | TextFormatFlags.
RightToLeft
};
1232
yield return new object[] { ContentAlignment.TopCenter, RightToLeft.Yes, ToolStripItemDisplayStyle.Text, 0, 1, TextFormatFlags.HorizontalCenter | TextFormatFlags.Top | TextFormatFlags.HidePrefix | TextFormatFlags.
RightToLeft
};
1235
yield return new object[] { ContentAlignment.TopRight, RightToLeft.Yes, ToolStripItemDisplayStyle.Text, 0, 1, TextFormatFlags.Right | TextFormatFlags.Top | TextFormatFlags.HidePrefix | TextFormatFlags.
RightToLeft
};
1239
yield return new object[] { ContentAlignment.MiddleLeft, RightToLeft.Yes, ToolStripItemDisplayStyle.Text, 0, 1, TextFormatFlags.Left | TextFormatFlags.VerticalCenter | TextFormatFlags.HidePrefix | TextFormatFlags.
RightToLeft
};
1242
yield return new object[] { ContentAlignment.MiddleCenter, RightToLeft.Yes, ToolStripItemDisplayStyle.Text, 0, 1, TextFormatFlags.HorizontalCenter | TextFormatFlags.VerticalCenter | TextFormatFlags.HidePrefix | TextFormatFlags.
RightToLeft
};
1245
yield return new object[] { ContentAlignment.MiddleRight, RightToLeft.Yes, ToolStripItemDisplayStyle.Text, 0, 1, TextFormatFlags.Right | TextFormatFlags.VerticalCenter | TextFormatFlags.HidePrefix | TextFormatFlags.
RightToLeft
};
1249
yield return new object[] { ContentAlignment.BottomLeft, RightToLeft.Yes, ToolStripItemDisplayStyle.Text, 0, 1, TextFormatFlags.Left | TextFormatFlags.Bottom | TextFormatFlags.HidePrefix | TextFormatFlags.
RightToLeft
};
1252
yield return new object[] { ContentAlignment.BottomCenter, RightToLeft.Yes, ToolStripItemDisplayStyle.Text, 0, 1, TextFormatFlags.HorizontalCenter | TextFormatFlags.Bottom | TextFormatFlags.HidePrefix | TextFormatFlags.
RightToLeft
};
1255
yield return new object[] { ContentAlignment.BottomRight, RightToLeft.Yes, ToolStripItemDisplayStyle.Text, 0, 1, TextFormatFlags.Right | TextFormatFlags.Bottom | TextFormatFlags.HidePrefix | TextFormatFlags.
RightToLeft
};
System\Windows\Forms\ToolStripItemTextRenderEventArgsTests.cs (1)
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 };