18 instantiations of StringFormat
PresentationUI (1)
MS\Internal\Documents\SignatureSummaryDialog.cs (1)
626StringFormat stringFormat = new StringFormat();
System.Drawing.Common (3)
System\Drawing\StringFormat.cs (3)
99public object Clone() => new StringFormat(this); 312return new StringFormat(format); 338return new StringFormat(format);
System.Windows.Forms (7)
System\Windows\Forms\Controls\Buttons\ButtonBase.cs (1)
1075return new StringFormat();
System\Windows\Forms\Controls\Buttons\ButtonInternal\ButtonBaseAdapter.LayoutOptions.cs (1)
74StringFormat format = new()
System\Windows\Forms\Controls\GroupBox\GroupBox.cs (1)
473using StringFormat format = new StringFormat
System\Windows\Forms\Controls\ListBoxes\CheckedListBox.cs (1)
636using StringFormat format = new();
System\Windows\Forms\Controls\PropertyGrid\PropertyGridInternal\GridEntry.cs (1)
1591StringFormat stringFormat = new(StringFormatFlags.NoWrap)
System\Windows\Forms\Printing\PrintPreviewControl.cs (1)
603using StringFormat format = new()
System\Windows\Forms\Rendering\ControlPaint.cs (1)
2592StringFormat stringFormat = new()
System.Windows.Forms.Design (7)
System\ComponentModel\Design\CollectionEditor.CollectionEditorCollectionForm.cs (1)
619using (StringFormat format = new())
System\ComponentModel\Design\MultilineStringEditor.MultilineStringEditorUI.cs (1)
33_watermarkFormat = new StringFormat
System\Drawing\Design\FontNameEditor.cs (1)
74StringFormat format = new(StringFormatFlags.NoWrap | StringFormatFlags.NoFontFallback)
System\Windows\Forms\Design\ComponentTray.cs (1)
2261StringFormat format = new();
System\Windows\Forms\Design\ControlDesigner.cs (1)
2244StringFormat stringFormat = new StringFormat
System\Windows\Forms\Design\ToolStripCollectionEditor.ToolStripItemEditorForm.cs (2)
871stringFormat = rightToLeft ? new(StringFormatFlags.DirectionRightToLeft) : new();
105 references to StringFormat
PresentationUI (1)
MS\Internal\Documents\SignatureSummaryDialog.cs (1)
626StringFormat stringFormat = new StringFormat();
System.Drawing (1)
System.Drawing.cs (1)
150[assembly: System.Runtime.CompilerServices.TypeForwardedTo(typeof(System.Drawing.StringFormat))]
System.Drawing.Common (72)
System\Drawing\Drawing2D\GraphicsPath.cs (4)
777public void AddString(string s, FontFamily family, int style, float emSize, PointF origin, StringFormat? format) => 780public void AddString(string s, FontFamily family, int style, float emSize, Point origin, StringFormat? format) => 783public void AddString(string s, FontFamily family, int style, float emSize, RectangleF layoutRect, StringFormat? format) 805public void AddString(string s, FontFamily family, int style, float emSize, Rectangle layoutRect, StringFormat? format)
System\Drawing\Graphics.cs (47)
1618/// <see cref="Font"/> objects using the formatting attributes of the specified <see cref="StringFormat"/>. 1626/// <see cref="StringFormat"/> that specifies formatting attributes, such as line spacing and alignment, 1632public void DrawString(string? s, Font font, Brush brush, float x, float y, StringFormat? format) => 1636/// <inheritdoc cref="DrawString(string?, Font, Brush, float, float, StringFormat?)"/> 1637public void DrawString(ReadOnlySpan<char> s, Font font, Brush brush, float x, float y, StringFormat? format) => 1643/// <see cref="Font"/> objects using the formatting attributes of the specified <see cref="StringFormat"/>. 1650/// <see cref="StringFormat"/> that specifies formatting attributes, such as line spacing and alignment, 1656public void DrawString(string? s, Font font, Brush brush, PointF point, StringFormat? format) => 1660/// <inheritdoc cref="DrawString(string?, Font, Brush, PointF, StringFormat?)"/> 1661public void DrawString(ReadOnlySpan<char> s, Font font, Brush brush, PointF point, StringFormat? format) => 1681/// <see cref="DrawString(string?, Font, Brush, RectangleF, StringFormat?)"/> overload that takes 1682/// a <see cref="StringFormat"/>. 1694/// <see cref="DrawString(ReadOnlySpan{char}, Font, Brush, RectangleF, StringFormat?)"/> overload that takes 1695/// a <see cref="StringFormat"/>. 1705/// <see cref="Font"/> objects using the formatting attributes of the specified <see cref="StringFormat"/>. 1712/// <see cref="StringFormat"/> that specifies formatting attributes, such as line spacing and alignment, 1725public void DrawString(string? s, Font font, Brush brush, RectangleF layoutRectangle, StringFormat? format) => 1729/// <inheritdoc cref="DrawString(string?, Font, Brush, RectangleF, StringFormat?)"/> 1730public void DrawString(ReadOnlySpan<char> s, Font font, Brush brush, RectangleF layoutRectangle, StringFormat? format) => 1734private void DrawStringInternal(ReadOnlySpan<char> s, Font font, Brush brush, RectangleF layoutRectangle, StringFormat? format) 1763/// <inheritdoc cref="MeasureString(string?, Font, SizeF, StringFormat?)"/> 1768StringFormat? stringFormat, 1774/// <inheritdoc cref="MeasureString(string?, Font, SizeF, StringFormat?, out int, out int)"/> 1779StringFormat? stringFormat, 1789StringFormat? stringFormat, 1827/// <inheritdoc cref="MeasureString(string?, Font, SizeF, StringFormat?)"/> 1828public SizeF MeasureString(string? text, Font font, PointF origin, StringFormat? stringFormat) 1832/// <inheritdoc cref="MeasureString(string?, Font, PointF, StringFormat?)"/> 1833public SizeF MeasureString(ReadOnlySpan<char> text, Font font, PointF origin, StringFormat? stringFormat) 1837/// <inheritdoc cref="MeasureString(string?, Font, SizeF, StringFormat?)"/> 1846/// <see cref="StringFormat"/> that represents formatting information, such as line spacing, for the text. 1851/// <inheritdoc cref="MeasureString(string?, Font, int, StringFormat?)"/> 1852public SizeF MeasureString(string? text, Font font, SizeF layoutArea, StringFormat? stringFormat) => 1856/// <inheritdoc cref="MeasureString(string?, Font, SizeF, StringFormat?)"/> 1857public SizeF MeasureString(ReadOnlySpan<char> text, Font font, SizeF layoutArea, StringFormat? stringFormat) => 1878/// use the <see cref="MeasureCharacterRanges(string?, Font, RectangleF, StringFormat?)"/> method or one of 1879/// the <see cref="MeasureString(string?, Font, int, StringFormat?)"/> methods that takes a StringFormat, and 1880/// pass <see cref="StringFormat.GenericTypographic"/>. Also, ensure the <see cref="TextRenderingHint"/> for 1903/// <see cref="StringFormat"/> that represents formatting information, such as line spacing, for the text. 1906public SizeF MeasureString(string? text, Font font, int width, StringFormat? format) => 1910/// <inheritdoc cref="MeasureString(string?, Font, int, StringFormat?)"/> 1911public SizeF MeasureString(ReadOnlySpan<char> text, Font font, int width, StringFormat? format) => 1923/// <see cref="StringFormat"/> that represents formatting information, such as line spacing, for the text. 1936public Region[] MeasureCharacterRanges(string? text, Font font, RectangleF layoutRect, StringFormat? stringFormat) => 1940/// <inheritdoc cref="MeasureCharacterRanges(string?, Font, RectangleF, StringFormat?)"/> 1941public Region[] MeasureCharacterRanges(ReadOnlySpan<char> text, Font font, RectangleF layoutRect, StringFormat? stringFormat) => 1949StringFormat? stringFormat)
System\Drawing\PointerExtensions.cs (1)
15public static GpStringFormat* Pointer(this StringFormat? format) => format is null ? null : format._nativeFormat;
System\Drawing\StringFormat.cs (20)
20/// Initializes a new instance of the <see cref='StringFormat'/> class. 27/// Initializes a new instance of the <see cref='StringFormat'/> class with the specified <see cref='StringFormatFlags'/>. 34/// Initializes a new instance of the <see cref='StringFormat'/> class with the specified 45/// Initializes a new instance of the <see cref='StringFormat'/> class from the specified 46/// existing <see cref='StringFormat'/>. 48public StringFormat(StringFormat format) 58/// Cleans up Windows resources for this <see cref='StringFormat'/>. 97/// Creates an exact copy of this <see cref='StringFormat'/>. 190/// Gets or sets the <see cref='HotkeyPrefix'/> for this <see cref='StringFormat'/> . 214/// Sets tab stops for this <see cref='StringFormat'/>. 240/// Gets the tab stops for this <see cref='StringFormat'/>. 268/// Gets or sets the <see cref='StringTrimming'/> for this <see cref='StringFormat'/>. 292/// Gets a generic default <see cref='StringFormat'/>. 306public static StringFormat GenericDefault 317/// Gets a generic typographic <see cref='StringFormat'/>. 332public static StringFormat GenericTypographic 353/// Gets the <see cref='StringDigitSubstitute'/> for this <see cref='StringFormat'/>. 371/// Gets the language of <see cref='StringDigitSubstitute'/> for this <see cref='StringFormat'/>. 393/// Cleans up Windows resources for this <see cref='StringFormat'/>. 398/// Converts this <see cref='StringFormat'/> to a human-readable string.
System.Windows.Forms (25)
System\Windows\Forms\Controls\Buttons\ButtonBase.cs (1)
1070internal virtual StringFormat CreateStringFormat()
System\Windows\Forms\Controls\Buttons\ButtonInternal\ButtonBaseAdapter.cs (4)
88/// Get <see cref="StringFormat"/> object for rendering text using GDI+ (<see cref="Graphics"/>). 90internal virtual StringFormat CreateStringFormat() 463using StringFormat stringFormat = CreateStringFormat(); 636using StringFormat format = Control.CreateStringFormat();
System\Windows\Forms\Controls\Buttons\ButtonInternal\ButtonBaseAdapter.LayoutOptions.cs (3)
70public StringFormat StringFormat 74StringFormat format = new() 669using StringFormat stringFormat = StringFormat;
System\Windows\Forms\Controls\DataGridView\DataGridView.cs (1)
266private StringFormat? _placeholderStringFormat;
System\Windows\Forms\Controls\GroupBox\GroupBox.cs (1)
473using StringFormat format = new StringFormat
System\Windows\Forms\Controls\Labels\Label.cs (3)
908internal virtual StringFormat CreateStringFormat() 1079using StringFormat stringFormat = CreateStringFormat(); 1280using StringFormat stringFormat = CreateStringFormat();
System\Windows\Forms\Controls\Labels\LinkLabel.cs (6)
531using StringFormat textFormat = CreateStringFormat(); 604internal override StringFormat CreateStringFormat() 606StringFormat stringFormat = base.CreateStringFormat(); 1122StringFormat stringFormat = CreateStringFormat(); 1291StringFormat stringFormat = CreateStringFormat(); 1350StringFormat stringFormat = CreateStringFormat();
System\Windows\Forms\Controls\ListBoxes\CheckedListBox.cs (1)
636using StringFormat format = new();
System\Windows\Forms\Controls\PropertyGrid\PropertyGridInternal\GridEntry.cs (1)
1591StringFormat stringFormat = new(StringFormatFlags.NoWrap)
System\Windows\Forms\Printing\PrintPreviewControl.cs (1)
603using StringFormat format = new()
System\Windows\Forms\Rendering\ControlPaint.cs (3)
2010StringFormat format) 2586internal static StringFormat CreateStringFormat( 2592StringFormat stringFormat = new()
System.Windows.Forms.Design (6)
System\ComponentModel\Design\CollectionEditor.CollectionEditorCollectionForm.cs (1)
619using (StringFormat format = new())
System\ComponentModel\Design\MultilineStringEditor.MultilineStringEditorUI.cs (1)
25private readonly StringFormat _watermarkFormat;
System\Drawing\Design\FontNameEditor.cs (1)
74StringFormat format = new(StringFormatFlags.NoWrap | StringFormatFlags.NoFontFallback)
System\Windows\Forms\Design\ComponentTray.cs (1)
2261StringFormat format = new();
System\Windows\Forms\Design\ControlDesigner.cs (1)
2244StringFormat stringFormat = new StringFormat
System\Windows\Forms\Design\ToolStripCollectionEditor.ToolStripItemEditorForm.cs (1)
867StringFormat stringFormat = null;