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