64 references to new
PresentationUI (1)
MS\Internal\Documents\SignatureSummaryDialog.cs (1)
618
StringFormat stringFormat = new
StringFormat
();
System.Drawing.Common.Tests (45)
mono\System.Drawing\GraphicsTests.cs (12)
1652
using StringFormat string_format =
new
();
1683
using StringFormat string_format =
new
();
1716
using StringFormat string_format =
new
();
1747
using StringFormat string_format =
new
();
1872
Region[] regions = g.MeasureCharacterRanges("Mono", _font, default, new
StringFormat
());
1875
g.MeasureCharacterRanges("Mono".AsSpan(), _font, default, new
StringFormat
());
1894
using StringFormat string_format =
new
();
1917
using StringFormat string_format =
new
();
1961
using StringFormat string_format =
new
();
2085
using StringFormat fmt =
new
();
2102
using StringFormat fmt =
new
();
2119
using StringFormat format =
new
();
mono\System.Imaging\MetafileTest.cs (1)
311
StringFormat sf =
new
()
System\Drawing\StringFormatTests.cs (32)
16
using StringFormat format =
new
();
84
StringFormat format =
new
();
93
StringFormat format =
new
();
119
StringFormat format =
new
();
132
using StringFormat format =
new
();
141
StringFormat format =
new
();
152
using StringFormat format =
new
();
162
using StringFormat format =
new
();
169
using StringFormat format =
new
();
176
using StringFormat format =
new
();
183
StringFormat format =
new
();
192
StringFormat format =
new
();
210
using StringFormat format =
new
();
217
using StringFormat format =
new
();
224
using StringFormat format =
new
();
231
StringFormat format =
new
();
243
using StringFormat format =
new
() { Alignment = alignment };
252
using StringFormat format =
new
();
259
StringFormat format =
new
();
269
StringFormat format =
new
();
278
StringFormat format =
new
();
290
using StringFormat format =
new
() { FormatFlags = formatFlags };
297
StringFormat format =
new
();
310
using StringFormat format =
new
() { LineAlignment = alignment };
319
using StringFormat format =
new
();
326
StringFormat format =
new
();
339
using StringFormat format =
new
() { HotkeyPrefix = prefix };
348
using StringFormat format =
new
();
355
StringFormat format =
new
();
366
using StringFormat format =
new
() { Trimming = trimming };
375
using StringFormat format =
new
();
382
StringFormat format =
new
();
System.Windows.Forms (6)
System\Windows\Forms\Controls\Buttons\ButtonBase.cs (1)
1017
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)
474
using StringFormat format = new
StringFormat
System\Windows\Forms\Controls\ListBoxes\CheckedListBox.cs (1)
634
using StringFormat format =
new
();
System\Windows\Forms\Printing\PrintPreviewControl.cs (1)
603
using StringFormat format =
new
()
System\Windows\Forms\Rendering\ControlPaint.cs (1)
2538
StringFormat stringFormat =
new
()
System.Windows.Forms.Design (4)
System\ComponentModel\Design\CollectionEditor.CollectionEditorCollectionForm.cs (1)
605
using (StringFormat format =
new
())
System\ComponentModel\Design\MultilineStringEditor.MultilineStringEditorUI.cs (1)
33
_watermarkFormat = new
StringFormat
System\Windows\Forms\Design\ComponentTray.cs (1)
2279
StringFormat format =
new
();
System\Windows\Forms\Design\ControlDesigner.cs (1)
2229
StringFormat stringFormat = new
StringFormat
System.Windows.Forms.Tests (8)
System\Windows\Forms\ControlPaintTests.cs (8)
1901
yield return new object[] { s, SystemFonts.MenuFont, Color.Red, RectangleF.Empty, new
StringFormat
() };
1902
yield return new object[] { s, SystemFonts.MenuFont, Color.Red, new RectangleF(1, 2, -3, -4), new
StringFormat
() };
1903
yield return new object[] { s, SystemFonts.MenuFont, Color.Red, new RectangleF(1, 2, 3, 4), new
StringFormat
() };
1904
yield return new object[] { s, SystemFonts.MenuFont, Color.Black, new RectangleF(1, 2, 3, 4), new
StringFormat
() };
1905
yield return new object[] { s, SystemFonts.MenuFont, Color.White, new RectangleF(1, 2, 3, 4), new
StringFormat
() };
1906
yield return new object[] { s, SystemFonts.MenuFont, Color.Transparent, new RectangleF(1, 2, 3, 4), new
StringFormat
() };
1907
yield return new object[] { s, SystemFonts.MenuFont, Color.Empty, new RectangleF(1, 2, 3, 4), new
StringFormat
() };
1941
Assert.Throws<ArgumentNullException>("graphics", () => ControlPaint.DrawStringDisabled(null, s, SystemFonts.MenuFont, Color.Red, new RectangleF(1, 2, 3, 4), new
StringFormat
()));