Base:
property
Text
System.Windows.Forms.Control.Text
349 writes to Text
Accessibility_Core_App (81)
CommonControl1.Designer.cs (13)
122
this.button12.
Text
= "System";
133
this.button1.
Text
= "Details";
145
this.button10.
Text
= "Flat";
155
this.button9.
Text
= "Standard";
166
this.button8.
Text
= "PopUp";
177
this.button3.
Text
= "List";
189
this.button4.
Text
= "SmallIcon";
201
this.button5.
Text
= "AutoSizeTrue";
212
this.button2.
Text
= "LargeIcon";
223
this.button6.
Text
= "AutoSizeFalse";
273
this.checkBox3.
Text
= "ThreeState";
285
this.checkBox2.
Text
= "UnChecked";
298
this.checkBox1.
Text
= "Checked";
CommonControl2.Designer.cs (1)
117
this.radioButton1.
Text
= "radioButton1";
ContainerControls.Designer.cs (30)
141
this.button2.
Text
= "button2";
151
this.button5.
Text
= "button5";
161
this.button6.
Text
= "button6";
213
this.button7.
Text
= "button7";
236
this.button8.
Text
= "button8";
259
this.button9.
Text
= "button9";
282
this.button10.
Text
= "button10";
312
this.radioButton6.
Text
= "radioButton6";
322
this.radioButton5.
Text
= "radioButton5";
332
this.radioButton4.
Text
= "radioButton4";
344
this.checkBox2.
Text
= "checkBox2";
356
this.radioButton3.
Text
= "radioButton3";
366
this.radioButton2.
Text
= "radioButton2";
375
this.button18.
Text
= "button18";
384
this.button17.
Text
= "button17";
394
this.radioButton1.
Text
= "radioButton1";
404
this.checkBox1.
Text
= "checkBox1";
447
this.button19.
Text
= "button19";
493
this.button20.
Text
= "button20";
515
this.button21.
Text
= "button21";
539
this.button4.
Text
= "button4";
549
this.button1.
Text
= "button1";
559
this.button3.
Text
= "button3";
623
this.button12.
Text
= "button12";
677
this.button11.
Text
= "button11";
699
this.button13.
Text
= "button13";
722
this.button14.
Text
= "button14";
732
this.button22.
Text
= "button22";
742
this.button23.
Text
= "button23";
795
this.button24.
Text
= "button24";
ContainerControls2.Designer.cs (12)
112
this.button15.
Text
= "button15";
122
this.button16.
Text
= "button16";
163
this.radioButton6.
Text
= "radioButton6";
173
this.radioButton5.
Text
= "radioButton5";
183
this.radioButton4.
Text
= "radioButton4";
195
this.checkBox2.
Text
= "checkBox2";
207
this.radioButton3.
Text
= "radioButton3";
217
this.radioButton2.
Text
= "radioButton2";
226
this.button18.
Text
= "button18";
235
this.button17.
Text
= "button17";
245
this.radioButton1.
Text
= "radioButton1";
255
this.checkBox1.
Text
= "checkBox1";
DataBindingExample.Designer.cs (3)
104
this.button1.
Text
= "button1";
137
this.radioButton1.
Text
= "Agreement";
179
this.checkBox1.
Text
= "Is_Student";
DialogControls.Designer.cs (4)
43
this.ColorDialog.
Text
= "ColorDialog";
54
this.FolderBrowserDialog.
Text
= "FolderBrowserDialog";
65
this.OpenFileDialog.
Text
= "OpenFileDialog";
76
this.SaveFileDialog.
Text
= "SaveFileDialog";
Main.Designer.cs (11)
52
this.button1.
Text
= "Common_Controls1: Testing the controls under the Common_Controls Tab";
63
this.button2.
Text
= "Common_Controls2: Testing the controls under the Common_Controls Tab";
74
this.button3.
Text
= "Data_Controls: Testing the controls under the Data Tab";
85
this.button4.
Text
= "Dialogs_Controls: Testing the controls under the Dialogs Tab";
96
this.button5.
Text
= "MenuToolbars_Controls: Testing the controls under the Menu & Toolbars Tab";
107
this.button6.
Text
= "Printing_Controls: Testing the controls under the Printing Tab";
118
this.button7.
Text
= "Remaining_Controls_Testing";
129
this.button8.
Text
= "Containers_Controls: Testing the controls under the Containers Tab";
140
this.button9.
Text
= "Containers_Controls_2: Testing the controls under the Containers Tab";
150
this.button10.
Text
= "TaskDialog: Testing the task dialog";
160
this.button12.
Text
= "DataBinding Example";
MenuForm.Designer.cs (2)
42
this.button1.
Text
= "StripControls";
53
this.button2.
Text
= "ToolStripContainer";
PrintingControls.Designer.cs (4)
96
this.btnSetting.
Text
= "&Setting";
107
this.btnPreView.
Text
= "P&review";
118
this.btnPrint.
Text
= "&Print";
129
this.button1.
Text
= "Preview &Control";
ToolStripContainer.Designer.cs (1)
586
this.button1.
Text
= "button1";
DesignSurface (13)
MainForm.cs (13)
131
b1.
Text
= "I'm the first Button";
132
b2.
Text
= "I'm the second Button";
137
rb1.
Text
= "Check me!";
139
rb2.
Text
= "No, check me!";
143
checkbox1.
Text
= "I'm Unchecked!";
145
checkbox2.
Text
= "I'm Indeterminate!";
149
checkbox3.
Text
= "I'm Checked!";
193
b1.
Text
= "I'm a Button";
221
b1.
Text
= "I'm the first Button";
222
b2.
Text
= "I'm the second Button";
223
b3.
Text
= "I'm the third Button (belonging to the GroupBox)";
242
b1.
Text
= "I'm the first Button";
243
b2.
Text
= "I'm the second Button";
NativeHost.ManagedControl (1)
ManagedControl.Designer.cs (1)
42
this.button1.
Text
= "button1";
PresentationUI (32)
MS\Internal\Documents\CredentialManagerDialog.cs (4)
161
_cancelButton.
Text
= SR.RMCredManagementCancel;
162
_okButton.
Text
= SR.RMCredManagementOk;
163
_addButton.
Text
= SR.RMCredManagementAdd;
164
_removeButton.
Text
= SR.RMCredManagementRemove;
MS\Internal\Documents\RequestedSignatureDialog.cs (2)
129
_addButton.
Text
= SR.RequestSignatureDialogAdd;
130
_cancelButton.
Text
= SR.RequestSignatureDialogCancel;
MS\Internal\Documents\RMEnrollmentPage1.cs (2)
59
_nextButton.
Text
= SR.RMEnrollmentNext;
60
_cancelButton.
Text
= SR.RMEnrollmentCancel;
MS\Internal\Documents\RMEnrollmentPage2.cs (4)
89
this._nextButton.
Text
= SR.RMEnrollmentNext;
90
this._cancelButton.
Text
= SR.RMEnrollmentCancel;
93
this._networkRadioButton.
Text
= SR.RMEnrollmentPage2c;
94
this._passportRadioButton.
Text
= SR.RMEnrollmentPage2e;
MS\Internal\Documents\RMPermissions.cs (1)
229
closeButton.
Text
= SR.RMPermissionsCloseButton;
MS\Internal\Documents\RMPublishingDialog.cs (9)
912
radioButtonUnrestricted.
Text
= SR.RMPublishingUnrestrictedRadio;
913
radioButtonPermissions.
Text
= SR.RMPublishingPermissionsRadio;
914
radioButtonTemplate.
Text
= SR.RMPublishingTemplateRadio;
924
buttonAddUser.
Text
= SR.RMPublishingAddUserButton;
956
checkBoxValidUntil.
Text
= SR.RMPublishingExpiresOn;
957
checkBoxPermissionsContact.
Text
=
959
buttonSave.
Text
= SR.RMPublishingSaveButton;
961
buttonSaveAs.
Text
= SR.RMPublishingSaveAsButton;
963
buttonCancel.
Text
= SR.RMPublishingCancelButton;
MS\Internal\Documents\SignatureSummaryDialog.cs (5)
780
_buttonDone.
Text
= SR.DigSigSumDone;
781
_buttonSign.
Text
= SR.DigSigSumSign;
782
_buttonViewCert.
Text
= SR.DigSigSumViewCert;
783
_buttonRequestAdd.
Text
= SR.DigSigSumRequestAdd;
784
_buttonRequestDelete.
Text
= SR.DigSigSumRequestDelete;
MS\Internal\Documents\SigningDialog.cs (5)
240
_addDocPropCheckBox.
Text
= SR.SigningDialogAddDocPropCheckBox;
241
_addDigSigCheckBox.
Text
= SR.SigningDialogAddDigSigCheckBox;
242
_cancelButton.
Text
= SR.SigningDialogCancelButton;
243
_signButton.
Text
= SR.SigningDialogSignButton;
244
_signSaveAsButton.
Text
= SR.SigningDialogSignSaveAsButton;
System.Windows.Forms (14)
System\Windows\Forms\Controls\PropertyGrid\PropertyGridInternal\GridErrorDialog.cs (3)
59
_detailsButton.
Text
= $" {SR.ExDlgShowDetails}";
63
_okButton.
Text
= SR.ExDlgOk;
64
_cancelButton.
Text
= SR.ExDlgCancel;
System\Windows\Forms\Design\ComponentEditorForm.cs (6)
102
_cancelButton.
Text
= SR.CloseCaption;
267
_helpButton.
Text
= SR.HelpCaption;
274
_applyButton.
Text
= SR.ApplyCaption;
281
_cancelButton.
Text
= SR.CancelCaption;
288
_okButton.
Text
= SR.OKCaption;
428
_cancelButton.
Text
= SR.CancelCaption;
System\Windows\Forms\Dialogs\ThreadExceptionDialog.cs (4)
270
_continueButton.
Text
= SR.ExDlgContinue;
274
_quitButton.
Text
= SR.ExDlgQuit;
278
_helpButton.
Text
= SR.ExDlgHelp;
282
_detailsButton.
Text
= SR.ExDlgShowDetails;
System\Windows\Forms\Printing\PrintControllerWithStatusDialog.StatusDialog.cs (1)
56
Text
= SR.PrintControllerWithStatusDialog_Cancel,
System.Windows.Forms.Design (20)
System\ComponentModel\Design\DesignerActionPanel.CheckBoxPropertyLine.cs (1)
53
_checkBox.
Text
= StripAmpersands(PropertyItem!.DisplayName);
System\Drawing\Design\ContentAlignmentEditor.ContentUI.cs (9)
115
_topLeft.
Text
= string.Empty;
121
_topCenter.
Text
= string.Empty;
127
_topRight.
Text
= string.Empty;
133
_middleLeft.
Text
= string.Empty;
139
_middleCenter.
Text
= string.Empty;
145
_middleRight.
Text
= string.Empty;
151
_bottomLeft.
Text
= string.Empty;
157
_bottomCenter.
Text
= string.Empty;
163
_bottomRight.
Text
= string.Empty;
System\Windows\Forms\Design\DataGridViewAddColumnDialog.cs (2)
609
_cancelButton.
Text
= SR.DataGridView_Cancel;
750
_cancelButton.
Text
= (SR.DataGridView_Close);
System\Windows\Forms\Design\DockEditor.DockUI.cs (6)
46
Text
= DockStyle.None.ToString(),
60
Text
= " ",
71
Text
= " ",
82
Text
= " ",
93
Text
= " ",
104
Text
= " ",
System\Windows\Forms\Design\FormatStringDialog.cs (2)
186
_cancelButton.
Text
= SR.DataGridView_Cancel;
196
_okButton.
Text
= SR.DataGridView_OK;
System.Windows.Forms.Tests (72)
System\Windows\Forms\AccessibleObjects\AccessibleObjectTests.cs (1)
2620
Text
= "MSAA Button"
System\Windows\Forms\AccessibleObjects\ButtonBase.ButtonBaseAccessibleObjectTests.cs (2)
254
Text
= "Text"
262
control.
Text
= newText;
System\Windows\Forms\AccessibleObjects\RadioButton.RadioButtonAccessibleObjectTests.cs (3)
91
using RadioButton radioButton = new() {
Text
= "TestText" };
102
using RadioButton radioButton = new() {
Text
= "&TestText", UseMnemonic = useMnemonic };
113
using RadioButton radioButton = new() {
Text
= "&RadioButton", UseMnemonic = useMnemonic };
System\Windows\Forms\ButtonBaseTests.cs (18)
3052
control.
Text
= value;
3058
control.
Text
= value;
3096
control.
Text
= value;
3104
control.
Text
= value;
3143
control.
Text
= value;
3151
control.
Text
= value;
3199
control.
Text
= value;
3210
control.
Text
= value;
3239
control.
Text
= "text";
3244
control.
Text
= "text";
3249
control.
Text
= null;
3255
control.
Text
= "text";
6235
Text
= text
6280
Text
= text,
6313
Text
= text
6371
Text
= text,
6435
Text
= text
6467
Text
= text
System\Windows\Forms\ButtonRenderingTests.cs (3)
121
button.
Text
= "Hello";
167
button.
Text
= "Hello";
228
button.
Text
= "Flat Style";
System\Windows\Forms\ButtonTests.cs (33)
594
Text
= "text"
694
Text
= "text"
768
control.
Text
= value;
774
control.
Text
= value;
812
control.
Text
= value;
820
control.
Text
= value;
859
control.
Text
= value;
867
control.
Text
= value;
915
control.
Text
= value;
926
control.
Text
= value;
949
Text
= "text"
956
control.
Text
= "NextText";
974
control.
Text
= "text";
979
control.
Text
= "text";
984
control.
Text
= null;
990
control.
Text
= "text";
1336
Text
= "Text"
1360
Text
= "Text"
1632
Text
= "Text"
1656
Text
= "Text"
1680
Text
= "Text"
1704
Text
= "Text"
1728
Text
= "Text"
1752
Text
= "Text"
2379
Text
= text
2423
Text
= text,
2455
Text
= text
2512
Text
= text,
2572
Text
= text
2603
Text
= text
3266
Text
= text
3301
Text
= text,
3355
Text
= "Text"
System\Windows\Forms\CheckBoxRendererTests.cs (3)
66
control.
Text
= "Text";
103
control.
Text
= "Text";
137
control.
Text
= "Text";
System\Windows\Forms\CheckBoxTests.cs (1)
849
Text
= buttonText,
System\Windows\Forms\RadioButtonRendererTests.cs (3)
60
control.
Text
= "Text";
97
control.
Text
= "Text";
116
control.
Text
= "Text";
System\Windows\Forms\RadioButtonTests.cs (5)
1356
Text
= text
1385
Text
= text,
1415
Text
= text
1455
Text
= text,
1520
Text
= "Text"
System.Windows.Forms.UI.IntegrationTests (5)
ButtonTests.cs (3)
340
button.
Text
= "&Click";
364
button.
Text
= "&Click";
383
button.
Text
= "&Click";
DragDropTests.cs (2)
93
Text
= "Click"
627
_useCustomCursorsCheck.
Text
= "Use Custom Cursors";
TrimTest (1)
Form1.Designer.cs (1)
92
button1.
Text
= "Copy ComboBox Text";
WinFormsControlsTest (110)
AnchorLayoutTests.Designer.cs (9)
51
this.button1.
Text
= "Top-Left";
61
this.button2.
Text
= "Top";
71
this.button3.
Text
= "Top-Right";
81
this.button4.
Text
= "Left";
91
this.button5.
Text
= "Bottom-Left";
103
this.button6.
Text
= "All";
113
this.button7.
Text
= "Right";
123
this.button8.
Text
= "Bottom";
133
this.button9.
Text
= "Bottom-Right";
Buttons.cs (3)
54
Text
= style.ToString(),
75
Text
= style.ToString(),
96
Text
= style.ToString()
Calendar.Designer.cs (6)
85
this.setMinDateButton.
Text
= "Set MinDate";
116
this.setMaxDateButton.
Text
= "Set MaxDate";
173
this.resetMinDateButton.
Text
= "Reset";
184
this.resetMaxDateButton.
Text
= "Reset";
196
this.showWeekNumbersCheckBox.
Text
= "showWeekNumbers";
208
this.showTodayCheckBox.
Text
= "showToday";
ComboBoxesWithScrollBars.Designer.cs (6)
271
this.integralHeightCheckBox1.
Text
= "IntegralHeight";
282
this.integralHeightCheckBox2.
Text
= "IntegralHeight";
293
this.integralHeightCheckBox3.
Text
= "IntegralHeight";
318
this.useDifferentHeightsCheckBox1.
Text
= "Use different heights";
329
this.useDifferentHeightsCheckBox2.
Text
= "Use different heights";
340
this.useDifferentHeightsCheckBox3.
Text
= "Use different heights";
CustomComCtl32Button.cs (4)
46
Text
= $"Real Button Standard Not Pressed",
63
button.
Text
= $"Real Button Standard Pressed";
68
button.
Text
= $"Real Button Standard Not Pressed";
82
checkbox.
Text
= $"CheckBox (Button appearance) Standard {(isPressed ? "Checked" : "Unchecked")}";
DataGridViewTest.Designer.cs (2)
153
this.changeFontButton.
Text
= "Change DGV font";
201
this.resetFontButton.
Text
= "Reset DGV font";
DesignTimeAligned.Designer.cs (1)
70
this.button1.
Text
= "LL";
Dialogs.Designer.cs (6)
67
this.btnOpenFileDialog.
Text
= "Open &file dialog";
77
this.btnColorDialog.
Text
= "&Color dialog";
87
this.btnThreadExceptionDialog.
Text
= "&Thread exception dialog";
97
this.btnPrintDialog.
Text
= "&Print dialog";
107
this.btnFolderBrowserDialog.
Text
= "Folder &browser dialog";
117
this.btnSaveFileDialog.
Text
= "&Save file dialog";
DockLayoutTests.Designer.cs (5)
50
this.button1.
Text
= "Left";
60
this.button3.
Text
= "Right";
70
this.button2.
Text
= "Top";
80
this.button4.
Text
= "Bottom";
90
this.button5.
Text
= "Fill";
DragDrop.Designer.cs (2)
182
buttonOpenCats.
Text
= "Open Cats";
192
buttonClear.
Text
= "Clear";
ErrorProviderTest.Designer.cs (1)
122
this.submitButton.
Text
= "Validate";
FormBorderStyles.Designer.cs (1)
41
this.btnChangeFormBorderStyle.
Text
= "Change FormBorderStyle";
FormShowInTaskbar.cs (2)
19
Text
= "Click here to open new Form",
40
Text
= $"Click here to test ShowInTaskbar.{Environment.NewLine}If the test result is failed, this dialog will automatically close, or it will throw an exception.",
ListBoxes.Designer.cs (8)
80
this.addButton1.
Text
= "Add";
88
this.deleteButton1.
Text
= "Delete";
113
this.addButton2.
Text
= "Add";
121
this.deleteButton2.
Text
= "Delete";
149
this.addButton3.
Text
= "Add";
157
this.deleteButton3.
Text
= "Delete";
186
this.addButton4.
Text
= "Add";
194
this.deleteButton4.
Text
= "Delete";
ListViewTest.Designer.cs (3)
113
this.btnClearListView1.
Text
= "Clear";
123
this.btnLoadImagesListView1.
Text
= "Load images";
145
this.btnReplaceImageListView1.
Text
= "Replace image";
MainForm.cs (1)
33
Text
= info.Name,
MdiChild.Designer.cs (7)
68
this.chkChildAlign.
Text
= "Top align minimized child";
79
this.chkRightToLeft.
Text
= "Right to left mode";
90
this.btnOpenChild.
Text
= "Open new child";
101
this.chkSetParentMenustrip.
Text
= "Set parent menustrip";
112
this.chkSetMenustrip.
Text
= "Set child menustrip";
123
this.chkAddParentMenustrip.
Text
= "Add parent menustrip to Controls";
134
this.chkAddMenustrip.
Text
= "Add menustrip to Controls";
MultipleControls.Designer.cs (5)
83
this.button1.
Text
= "button1";
175
this.checkBox1.
Text
= "checkBox1";
185
this.checkBox2.
Text
= "Three state CheckBox";
196
this.radioButton2.
Text
= "radioButton2";
206
this.radioButton1.
Text
= "radioButton1";
Password.Designer.cs (1)
132
button1.
Text
= "Show/hide";
PictureBoxes.Designer.cs (1)
63
this.btnloadImage.
Text
= "Load";
RichTextBoxes.cs (1)
130
Button confirmation = new() {
Text
= "Ok", Left = 350, Width = 100, Top = 70, DialogResult = DialogResult.OK };
ScalingBeforeChanges.Designer.cs (1)
44
this.checkBox1.
Text
= "checkBox1";
ScrollableControls.Designer.cs (17)
108
button1.
Text
= "button1";
117
button2.
Text
= "button2";
126
button3.
Text
= "button3";
135
button4.
Text
= "button4";
144
button5.
Text
= "button5";
175
button9.
Text
= "button9";
184
button8.
Text
= "button8";
193
button7.
Text
= "button7";
202
button6.
Text
= "button6";
244
button16.
Text
= "button16";
253
button15.
Text
= "button15";
262
button10.
Text
= "button10";
271
button14.
Text
= "button14";
280
button13.
Text
= "button13";
289
button12.
Text
= "button12";
298
button11.
Text
= "button11";
338
button17.
Text
= "button17";
ScrollBars.Designer.cs (1)
93
this.chbRightToLeft.
Text
= "Right to left";
TaskDialogSamples.cs (1)
33
Text
= name,
ToolStripSeparatorPreferredSize.cs (1)
74
_buttonChangeOrientation.
Text
= "Change Orientation";
ToolStripTests.cs (2)
15
toolStrip1.Items.Add(new ToolStripControlHost(new RadioButton() {
Text
= "RadioButton" })); // RadioButton supports UIA
17
statusStrip1.Items.Add(new ToolStripControlHost(new RadioButton() {
Text
= "RadioButton" })); // RadioButton supports UIA
ToolTipTests.Designer.cs (7)
57
this.delaysNotSetButton.
Text
= "Delays ¬ set";
68
this.automaticDelayButton.
Text
= "&AutomaticDelay = 300";
79
this.autoPopDelayButton.
Text
= "Auto&PopDelay = 6000";
105
this.defaultAutomaticDelayButton.
Text
= "AutomaticDelay = 500";
116
this.defaultAutoPopDelayButton.
Text
= "AutoPopDelay = 5000";
127
this.initialDelayButton.
Text
= "I&nitial delay = 10";
138
this.autoEllipsisButton.
Text
= "Auto&Ellipsis = true; 1234567890";
TrackBars.Designer.cs (5)
78
this.rbHorizontal.
Text
= "Horizontal";
90
this.rbVertical.
Text
= "Vertical";
115
this.chbRightToLeft.
Text
= "RightToLeft";
127
this.chbRightToLeftLayout.
Text
= "RightToLeftLayout";
139
this.tickstyleNone.
Text
= "TickstyleNone";
80 references to Text
System.Windows.Forms (22)
System\Windows\Forms\Controls\Buttons\Button.cs (3)
96
Size requiredSize = TextRenderer.MeasureText(
Text
, Font);
283
if (UseMnemonic && CanProcessMnemonic() && IsMnemonic(charCode,
Text
))
292
public override string ToString() => $"{base.ToString()}, Text: {
Text
}";
System\Windows\Forms\Controls\Buttons\ButtonBase.cs (2)
843
_textToolTip.Show(WindowsFormsUtils.TextWithoutMnemonics(
Text
), this);
1110
using var textVariant = (VARIANT)
Text
;
System\Windows\Forms\Controls\Buttons\ButtonInternal\ButtonBaseAdapter.cs (8)
474
g.DrawString(Control.
Text
, Control.Font, highlightBrush, r, stringFormat);
478
g.DrawString(Control.
Text
, Control.Font, shadowBrush, r, stringFormat);
484
g.DrawString(Control.
Text
, Control.Font, brush, r, stringFormat);
496
TextRenderer.DrawTextInternal(e, Control.
Text
, Control.Font, r, colors.ButtonShadow, formatFlags);
501
TextRenderer.DrawTextInternal(e, Control.
Text
, Control.Font, r, colors.Highlight, formatFlags);
504
TextRenderer.DrawTextInternal(e, Control.
Text
, Control.Font, r, colors.ButtonShadow, formatFlags);
509
TextRenderer.DrawTextInternal(e, Control.
Text
, Control.Font, r, color, formatFlags);
601
Text = Control.
Text
,
System\Windows\Forms\Controls\Buttons\ButtonInternal\CheckBoxBaseAdapter.cs (1)
330
if (string.IsNullOrEmpty(Control.
Text
))
System\Windows\Forms\Controls\Buttons\ButtonInternal\CheckBoxPopupAdapter.cs (1)
77
if (!string.IsNullOrEmpty(Control.
Text
))
System\Windows\Forms\Controls\Buttons\ButtonInternal\CheckBoxStandardAdapter.cs (1)
36
if (!string.IsNullOrEmpty(Control.
Text
))
System\Windows\Forms\Controls\Buttons\ButtonInternal\RadioButtonBaseAdapter.cs (1)
221
if (string.IsNullOrEmpty(Control.
Text
))
System\Windows\Forms\Controls\Buttons\CheckBox.cs (2)
283
Size textSize = TextRenderer.MeasureText(
Text
, Font);
520
if (UseMnemonic && IsMnemonic(charCode,
Text
) && CanSelect)
System\Windows\Forms\Controls\Buttons\RadioButton.cs (2)
254
Size textSize = TextRenderer.MeasureText(
Text
, Font);
504
if (UseMnemonic && IsMnemonic(charCode,
Text
) && CanSelect)
System\Windows\Forms\Controls\PropertyGrid\PropertyGridInternal\GridErrorDialog.cs (1)
301
SizeF sizef = PropertyGrid.MeasureTextHelper.MeasureText(_ownerGrid, g, _detailsButton.
Text
, _detailsButton.Font);
System.Windows.Forms.Design (4)
System\ComponentModel\Design\CollectionEditor.SplitButton.cs (4)
62
if (_showSplit && !string.IsNullOrEmpty(
Text
) && TextRenderer.MeasureText(
Text
, Font).Width + PushButtonWidth > preferredSize.Width)
231
if (!string.IsNullOrEmpty(
Text
))
233
TextRenderer.DrawText(pevent,
Text
, Font, bounds, SystemColors.ControlText, formatFlags);
System.Windows.Forms.Tests (52)
System\Windows\Forms\ButtonBaseTests.cs (13)
110
Assert.Empty(control.
Text
);
3053
Assert.Equal(expected, control.
Text
);
3059
Assert.Equal(expected, control.
Text
);
3097
Assert.Equal(expected, control.
Text
);
3105
Assert.Equal(expected, control.
Text
);
3144
Assert.Equal(expected, control.
Text
);
3152
Assert.Equal(expected, control.
Text
);
3200
Assert.Equal(expected, control.
Text
);
3211
Assert.Equal(expected, control.
Text
);
3240
Assert.Equal("text", control.
Text
);
3245
Assert.Equal("text", control.
Text
);
3250
Assert.Empty(control.
Text
);
3256
Assert.Equal("text", control.
Text
);
System\Windows\Forms\ButtonTests.cs (25)
108
Assert.Empty(control.
Text
);
599
Size newSize = TextRenderer.MeasureText(control.
Text
, control.Font);
696
Size oldSize = TextRenderer.MeasureText(control.
Text
, control.Font);
700
Size newSize = TextRenderer.MeasureText(control.
Text
, font);
769
Assert.Equal(expected, control.
Text
);
775
Assert.Equal(expected, control.
Text
);
813
Assert.Equal(expected, control.
Text
);
821
Assert.Equal(expected, control.
Text
);
860
Assert.Equal(expected, control.
Text
);
868
Assert.Equal(expected, control.
Text
);
916
Assert.Equal(expected, control.
Text
);
927
Assert.Equal(expected, control.
Text
);
951
Size oldSize = TextRenderer.MeasureText(control.
Text
, control.Font);
975
Assert.Equal("text", control.
Text
);
980
Assert.Equal("text", control.
Text
);
985
Assert.Empty(control.
Text
);
991
Assert.Equal("text", control.
Text
);
1338
Size minSize = TextRenderer.MeasureText(control.
Text
, control.Font);
1362
Size minSize = TextRenderer.MeasureText(control.
Text
, control.Font);
1634
Size minSize = TextRenderer.MeasureText(control.
Text
, control.Font);
1658
Size minSize = TextRenderer.MeasureText(control.
Text
, control.Font);
1682
Size minSize = TextRenderer.MeasureText(control.
Text
, control.Font);
1706
Size minSize = TextRenderer.MeasureText(control.
Text
, control.Font);
1730
Size minSize = TextRenderer.MeasureText(control.
Text
, control.Font);
1754
Size minSize = TextRenderer.MeasureText(control.
Text
, control.Font);
System\Windows\Forms\CheckBoxRendererTests.cs (7)
31
CheckBoxRenderer.DrawCheckBox(graphics, point, bounds, control.
Text
, SystemFonts.DefaultFont, false, cBState);
68
CheckBoxRenderer.DrawCheckBox(graphics, point, bounds, control.
Text
, SystemFonts.DefaultFont, false, cBState);
76
control.
Text
,
105
CheckBoxRenderer.DrawCheckBox(graphics, point, bounds, control.
Text
, SystemFonts.DefaultFont, textFormat, false, cBState);
113
control.
Text
,
139
CheckBoxRenderer.DrawCheckBox(graphics, point, bounds, control.
Text
, SystemFonts.DefaultFont, TextFormatFlags.Default, focus, cBState, HWND.Null);
147
control.
Text
,
System\Windows\Forms\CheckBoxTests.cs (1)
110
Assert.Empty(control.
Text
);
System\Windows\Forms\RadioButtonRendererTests.cs (5)
62
RadioButtonRenderer.DrawRadioButton(graphics, point, bounds, control.
Text
, SystemFonts.DefaultFont, false, rBState);
70
control.
Text
,
99
RadioButtonRenderer.DrawRadioButton(graphics, point, bounds, control.
Text
, SystemFonts.DefaultFont, textFormat, false, rBState);
122
control.
Text
,
136
control.
Text
,
System\Windows\Forms\RadioButtonTests.cs (1)
108
Assert.Empty(control.
Text
);
System.Windows.Forms.UI.IntegrationTests (2)
DragDropTests.cs (2)
120
Assert.Equal(button?.
Text
, data.
Text
);