70 writes to ReadOnly
PresentationUI (24)
MS\Internal\Documents\Application\DocumentPropertiesDialog.Designer.cs (22)
212
this._language.
ReadOnly
= true;
222
this._title.
ReadOnly
= true;
239
this._identifier.
ReadOnly
= true;
296
this._version.
ReadOnly
= true;
313
this._category.
ReadOnly
= true;
322
this._status.
ReadOnly
= true;
331
this._content.
ReadOnly
= true;
349
this._author.
ReadOnly
= true;
358
this._subject.
ReadOnly
= true;
368
this._description.
ReadOnly
= true;
379
this._keywords.
ReadOnly
= true;
476
this._size.
ReadOnly
= true;
494
this._filename.
ReadOnly
= true;
504
this._documentType.
ReadOnly
= true;
562
this._documentPrintedDate.
ReadOnly
= true;
571
this._documentModifiedDate.
ReadOnly
= true;
580
this._documentCreatedDate.
ReadOnly
= true;
589
this._revision.
ReadOnly
= true;
638
this._lastSaved.
ReadOnly
= true;
678
this._fileModifiedDate.
ReadOnly
= true;
687
this._fileAccessedDate.
ReadOnly
= true;
712
this._fileCreatedDate.
ReadOnly
= true;
MS\Internal\Documents\RMPublishingDialog.Designer.cs (2)
166
this.textBoxUnrestrictedText.
ReadOnly
= true;
267
this.textBoxPermissionsContact.
ReadOnly
= true;
System.Windows.Forms (7)
System\Windows\Forms\Controls\PropertyGrid\PropertyGridInternal\GridErrorDialog.cs (1)
253
ReadOnly
= true,
System\Windows\Forms\Controls\PropertyGrid\PropertyGridInternal\PropertyGridView.cs (1)
4378
EditTextBox.
ReadOnly
= drawReadOnly || !gridEntry.IsTextEditable;
System\Windows\Forms\Controls\TextBox\MaskedTextBox.cs (1)
942
base.
ReadOnly
= value;
System\Windows\Forms\Controls\ToolStrips\ToolStripTextBox.cs (1)
301
set { TextBox.
ReadOnly
= value; }
System\Windows\Forms\Controls\UpDown\UpDownBase.cs (1)
365
set => _upDownEdit.
ReadOnly
= value;
System\Windows\Forms\Dialogs\ThreadExceptionDialog.cs (1)
323
_details.
ReadOnly
= true;
System\Windows\Forms\Printing\PrintControllerWithStatusDialog.StatusDialog.cs (1)
42
ReadOnly
= true,
System.Windows.Forms.Design (1)
System\ComponentModel\Design\ByteViewer.cs (1)
458
ReadOnly
= true,
System.Windows.Forms.Tests (38)
System\Windows\Forms\AccessibleObjects\DataGridViewTextBoxEditingControl.DataGridViewTextBoxEditingControlAccessibleObjectTests.cs (1)
32
textCellControl.
ReadOnly
= readOnly;
System\Windows\Forms\AccessibleObjects\TextBoxBaseAccessibleObjectTests.cs (1)
74
textBoxBase.
ReadOnly
= readOnly;
System\Windows\Forms\AccessibleObjects\ToolStripTextBox.ToolStripTextBoxControlAccessibleObjectTests.cs (1)
40
textBox.
ReadOnly
= readOnly;
System\Windows\Forms\AccessibleObjects\UpDownBase.UpDownEdit.UpDownEditAccessibleObjectTests.cs (1)
111
upDownEdit.
ReadOnly
= readOnly;
System\Windows\Forms\TextBoxBase.TextBoxBaseUiaTextProviderTests.cs (1)
53
textBoxBase.
ReadOnly
= readOnly;
TextBoxBaseTests.cs (33)
71
ReadOnly
= readOnly
376
ReadOnly
= true
1444
ReadOnly
= true,
1507
ReadOnly
= true,
2338
control.
ReadOnly
= value;
2343
control.
ReadOnly
= value;
2348
control.
ReadOnly
= !value;
2353
control.
ReadOnly
= value;
2371
control.
ReadOnly
= value;
2379
control.
ReadOnly
= value;
2387
control.
ReadOnly
= !value;
2402
control.
ReadOnly
= value;
2413
ReadOnly
= true
2425
control.
ReadOnly
= false;
2430
control.
ReadOnly
= false;
2435
control.
ReadOnly
= true;
2441
control.
ReadOnly
= false;
2453
ReadOnly
= true,
2466
control.
ReadOnly
= false;
2472
control.
ReadOnly
= false;
2478
control.
ReadOnly
= true;
2485
control.
ReadOnly
= false;
2498
ReadOnly
= true,
2511
control.
ReadOnly
= false;
2517
control.
ReadOnly
= false;
2523
control.
ReadOnly
= true;
2530
control.
ReadOnly
= false;
5229
ReadOnly
= readOnly
5260
ReadOnly
= readOnly
5850
ReadOnly
= readOnly
5866
ReadOnly
= readOnly
5899
ReadOnly
= readOnly
5952
ReadOnly
= true
36 references to ReadOnly
System.Windows.Forms (10)
System\Windows\Forms\Controls\PropertyGrid\PropertyGridInternal\PropertyGridView.GridViewTextBox.cs (1)
344
if (
ReadOnly
)
System\Windows\Forms\Controls\TextBox\MaskedTextBox.cs (1)
935
get => base.
ReadOnly
;
System\Windows\Forms\Controls\TextBox\TextBoxBase.cs (4)
209
if (!
ReadOnly
&& (keyData == (Keys.Control | Keys.Back) || keyData == (Keys.Control | Keys.Shift | Keys.Back)))
290
else if (
ReadOnly
)
383
protected override bool CanEnableIme => !(
ReadOnly
|| PasswordProtect) && base.CanEnableIme;
1334
if (!
ReadOnly
)
System\Windows\Forms\Controls\TextBox\TextBoxBase.TextBoxBaseAccessibleObject.cs (1)
57
internal override bool IsReadOnly => this.TryGetOwnerAs(out TextBoxBase? owner) && owner.
ReadOnly
;
System\Windows\Forms\Controls\TextBox\TextBoxBase.TextBoxBaseUiaTextProvider.cs (1)
218
public override bool IsReadOnly => Owner is not null && Owner.
ReadOnly
;
System\Windows\Forms\Controls\ToolStrips\ToolStripTextBox.cs (1)
300
get { return TextBox.
ReadOnly
; }
System\Windows\Forms\Controls\UpDown\UpDownBase.cs (1)
364
get => _upDownEdit.
ReadOnly
;
System.Windows.Forms.Tests (26)
System\Windows\Forms\AccessibleObjects\TextBoxBaseAccessibleObjectTests.cs (1)
75
Assert.Equal(textBoxBase.
ReadOnly
, accessibleObject.IsReadOnly);
System\Windows\Forms\DataGridViewTextBoxEditingControlTests.cs (1)
101
Assert.False(control.
ReadOnly
);
System\Windows\Forms\RichTextBoxTests.cs (1)
109
Assert.False(control.
ReadOnly
);
TextBoxBaseTests.cs (22)
2309
Assert.True(control.
ReadOnly
);
2313
Assert.False(control.
ReadOnly
);
2324
Assert.False(control.
ReadOnly
);
2339
Assert.Equal(value, control.
ReadOnly
);
2344
Assert.Equal(value, control.
ReadOnly
);
2349
Assert.Equal(!value, control.
ReadOnly
);
2354
Assert.Equal(value, control.
ReadOnly
);
2372
Assert.Equal(value, control.
ReadOnly
);
2380
Assert.Equal(value, control.
ReadOnly
);
2388
Assert.Equal(!value, control.
ReadOnly
);
2426
Assert.False(control.
ReadOnly
);
2431
Assert.False(control.
ReadOnly
);
2436
Assert.True(control.
ReadOnly
);
2442
Assert.False(control.
ReadOnly
);
2467
Assert.False(control.
ReadOnly
);
2473
Assert.False(control.
ReadOnly
);
2479
Assert.True(control.
ReadOnly
);
2486
Assert.False(control.
ReadOnly
);
2512
Assert.False(control.
ReadOnly
);
2518
Assert.False(control.
ReadOnly
);
2524
Assert.True(control.
ReadOnly
);
2531
Assert.False(control.
ReadOnly
);
TextBoxTests.cs (1)
95
Assert.False(control.
ReadOnly
);