77 references to DRAW_TEXT_FORMAT
System.Windows.Forms (62)
System\Windows\Forms\Controls\GroupBox\GroupBox.cs (6)
500DRAW_TEXT_FORMAT flags = DRAW_TEXT_FORMAT.DT_WORDBREAK | DRAW_TEXT_FORMAT.DT_EDITCONTROL; 504flags |= DRAW_TEXT_FORMAT.DT_HIDEPREFIX; 509flags |= DRAW_TEXT_FORMAT.DT_RTLREADING; 510flags |= DRAW_TEXT_FORMAT.DT_RIGHT;
System\Windows\Forms\Controls\PropertyGrid\PropertyGridInternal\GridEntry.cs (8)
1908DRAW_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; 1913format |= DRAW_TEXT_FORMAT.DT_RIGHT | DRAW_TEXT_FORMAT.DT_RTLREADING;
System\Windows\Forms\Design\ComponentEditorForm.PageSelector.cs (4)
140DRAW_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)
19private static void ValidateFlags(DRAW_TEXT_FORMAT flags) 25private static (DRAW_TEXT_FORMAT Flags, TextPaddingOptions Padding) SplitTextFormatFlags(TextFormatFlags flags) 29return ((DRAW_TEXT_FORMAT)flags, TextPaddingOptions.GlyphOverhangPadding); 33DRAW_TEXT_FORMAT windowsGraphicsSupportedFlags = (DRAW_TEXT_FORMAT)((uint)flags & ~GdiUnsupportedFlagMask); 63(DRAW_TEXT_FORMAT dt, TextPaddingOptions padding) = SplitTextFormatFlags(flags); 155DRAW_TEXT_FORMAT flags, 161bool isTop = !flags.HasFlag(DRAW_TEXT_FORMAT.DT_BOTTOM) && !flags.HasFlag(DRAW_TEXT_FORMAT.DT_VCENTER); 162if (isTop || flags.HasFlag(DRAW_TEXT_FORMAT.DT_SINGLELINE) || flags.HasFlag(DRAW_TEXT_FORMAT.DT_CALCRECT)) 170flags |= DRAW_TEXT_FORMAT.DT_CALCRECT; 182if (flags.HasFlag(DRAW_TEXT_FORMAT.DT_VCENTER)) 217(DRAW_TEXT_FORMAT dt, TextPaddingOptions padding) = SplitTextFormatFlags(flags); 252if (proposedSize.Height == int.MaxValue && dt.HasFlag(DRAW_TEXT_FORMAT.DT_SINGLELINE)) 255dt &= ~(DRAW_TEXT_FORMAT.DT_BOTTOM | DRAW_TEXT_FORMAT.DT_VCENTER); 261dt &= ~(DRAW_TEXT_FORMAT.DT_WORDBREAK); 264dt |= DRAW_TEXT_FORMAT.DT_CALCRECT;
System\Windows\Forms\Rendering\TextFormatFlags.cs (22)
14Bottom = (int)DRAW_TEXT_FORMAT.DT_BOTTOM, 15EndEllipsis = (int)DRAW_TEXT_FORMAT.DT_END_ELLIPSIS, 16ExpandTabs = (int)DRAW_TEXT_FORMAT.DT_EXPANDTABS, 17ExternalLeading = (int)DRAW_TEXT_FORMAT.DT_EXTERNALLEADING, 19HidePrefix = (int)DRAW_TEXT_FORMAT.DT_HIDEPREFIX, 20HorizontalCenter = (int)DRAW_TEXT_FORMAT.DT_CENTER, 21Internal = (int)DRAW_TEXT_FORMAT.DT_INTERNAL, 26Left = (int)DRAW_TEXT_FORMAT.DT_LEFT, 29ModifyString = (int)DRAW_TEXT_FORMAT.DT_MODIFYSTRING, 30NoClipping = (int)DRAW_TEXT_FORMAT.DT_NOCLIP, 31NoPrefix = (int)DRAW_TEXT_FORMAT.DT_NOPREFIX, 32NoFullWidthCharacterBreak = (int)DRAW_TEXT_FORMAT.DT_NOFULLWIDTHCHARBREAK, 33PathEllipsis = (int)DRAW_TEXT_FORMAT.DT_PATH_ELLIPSIS, 34PrefixOnly = (int)DRAW_TEXT_FORMAT.DT_PREFIXONLY, 35Right = (int)DRAW_TEXT_FORMAT.DT_RIGHT, 36RightToLeft = (int)DRAW_TEXT_FORMAT.DT_RTLREADING, 37SingleLine = (int)DRAW_TEXT_FORMAT.DT_SINGLELINE, 38TextBoxControl = (int)DRAW_TEXT_FORMAT.DT_EDITCONTROL, 43Top = (int)DRAW_TEXT_FORMAT.DT_TOP, 45VerticalCenter = (int)DRAW_TEXT_FORMAT.DT_VCENTER, 46WordBreak = (int)DRAW_TEXT_FORMAT.DT_WORDBREAK, 47WordEllipsis = (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)
187PInvoke.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*)"/> 13DRAW_TEXT_FORMAT format,