2 overrides of TextAlign
System.Windows.Forms (2)
System\Windows\Forms\Controls\Buttons\CheckBox.cs (1)
336
public override ContentAlignment
TextAlign
System\Windows\Forms\Controls\Buttons\RadioButton.cs (1)
306
public override ContentAlignment
TextAlign
14 writes to TextAlign
System.Windows.Forms (2)
System\Windows\Forms\Controls\Buttons\CheckBox.cs (1)
339
set => base.
TextAlign
= value;
System\Windows\Forms\Controls\Buttons\RadioButton.cs (1)
309
set => base.
TextAlign
= value;
System.Windows.Forms.Tests (11)
System\Windows\Forms\ButtonBaseTests.cs (10)
229
TextAlign
= textAlign
3286
control.
TextAlign
= value;
3292
control.
TextAlign
= value;
3337
control.
TextAlign
= value;
3345
control.
TextAlign
= value;
3392
control.
TextAlign
= value;
3401
control.
TextAlign
= value;
3461
control.
TextAlign
= value;
3472
control.
TextAlign
= value;
3493
Assert.Throws<InvalidEnumArgumentException>("value", () => control.
TextAlign
= value);
System\Windows\Forms\ButtonTests.cs (1)
251
TextAlign
= textAlign
WinFormsControlsTest (1)
DesignTimeAligned.Designer.cs (1)
71
this.button1.
TextAlign
= System.Drawing.ContentAlignment.MiddleLeft;
18 references to TextAlign
System.Windows.Forms (8)
System\Windows\Forms\Controls\Buttons\ButtonBase.cs (2)
274
ContentAlignment align = RtlTranslateContent(
TextAlign
);
681
if (value ==
TextAlign
)
System\Windows\Forms\Controls\Buttons\ButtonInternal\ButtonBaseAdapter.cs (4)
89
=> ControlPaint.CreateStringFormat(Control, Control.
TextAlign
, Control.ShowToolTip, Control.UseMnemonic);
95
=> ControlPaint.CreateTextFormatFlags(Control, Control.
TextAlign
, Control.ShowToolTip, Control.UseMnemonic);
464
if ((Control.
TextAlign
& LayoutUtils.AnyCenter) == 0)
607
TextAlign = Control.
TextAlign
,
System\Windows\Forms\Controls\Buttons\CheckBox.cs (1)
338
get => base.
TextAlign
;
System\Windows\Forms\Controls\Buttons\RadioButton.cs (1)
308
get => base.
TextAlign
;
System.Windows.Forms.Tests (10)
System\Windows\Forms\ButtonBaseTests.cs (9)
111
Assert.Equal(ContentAlignment.MiddleCenter, control.
TextAlign
);
3287
Assert.Equal(value, control.
TextAlign
);
3293
Assert.Equal(value, control.
TextAlign
);
3338
Assert.Equal(value, control.
TextAlign
);
3346
Assert.Equal(value, control.
TextAlign
);
3393
Assert.Equal(value, control.
TextAlign
);
3402
Assert.Equal(value, control.
TextAlign
);
3462
Assert.Equal(value, control.
TextAlign
);
3473
Assert.Equal(value, control.
TextAlign
);
System\Windows\Forms\ButtonTests.cs (1)
109
Assert.Equal(ContentAlignment.MiddleCenter, control.
TextAlign
);