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