19 writes to Alignment
System.Drawing.Common.Tests (12)
mono\System.Drawing\GraphicsTests.cs (9)
1655
string_format.
Alignment
= StringAlignment.Near;
1660
string_format.
Alignment
= StringAlignment.Center;
1665
string_format.
Alignment
= StringAlignment.Far;
1688
string_format.
Alignment
= StringAlignment.Near;
1693
string_format.
Alignment
= StringAlignment.Center;
1698
string_format.
Alignment
= StringAlignment.Far;
2089
fmt.
Alignment
= StringAlignment.Center;
2106
fmt.
Alignment
= StringAlignment.Center;
2120
format.
Alignment
= StringAlignment.Center;
System\Drawing\StringFormatTests.cs (3)
243
using StringFormat format = new() {
Alignment
= alignment };
253
Assert.ThrowsAny<ArgumentException>(() => format.
Alignment
= alignment);
263
AssertExtensions.Throws<ArgumentException>(null, () => format.
Alignment
= StringAlignment.Center);
System.Windows.Forms (3)
System\Windows\Forms\Controls\Buttons\ButtonInternal\ButtonBaseAdapter.LayoutOptions.cs (1)
79
Alignment
= GdiPlusAlignment,
System\Windows\Forms\Printing\PrintPreviewControl.cs (1)
605
Alignment
= StringAlignment.Center,
System\Windows\Forms\Rendering\ControlPaint.cs (1)
2540
Alignment
= (textAlign & AnyRight) != 0
System.Windows.Forms.Design (4)
System\ComponentModel\Design\CollectionEditor.CollectionEditorCollectionForm.cs (1)
607
format.
Alignment
= StringAlignment.Center;
System\ComponentModel\Design\MultilineStringEditor.MultilineStringEditorUI.cs (1)
35
Alignment
= StringAlignment.Center,
System\Windows\Forms\Design\ComponentTray.cs (1)
2283
format.
Alignment
= StringAlignment.Center;
System\Windows\Forms\Design\ControlDesigner.cs (1)
2233
Alignment
= StringAlignment.Near,
10 references to Alignment
System.Drawing.Common.Tests (9)
System\Drawing\StringFormatTests.cs (9)
17
Assert.Equal(StringAlignment.Near, format.
Alignment
);
32
Assert.Equal(StringAlignment.Near, format.
Alignment
);
48
Assert.Equal(StringAlignment.Near, format.
Alignment
);
62
Assert.Equal(StringAlignment.Near, format.
Alignment
);
103
Assert.Equal(StringAlignment.Near, format.
Alignment
);
244
Assert.Equal(alignment, format.
Alignment
);
262
AssertExtensions.Throws<ArgumentException>(null, () => format.
Alignment
);
395
Assert.Equal(StringAlignment.Near, format.
Alignment
);
410
Assert.Equal(StringAlignment.Near, format.
Alignment
);
System.Windows.Forms (1)
System\Windows\Forms\Controls\Buttons\ButtonInternal\ButtonBaseAdapter.LayoutOptions.cs (1)
95
GdiPlusAlignment = value.
Alignment
;