1 instantiation of TextFormatFlags
System.Windows.Forms (1)
winforms\Managed\System\WinForms\ControlPaint.cs (1)
2643TextFormatFlags output = new TextFormatFlags();
301 references to TextFormatFlags
System.Windows.Forms (301)
winforms\Managed\System\WinForms\ButtonBase.cs (2)
1016internal virtual TextFormatFlags CreateTextFormatFlags() { 1019return TextFormatFlags.Default;
winforms\Managed\System\WinForms\ButtonInternal\ButtonBaseAdapter.cs (7)
142internal virtual TextFormatFlags CreateTextFormatFlags(){ 659TextFormatFlags formatFlags = CreateTextFormatFlags(); 897internal TextFormatFlags gdiTextFormatFlags = TextFormatFlags.WordBreak | TextFormatFlags.TextBoxControl; 938public TextFormatFlags TextFormatFlags { 941return gdiTextFormatFlags & ~TextFormatFlags.WordBreak;
winforms\Managed\System\WinForms\ButtonRenderer.cs (8)
151TextFormatFlags.HorizontalCenter | TextFormatFlags.VerticalCenter | TextFormatFlags.SingleLine, 162public static void DrawButton(Graphics g, Rectangle bounds, string buttonText, Font font, TextFormatFlags flags, bool focused, PushButtonState state) { 221TextFormatFlags.HorizontalCenter | TextFormatFlags.VerticalCenter | TextFormatFlags.SingleLine, 231public static void DrawButton(Graphics g, Rectangle bounds, string buttonText, Font font, TextFormatFlags flags, Image image, Rectangle imageBounds, bool focused, PushButtonState state) {
winforms\Managed\System\WinForms\CheckBoxRenderer.cs (9)
130TextFormatFlags.HorizontalCenter | TextFormatFlags.VerticalCenter | TextFormatFlags.SingleLine, 140public static void DrawCheckBox(Graphics g, Point glyphLocation, Rectangle textBounds, string checkBoxText, Font font, TextFormatFlags flags, bool focused, CheckBoxState state) { 144internal static void DrawCheckBox(Graphics g, Point glyphLocation, Rectangle textBounds, string checkBoxText, Font font, TextFormatFlags flags, bool focused, CheckBoxState state, IntPtr hWnd) { 180TextFormatFlags.HorizontalCenter | TextFormatFlags.VerticalCenter | TextFormatFlags.SingleLine, 190public static void DrawCheckBox(Graphics g, Point glyphLocation, Rectangle textBounds, string checkBoxText, Font font, TextFormatFlags flags, Image image, Rectangle imageBounds, bool focused, CheckBoxState state) {
winforms\Managed\System\WinForms\CheckedListBox.cs (6)
819TextFormatFlags flags = TextFormatFlags.Default; 820flags |= TextFormatFlags.NoPrefix; 823flags |= TextFormatFlags.ExpandTabs; 828flags |= TextFormatFlags.RightToLeft; 829flags |= TextFormatFlags.Right;
winforms\Managed\System\WinForms\ComboBox.cs (2)
936Size textSize = TextRenderer.MeasureText(LayoutUtils.TestString, this.Font, new Size(Int16.MaxValue, (int)(FontHeight * 1.25)), TextFormatFlags.SingleLine); 946Size textSize = TextRenderer.MeasureText(LayoutUtils.TestString, this.Font, new Size(Int16.MaxValue, (int)(FontHeight * 1.25)), TextFormatFlags.SingleLine);
winforms\Managed\System\WinForms\ComboBoxRenderer.cs (4)
89DrawTextBox(g, bounds, comboBoxText, font, TextFormatFlags.TextBoxControl, state); 99DrawTextBox(g, bounds, comboBoxText, font, textBounds, TextFormatFlags.TextBoxControl, state); 108public static void DrawTextBox(Graphics g, Rectangle bounds, string comboBoxText, Font font, TextFormatFlags flags, ComboBoxState state) { 130public static void DrawTextBox(Graphics g, Rectangle bounds, string comboBoxText, Font font, Rectangle textBounds, TextFormatFlags flags, ComboBoxState state) {
winforms\Managed\System\WinForms\ControlPaint.cs (21)
1958TextFormatFlags format) { 2642internal static TextFormatFlags TextFormatFlagsForAlignmentGDI(ContentAlignment align) { 2643TextFormatFlags output = new TextFormatFlags(); 2661internal static TextFormatFlags TranslateAlignmentForGDI(ContentAlignment align) { 2662TextFormatFlags result; 2664result = TextFormatFlags.Bottom; 2666result = TextFormatFlags.VerticalCenter; 2668result = TextFormatFlags.Top; 2687internal static TextFormatFlags TranslateLineAlignmentForGDI(ContentAlignment align) { 2688TextFormatFlags result; 2690result = TextFormatFlags.Right; 2692result = TextFormatFlags.HorizontalCenter; 2694result = TextFormatFlags.Left; 2758internal static TextFormatFlags CreateTextFormatFlags(Control ctl, ContentAlignment textAlign, bool showEllipsis, bool useMnemonic ) { 2761TextFormatFlags flags = ControlPaint.TextFormatFlagsForAlignmentGDI( textAlign ); 2766flags |= TextFormatFlags.WordBreak | TextFormatFlags.TextBoxControl; 2769flags |= TextFormatFlags.EndEllipsis; 2774flags |= TextFormatFlags.RightToLeft; 2779flags |= TextFormatFlags.NoPrefix; 2784flags |= TextFormatFlags.HidePrefix;
winforms\Managed\System\WinForms\DataGridViewButtonCell.cs (2)
349TextFormatFlags flags = DataGridViewUtilities.ComputeTextFormatFlagsForCellStyleAlignment(this.DataGridView.RightToLeftInternal, cellStyle.Alignment, cellStyle.WrapMode); 1037TextFormatFlags flags = DataGridViewUtilities.ComputeTextFormatFlagsForCellStyleAlignment(this.DataGridView.RightToLeftInternal, cellStyle.Alignment, cellStyle.WrapMode);
winforms\Managed\System\WinForms\DataGridViewCell.cs (15)
37private const TextFormatFlags textFormatSupportedFlags = TextFormatFlags.SingleLine | /*TextFormatFlags.NoFullWidthCharacterBreak |*/ TextFormatFlags.WordBreak | TextFormatFlags.NoPrefix; 2608TextFormatFlags flags = DataGridViewUtilities.ComputeTextFormatFlagsForCellStyleAlignment(rightToLeft, cellStyle.Alignment, cellStyle.WrapMode); 2831public static int MeasureTextHeight(Graphics graphics, string text, Font font, int maxWidth, TextFormatFlags flags) 2843public static int MeasureTextHeight(Graphics graphics, string text, Font font, int maxWidth, TextFormatFlags flags, out bool widthTruncated) 2862throw new InvalidEnumArgumentException("flags", (int) flags, typeof(TextFormatFlags)); 2876public static Size MeasureTextPreferredSize(Graphics graphics, string text, Font font, float maxRatio, TextFormatFlags flags) 2895throw new InvalidEnumArgumentException("flags", (int) flags, typeof(TextFormatFlags)); 2931public static Size MeasureTextSize(Graphics graphics, string text, Font font, TextFormatFlags flags) 2945throw new InvalidEnumArgumentException("flags", (int) flags, typeof(TextFormatFlags)); 2957public static int MeasureTextWidth(Graphics graphics, string text, Font font, int maxHeight, TextFormatFlags flags) 2965if (oneLineSize.Height >= maxHeight || (flags & TextFormatFlags.SingleLine) != 0) 4697internal static bool TextFitsInBounds(Graphics graphics, string text, Font font, Size maxBounds, TextFormatFlags flags)
winforms\Managed\System\WinForms\DataGridViewColumnHeaderCell.cs (4)
540TextFormatFlags flags = DataGridViewUtilities.ComputeTextFormatFlagsForCellStyleAlignment(this.DataGridView.RightToLeftInternal, cellStyle.Alignment, cellStyle.WrapMode); 982TextFormatFlags flags = DataGridViewUtilities.ComputeTextFormatFlagsForCellStyleAlignment(this.DataGridView.RightToLeftInternal, cellStyle.Alignment, cellStyle.WrapMode); 987if ((flags & TextFormatFlags.SingleLine) != 0) 989flags |= TextFormatFlags.EndEllipsis;
winforms\Managed\System\WinForms\DataGridViewComboBoxCell.cs (5)
1057return DataGridViewCell.MeasureTextHeight(graphics, " ", cellStyle.Font, System.Int32.MaxValue, TextFormatFlags.Default) + adjustment; 1374TextFormatFlags flags = DataGridViewUtilities.ComputeTextFormatFlagsForCellStyleAlignment(this.DataGridView.RightToLeftInternal, cellStyle.Alignment, cellStyle.WrapMode); 2598TextFormatFlags flags = DataGridViewUtilities.ComputeTextFormatFlagsForCellStyleAlignment(this.DataGridView.RightToLeftInternal, cellStyle.Alignment, cellStyle.WrapMode); 2603if ((flags & TextFormatFlags.SingleLine) != 0) 2605flags |= TextFormatFlags.EndEllipsis;
winforms\Managed\System\WinForms\DataGridViewLinkCell.cs (4)
672TextFormatFlags flags = DataGridViewUtilities.ComputeTextFormatFlagsForCellStyleAlignment(this.DataGridView.RightToLeftInternal, cellStyle.Alignment, cellStyle.WrapMode); 1057TextFormatFlags flags = DataGridViewUtilities.ComputeTextFormatFlagsForCellStyleAlignment(this.DataGridView.RightToLeftInternal, cellStyle.Alignment, cellStyle.WrapMode); 1101if ((flags & TextFormatFlags.SingleLine) != 0) 1103flags |= TextFormatFlags.EndEllipsis;
winforms\Managed\System\WinForms\DataGridViewRowHeaderCell.cs (4)
668TextFormatFlags flags = DataGridViewUtilities.ComputeTextFormatFlagsForCellStyleAlignment(this.DataGridView.RightToLeftInternal, cellStyle.Alignment, cellStyle.WrapMode); 974TextFormatFlags flags = DataGridViewUtilities.ComputeTextFormatFlagsForCellStyleAlignment(this.DataGridView.RightToLeftInternal, cellStyle.Alignment, cellStyle.WrapMode); 1007if ((flags & TextFormatFlags.SingleLine) != 0) 1009flags |= TextFormatFlags.EndEllipsis;
winforms\Managed\System\WinForms\DataGridViewTextBoxCell.cs (5)
275TextFormatFlags flags = DataGridViewUtilities.ComputeTextFormatFlagsForCellStyleAlignment(this.DataGridView.RightToLeftInternal, cellStyle.Alignment, cellStyle.WrapMode); 447TextFormatFlags flags = DataGridViewUtilities.ComputeTextFormatFlagsForCellStyleAlignment(this.DataGridView.RightToLeftInternal, cellStyle.Alignment, cellStyle.WrapMode); 761TextFormatFlags flags = DataGridViewUtilities.ComputeTextFormatFlagsForCellStyleAlignment(this.DataGridView.RightToLeftInternal, cellStyle.Alignment, cellStyle.WrapMode); 766if ((flags & TextFormatFlags.SingleLine) != 0) 768flags |= TextFormatFlags.EndEllipsis;
winforms\Managed\System\WinForms\DataGridViewTopLeftHeaderCell.cs (4)
186TextFormatFlags flags = DataGridViewUtilities.ComputeTextFormatFlagsForCellStyleAlignment(this.DataGridView.RightToLeftInternal, cellStyle.Alignment, cellStyle.WrapMode); 353TextFormatFlags flags = DataGridViewUtilities.ComputeTextFormatFlagsForCellStyleAlignment(this.DataGridView.RightToLeftInternal, cellStyle.Alignment, cellStyle.WrapMode); 358if ((flags & TextFormatFlags.SingleLine) != 0) 360flags |= TextFormatFlags.EndEllipsis;
winforms\Managed\System\WinForms\DataGridViewUtilities.cs (66)
63internal static TextFormatFlags ComputeTextFormatFlagsForCellStyleAlignment(bool rightToLeft, 67TextFormatFlags tff; 71tff = TextFormatFlags.Top; 74tff |= TextFormatFlags.Right; 78tff |= TextFormatFlags.Left; 82tff = TextFormatFlags.Top | TextFormatFlags.HorizontalCenter; 85tff = TextFormatFlags.Top; 88tff |= TextFormatFlags.Left; 92tff |= TextFormatFlags.Right; 96tff = TextFormatFlags.VerticalCenter; 99tff |= TextFormatFlags.Right; 103tff |= TextFormatFlags.Left; 107tff = TextFormatFlags.VerticalCenter | TextFormatFlags.HorizontalCenter; 110tff = TextFormatFlags.VerticalCenter; 113tff |= TextFormatFlags.Left; 117tff |= TextFormatFlags.Right; 121tff = TextFormatFlags.Bottom; 124tff |= TextFormatFlags.Right; 128tff |= TextFormatFlags.Left; 132tff = TextFormatFlags.Bottom | TextFormatFlags.HorizontalCenter; 135tff = TextFormatFlags.Bottom; 138tff |= TextFormatFlags.Left; 142tff |= TextFormatFlags.Right; 146tff = TextFormatFlags.HorizontalCenter | TextFormatFlags.VerticalCenter; 151tff |= TextFormatFlags.SingleLine; 156tff |= TextFormatFlags.WordBreak; 158tff |= TextFormatFlags.NoPrefix; 159tff |= TextFormatFlags.PreserveGraphicsClipping; 162tff |= TextFormatFlags.RightToLeft; 177TextFormatFlags flags) 309TextFormatFlags flags, 317TextFormatFlags flags, 321if ((flags & TextFormatFlags.SingleLine) != 0) 326flags |= TextFormatFlags.EndEllipsis; 349TextFormatFlags flags, 356if ((flags & TextFormatFlags.RightToLeft) != 0) 440internal static bool ValidTextFormatFlags(TextFormatFlags flags) 442return (flags & ~(TextFormatFlags.Bottom | 443TextFormatFlags.Default | 444TextFormatFlags.EndEllipsis | 445TextFormatFlags.ExpandTabs | 446TextFormatFlags.ExternalLeading | 447TextFormatFlags.HidePrefix | 448TextFormatFlags.HorizontalCenter | 449TextFormatFlags.Internal | 450TextFormatFlags.Left | 451TextFormatFlags.ModifyString | 452TextFormatFlags.NoClipping | 453TextFormatFlags.NoFullWidthCharacterBreak | 454TextFormatFlags.NoPrefix | 455TextFormatFlags.PathEllipsis | 456TextFormatFlags.PrefixOnly | 457TextFormatFlags.PreserveGraphicsClipping | 458TextFormatFlags.PreserveGraphicsTranslateTransform | 459TextFormatFlags.Right | 460TextFormatFlags.RightToLeft | 461TextFormatFlags.SingleLine | 462TextFormatFlags.TextBoxControl | 463TextFormatFlags.Top | 464TextFormatFlags.VerticalCenter | 465TextFormatFlags.WordBreak | 466TextFormatFlags.WordEllipsis)) == 0;
winforms\Managed\System\WinForms\DrawListViewColumnHeaderEventArgs.cs (6)
194TextFormatFlags flags = (hAlign == HorizontalAlignment.Left) ? TextFormatFlags.Left : 195((hAlign == HorizontalAlignment.Center) ? TextFormatFlags.HorizontalCenter : 196TextFormatFlags.Right); 197flags |= TextFormatFlags.WordEllipsis; 210public void DrawText(TextFormatFlags flags) {
winforms\Managed\System\WinForms\DrawListViewItemEventArgs.cs (2)
151DrawText(TextFormatFlags.Left); 158public void DrawText(TextFormatFlags flags)
winforms\Managed\System\WinForms\DrawListViewSubItemEventArgs.cs (6)
197TextFormatFlags flags = (hAlign == HorizontalAlignment.Left) ? TextFormatFlags.Left : 198((hAlign == HorizontalAlignment.Center) ? TextFormatFlags.HorizontalCenter : 199TextFormatFlags.Right); 200flags |= TextFormatFlags.WordEllipsis; 213public void DrawText(TextFormatFlags flags)
winforms\Managed\System\WinForms\DrawToolTipEventArgs.cs (5)
141DrawText(TextFormatFlags.HorizontalCenter | TextFormatFlags.VerticalCenter | TextFormatFlags.SingleLine | TextFormatFlags.HidePrefix); 148public void DrawText(TextFormatFlags flags)
winforms\Managed\System\WinForms\GDI\TextRenderer.cs (7)
83public static void DrawText(IDeviceContext dc, string text, Font font, Point pt, Color foreColor, TextFormatFlags flags) 101public static void DrawText(IDeviceContext dc, string text, Font font, Point pt, Color foreColor, Color backColor, TextFormatFlags flags) 173public static void DrawText(IDeviceContext dc, string text, Font font, Rectangle bounds, Color foreColor, TextFormatFlags flags) 191public static void DrawText(IDeviceContext dc, string text, Font font, Rectangle bounds, Color foreColor, Color backColor, TextFormatFlags flags) 208private static IntTextFormatFlags GetIntTextFormatFlags(TextFormatFlags flags) 247public static Size MeasureText(string text, Font font, Size proposedSize, TextFormatFlags flags ) 317public static Size MeasureText(IDeviceContext dc, string text, Font font, Size proposedSize, TextFormatFlags flags )
winforms\Managed\System\WinForms\GDI\WindowsGraphicsWrapper.cs (5)
42public WindowsGraphicsWrapper( IDeviceContext idc, TextFormatFlags flags) 48if( (flags & TextFormatFlags.PreserveGraphicsClipping) != 0) 53if( (flags & TextFormatFlags.PreserveGraphicsTranslateTransform) != 0) 89if( (flags & TextFormatFlags.LeftAndRightPadding) != 0 ) 93else if ((flags & TextFormatFlags.NoPadding) != 0 )
winforms\Managed\System\WinForms\GroupBox.cs (10)
522TextFormatFlags textFlags = TextFormatFlags.Default | TextFormatFlags.TextBoxControl | TextFormatFlags.WordBreak | TextFormatFlags.PreserveGraphicsTranslateTransform | TextFormatFlags.PreserveGraphicsClipping; 525textFlags |= TextFormatFlags.HidePrefix; 529textFlags |= (TextFormatFlags.Right | TextFormatFlags.RightToLeft); 608ControlPaint.DrawStringDisabled(wg, Text, Font, backColor, textRectangle, ((TextFormatFlags) flags));
winforms\Managed\System\WinForms\GroupBoxRenderer.cs (14)
112DrawGroupBox(g, bounds, groupBoxText, font, TextFormatFlags.Top | TextFormatFlags.Left, state); 122DrawGroupBox(g, bounds, groupBoxText, font, textColor, TextFormatFlags.Top | TextFormatFlags.Left, state); 131public static void DrawGroupBox(Graphics g, Rectangle bounds, string groupBoxText, Font font, TextFormatFlags flags, GroupBoxState state) { 144public static void DrawGroupBox(Graphics g, Rectangle bounds, string groupBoxText, Font font, Color textColor, TextFormatFlags flags, GroupBoxState state) { 164private static void DrawThemedGroupBoxWithText(Graphics g, Rectangle bounds, string groupBoxText, Font font, Color textColor, TextFormatFlags flags, GroupBoxState state) { 175if ((flags & TextFormatFlags.Right) == TextFormatFlags.Right) { 196if ((flags & TextFormatFlags.Right) == TextFormatFlags.Right) 259private static void DrawUnthemedGroupBoxWithText(Graphics g, Rectangle bounds, string groupBoxText, Font font, Color textColor, TextFormatFlags flags, GroupBoxState state) { 268if ((flags & TextFormatFlags.Right) == TextFormatFlags.Right) {
winforms\Managed\System\WinForms\Label.cs (13)
1128private TextFormatFlags CreateTextFormatFlags() { 1134internal virtual TextFormatFlags CreateTextFormatFlags(Size constrainingSize){ 1141TextFormatFlags flags = ControlPaint.CreateTextFormatFlags( this, this.TextAlign, this.AutoEllipsis, this.UseMnemonic ); 1148flags &= ~(TextFormatFlags.WordBreak | TextFormatFlags.TextBoxControl); 1305TextFormatFlags format = FlatStyle == FlatStyle.System ? TextFormatFlags.Default : CreateTextFormatFlags(proposedConstraints); 1346TextFormatFlags flags = CreateTextFormatFlags(); 1348if( (flags & TextFormatFlags.NoPadding ) == TextFormatFlags.NoPadding ){ 1351else if( (flags & TextFormatFlags.LeftAndRightPadding ) == TextFormatFlags.LeftAndRightPadding ){ 1558TextFormatFlags flags = CreateTextFormatFlags();
winforms\Managed\System\WinForms\Layout\LayoutUtils.cs (5)
57Size textSize = TextRenderer.MeasureText(obj.ToString(), font, new Size(Int16.MaxValue, Int16.MaxValue), TextFormatFlags.SingleLine); 551public Size GetTextSize(string text, Font font, Size proposedConstraints, TextFormatFlags flags) { 612private Size GetUnconstrainedSize(string text, Font font, TextFormatFlags flags) { 618flags = (flags & ~TextFormatFlags.WordBreak); // rip out the wordbreak flag 630public bool TextRequiresWordBreak(string text, Font font, Size size, TextFormatFlags flags) {
winforms\Managed\System\WinForms\LinkLabel.cs (5)
679TextFormatFlags flags = CreateTextFormatFlags(clientSize); 685if( (flags & TextFormatFlags.NoPadding ) == TextFormatFlags.NoPadding ){ 688else if( (flags & TextFormatFlags.LeftAndRightPadding ) == TextFormatFlags.LeftAndRightPadding ){
winforms\Managed\System\WinForms\PropertyGrid.cs (7)
5285TextFormatFlags flags = 5287TextFormatFlags.LeftAndRightPadding | 5288TextFormatFlags.WordBreak | 5289TextFormatFlags.NoFullWidthCharacterBreak; 5297public static TextFormatFlags GetTextRendererFlags(){ 5298return TextFormatFlags.PreserveGraphicsClipping | 5299TextFormatFlags.PreserveGraphicsTranslateTransform;
winforms\Managed\System\WinForms\RadioButtonRenderer.cs (10)
123TextFormatFlags.HorizontalCenter | TextFormatFlags.VerticalCenter | TextFormatFlags.SingleLine, 133public static void DrawRadioButton(Graphics g, Point glyphLocation, Rectangle textBounds, string radioButtonText, Font font, TextFormatFlags flags, bool focused, RadioButtonState state) { 137internal static void DrawRadioButton(Graphics g, Point glyphLocation, Rectangle textBounds, string radioButtonText, Font font, TextFormatFlags flags, bool focused, RadioButtonState state, IntPtr hWnd) { 167TextFormatFlags.HorizontalCenter | TextFormatFlags.VerticalCenter | TextFormatFlags.SingleLine, 179public static void DrawRadioButton(Graphics g, Point glyphLocation, Rectangle textBounds, string radioButtonText, Font font, TextFormatFlags flags, Image image, Rectangle imageBounds, bool focused, RadioButtonState state) { 183internal static void DrawRadioButton(Graphics g, Point glyphLocation, Rectangle textBounds, string radioButtonText, Font font, TextFormatFlags flags, Image image, Rectangle imageBounds, bool focused, RadioButtonState state, IntPtr hWnd) {
winforms\Managed\System\WinForms\TabRenderer.cs (8)
96TextFormatFlags.HorizontalCenter | TextFormatFlags.VerticalCenter | TextFormatFlags.SingleLine, 106public static void DrawTabItem(Graphics g, Rectangle bounds, string tabItemText, Font font, TextFormatFlags flags, bool focused, TabItemState state) { 151TextFormatFlags.HorizontalCenter | TextFormatFlags.VerticalCenter | TextFormatFlags.SingleLine, 161public static void DrawTabItem(Graphics g, Rectangle bounds, string tabItemText, Font font, TextFormatFlags flags, Image image, Rectangle imageRectangle, bool focused, TabItemState state) {
winforms\Managed\System\WinForms\TextBoxBase.cs (4)
981TextFormatFlags format = TextFormatFlags.NoPrefix; 983format |= TextFormatFlags.SingleLine; 985format |= TextFormatFlags.WordBreak;
winforms\Managed\System\WinForms\TextBoxRenderer.cs (4)
81DrawTextBox(g, bounds, textBoxText, font, TextFormatFlags.TextBoxControl, state); 91DrawTextBox(g, bounds, textBoxText, font, textBounds, TextFormatFlags.TextBoxControl, state); 100public static void DrawTextBox(Graphics g, Rectangle bounds, string textBoxText, Font font, TextFormatFlags flags, TextBoxState state) { 116public static void DrawTextBox(Graphics g, Rectangle bounds, string textBoxText, Font font, Rectangle textBounds, TextFormatFlags flags, TextBoxState state) {
winforms\Managed\System\WinForms\ThreadExceptionDialog.cs (1)
239textSize = Size.Ceiling(TextRenderer.MeasureText(messageText, Font, textSize, TextFormatFlags.WordBreak));
winforms\Managed\System\WinForms\ToolStripItem.cs (6)
4666public virtual TextFormatFlags TextFormat { 4676internal static TextFormatFlags ContentAlignToTextFormat(ContentAlignment alignment, bool rightToLeft) { 4677TextFormatFlags textFormat = TextFormatFlags.Default; 4680textFormat |= TextFormatFlags.RightToLeft; 4725layoutOptions.gdiTextFormatFlags = (Owner.ShowKeyboardCues) ? layoutOptions.gdiTextFormatFlags : layoutOptions.gdiTextFormatFlags | TextFormatFlags.HidePrefix;
winforms\Managed\System\WinForms\ToolStripItemTextRenderEventArgs.cs (5)
25private TextFormatFlags textFormat = TextFormatFlags.Default; 33public ToolStripItemTextRenderEventArgs(Graphics g, ToolStripItem item, string text, Rectangle textRectangle, Color textColor, Font textFont, TextFormatFlags format) : base(g, item) { 57this.textFormat = (item.ShowKeyboardCues) ? textFormat : textFormat | TextFormatFlags.HidePrefix; 134public TextFormatFlags TextFormat {
winforms\Managed\System\WinForms\ToolStripRenderer.cs (1)
930TextFormatFlags textFormat = e.TextFormat;
winforms\Managed\System\WinForms\TreeView.cs (2)
2845 TextRenderer.DrawText(g, e.Node.Text, font, bounds, color, TextFormatFlags.Default); 2856TextRenderer.DrawText(g, e.Node.Text, font, bounds, color, TextFormatFlags.Default);
winforms\Managed\System\WinForms\VisualStyles\VisualStyleRenderer.cs (7)
31private const TextFormatFlags AllGraphicsProperties = TextFormatFlags.PreserveGraphicsClipping | TextFormatFlags.PreserveGraphicsTranslateTransform; 474DrawText(dc, bounds, textToDraw, drawDisabled, TextFormatFlags.HorizontalCenter); 483public void DrawText(IDeviceContext dc, Rectangle bounds, string textToDraw, bool drawDisabled, TextFormatFlags flags) { 865public Rectangle GetTextExtent(IDeviceContext dc, string textToDraw, TextFormatFlags flags) { 890public Rectangle GetTextExtent(IDeviceContext dc, Rectangle bounds, string textToDraw, TextFormatFlags flags) {