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