69 references to StringAlignment
PresentationUI (1)
MS\Internal\Documents\SignatureSummaryDialog.cs (1)
627stringFormat.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)
1135public System.Drawing.StringAlignment Alignment { get { throw new System.PlatformNotSupportedException(System.SR.SystemDrawingCommon_PlatformNotSupported); } set { throw new System.PlatformNotSupportedException(System.SR.SystemDrawingCommon_PlatformNotSupported); } } 1142public 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)
1655string_format.Alignment = StringAlignment.Near; 1660string_format.Alignment = StringAlignment.Center; 1665string_format.Alignment = StringAlignment.Far; 1688string_format.Alignment = StringAlignment.Near; 1693string_format.Alignment = StringAlignment.Center; 1698string_format.Alignment = StringAlignment.Far; 1719string_format.LineAlignment = StringAlignment.Near; 1724string_format.LineAlignment = StringAlignment.Center; 1729string_format.LineAlignment = StringAlignment.Far; 1752string_format.LineAlignment = StringAlignment.Near; 1757string_format.LineAlignment = StringAlignment.Center; 1762string_format.LineAlignment = StringAlignment.Far; 2089fmt.Alignment = StringAlignment.Center; 2090fmt.LineAlignment = StringAlignment.Center; 2106fmt.Alignment = StringAlignment.Center; 2107fmt.LineAlignment = StringAlignment.Center; 2120format.Alignment = StringAlignment.Center;
System\Drawing\StringFormatTests.cs (30)
17Assert.Equal(StringAlignment.Near, format.Alignment); 22Assert.Equal(StringAlignment.Near, format.LineAlignment); 32Assert.Equal(StringAlignment.Near, format.Alignment); 37Assert.Equal(StringAlignment.Near, format.LineAlignment); 48Assert.Equal(StringAlignment.Near, format.Alignment); 53Assert.Equal(StringAlignment.Near, format.LineAlignment); 62Assert.Equal(StringAlignment.Near, format.Alignment); 67Assert.Equal(StringAlignment.Near, format.LineAlignment); 103Assert.Equal(StringAlignment.Near, format.Alignment); 108Assert.Equal(StringAlignment.Near, format.LineAlignment); 238[InlineData(StringAlignment.Center)] 239[InlineData(StringAlignment.Far)] 240[InlineData(StringAlignment.Near)] 241public void Alignment_SetValid_GetReturnsExpected(StringAlignment alignment) 248[InlineData(StringAlignment.Near - 1)] 249[InlineData(StringAlignment.Far + 1)] 250public void Alignment_SetInvalid_ThrowsInvalidEnumArgumentException(StringAlignment alignment) 263AssertExtensions.Throws<ArgumentException>(null, () => format.Alignment = StringAlignment.Center); 305[InlineData(StringAlignment.Center)] 306[InlineData(StringAlignment.Far)] 307[InlineData(StringAlignment.Near)] 308public void LineAlignment_SetValid_GetReturnsExpected(StringAlignment alignment) 315[InlineData(StringAlignment.Near - 1)] 316[InlineData(StringAlignment.Far + 1)] 317public void LineAlignment_SetInvalid_ThrowsInvalidEnumArgumentException(StringAlignment alignment) 330AssertExtensions.Throws<ArgumentException>(null, () => format.LineAlignment = StringAlignment.Center); 395Assert.Equal(StringAlignment.Near, format.Alignment); 400Assert.Equal(StringAlignment.Near, format.LineAlignment); 410Assert.Equal(StringAlignment.Near, format.Alignment); 415Assert.Equal(StringAlignment.Near, format.LineAlignment);
System.Windows.Forms (10)
System\Windows\Forms\Controls\Buttons\ButtonInternal\ButtonBaseAdapter.LayoutOptions.cs (2)
58public StringAlignment GdiPlusAlignment { get; set; } 63public StringAlignment GdiPlusLineAlignment { get; set; }
System\Windows\Forms\Printing\PrintPreviewControl.cs (2)
605Alignment = StringAlignment.Center, 606LineAlignment = 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)
607format.Alignment = StringAlignment.Center;
System\ComponentModel\Design\MultilineStringEditor.MultilineStringEditorUI.cs (2)
35Alignment = StringAlignment.Center, 36LineAlignment = StringAlignment.Center
System\Drawing\Design\FontNameEditor.cs (1)
76LineAlignment = StringAlignment.Far
System\Windows\Forms\Design\ComponentTray.cs (1)
2283format.Alignment = StringAlignment.Center;
System\Windows\Forms\Design\ControlDesigner.cs (2)
2231Alignment = StringAlignment.Near, 2232LineAlignment = StringAlignment.Near
WinFormsControlsTest (1)
ChartControl.Designer.cs (1)
130legend1.Alignment = System.Drawing.StringAlignment.Far;