21 references to Center
System.Drawing.Common.Tests (13)
mono\System.Drawing\GraphicsTests.cs (9)
1662string_format.Alignment = StringAlignment.Center; 1695string_format.Alignment = StringAlignment.Center; 1726string_format.LineAlignment = StringAlignment.Center; 1759string_format.LineAlignment = StringAlignment.Center; 2092fmt.Alignment = StringAlignment.Center; 2093fmt.LineAlignment = StringAlignment.Center; 2109fmt.Alignment = StringAlignment.Center; 2110fmt.LineAlignment = StringAlignment.Center; 2123format.Alignment = StringAlignment.Center;
System\Drawing\StringFormatTests.cs (4)
238[InlineData(StringAlignment.Center)] 263AssertExtensions.Throws<ArgumentException>(null, () => format.Alignment = StringAlignment.Center); 305[InlineData(StringAlignment.Center)] 330AssertExtensions.Throws<ArgumentException>(null, () => format.LineAlignment = StringAlignment.Center);
System.Windows.Forms (4)
System\Windows\Forms\Printing\PrintPreviewControl.cs (2)
599Alignment = StringAlignment.Center, 600LineAlignment = StringAlignment.Center
System\Windows\Forms\Rendering\ControlPaint.cs (2)
2542: (textAlign & AnyCenter) != 0 ? StringAlignment.Center : StringAlignment.Near, 2545: (textAlign & AnyMiddle) != 0 ? StringAlignment.Center : StringAlignment.Near
System.Windows.Forms.Design (4)
System\ComponentModel\Design\CollectionEditor.CollectionEditorCollectionForm.cs (1)
607format.Alignment = StringAlignment.Center;
System\ComponentModel\Design\MultilineStringEditor.MultilineStringEditorUI.cs (2)
35Alignment = StringAlignment.Center, 36LineAlignment = StringAlignment.Center
System\Windows\Forms\Design\ComponentTray.cs (1)
2283format.Alignment = StringAlignment.Center;