21 references to Center
System.Drawing.Common.Tests (13)
mono\System.Drawing\GraphicsTests.cs (9)
1662
string_format.Alignment = StringAlignment.
Center
;
1695
string_format.Alignment = StringAlignment.
Center
;
1726
string_format.LineAlignment = StringAlignment.
Center
;
1759
string_format.LineAlignment = StringAlignment.
Center
;
2092
fmt.Alignment = StringAlignment.
Center
;
2093
fmt.LineAlignment = StringAlignment.
Center
;
2109
fmt.Alignment = StringAlignment.
Center
;
2110
fmt.LineAlignment = StringAlignment.
Center
;
2123
format.Alignment = StringAlignment.
Center
;
System\Drawing\StringFormatTests.cs (4)
238
[InlineData(StringAlignment.
Center
)]
263
AssertExtensions.Throws<ArgumentException>(null, () => format.Alignment = StringAlignment.
Center
);
305
[InlineData(StringAlignment.
Center
)]
330
AssertExtensions.Throws<ArgumentException>(null, () => format.LineAlignment = StringAlignment.
Center
);
System.Windows.Forms (4)
System\Windows\Forms\Printing\PrintPreviewControl.cs (2)
599
Alignment = StringAlignment.
Center
,
600
LineAlignment = 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)
607
format.Alignment = StringAlignment.
Center
;
System\ComponentModel\Design\MultilineStringEditor.MultilineStringEditorUI.cs (2)
35
Alignment = StringAlignment.
Center
,
36
LineAlignment = StringAlignment.
Center
System\Windows\Forms\Design\ComponentTray.cs (1)
2283
format.Alignment = StringAlignment.
Center
;