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