635 references to ContentAlignment
System.Web.DataVisualization (187)
Common\Annotation\AnnotationBase.cs (22)
191
private
ContentAlignment
_alignment =
ContentAlignment
.MiddleCenter;
214
internal
ContentAlignment
anchorAlignment =
ContentAlignment
.BottomCenter;
859
/// A <see cref="
ContentAlignment
"/> value that represents the content alignment.
868
DefaultValue(typeof(
ContentAlignment
), "MiddleCenter"),
871
virtual public
ContentAlignment
Alignment
1713
/// A <see cref="
ContentAlignment
"/> value that represents the annotation's alignment to
1723
DefaultValue(typeof(
ContentAlignment
), "BottomCenter"),
1726
virtual public
ContentAlignment
AnchorAlignment
2535
if(this.AnchorAlignment ==
ContentAlignment
.TopCenter ||
2536
this.AnchorAlignment ==
ContentAlignment
.TopLeft ||
2537
this.AnchorAlignment ==
ContentAlignment
.TopRight)
2542
else if(this.AnchorAlignment ==
ContentAlignment
.BottomCenter ||
2543
this.AnchorAlignment ==
ContentAlignment
.BottomLeft ||
2544
this.AnchorAlignment ==
ContentAlignment
.BottomRight)
2595
if(this.AnchorAlignment ==
ContentAlignment
.BottomLeft ||
2596
this.AnchorAlignment ==
ContentAlignment
.MiddleLeft ||
2597
this.AnchorAlignment ==
ContentAlignment
.TopLeft)
2602
else if(this.AnchorAlignment ==
ContentAlignment
.BottomRight ||
2603
this.AnchorAlignment ==
ContentAlignment
.MiddleRight ||
2604
this.AnchorAlignment ==
ContentAlignment
.TopRight)
Common\Annotation\ArrowAnnotation.cs (4)
121
base.AnchorAlignment =
ContentAlignment
.TopLeft;
206
/// A <see cref="
ContentAlignment
"/> value that represents the annotation's alignment to
218
DefaultValue(typeof(
ContentAlignment
), "TopLeft"),
221
override public
ContentAlignment
AnchorAlignment
Common\Annotation\CalloutAnnotation.cs (4)
154
this.anchorAlignment =
ContentAlignment
.BottomLeft;
516
/// A <see cref="
ContentAlignment
"/> value that represents the annotation's alignment to
526
DefaultValue(typeof(
ContentAlignment
), "BottomLeft"),
529
override public
ContentAlignment
AnchorAlignment
Common\Annotation\GroupAnnotation.cs (3)
246
/// A <see cref="
ContentAlignment
"/> value that represents the content alignment.
255
DefaultValue(typeof(
ContentAlignment
), "MiddleCenter"),
259
override public
ContentAlignment
Alignment
Common\Annotation\ImageAnnotation.cs (12)
187
/// A <see cref="
ContentAlignment
"/> value that represents the content alignment.
196
DefaultValue(typeof(
ContentAlignment
), "MiddleCenter"),
199
override public
ContentAlignment
Alignment
643
private ChartImageAlignmentStyle GetImageAlignment(
ContentAlignment
alignment)
645
if(alignment ==
ContentAlignment
.TopLeft)
649
else if(alignment ==
ContentAlignment
.TopCenter)
653
else if(alignment ==
ContentAlignment
.TopRight)
657
else if(alignment ==
ContentAlignment
.MiddleRight)
661
else if(alignment ==
ContentAlignment
.BottomRight)
665
else if(alignment ==
ContentAlignment
.BottomCenter)
669
else if(alignment ==
ContentAlignment
.BottomLeft)
673
else if(alignment ==
ContentAlignment
.MiddleLeft)
Common\Annotation\LineAnnotation.cs (7)
88
this.anchorAlignment =
ContentAlignment
.TopLeft;
179
/// A <see cref="
ContentAlignment
"/> value.
184
DefaultValue(typeof(
ContentAlignment
), "MiddleCenter"),
186
override public
ContentAlignment
Alignment
417
/// A <see cref="
ContentAlignment
"/> value that represents the annotation's alignment to
429
DefaultValue(typeof(
ContentAlignment
), "TopLeft"),
432
override public
ContentAlignment
AnchorAlignment
Common\Annotation\PolygonAnnotation.cs (3)
178
/// A <see cref="
ContentAlignment
"/> value.
183
DefaultValue(typeof(
ContentAlignment
), "MiddleCenter"),
185
override public
ContentAlignment
Alignment
Common\Annotation\TextAnnotation.cs (30)
554
if(this.Alignment ==
ContentAlignment
.MiddleCenter ||
555
this.Alignment ==
ContentAlignment
.MiddleLeft ||
556
this.Alignment ==
ContentAlignment
.MiddleRight)
563
if(this.Alignment ==
ContentAlignment
.BottomCenter ||
564
this.Alignment ==
ContentAlignment
.MiddleCenter ||
565
this.Alignment ==
ContentAlignment
.TopCenter)
584
if (this.Alignment ==
ContentAlignment
.BottomRight ||
585
this.Alignment ==
ContentAlignment
.MiddleRight ||
586
this.Alignment ==
ContentAlignment
.TopRight)
590
if (this.Alignment ==
ContentAlignment
.BottomCenter ||
591
this.Alignment ==
ContentAlignment
.MiddleCenter ||
592
this.Alignment ==
ContentAlignment
.TopCenter)
596
if (this.Alignment ==
ContentAlignment
.BottomCenter ||
597
this.Alignment ==
ContentAlignment
.BottomLeft ||
598
this.Alignment ==
ContentAlignment
.BottomRight)
602
if (this.Alignment ==
ContentAlignment
.MiddleCenter ||
603
this.Alignment ==
ContentAlignment
.MiddleLeft ||
604
this.Alignment ==
ContentAlignment
.MiddleRight)
642
if (this.Alignment ==
ContentAlignment
.BottomRight ||
643
this.Alignment ==
ContentAlignment
.MiddleRight ||
644
this.Alignment ==
ContentAlignment
.TopRight)
648
if (this.Alignment ==
ContentAlignment
.BottomCenter ||
649
this.Alignment ==
ContentAlignment
.MiddleCenter ||
650
this.Alignment ==
ContentAlignment
.TopCenter)
654
if (this.Alignment ==
ContentAlignment
.BottomCenter ||
655
this.Alignment ==
ContentAlignment
.BottomLeft ||
656
this.Alignment ==
ContentAlignment
.BottomRight)
660
if (this.Alignment ==
ContentAlignment
.MiddleCenter ||
661
this.Alignment ==
ContentAlignment
.MiddleLeft ||
662
this.Alignment ==
ContentAlignment
.MiddleRight)
Common\General\Legend.cs (6)
6135
this.Cells.Add(LegendCellType.Text, KeywordName.LegendText,
ContentAlignment
.MiddleLeft);
6136
this.Cells.Add(LegendCellType.SeriesSymbol, string.Empty,
ContentAlignment
.MiddleCenter);
6140
this.Cells.Add(LegendCellType.SeriesSymbol, string.Empty,
ContentAlignment
.MiddleCenter);
6141
this.Cells.Add(LegendCellType.Text, KeywordName.LegendText,
ContentAlignment
.MiddleLeft);
6157
this.Cells.Add(LegendCellType.SeriesSymbol, string.Empty,
ContentAlignment
.MiddleCenter);
6158
this.Cells.Add(LegendCellType.Text, KeywordName.LegendText,
ContentAlignment
.MiddleLeft);
Common\General\LegendColumns.cs (56)
149
private
ContentAlignment
_alignment =
ContentAlignment
.MiddleCenter;
196
: this(string.Empty, LegendCellColumnType.Text, KeywordName.LegendText,
ContentAlignment
.MiddleCenter)
208
public LegendCellColumn(string headerText, LegendCellColumnType columnType, string text) : this(headerText, columnType, text,
ContentAlignment
.MiddleCenter)
220
public LegendCellColumn(string headerText, LegendCellColumnType columnType, string text,
ContentAlignment
alignment)
418
DefaultValue(
ContentAlignment
.MiddleCenter),
421
public virtual
ContentAlignment
Alignment
850
private
ContentAlignment
_alignment =
ContentAlignment
.MiddleCenter;
898
this.Intitialize(LegendCellType.Text, string.Empty,
ContentAlignment
.MiddleCenter);
907
this.Intitialize(LegendCellType.Text, text,
ContentAlignment
.MiddleCenter);
917
this.Intitialize(cellType, text,
ContentAlignment
.MiddleCenter);
926
public LegendCell(LegendCellType cellType, string text,
ContentAlignment
alignment)
937
private void Intitialize(LegendCellType cellType, string text,
ContentAlignment
alignment)
1234
DefaultValue(
ContentAlignment
.MiddleCenter),
1237
public virtual
ContentAlignment
Alignment
2019
if (this.Alignment ==
ContentAlignment
.BottomLeft ||
2020
this.Alignment ==
ContentAlignment
.MiddleLeft ||
2021
this.Alignment ==
ContentAlignment
.TopLeft)
2025
else if (this.Alignment ==
ContentAlignment
.BottomRight ||
2026
this.Alignment ==
ContentAlignment
.MiddleRight ||
2027
this.Alignment ==
ContentAlignment
.TopRight)
2032
if (this.Alignment ==
ContentAlignment
.BottomCenter ||
2033
this.Alignment ==
ContentAlignment
.BottomLeft ||
2034
this.Alignment ==
ContentAlignment
.BottomRight)
2038
else if (this.Alignment ==
ContentAlignment
.TopCenter ||
2039
this.Alignment ==
ContentAlignment
.TopLeft ||
2040
this.Alignment ==
ContentAlignment
.TopRight)
2149
if(this.Alignment ==
ContentAlignment
.BottomLeft ||
2150
this.Alignment ==
ContentAlignment
.MiddleLeft ||
2151
this.Alignment ==
ContentAlignment
.TopLeft)
2155
else if(this.Alignment ==
ContentAlignment
.BottomRight ||
2156
this.Alignment ==
ContentAlignment
.MiddleRight ||
2157
this.Alignment ==
ContentAlignment
.TopRight)
2162
if(this.Alignment ==
ContentAlignment
.BottomCenter ||
2163
this.Alignment ==
ContentAlignment
.BottomLeft ||
2164
this.Alignment ==
ContentAlignment
.BottomRight)
2168
else if(this.Alignment ==
ContentAlignment
.TopCenter ||
2169
this.Alignment ==
ContentAlignment
.TopLeft ||
2170
this.Alignment ==
ContentAlignment
.TopRight)
2254
if(this.Alignment ==
ContentAlignment
.BottomLeft ||
2255
this.Alignment ==
ContentAlignment
.MiddleLeft ||
2256
this.Alignment ==
ContentAlignment
.TopLeft)
2260
else if(this.Alignment ==
ContentAlignment
.BottomRight ||
2261
this.Alignment ==
ContentAlignment
.MiddleRight ||
2262
this.Alignment ==
ContentAlignment
.TopRight)
2267
if(this.Alignment ==
ContentAlignment
.BottomCenter ||
2268
this.Alignment ==
ContentAlignment
.BottomLeft ||
2269
this.Alignment ==
ContentAlignment
.BottomRight)
2273
else if(this.Alignment ==
ContentAlignment
.TopCenter ||
2274
this.Alignment ==
ContentAlignment
.TopLeft ||
2275
this.Alignment ==
ContentAlignment
.TopRight)
2816
/// A <see cref="
ContentAlignment
"/> value representing cell content alignment.
2821
public int Add(LegendCellType cellType, string text,
ContentAlignment
alignment)
2841
/// A <see cref="
ContentAlignment
"/> value representing cell content alignment.
2843
public void Insert(int index, LegendCellType cellType, string text,
ContentAlignment
alignment)
Common\General\Title.cs (40)
234
private
ContentAlignment
_alignment =
ContentAlignment
.MiddleCenter;
1005
DefaultValue(
ContentAlignment
.MiddleCenter),
1012
public
ContentAlignment
Alignment
1410
if(this.Alignment ==
ContentAlignment
.BottomRight ||
1411
this.Alignment ==
ContentAlignment
.MiddleRight ||
1412
this.Alignment ==
ContentAlignment
.TopRight)
1416
else if(this.Alignment ==
ContentAlignment
.BottomCenter ||
1417
this.Alignment ==
ContentAlignment
.MiddleCenter ||
1418
this.Alignment ==
ContentAlignment
.TopCenter)
1426
if(this.Alignment ==
ContentAlignment
.BottomRight ||
1427
this.Alignment ==
ContentAlignment
.BottomCenter ||
1428
this.Alignment ==
ContentAlignment
.BottomLeft)
1432
else if(this.Alignment ==
ContentAlignment
.MiddleCenter ||
1433
this.Alignment ==
ContentAlignment
.MiddleLeft ||
1434
this.Alignment ==
ContentAlignment
.MiddleRight)
1490
if(this.Alignment ==
ContentAlignment
.BottomCenter ||
1491
this.Alignment ==
ContentAlignment
.BottomLeft ||
1492
this.Alignment ==
ContentAlignment
.BottomRight )
1496
else if(this.Alignment ==
ContentAlignment
.MiddleCenter ||
1497
this.Alignment ==
ContentAlignment
.MiddleLeft ||
1498
this.Alignment ==
ContentAlignment
.MiddleRight )
1505
if(this.Alignment ==
ContentAlignment
.BottomRight ||
1506
this.Alignment ==
ContentAlignment
.MiddleRight ||
1507
this.Alignment ==
ContentAlignment
.TopRight )
1511
else if(this.Alignment ==
ContentAlignment
.BottomCenter ||
1512
this.Alignment ==
ContentAlignment
.MiddleCenter ||
1513
this.Alignment ==
ContentAlignment
.TopCenter )
1579
if (this.Alignment ==
ContentAlignment
.BottomCenter ||
1580
this.Alignment ==
ContentAlignment
.BottomLeft ||
1581
this.Alignment ==
ContentAlignment
.BottomRight)
1585
else if (this.Alignment ==
ContentAlignment
.TopCenter ||
1586
this.Alignment ==
ContentAlignment
.TopLeft ||
1587
this.Alignment ==
ContentAlignment
.TopRight)
1592
if (this.Alignment ==
ContentAlignment
.BottomLeft ||
1593
this.Alignment ==
ContentAlignment
.MiddleLeft ||
1594
this.Alignment ==
ContentAlignment
.TopLeft)
1598
else if (this.Alignment ==
ContentAlignment
.BottomRight ||
1599
this.Alignment ==
ContentAlignment
.MiddleRight ||
1600
this.Alignment ==
ContentAlignment
.TopRight)
System.Web.Entity.Design (2)
System\Data\WebControls\Design\EntityDataSourceStatementEditorForm.cs (2)
197
this._autoGenerateCheckBox.CheckAlign =
ContentAlignment
.TopLeft;
198
this._autoGenerateCheckBox.TextAlign =
ContentAlignment
.TopLeft;
System.Windows.Forms (259)
winforms\Managed\System\WinForms\ButtonBase.cs (11)
37
private
ContentAlignment
imageAlign =
ContentAlignment
.MiddleCenter;
38
private
ContentAlignment
textAlign =
ContentAlignment
.MiddleCenter;
209
ContentAlignment
align = RtlTranslateContent(TextAlign);
372
DefaultValue(
ContentAlignment
.MiddleCenter),
377
public
ContentAlignment
ImageAlign {
383
throw new InvalidEnumArgumentException("value", (int)value, typeof(
ContentAlignment
));
653
DefaultValue(
ContentAlignment
.MiddleCenter),
658
public virtual
ContentAlignment
TextAlign {
664
throw new InvalidEnumArgumentException("value", (int)value, typeof(
ContentAlignment
));
winforms\Managed\System\WinForms\ButtonInternal\ButtonBaseAdapter.cs (37)
886
internal
ContentAlignment
checkAlign;
887
internal
ContentAlignment
imageAlign;
888
internal
ContentAlignment
textAlign;
1027
action[combineCheck] = checkAlign ==
ContentAlignment
.MiddleCenter || !LayoutUtils.IsHorizontalAlignment(checkAlign);
1085
action[combineCheck] = checkAlign ==
ContentAlignment
.MiddleCenter || !LayoutUtils.IsVerticalAlignment(checkAlign);
1167
internal
ContentAlignment
RtlTranslateContent(
ContentAlignment
align) {
1170
ContentAlignment
[][] mapping = new
ContentAlignment
[3][];
1171
mapping[0] = new
ContentAlignment
[2] {
ContentAlignment
.TopLeft,
ContentAlignment
.TopRight };
1172
mapping[1] = new
ContentAlignment
[2] {
ContentAlignment
.MiddleLeft,
ContentAlignment
.MiddleRight };
1173
mapping[2] = new
ContentAlignment
[2] {
ContentAlignment
.BottomLeft,
ContentAlignment
.BottomRight };
1198
ContentAlignment
align = RtlTranslateContent(checkAlign);
1223
case
ContentAlignment
.TopLeft:
1224
case
ContentAlignment
.MiddleLeft:
1225
case
ContentAlignment
.BottomLeft:
1235
case
ContentAlignment
.TopRight:
1236
case
ContentAlignment
.MiddleRight:
1237
case
ContentAlignment
.BottomRight:
1246
case
ContentAlignment
.TopCenter:
1257
case
ContentAlignment
.BottomCenter:
1267
case
ContentAlignment
.MiddleCenter:
1294
private static TextImageRelation ImageAlignToRelation(
ContentAlignment
alignment) {
1298
private static TextImageRelation TextAlignToRelation(
ContentAlignment
alignment) {
1304
ContentAlignment
imageAlign = RtlTranslateContent(this.imageAlign);
1305
ContentAlignment
textAlign = RtlTranslateContent(this.textAlign);
1337
Rectangle combinedBounds = LayoutUtils.Align(combinedSize, maxCombinedBounds,
ContentAlignment
.MiddleCenter);
1507
internal static LayoutOptions CommonLayout(Rectangle clientRectangle, Padding padding, bool isDefault, Font font, string text, bool enabled,
ContentAlignment
textAlign, RightToLeft rtl)
1523
layout.checkAlign =
ContentAlignment
.TopLeft;
1524
layout.imageAlign =
ContentAlignment
.MiddleCenter;
1549
layout.checkAlign =
ContentAlignment
.TopLeft;
winforms\Managed\System\WinForms\ButtonInternal\ButtonFlatAdapter.cs (1)
288
bool isDefault, Font font, string text, bool enabled,
ContentAlignment
textAlign, RightToLeft rtl)
winforms\Managed\System\WinForms\ButtonInternal\ButtonPopupAdapter.cs (1)
160
bool isDefault, Font font, string text, bool enabled,
ContentAlignment
textAlign, RightToLeft rtl)
winforms\Managed\System\WinForms\ButtonInternal\CheckBoxPopupAdapter.cs (1)
118
bool isDefault, Font font, string text, bool enabled,
ContentAlignment
textAlign, RightToLeft rtl,
winforms\Managed\System\WinForms\CheckBox.cs (13)
48
static readonly
ContentAlignment
anyRight =
ContentAlignment
.TopRight |
ContentAlignment
.MiddleRight |
ContentAlignment
.BottomRight;
54
private
ContentAlignment
checkAlign =
ContentAlignment
.MiddleLeft;
85
TextAlign =
ContentAlignment
.MiddleLeft;
184
DefaultValue(
ContentAlignment
.MiddleLeft),
187
public
ContentAlignment
CheckAlign {
193
throw new InvalidEnumArgumentException("value", (int)value, typeof(
ContentAlignment
));
328
ContentAlignment
align = RtlTranslateContent(CheckAlign);
435
DefaultValue(
ContentAlignment
.MiddleLeft)
437
public override
ContentAlignment
TextAlign {
winforms\Managed\System\WinForms\Control.cs (16)
12334
protected
ContentAlignment
RtlTranslateAlignment(
ContentAlignment
align) {
12381
protected internal
ContentAlignment
RtlTranslateContent(
ContentAlignment
align) {
12386
case
ContentAlignment
.TopLeft:
12387
return
ContentAlignment
.TopRight;
12388
case
ContentAlignment
.TopRight:
12389
return
ContentAlignment
.TopLeft;
12394
case
ContentAlignment
.MiddleLeft:
12395
return
ContentAlignment
.MiddleRight;
12396
case
ContentAlignment
.MiddleRight:
12397
return
ContentAlignment
.MiddleLeft;
12403
case
ContentAlignment
.BottomLeft:
12404
return
ContentAlignment
.BottomRight;
12405
case
ContentAlignment
.BottomRight:
12406
return
ContentAlignment
.BottomLeft;
winforms\Managed\System\WinForms\ControlPaint.cs (24)
64
private static readonly
ContentAlignment
anyRight =
ContentAlignment
.TopRight |
ContentAlignment
.MiddleRight |
ContentAlignment
.BottomRight;
65
private static readonly
ContentAlignment
anyBottom =
ContentAlignment
.BottomLeft |
ContentAlignment
.BottomCenter |
ContentAlignment
.BottomRight;
66
private static readonly
ContentAlignment
anyCenter =
ContentAlignment
.TopCenter |
ContentAlignment
.MiddleCenter |
ContentAlignment
.BottomCenter;
67
private static readonly
ContentAlignment
anyMiddle =
ContentAlignment
.MiddleLeft |
ContentAlignment
.MiddleCenter |
ContentAlignment
.MiddleRight;
2642
internal static TextFormatFlags TextFormatFlagsForAlignmentGDI(
ContentAlignment
align) {
2649
internal static StringAlignment TranslateAlignment(
ContentAlignment
align) {
2661
internal static TextFormatFlags TranslateAlignmentForGDI(
ContentAlignment
align) {
2673
internal static StringAlignment TranslateLineAlignment(
ContentAlignment
align) {
2687
internal static TextFormatFlags TranslateLineAlignmentForGDI(
ContentAlignment
align) {
2700
internal static StringFormat StringFormatForAlignment(
ContentAlignment
align) {
2720
internal static StringFormat CreateStringFormat( Control ctl,
ContentAlignment
textAlign, bool showEllipsis, bool useMnemonic ) {
2758
internal static TextFormatFlags CreateTextFormatFlags(Control ctl,
ContentAlignment
textAlign, bool showEllipsis, bool useMnemonic ) {
winforms\Managed\System\WinForms\DataGridViewUtilities.cs (11)
34
internal static System.Drawing.
ContentAlignment
ComputeDrawingContentAlignmentForCellStyleAlignment(DataGridViewContentAlignment alignment)
40
return System.Drawing.
ContentAlignment
.TopLeft;
42
return System.Drawing.
ContentAlignment
.TopCenter;
44
return System.Drawing.
ContentAlignment
.TopRight;
46
return System.Drawing.
ContentAlignment
.MiddleLeft;
48
return System.Drawing.
ContentAlignment
.MiddleCenter;
50
return System.Drawing.
ContentAlignment
.MiddleRight;
52
return System.Drawing.
ContentAlignment
.BottomLeft;
54
return System.Drawing.
ContentAlignment
.BottomCenter;
56
return System.Drawing.
ContentAlignment
.BottomRight;
58
return System.Drawing.
ContentAlignment
.MiddleCenter;
winforms\Managed\System\WinForms\Label.cs (21)
340
case
ContentAlignment
.TopLeft:
341
case
ContentAlignment
.MiddleLeft:
342
case
ContentAlignment
.BottomLeft:
346
case
ContentAlignment
.TopRight:
347
case
ContentAlignment
.MiddleRight:
348
case
ContentAlignment
.BottomRight:
352
case
ContentAlignment
.TopCenter:
353
case
ContentAlignment
.MiddleCenter:
354
case
ContentAlignment
.BottomCenter:
645
DefaultValue(
ContentAlignment
.MiddleCenter),
650
public
ContentAlignment
ImageAlign {
655
return (
ContentAlignment
)imageAlign;
657
return
ContentAlignment
.MiddleCenter;
661
throw new InvalidEnumArgumentException("value", (int)value, typeof(
ContentAlignment
));
871
DefaultValue(
ContentAlignment
.TopLeft),
874
public virtual
ContentAlignment
TextAlign {
879
return (
ContentAlignment
)textAlign;
882
return
ContentAlignment
.TopLeft;
887
throw new InvalidEnumArgumentException("value", (int)value, typeof(
ContentAlignment
));
1086
protected Rectangle CalcImageRenderBounds(Image image, Rectangle r,
ContentAlignment
align) {
1192
protected void DrawImage(System.Drawing.Graphics g, Image image, Rectangle r,
ContentAlignment
align) {
winforms\Managed\System\WinForms\Layout\CommonProperties.cs (2)
41
internal const
ContentAlignment
DefaultAlignment =
ContentAlignment
.TopLeft;
winforms\Managed\System\WinForms\Layout\LayoutUtils.cs (42)
28
public const
ContentAlignment
AnyTop =
ContentAlignment
.TopLeft |
ContentAlignment
.TopCenter |
ContentAlignment
.TopRight;
29
public const
ContentAlignment
AnyBottom =
ContentAlignment
.BottomLeft |
ContentAlignment
.BottomCenter |
ContentAlignment
.BottomRight;
30
public const
ContentAlignment
AnyLeft =
ContentAlignment
.TopLeft |
ContentAlignment
.MiddleLeft |
ContentAlignment
.BottomLeft;
31
public const
ContentAlignment
AnyRight =
ContentAlignment
.TopRight |
ContentAlignment
.MiddleRight |
ContentAlignment
.BottomRight;
32
public const
ContentAlignment
AnyCenter =
ContentAlignment
.TopCenter |
ContentAlignment
.MiddleCenter |
ContentAlignment
.BottomCenter;
33
public const
ContentAlignment
AnyMiddle =
ContentAlignment
.MiddleLeft |
ContentAlignment
.MiddleCenter |
ContentAlignment
.MiddleRight;
80
public static int ContentAlignmentToIndex(
ContentAlignment
alignment) {
107
Debug.Assert(result != 0x00 || alignment ==
ContentAlignment
.TopLeft, "Error detected in ContentAlignmentToIndex.");
108
Debug.Assert(result != 0x01 || alignment ==
ContentAlignment
.TopCenter, "Error detected in ContentAlignmentToIndex.");
109
Debug.Assert(result != 0x02 || alignment ==
ContentAlignment
.TopRight, "Error detected in ContentAlignmentToIndex.");
111
Debug.Assert(result != 0x04 || alignment ==
ContentAlignment
.MiddleLeft, "Error detected in ContentAlignmentToIndex.");
112
Debug.Assert(result != 0x05 || alignment ==
ContentAlignment
.MiddleCenter, "Error detected in ContentAlignmentToIndex.");
113
Debug.Assert(result != 0x06 || alignment ==
ContentAlignment
.MiddleRight, "Error detected in ContentAlignmentToIndex.");
115
Debug.Assert(result != 0x08 || alignment ==
ContentAlignment
.BottomLeft, "Error detected in ContentAlignmentToIndex.");
116
Debug.Assert(result != 0x09 || alignment ==
ContentAlignment
.BottomCenter, "Error detected in ContentAlignmentToIndex.");
117
Debug.Assert(result != 0x0A || alignment ==
ContentAlignment
.BottomRight, "Error detected in ContentAlignmentToIndex.");
255
public static Rectangle Align(Size alignThis, Rectangle withinThis,
ContentAlignment
align) {
271
private static Rectangle HAlign(Size alignThis, Rectangle withinThis,
ContentAlignment
align) {
296
public static Rectangle VAlign(Size alignThis, Rectangle withinThis,
ContentAlignment
align) {
405
public static bool IsHorizontalAlignment(
ContentAlignment
align) {
414
public static bool IsVerticalAlignment(
ContentAlignment
align) {
415
Debug.Assert(align !=
ContentAlignment
.MiddleCenter, "Result is ambiguous with an alignment of MiddleCenter.");
416
return (align & (
ContentAlignment
.TopCenter |
ContentAlignment
.BottomCenter)) != 0;
winforms\Managed\System\WinForms\LinkLabel.cs (1)
504
internal static Rectangle CalcTextRenderBounds(Rectangle textRect, Rectangle clientRect,
ContentAlignment
align) {
winforms\Managed\System\WinForms\Printing\PrintControllerWithStatusDialog.cs (1)
270
label1.TextAlign =
ContentAlignment
.MiddleCenter;
winforms\Managed\System\WinForms\Printing\PrintPreviewControl.cs (2)
547
format.Alignment = ControlPaint.TranslateAlignment(
ContentAlignment
.MiddleCenter);
548
format.LineAlignment = ControlPaint.TranslateLineAlignment(
ContentAlignment
.MiddleCenter);
winforms\Managed\System\WinForms\PropertyGridInternal\GridErrorDlg.cs (1)
190
this.detailsBtn.ImageAlign = System.Drawing.
ContentAlignment
.MiddleLeft;
winforms\Managed\System\WinForms\RadioButton.cs (13)
49
private static readonly
ContentAlignment
anyRight =
ContentAlignment
.TopRight |
ContentAlignment
.MiddleRight |
ContentAlignment
.BottomRight;
55
private
ContentAlignment
checkAlign =
ContentAlignment
.MiddleLeft;
80
TextAlign =
ContentAlignment
.MiddleLeft;
179
DefaultValue(
ContentAlignment
.MiddleLeft),
182
public
ContentAlignment
CheckAlign {
188
throw new InvalidEnumArgumentException("value", (int)value, typeof(
ContentAlignment
));
278
ContentAlignment
align = RtlTranslateContent(CheckAlign);
379
DefaultValue(
ContentAlignment
.MiddleLeft)
381
public override
ContentAlignment
TextAlign {
winforms\Managed\System\WinForms\ThreadExceptionDialog.cs (1)
331
b.ImageAlign =
ContentAlignment
.MiddleLeft;
winforms\Managed\System\WinForms\ToolStripControlHost.cs (7)
28
private
ContentAlignment
controlAlign =
ContentAlignment
.MiddleCenter;
140
[DefaultValue(
ContentAlignment
.MiddleCenter), Browsable(false)]
141
public
ContentAlignment
ControlAlign {
145
throw new InvalidEnumArgumentException("value", (int)value, typeof(
ContentAlignment
));
337
public new
ContentAlignment
ImageAlign {
529
public new
ContentAlignment
TextAlign {
winforms\Managed\System\WinForms\ToolStripDropDownMenu.cs (5)
417
checkRectangle = LayoutUtils.Align(maxCheckSize, new Rectangle(nextPoint.X, nextPoint.Y, maxCheckSize.Width, maxItemSize.Height),
ContentAlignment
.MiddleCenter);
422
imageRectangle = LayoutUtils.Align(maxImageSize, new Rectangle(nextPoint.X, nextPoint.Y, maxImageSize.Width, maxItemSize.Height),
ContentAlignment
.MiddleCenter);
433
checkRectangle = LayoutUtils.Align(maxCheckSize, new Rectangle(nextPoint.X, nextPoint.Y, checkAndImageMarginWidth, maxItemSize.Height),
ContentAlignment
.MiddleCenter);
452
checkRectangle = LayoutUtils.Align(LayoutUtils.UnionSizes(maxCheckSize,maxImageSize), new Rectangle(nextPoint.X, nextPoint.Y, checkAndImageMarginWidth-1, maxItemSize.Height),
ContentAlignment
.MiddleCenter);
510
textRectangle.Y = LayoutUtils.VAlign(textRectangle.Size, new Rectangle(Point.Empty, maxItemSize),
ContentAlignment
.MiddleCenter).Y;
winforms\Managed\System\WinForms\ToolStripItem.cs (12)
58
private
ContentAlignment
imageAlign =
ContentAlignment
.MiddleCenter;
59
private
ContentAlignment
textAlign =
ContentAlignment
.MiddleCenter;
1207
DefaultValue(
ContentAlignment
.MiddleCenter),
1212
public
ContentAlignment
ImageAlign {
1219
throw new InvalidEnumArgumentException("value", (int)value, typeof(
ContentAlignment
));
2288
DefaultValue(
ContentAlignment
.MiddleCenter),
2293
public virtual
ContentAlignment
TextAlign {
2299
throw new InvalidEnumArgumentException("value", (int)value, typeof(
ContentAlignment
));
4676
internal static TextFormatFlags ContentAlignToTextFormat(
ContentAlignment
alignment, bool rightToLeft) {
4708
layoutOptions.checkAlign =
ContentAlignment
.TopLeft;
winforms\Managed\System\WinForms\ToolStripItemTextRenderEventArgs.cs (2)
23
private
ContentAlignment
textAlignment;
49
public ToolStripItemTextRenderEventArgs(Graphics g, ToolStripItem item, string text, Rectangle textRectangle, Color textColor, Font textFont,
ContentAlignment
textAlign) : base(g, item) {
winforms\Managed\System\WinForms\ToolStripMenuItem.cs (6)
1100
renderer.DrawItemText(new ToolStripItemTextRenderEventArgs(g, this, this.Text, InternalLayout.TextRectangle, textColor, this.Font, (rightToLeft) ?
ContentAlignment
.MiddleRight :
ContentAlignment
.MiddleLeft));
1107
renderer.DrawItemText(new ToolStripItemTextRenderEventArgs(g, this, GetShortcutText(), InternalLayout.TextRectangle, textColor, this.Font, (rightToLeft) ?
ContentAlignment
.MiddleLeft :
ContentAlignment
.MiddleRight));
1483
arrowRect.Y = LayoutUtils.VAlign(arrowRect.Size, ownerItem.ClientBounds,
ContentAlignment
.MiddleCenter).Y;
1525
imageRect.Y = LayoutUtils.VAlign(imageRect.Size, ownerItem.ClientBounds,
ContentAlignment
.MiddleCenter).Y;
winforms\Managed\System\WinForms\ToolStripScrollButton.cs (1)
46
label.ImageAlign =
ContentAlignment
.MiddleCenter;
winforms\Managed\System\WinForms\ToolStripSeparator.cs (2)
195
public new
ContentAlignment
ImageAlign {
338
public new
ContentAlignment
TextAlign {
winforms\Managed\System\WinForms\WinFormsUtils.cs (25)
42
public static readonly
ContentAlignment
AnyRightAlign =
ContentAlignment
.TopRight |
ContentAlignment
.MiddleRight |
ContentAlignment
.BottomRight;
43
public static readonly
ContentAlignment
AnyLeftAlign =
ContentAlignment
.TopLeft |
ContentAlignment
.MiddleLeft |
ContentAlignment
.BottomLeft;
44
public static readonly
ContentAlignment
AnyTopAlign =
ContentAlignment
.TopLeft |
ContentAlignment
.TopCenter |
ContentAlignment
.TopRight;
45
public static readonly
ContentAlignment
AnyBottomAlign =
ContentAlignment
.BottomLeft |
ContentAlignment
.BottomCenter |
ContentAlignment
.BottomRight;
46
public static readonly
ContentAlignment
AnyMiddleAlign =
ContentAlignment
.MiddleLeft |
ContentAlignment
.MiddleCenter |
ContentAlignment
.MiddleRight;
47
public static readonly
ContentAlignment
AnyCenterAlign =
ContentAlignment
.TopCenter |
ContentAlignment
.MiddleCenter |
ContentAlignment
.BottomCenter;
392
public static bool IsValidContentAlignment(
ContentAlignment
contentAlign) {
System.Windows.Forms.DataVisualization (187)
Common\Annotation\AnnotationBase.cs (22)
191
private
ContentAlignment
_alignment =
ContentAlignment
.MiddleCenter;
214
internal
ContentAlignment
anchorAlignment =
ContentAlignment
.BottomCenter;
859
/// A <see cref="
ContentAlignment
"/> value that represents the content alignment.
868
DefaultValue(typeof(
ContentAlignment
), "MiddleCenter"),
871
virtual public
ContentAlignment
Alignment
1713
/// A <see cref="
ContentAlignment
"/> value that represents the annotation's alignment to
1723
DefaultValue(typeof(
ContentAlignment
), "BottomCenter"),
1726
virtual public
ContentAlignment
AnchorAlignment
2535
if(this.AnchorAlignment ==
ContentAlignment
.TopCenter ||
2536
this.AnchorAlignment ==
ContentAlignment
.TopLeft ||
2537
this.AnchorAlignment ==
ContentAlignment
.TopRight)
2542
else if(this.AnchorAlignment ==
ContentAlignment
.BottomCenter ||
2543
this.AnchorAlignment ==
ContentAlignment
.BottomLeft ||
2544
this.AnchorAlignment ==
ContentAlignment
.BottomRight)
2595
if(this.AnchorAlignment ==
ContentAlignment
.BottomLeft ||
2596
this.AnchorAlignment ==
ContentAlignment
.MiddleLeft ||
2597
this.AnchorAlignment ==
ContentAlignment
.TopLeft)
2602
else if(this.AnchorAlignment ==
ContentAlignment
.BottomRight ||
2603
this.AnchorAlignment ==
ContentAlignment
.MiddleRight ||
2604
this.AnchorAlignment ==
ContentAlignment
.TopRight)
Common\Annotation\ArrowAnnotation.cs (4)
121
base.AnchorAlignment =
ContentAlignment
.TopLeft;
206
/// A <see cref="
ContentAlignment
"/> value that represents the annotation's alignment to
218
DefaultValue(typeof(
ContentAlignment
), "TopLeft"),
221
override public
ContentAlignment
AnchorAlignment
Common\Annotation\CalloutAnnotation.cs (4)
154
this.anchorAlignment =
ContentAlignment
.BottomLeft;
516
/// A <see cref="
ContentAlignment
"/> value that represents the annotation's alignment to
526
DefaultValue(typeof(
ContentAlignment
), "BottomLeft"),
529
override public
ContentAlignment
AnchorAlignment
Common\Annotation\GroupAnnotation.cs (3)
246
/// A <see cref="
ContentAlignment
"/> value that represents the content alignment.
255
DefaultValue(typeof(
ContentAlignment
), "MiddleCenter"),
259
override public
ContentAlignment
Alignment
Common\Annotation\ImageAnnotation.cs (12)
187
/// A <see cref="
ContentAlignment
"/> value that represents the content alignment.
196
DefaultValue(typeof(
ContentAlignment
), "MiddleCenter"),
199
override public
ContentAlignment
Alignment
643
private ChartImageAlignmentStyle GetImageAlignment(
ContentAlignment
alignment)
645
if(alignment ==
ContentAlignment
.TopLeft)
649
else if(alignment ==
ContentAlignment
.TopCenter)
653
else if(alignment ==
ContentAlignment
.TopRight)
657
else if(alignment ==
ContentAlignment
.MiddleRight)
661
else if(alignment ==
ContentAlignment
.BottomRight)
665
else if(alignment ==
ContentAlignment
.BottomCenter)
669
else if(alignment ==
ContentAlignment
.BottomLeft)
673
else if(alignment ==
ContentAlignment
.MiddleLeft)
Common\Annotation\LineAnnotation.cs (7)
88
this.anchorAlignment =
ContentAlignment
.TopLeft;
179
/// A <see cref="
ContentAlignment
"/> value.
184
DefaultValue(typeof(
ContentAlignment
), "MiddleCenter"),
186
override public
ContentAlignment
Alignment
417
/// A <see cref="
ContentAlignment
"/> value that represents the annotation's alignment to
429
DefaultValue(typeof(
ContentAlignment
), "TopLeft"),
432
override public
ContentAlignment
AnchorAlignment
Common\Annotation\PolygonAnnotation.cs (3)
178
/// A <see cref="
ContentAlignment
"/> value.
183
DefaultValue(typeof(
ContentAlignment
), "MiddleCenter"),
185
override public
ContentAlignment
Alignment
Common\Annotation\TextAnnotation.cs (30)
554
if(this.Alignment ==
ContentAlignment
.MiddleCenter ||
555
this.Alignment ==
ContentAlignment
.MiddleLeft ||
556
this.Alignment ==
ContentAlignment
.MiddleRight)
563
if(this.Alignment ==
ContentAlignment
.BottomCenter ||
564
this.Alignment ==
ContentAlignment
.MiddleCenter ||
565
this.Alignment ==
ContentAlignment
.TopCenter)
584
if (this.Alignment ==
ContentAlignment
.BottomRight ||
585
this.Alignment ==
ContentAlignment
.MiddleRight ||
586
this.Alignment ==
ContentAlignment
.TopRight)
590
if (this.Alignment ==
ContentAlignment
.BottomCenter ||
591
this.Alignment ==
ContentAlignment
.MiddleCenter ||
592
this.Alignment ==
ContentAlignment
.TopCenter)
596
if (this.Alignment ==
ContentAlignment
.BottomCenter ||
597
this.Alignment ==
ContentAlignment
.BottomLeft ||
598
this.Alignment ==
ContentAlignment
.BottomRight)
602
if (this.Alignment ==
ContentAlignment
.MiddleCenter ||
603
this.Alignment ==
ContentAlignment
.MiddleLeft ||
604
this.Alignment ==
ContentAlignment
.MiddleRight)
642
if (this.Alignment ==
ContentAlignment
.BottomRight ||
643
this.Alignment ==
ContentAlignment
.MiddleRight ||
644
this.Alignment ==
ContentAlignment
.TopRight)
648
if (this.Alignment ==
ContentAlignment
.BottomCenter ||
649
this.Alignment ==
ContentAlignment
.MiddleCenter ||
650
this.Alignment ==
ContentAlignment
.TopCenter)
654
if (this.Alignment ==
ContentAlignment
.BottomCenter ||
655
this.Alignment ==
ContentAlignment
.BottomLeft ||
656
this.Alignment ==
ContentAlignment
.BottomRight)
660
if (this.Alignment ==
ContentAlignment
.MiddleCenter ||
661
this.Alignment ==
ContentAlignment
.MiddleLeft ||
662
this.Alignment ==
ContentAlignment
.MiddleRight)
Common\General\Legend.cs (6)
6135
this.Cells.Add(LegendCellType.Text, KeywordName.LegendText,
ContentAlignment
.MiddleLeft);
6136
this.Cells.Add(LegendCellType.SeriesSymbol, string.Empty,
ContentAlignment
.MiddleCenter);
6140
this.Cells.Add(LegendCellType.SeriesSymbol, string.Empty,
ContentAlignment
.MiddleCenter);
6141
this.Cells.Add(LegendCellType.Text, KeywordName.LegendText,
ContentAlignment
.MiddleLeft);
6157
this.Cells.Add(LegendCellType.SeriesSymbol, string.Empty,
ContentAlignment
.MiddleCenter);
6158
this.Cells.Add(LegendCellType.Text, KeywordName.LegendText,
ContentAlignment
.MiddleLeft);
Common\General\LegendColumns.cs (56)
149
private
ContentAlignment
_alignment =
ContentAlignment
.MiddleCenter;
196
: this(string.Empty, LegendCellColumnType.Text, KeywordName.LegendText,
ContentAlignment
.MiddleCenter)
208
public LegendCellColumn(string headerText, LegendCellColumnType columnType, string text) : this(headerText, columnType, text,
ContentAlignment
.MiddleCenter)
220
public LegendCellColumn(string headerText, LegendCellColumnType columnType, string text,
ContentAlignment
alignment)
418
DefaultValue(
ContentAlignment
.MiddleCenter),
421
public virtual
ContentAlignment
Alignment
850
private
ContentAlignment
_alignment =
ContentAlignment
.MiddleCenter;
898
this.Intitialize(LegendCellType.Text, string.Empty,
ContentAlignment
.MiddleCenter);
907
this.Intitialize(LegendCellType.Text, text,
ContentAlignment
.MiddleCenter);
917
this.Intitialize(cellType, text,
ContentAlignment
.MiddleCenter);
926
public LegendCell(LegendCellType cellType, string text,
ContentAlignment
alignment)
937
private void Intitialize(LegendCellType cellType, string text,
ContentAlignment
alignment)
1234
DefaultValue(
ContentAlignment
.MiddleCenter),
1237
public virtual
ContentAlignment
Alignment
2019
if (this.Alignment ==
ContentAlignment
.BottomLeft ||
2020
this.Alignment ==
ContentAlignment
.MiddleLeft ||
2021
this.Alignment ==
ContentAlignment
.TopLeft)
2025
else if (this.Alignment ==
ContentAlignment
.BottomRight ||
2026
this.Alignment ==
ContentAlignment
.MiddleRight ||
2027
this.Alignment ==
ContentAlignment
.TopRight)
2032
if (this.Alignment ==
ContentAlignment
.BottomCenter ||
2033
this.Alignment ==
ContentAlignment
.BottomLeft ||
2034
this.Alignment ==
ContentAlignment
.BottomRight)
2038
else if (this.Alignment ==
ContentAlignment
.TopCenter ||
2039
this.Alignment ==
ContentAlignment
.TopLeft ||
2040
this.Alignment ==
ContentAlignment
.TopRight)
2149
if(this.Alignment ==
ContentAlignment
.BottomLeft ||
2150
this.Alignment ==
ContentAlignment
.MiddleLeft ||
2151
this.Alignment ==
ContentAlignment
.TopLeft)
2155
else if(this.Alignment ==
ContentAlignment
.BottomRight ||
2156
this.Alignment ==
ContentAlignment
.MiddleRight ||
2157
this.Alignment ==
ContentAlignment
.TopRight)
2162
if(this.Alignment ==
ContentAlignment
.BottomCenter ||
2163
this.Alignment ==
ContentAlignment
.BottomLeft ||
2164
this.Alignment ==
ContentAlignment
.BottomRight)
2168
else if(this.Alignment ==
ContentAlignment
.TopCenter ||
2169
this.Alignment ==
ContentAlignment
.TopLeft ||
2170
this.Alignment ==
ContentAlignment
.TopRight)
2254
if(this.Alignment ==
ContentAlignment
.BottomLeft ||
2255
this.Alignment ==
ContentAlignment
.MiddleLeft ||
2256
this.Alignment ==
ContentAlignment
.TopLeft)
2260
else if(this.Alignment ==
ContentAlignment
.BottomRight ||
2261
this.Alignment ==
ContentAlignment
.MiddleRight ||
2262
this.Alignment ==
ContentAlignment
.TopRight)
2267
if(this.Alignment ==
ContentAlignment
.BottomCenter ||
2268
this.Alignment ==
ContentAlignment
.BottomLeft ||
2269
this.Alignment ==
ContentAlignment
.BottomRight)
2273
else if(this.Alignment ==
ContentAlignment
.TopCenter ||
2274
this.Alignment ==
ContentAlignment
.TopLeft ||
2275
this.Alignment ==
ContentAlignment
.TopRight)
2816
/// A <see cref="
ContentAlignment
"/> value representing cell content alignment.
2821
public int Add(LegendCellType cellType, string text,
ContentAlignment
alignment)
2841
/// A <see cref="
ContentAlignment
"/> value representing cell content alignment.
2843
public void Insert(int index, LegendCellType cellType, string text,
ContentAlignment
alignment)
Common\General\Title.cs (40)
234
private
ContentAlignment
_alignment =
ContentAlignment
.MiddleCenter;
1005
DefaultValue(
ContentAlignment
.MiddleCenter),
1012
public
ContentAlignment
Alignment
1410
if(this.Alignment ==
ContentAlignment
.BottomRight ||
1411
this.Alignment ==
ContentAlignment
.MiddleRight ||
1412
this.Alignment ==
ContentAlignment
.TopRight)
1416
else if(this.Alignment ==
ContentAlignment
.BottomCenter ||
1417
this.Alignment ==
ContentAlignment
.MiddleCenter ||
1418
this.Alignment ==
ContentAlignment
.TopCenter)
1426
if(this.Alignment ==
ContentAlignment
.BottomRight ||
1427
this.Alignment ==
ContentAlignment
.BottomCenter ||
1428
this.Alignment ==
ContentAlignment
.BottomLeft)
1432
else if(this.Alignment ==
ContentAlignment
.MiddleCenter ||
1433
this.Alignment ==
ContentAlignment
.MiddleLeft ||
1434
this.Alignment ==
ContentAlignment
.MiddleRight)
1490
if(this.Alignment ==
ContentAlignment
.BottomCenter ||
1491
this.Alignment ==
ContentAlignment
.BottomLeft ||
1492
this.Alignment ==
ContentAlignment
.BottomRight )
1496
else if(this.Alignment ==
ContentAlignment
.MiddleCenter ||
1497
this.Alignment ==
ContentAlignment
.MiddleLeft ||
1498
this.Alignment ==
ContentAlignment
.MiddleRight )
1505
if(this.Alignment ==
ContentAlignment
.BottomRight ||
1506
this.Alignment ==
ContentAlignment
.MiddleRight ||
1507
this.Alignment ==
ContentAlignment
.TopRight )
1511
else if(this.Alignment ==
ContentAlignment
.BottomCenter ||
1512
this.Alignment ==
ContentAlignment
.MiddleCenter ||
1513
this.Alignment ==
ContentAlignment
.TopCenter )
1579
if (this.Alignment ==
ContentAlignment
.BottomCenter ||
1580
this.Alignment ==
ContentAlignment
.BottomLeft ||
1581
this.Alignment ==
ContentAlignment
.BottomRight)
1585
else if (this.Alignment ==
ContentAlignment
.TopCenter ||
1586
this.Alignment ==
ContentAlignment
.TopLeft ||
1587
this.Alignment ==
ContentAlignment
.TopRight)
1592
if (this.Alignment ==
ContentAlignment
.BottomLeft ||
1593
this.Alignment ==
ContentAlignment
.MiddleLeft ||
1594
this.Alignment ==
ContentAlignment
.TopLeft)
1598
else if (this.Alignment ==
ContentAlignment
.BottomRight ||
1599
this.Alignment ==
ContentAlignment
.MiddleRight ||
1600
this.Alignment ==
ContentAlignment
.TopRight)