69 references to StringAlignment
PresentationUI (1)
MS\Internal\Documents\SignatureSummaryDialog.cs (1)
627
stringFormat.LineAlignment =
StringAlignment
.Near;
System.Drawing (1)
System.Drawing.cs (1)
148
[assembly: System.Runtime.CompilerServices.TypeForwardedTo(typeof(System.Drawing.
StringAlignment
))]
System.Drawing.Common (2)
Special\NotSupported.cs (2)
1135
public System.Drawing.
StringAlignment
Alignment { get { throw new System.PlatformNotSupportedException(System.SR.SystemDrawingCommon_PlatformNotSupported); } set { throw new System.PlatformNotSupportedException(System.SR.SystemDrawingCommon_PlatformNotSupported); } }
1142
public System.Drawing.
StringAlignment
LineAlignment { get { throw new System.PlatformNotSupportedException(System.SR.SystemDrawingCommon_PlatformNotSupported); } set { throw new System.PlatformNotSupportedException(System.SR.SystemDrawingCommon_PlatformNotSupported); } }
System.Drawing.Common.Tests (47)
mono\System.Drawing\GraphicsTests.cs (17)
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;
1719
string_format.LineAlignment =
StringAlignment
.Near;
1724
string_format.LineAlignment =
StringAlignment
.Center;
1729
string_format.LineAlignment =
StringAlignment
.Far;
1752
string_format.LineAlignment =
StringAlignment
.Near;
1757
string_format.LineAlignment =
StringAlignment
.Center;
1762
string_format.LineAlignment =
StringAlignment
.Far;
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 (30)
17
Assert.Equal(
StringAlignment
.Near, format.Alignment);
22
Assert.Equal(
StringAlignment
.Near, format.LineAlignment);
32
Assert.Equal(
StringAlignment
.Near, format.Alignment);
37
Assert.Equal(
StringAlignment
.Near, format.LineAlignment);
48
Assert.Equal(
StringAlignment
.Near, format.Alignment);
53
Assert.Equal(
StringAlignment
.Near, format.LineAlignment);
62
Assert.Equal(
StringAlignment
.Near, format.Alignment);
67
Assert.Equal(
StringAlignment
.Near, format.LineAlignment);
103
Assert.Equal(
StringAlignment
.Near, format.Alignment);
108
Assert.Equal(
StringAlignment
.Near, format.LineAlignment);
238
[InlineData(
StringAlignment
.Center)]
239
[InlineData(
StringAlignment
.Far)]
240
[InlineData(
StringAlignment
.Near)]
241
public void Alignment_SetValid_GetReturnsExpected(
StringAlignment
alignment)
248
[InlineData(
StringAlignment
.Near - 1)]
249
[InlineData(
StringAlignment
.Far + 1)]
250
public void Alignment_SetInvalid_ThrowsInvalidEnumArgumentException(
StringAlignment
alignment)
263
AssertExtensions.Throws<ArgumentException>(null, () => format.Alignment =
StringAlignment
.Center);
305
[InlineData(
StringAlignment
.Center)]
306
[InlineData(
StringAlignment
.Far)]
307
[InlineData(
StringAlignment
.Near)]
308
public void LineAlignment_SetValid_GetReturnsExpected(
StringAlignment
alignment)
315
[InlineData(
StringAlignment
.Near - 1)]
316
[InlineData(
StringAlignment
.Far + 1)]
317
public void LineAlignment_SetInvalid_ThrowsInvalidEnumArgumentException(
StringAlignment
alignment)
330
AssertExtensions.Throws<ArgumentException>(null, () => format.LineAlignment =
StringAlignment
.Center);
395
Assert.Equal(
StringAlignment
.Near, format.Alignment);
400
Assert.Equal(
StringAlignment
.Near, format.LineAlignment);
410
Assert.Equal(
StringAlignment
.Near, format.Alignment);
415
Assert.Equal(
StringAlignment
.Near, format.LineAlignment);
System.Windows.Forms (10)
System\Windows\Forms\Controls\Buttons\ButtonInternal\ButtonBaseAdapter.LayoutOptions.cs (2)
58
public
StringAlignment
GdiPlusAlignment { get; set; }
63
public
StringAlignment
GdiPlusLineAlignment { get; set; }
System\Windows\Forms\Printing\PrintPreviewControl.cs (2)
605
Alignment =
StringAlignment
.Center,
606
LineAlignment =
StringAlignment
.Center
System\Windows\Forms\Rendering\ControlPaint.cs (6)
2541
?
StringAlignment
.Far
2542
: (textAlign & AnyCenter) != 0 ?
StringAlignment
.Center :
StringAlignment
.Near,
2544
?
StringAlignment
.Far
2545
: (textAlign & AnyMiddle) != 0 ?
StringAlignment
.Center :
StringAlignment
.Near
System.Windows.Forms.Design (7)
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\Drawing\Design\FontNameEditor.cs (1)
76
LineAlignment =
StringAlignment
.Far
System\Windows\Forms\Design\ComponentTray.cs (1)
2283
format.Alignment =
StringAlignment
.Center;
System\Windows\Forms\Design\ControlDesigner.cs (2)
2231
Alignment =
StringAlignment
.Near,
2232
LineAlignment =
StringAlignment
.Near
WinFormsControlsTest (1)
ChartControl.Designer.cs (1)
130
legend1.Alignment = System.Drawing.
StringAlignment
.Far;