18 instantiations of StringFormat
PresentationUI (1)
MS\Internal\Documents\SignatureSummaryDialog.cs (1)
626
StringFormat stringFormat = new
StringFormat
();
System.Drawing.Common (3)
System\Drawing\StringFormat.cs (3)
99
public object Clone() => new
StringFormat
(this);
312
return new
StringFormat
(format);
338
return new
StringFormat
(format);
System.Windows.Forms (7)
System\Windows\Forms\Controls\Buttons\ButtonBase.cs (1)
1075
return new
StringFormat
();
System\Windows\Forms\Controls\Buttons\ButtonInternal\ButtonBaseAdapter.LayoutOptions.cs (1)
74
StringFormat format =
new
()
System\Windows\Forms\Controls\GroupBox\GroupBox.cs (1)
473
using StringFormat format = new
StringFormat
System\Windows\Forms\Controls\ListBoxes\CheckedListBox.cs (1)
636
using StringFormat format =
new
();
System\Windows\Forms\Controls\PropertyGrid\PropertyGridInternal\GridEntry.cs (1)
1591
StringFormat stringFormat =
new
(StringFormatFlags.NoWrap)
System\Windows\Forms\Printing\PrintPreviewControl.cs (1)
603
using StringFormat format =
new
()
System\Windows\Forms\Rendering\ControlPaint.cs (1)
2592
StringFormat stringFormat =
new
()
System.Windows.Forms.Design (7)
System\ComponentModel\Design\CollectionEditor.CollectionEditorCollectionForm.cs (1)
619
using (StringFormat format =
new
())
System\ComponentModel\Design\MultilineStringEditor.MultilineStringEditorUI.cs (1)
33
_watermarkFormat = new
StringFormat
System\Drawing\Design\FontNameEditor.cs (1)
74
StringFormat format =
new
(StringFormatFlags.NoWrap | StringFormatFlags.NoFontFallback)
System\Windows\Forms\Design\ComponentTray.cs (1)
2261
StringFormat format =
new
();
System\Windows\Forms\Design\ControlDesigner.cs (1)
2244
StringFormat stringFormat = new
StringFormat
System\Windows\Forms\Design\ToolStripCollectionEditor.ToolStripItemEditorForm.cs (2)
871
stringFormat = rightToLeft ?
new
(StringFormatFlags.DirectionRightToLeft) :
new
();
105 references to StringFormat
PresentationUI (1)
MS\Internal\Documents\SignatureSummaryDialog.cs (1)
626
StringFormat
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)
777
public void AddString(string s, FontFamily family, int style, float emSize, PointF origin,
StringFormat
? format) =>
780
public void AddString(string s, FontFamily family, int style, float emSize, Point origin,
StringFormat
? format) =>
783
public void AddString(string s, FontFamily family, int style, float emSize, RectangleF layoutRect,
StringFormat
? format)
805
public 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,
1632
public void DrawString(string? s, Font font, Brush brush, float x, float y,
StringFormat
? format) =>
1636
/// <inheritdoc cref="DrawString(string?, Font, Brush, float, float,
StringFormat
?)"/>
1637
public 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,
1656
public void DrawString(string? s, Font font, Brush brush, PointF point,
StringFormat
? format) =>
1660
/// <inheritdoc cref="DrawString(string?, Font, Brush, PointF,
StringFormat
?)"/>
1661
public 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,
1725
public void DrawString(string? s, Font font, Brush brush, RectangleF layoutRectangle,
StringFormat
? format) =>
1729
/// <inheritdoc cref="DrawString(string?, Font, Brush, RectangleF,
StringFormat
?)"/>
1730
public void DrawString(ReadOnlySpan<char> s, Font font, Brush brush, RectangleF layoutRectangle,
StringFormat
? format) =>
1734
private void DrawStringInternal(ReadOnlySpan<char> s, Font font, Brush brush, RectangleF layoutRectangle,
StringFormat
? format)
1763
/// <inheritdoc cref="MeasureString(string?, Font, SizeF,
StringFormat
?)"/>
1768
StringFormat
? stringFormat,
1774
/// <inheritdoc cref="MeasureString(string?, Font, SizeF,
StringFormat
?, out int, out int)"/>
1779
StringFormat
? stringFormat,
1789
StringFormat
? stringFormat,
1827
/// <inheritdoc cref="MeasureString(string?, Font, SizeF,
StringFormat
?)"/>
1828
public SizeF MeasureString(string? text, Font font, PointF origin,
StringFormat
? stringFormat)
1832
/// <inheritdoc cref="MeasureString(string?, Font, PointF,
StringFormat
?)"/>
1833
public 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
?)"/>
1852
public SizeF MeasureString(string? text, Font font, SizeF layoutArea,
StringFormat
? stringFormat) =>
1856
/// <inheritdoc cref="MeasureString(string?, Font, SizeF,
StringFormat
?)"/>
1857
public 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.
1906
public SizeF MeasureString(string? text, Font font, int width,
StringFormat
? format) =>
1910
/// <inheritdoc cref="MeasureString(string?, Font, int,
StringFormat
?)"/>
1911
public 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.
1936
public Region[] MeasureCharacterRanges(string? text, Font font, RectangleF layoutRect,
StringFormat
? stringFormat) =>
1940
/// <inheritdoc cref="MeasureCharacterRanges(string?, Font, RectangleF,
StringFormat
?)"/>
1941
public Region[] MeasureCharacterRanges(ReadOnlySpan<char> text, Font font, RectangleF layoutRect,
StringFormat
? stringFormat) =>
1949
StringFormat
? stringFormat)
System\Drawing\PointerExtensions.cs (1)
15
public 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
'/>.
48
public 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
'/>.
306
public static
StringFormat
GenericDefault
317
/// Gets a generic typographic <see cref='
StringFormat
'/>.
332
public 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)
1070
internal 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"/>).
90
internal virtual
StringFormat
CreateStringFormat()
463
using
StringFormat
stringFormat = CreateStringFormat();
636
using
StringFormat
format = Control.CreateStringFormat();
System\Windows\Forms\Controls\Buttons\ButtonInternal\ButtonBaseAdapter.LayoutOptions.cs (3)
70
public
StringFormat
StringFormat
74
StringFormat
format = new()
669
using
StringFormat
stringFormat = StringFormat;
System\Windows\Forms\Controls\DataGridView\DataGridView.cs (1)
266
private
StringFormat
? _placeholderStringFormat;
System\Windows\Forms\Controls\GroupBox\GroupBox.cs (1)
473
using
StringFormat
format = new StringFormat
System\Windows\Forms\Controls\Labels\Label.cs (3)
908
internal virtual
StringFormat
CreateStringFormat()
1079
using
StringFormat
stringFormat = CreateStringFormat();
1280
using
StringFormat
stringFormat = CreateStringFormat();
System\Windows\Forms\Controls\Labels\LinkLabel.cs (6)
531
using
StringFormat
textFormat = CreateStringFormat();
604
internal override
StringFormat
CreateStringFormat()
606
StringFormat
stringFormat = base.CreateStringFormat();
1122
StringFormat
stringFormat = CreateStringFormat();
1291
StringFormat
stringFormat = CreateStringFormat();
1350
StringFormat
stringFormat = CreateStringFormat();
System\Windows\Forms\Controls\ListBoxes\CheckedListBox.cs (1)
636
using
StringFormat
format = new();
System\Windows\Forms\Controls\PropertyGrid\PropertyGridInternal\GridEntry.cs (1)
1591
StringFormat
stringFormat = new(StringFormatFlags.NoWrap)
System\Windows\Forms\Printing\PrintPreviewControl.cs (1)
603
using
StringFormat
format = new()
System\Windows\Forms\Rendering\ControlPaint.cs (3)
2010
StringFormat
format)
2586
internal static
StringFormat
CreateStringFormat(
2592
StringFormat
stringFormat = new()
System.Windows.Forms.Design (6)
System\ComponentModel\Design\CollectionEditor.CollectionEditorCollectionForm.cs (1)
619
using (
StringFormat
format = new())
System\ComponentModel\Design\MultilineStringEditor.MultilineStringEditorUI.cs (1)
25
private readonly
StringFormat
_watermarkFormat;
System\Drawing\Design\FontNameEditor.cs (1)
74
StringFormat
format = new(StringFormatFlags.NoWrap | StringFormatFlags.NoFontFallback)
System\Windows\Forms\Design\ComponentTray.cs (1)
2261
StringFormat
format = new();
System\Windows\Forms\Design\ControlDesigner.cs (1)
2244
StringFormat
stringFormat = new StringFormat
System\Windows\Forms\Design\ToolStripCollectionEditor.ToolStripItemEditorForm.cs (1)
867
StringFormat
stringFormat = null;