21 references to Center
System.Drawing.Common.Tests (13)
mono\System.Drawing\GraphicsTests.cs (9)
1660
string_format.Alignment = StringAlignment.
Center
;
1693
string_format.Alignment = StringAlignment.
Center
;
1724
string_format.LineAlignment = StringAlignment.
Center
;
1757
string_format.LineAlignment = StringAlignment.
Center
;
2089
fmt.Alignment = StringAlignment.
Center
;
2090
fmt.LineAlignment = StringAlignment.
Center
;
2106
fmt.Alignment = StringAlignment.
Center
;
2107
fmt.LineAlignment = StringAlignment.
Center
;
2120
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)
605
Alignment = StringAlignment.
Center
,
606
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
;