77 references to DRAW_TEXT_FORMAT
System.Windows.Forms (62)
System\Windows\Forms\Controls\GroupBox\GroupBox.cs (6)
500
DRAW_TEXT_FORMAT
flags =
DRAW_TEXT_FORMAT
.DT_WORDBREAK |
DRAW_TEXT_FORMAT
.DT_EDITCONTROL;
504
flags |=
DRAW_TEXT_FORMAT
.DT_HIDEPREFIX;
509
flags |=
DRAW_TEXT_FORMAT
.DT_RTLREADING;
510
flags |=
DRAW_TEXT_FORMAT
.DT_RIGHT;
System\Windows\Forms\Controls\PropertyGrid\PropertyGridInternal\GridEntry.cs (8)
1908
DRAW_TEXT_FORMAT
format =
DRAW_TEXT_FORMAT
.DT_EDITCONTROL |
DRAW_TEXT_FORMAT
.DT_EXPANDTABS |
DRAW_TEXT_FORMAT
.DT_NOCLIP
1909
|
DRAW_TEXT_FORMAT
.DT_SINGLELINE |
DRAW_TEXT_FORMAT
.DT_NOPREFIX;
1913
format |=
DRAW_TEXT_FORMAT
.DT_RIGHT |
DRAW_TEXT_FORMAT
.DT_RTLREADING;
System\Windows\Forms\Design\ComponentEditorForm.PageSelector.cs (4)
140
DRAW_TEXT_FORMAT
.DT_LEFT |
DRAW_TEXT_FORMAT
.DT_VCENTER |
DRAW_TEXT_FORMAT
.DT_END_ELLIPSIS |
DRAW_TEXT_FORMAT
.DT_NOPREFIX);
System\Windows\Forms\Rendering\TextExtensions.cs (19)
19
private static void ValidateFlags(
DRAW_TEXT_FORMAT
flags)
25
private static (
DRAW_TEXT_FORMAT
Flags, TextPaddingOptions Padding) SplitTextFormatFlags(TextFormatFlags flags)
29
return ((
DRAW_TEXT_FORMAT
)flags, TextPaddingOptions.GlyphOverhangPadding);
33
DRAW_TEXT_FORMAT
windowsGraphicsSupportedFlags = (
DRAW_TEXT_FORMAT
)((uint)flags & ~GdiUnsupportedFlagMask);
63
(
DRAW_TEXT_FORMAT
dt, TextPaddingOptions padding) = SplitTextFormatFlags(flags);
155
DRAW_TEXT_FORMAT
flags,
161
bool isTop = !flags.HasFlag(
DRAW_TEXT_FORMAT
.DT_BOTTOM) && !flags.HasFlag(
DRAW_TEXT_FORMAT
.DT_VCENTER);
162
if (isTop || flags.HasFlag(
DRAW_TEXT_FORMAT
.DT_SINGLELINE) || flags.HasFlag(
DRAW_TEXT_FORMAT
.DT_CALCRECT))
170
flags |=
DRAW_TEXT_FORMAT
.DT_CALCRECT;
182
if (flags.HasFlag(
DRAW_TEXT_FORMAT
.DT_VCENTER))
217
(
DRAW_TEXT_FORMAT
dt, TextPaddingOptions padding) = SplitTextFormatFlags(flags);
252
if (proposedSize.Height == int.MaxValue && dt.HasFlag(
DRAW_TEXT_FORMAT
.DT_SINGLELINE))
255
dt &= ~(
DRAW_TEXT_FORMAT
.DT_BOTTOM |
DRAW_TEXT_FORMAT
.DT_VCENTER);
261
dt &= ~(
DRAW_TEXT_FORMAT
.DT_WORDBREAK);
264
dt |=
DRAW_TEXT_FORMAT
.DT_CALCRECT;
System\Windows\Forms\Rendering\TextFormatFlags.cs (22)
14
Bottom = (int)
DRAW_TEXT_FORMAT
.DT_BOTTOM,
15
EndEllipsis = (int)
DRAW_TEXT_FORMAT
.DT_END_ELLIPSIS,
16
ExpandTabs = (int)
DRAW_TEXT_FORMAT
.DT_EXPANDTABS,
17
ExternalLeading = (int)
DRAW_TEXT_FORMAT
.DT_EXTERNALLEADING,
19
HidePrefix = (int)
DRAW_TEXT_FORMAT
.DT_HIDEPREFIX,
20
HorizontalCenter = (int)
DRAW_TEXT_FORMAT
.DT_CENTER,
21
Internal = (int)
DRAW_TEXT_FORMAT
.DT_INTERNAL,
26
Left = (int)
DRAW_TEXT_FORMAT
.DT_LEFT,
29
ModifyString = (int)
DRAW_TEXT_FORMAT
.DT_MODIFYSTRING,
30
NoClipping = (int)
DRAW_TEXT_FORMAT
.DT_NOCLIP,
31
NoPrefix = (int)
DRAW_TEXT_FORMAT
.DT_NOPREFIX,
32
NoFullWidthCharacterBreak = (int)
DRAW_TEXT_FORMAT
.DT_NOFULLWIDTHCHARBREAK,
33
PathEllipsis = (int)
DRAW_TEXT_FORMAT
.DT_PATH_ELLIPSIS,
34
PrefixOnly = (int)
DRAW_TEXT_FORMAT
.DT_PREFIXONLY,
35
Right = (int)
DRAW_TEXT_FORMAT
.DT_RIGHT,
36
RightToLeft = (int)
DRAW_TEXT_FORMAT
.DT_RTLREADING,
37
SingleLine = (int)
DRAW_TEXT_FORMAT
.DT_SINGLELINE,
38
TextBoxControl = (int)
DRAW_TEXT_FORMAT
.DT_EDITCONTROL,
43
Top = (int)
DRAW_TEXT_FORMAT
.DT_TOP,
45
VerticalCenter = (int)
DRAW_TEXT_FORMAT
.DT_VCENTER,
46
WordBreak = (int)
DRAW_TEXT_FORMAT
.DT_WORDBREAK,
47
WordEllipsis = (int)
DRAW_TEXT_FORMAT
.DT_WORD_ELLIPSIS,
System\Windows\Forms\VisualStyles\VisualStyleRenderer.cs (3)
396
(
DRAW_TEXT_FORMAT
)flags,
671
(
DRAW_TEXT_FORMAT
)flags,
694
(
DRAW_TEXT_FORMAT
)flags,
System.Windows.Forms.Design (1)
System\ComponentModel\Design\MultilineStringEditor.MultilineStringEditorUI.cs (1)
187
PInvoke.DrawText(hdc, t, Text.Length, ref rect,
DRAW_TEXT_FORMAT
.DT_CALCRECT);
System.Windows.Forms.Primitives (14)
_generated\425\Windows.Win32.PInvoke.USER32.dll.g.cs (6)
739
/// <inheritdoc cref="DrawText(winmdroot.Graphics.Gdi.HDC, winmdroot.Foundation.PCWSTR, int, winmdroot.Foundation.RECT*, winmdroot.Graphics.Gdi.
DRAW_TEXT_FORMAT
)"/>
741
internal static unsafe int DrawText(winmdroot.Graphics.Gdi.HDC hdc, winmdroot.Foundation.PCWSTR lpchText, int cchText, ref winmdroot.Foundation.RECT lprc, winmdroot.Graphics.Gdi.
DRAW_TEXT_FORMAT
format)
769
internal static extern unsafe int DrawText(winmdroot.Graphics.Gdi.HDC hdc, winmdroot.Foundation.PCWSTR lpchText, int cchText, winmdroot.Foundation.RECT* lprc, winmdroot.Graphics.Gdi.
DRAW_TEXT_FORMAT
format);
771
/// <inheritdoc cref="DrawTextEx(winmdroot.Graphics.Gdi.HDC, winmdroot.Foundation.PWSTR, int, winmdroot.Foundation.RECT*, winmdroot.Graphics.Gdi.
DRAW_TEXT_FORMAT
, winmdroot.Graphics.Gdi.DRAWTEXTPARAMS*)"/>
773
internal static unsafe int DrawTextEx(winmdroot.Graphics.Gdi.HDC hdc, ref Span<char>lpchText, int cchText, ref winmdroot.Foundation.RECT lprc, winmdroot.Graphics.Gdi.
DRAW_TEXT_FORMAT
format, winmdroot.Graphics.Gdi.DRAWTEXTPARAMS? lpdtp)
809
internal static extern unsafe int DrawTextEx(winmdroot.Graphics.Gdi.HDC hdc, winmdroot.Foundation.PWSTR lpchText, int cchText, winmdroot.Foundation.RECT* lprc, winmdroot.Graphics.Gdi.
DRAW_TEXT_FORMAT
format, [Optional] winmdroot.Graphics.Gdi.DRAWTEXTPARAMS* lpdtp);
_generated\426\Windows.Win32.PInvoke.UXTHEME.dll.g.cs (6)
168
/// <inheritdoc cref="DrawThemeText(winmdroot.UI.Controls.HTHEME, winmdroot.Graphics.Gdi.HDC, int, int, winmdroot.Foundation.PCWSTR, int, winmdroot.Graphics.Gdi.
DRAW_TEXT_FORMAT
, uint, winmdroot.Foundation.RECT*)"/>
170
internal static unsafe winmdroot.Foundation.HRESULT DrawThemeText(winmdroot.UI.Controls.HTHEME hTheme, winmdroot.Graphics.Gdi.HDC hdc, int iPartId, int iStateId, string pszText, int cchText, winmdroot.Graphics.Gdi.
DRAW_TEXT_FORMAT
dwTextFlags, uint dwTextFlags2, in winmdroot.Foundation.RECT pRect)
225
internal static extern unsafe winmdroot.Foundation.HRESULT DrawThemeText(winmdroot.UI.Controls.HTHEME hTheme, winmdroot.Graphics.Gdi.HDC hdc, int iPartId, int iStateId, winmdroot.Foundation.PCWSTR pszText, int cchText, winmdroot.Graphics.Gdi.
DRAW_TEXT_FORMAT
dwTextFlags, uint dwTextFlags2, winmdroot.Foundation.RECT* pRect);
976
/// <inheritdoc cref="GetThemeTextExtent(winmdroot.UI.Controls.HTHEME, winmdroot.Graphics.Gdi.HDC, int, int, winmdroot.Foundation.PCWSTR, int, winmdroot.Graphics.Gdi.
DRAW_TEXT_FORMAT
, winmdroot.Foundation.RECT*, winmdroot.Foundation.RECT*)"/>
978
internal static unsafe winmdroot.Foundation.HRESULT GetThemeTextExtent(winmdroot.UI.Controls.HTHEME hTheme, winmdroot.Graphics.Gdi.HDC hdc, int iPartId, int iStateId, string pszText, int cchCharCount, winmdroot.Graphics.Gdi.
DRAW_TEXT_FORMAT
dwTextFlags, winmdroot.Foundation.RECT? pBoundingRect, out winmdroot.Foundation.RECT pExtentRect)
1036
internal static extern unsafe winmdroot.Foundation.HRESULT GetThemeTextExtent(winmdroot.UI.Controls.HTHEME hTheme, winmdroot.Graphics.Gdi.HDC hdc, int iPartId, int iStateId, winmdroot.Foundation.PCWSTR pszText, int cchCharCount, winmdroot.Graphics.Gdi.
DRAW_TEXT_FORMAT
dwTextFlags, [Optional] winmdroot.Foundation.RECT* pBoundingRect, winmdroot.Foundation.RECT* pExtentRect);
Windows\Win32\PInvoke.DrawTextEx.cs (2)
8
/// <inheritdoc cref="DrawTextEx(HDC, PWSTR, int, RECT*,
DRAW_TEXT_FORMAT
, DRAWTEXTPARAMS*)"/>
13
DRAW_TEXT_FORMAT
format,