23 overrides of IsReadOnly
System.ComponentModel.Annotations (1)
System\ComponentModel\DataAnnotations\MetadataPropertyDescriptorWrapper.cs (1)
34public override bool IsReadOnly
System.ComponentModel.TypeConverter (6)
MS\Internal\Xml\Linq\ComponentModel\XComponentModel.cs (1)
77public override bool IsReadOnly
System\ComponentModel\Design\DesignerOptionService.cs (2)
416public override bool IsReadOnly => _property.IsReadOnly; 480public override bool IsReadOnly => true;
System\ComponentModel\ExtendedPropertyDescriptor.cs (1)
78public override bool IsReadOnly => Attributes[typeof(ReadOnlyAttribute)]!.Equals(ReadOnlyAttribute.Yes);
System\ComponentModel\ReflectPropertyDescriptor.cs (1)
368public override bool IsReadOnly => SetMethodValue == null || ((ReadOnlyAttribute)Attributes[typeof(ReadOnlyAttribute)]!).IsReadOnly;
System\ComponentModel\TypeConverter.cs (1)
370public override bool IsReadOnly
System.Data.Common (5)
System\Data\Common\DbConnectionStringBuilderDescriptor.cs (1)
19public override bool IsReadOnly { get; }
System\Data\Common\DbEnumerator.cs (1)
125public override bool IsReadOnly => true;
System\Data\DataColumnPropertyDescriptor.cs (1)
42public override bool IsReadOnly => Column.ReadOnly;
System\Data\DataRelationPropertyDescriptor.cs (1)
20public override bool IsReadOnly => false;
System\Data\DataTablePropertyDescriptor.cs (1)
20public override bool IsReadOnly => false;
System.Windows.Forms (3)
System\Windows\Forms\ActiveX\AxHost.AxPropertyDescriptor.cs (1)
94public override bool IsReadOnly => _baseDescriptor.IsReadOnly;
System\Windows\Forms\ComponentModel\COM2Interop\COM2PropertyDescriptor.cs (1)
345public override bool IsReadOnly
System\Windows\Forms\Controls\PropertyGrid\PropertyGridInternal\MergePropertyDescriptor.cs (1)
59public override bool IsReadOnly
System.Windows.Forms.Design (6)
System\ComponentModel\Design\CollectionEditor.CollectionEditorCollectionForm.cs (1)
1183public override bool IsReadOnly => false;
System\ComponentModel\Design\EventBindingService.EventPropertyDescriptor.cs (1)
65public override bool IsReadOnly => Attributes[typeof(ReadOnlyAttribute)]!.Equals(ReadOnlyAttribute.Yes);
System\ComponentModel\Design\InheritedPropertyDescriptor.cs (1)
117public override bool IsReadOnly => _propertyDescriptor.IsReadOnly || Equals(Attributes[typeof(ReadOnlyAttribute)], ReadOnlyAttribute.Yes);
System\ComponentModel\Design\Serialization\DesignerSerializationManager.cs (1)
1010public override bool IsReadOnly
System\Windows\Forms\Design\ControlDesigner.CanResetSizePropertyDescriptor.cs (1)
22public override bool IsReadOnly => _basePropDesc.IsReadOnly;
System\Windows\Forms\Design\DataGridViewColumnCollectionDialog.cs (1)
1355public override bool IsReadOnly => false;
System.Windows.Forms.Tests (2)
System\Windows\Forms\ListBindingHelperTests.cs (1)
748public override bool IsReadOnly => throw new NotImplementedException();
System\Windows\Forms\PropertyGridInternal\AccessibleObjects\PropertyDescriptorGridEntry.PropertyDescriptorGridEntryAccessibleObjectTests.cs (1)
148public override bool IsReadOnly => false;
77 references to IsReadOnly
PresentationFramework (5)
MS\Internal\Data\PropertyPathWorker.cs (1)
1630if (pd.IsReadOnly)
System\Windows\Controls\DataGridColumn.cs (1)
1213if (pd.IsReadOnly)
System\Windows\Markup\Primitives\ElementMarkupObject.cs (2)
112(!descriptor.IsReadOnly || visibility == DesignerSerializationVisibility.Content) && 493if (PropertyDescriptor != null && (PropertyDescriptor.IsReadOnly ||
System\Windows\Markup\Primitives\MarkupWriter.cs (1)
896descriptor.IsReadOnly ||
System.ComponentModel.Annotations (1)
System\ComponentModel\DataAnnotations\MetadataPropertyDescriptorWrapper.cs (1)
41return _isReadOnly || _descriptor.IsReadOnly;
System.ComponentModel.TypeConverter (2)
System\ComponentModel\ComponentResourceManager.cs (1)
174if (prop != null && !prop.IsReadOnly && (kvp.Value == null || prop.PropertyType.IsInstanceOfType(kvp.Value)))
System\ComponentModel\Design\DesignerOptionService.cs (1)
416public override bool IsReadOnly => _property.IsReadOnly;
System.Data.Common (1)
System\Data\Common\DbConnectionStringBuilder.cs (1)
452reflected.ComponentType, reflected.PropertyType, reflected.IsReadOnly, attributes);
System.Windows.Forms (12)
System\Windows\Forms\ActiveX\AxHost.AxPropertyDescriptor.cs (1)
94public override bool IsReadOnly => _baseDescriptor.IsReadOnly;
System\Windows\Forms\Control.cs (2)
12604if (sizeProperty is not null && !sizeProperty.IsReadOnly && (bounds.Width != Width || bounds.Height != Height)) 12614if (locationProperty is not null && !locationProperty.IsReadOnly && (bounds.X != _x || bounds.Y != _y))
System\Windows\Forms\Controls\DataGridView\DataGridView.DataConnection.cs (2)
894return _props[boundColumnIndex].IsReadOnly; 964dataGridViewColumn.ReadOnly = _props[i].IsReadOnly;
System\Windows\Forms\Controls\PropertyGrid\PropertyGridInternal\MergePropertyDescriptor.cs (1)
68if (pd.IsReadOnly)
System\Windows\Forms\Controls\PropertyGrid\PropertyGridInternal\PropertyDescriptorGridEntry.cs (3)
128internal virtual bool IsPropertyReadOnly => PropertyDescriptor.IsReadOnly; 250if (PropertyDescriptor.IsReadOnly && !_readOnlyVerified && GetFlagSet(Flags.ReadOnlyEditable)) 816if (PropertyDescriptor.IsReadOnly)
System\Windows\Forms\DataBinding\Binding.BindToObject.cs (1)
176if (!FieldInfo.IsReadOnly)
System\Windows\Forms\DataBinding\Binding.cs (2)
531if (tempPropInfo.IsReadOnly && _controlUpdateMode != ControlUpdateMode.Never) 539if (tempPropIsNullInfo is not null && tempPropIsNullInfo.PropertyType == typeof(bool) && !tempPropIsNullInfo.IsReadOnly)
System.Windows.Forms.Design (45)
System\ComponentModel\Design\CollectionEditor.CollectionEditorCollectionForm.cs (1)
93if (!p.IsReadOnly)
System\ComponentModel\Design\ComponentDesigner.cs (1)
282if (defaultPropEvent is null || defaultPropEvent.IsReadOnly)
System\ComponentModel\Design\DesignerActionPanel.cs (1)
409if (propertyDescriptor.IsReadOnly)
System\ComponentModel\Design\InheritedPropertyDescriptor.cs (1)
117public override bool IsReadOnly => _propertyDescriptor.IsReadOnly || Equals(Attributes[typeof(ReadOnlyAttribute)], ReadOnlyAttribute.Yes);
System\ComponentModel\Design\ReferenceService.cs (1)
49if (property.IsReadOnly)
System\ComponentModel\Design\Serialization\CodeDomComponentSerializationService.CodeDomSerializationStore.ComponentListCodeDomSerializer.cs (2)
586if (!prop.IsReadOnly || prop.Attributes.Contains(DesignerSerializationVisibilityAttribute.Content)) 599if (eventProp is null || eventProp.IsReadOnly)
System\ComponentModel\Design\Serialization\DesignerSerializationManager.cs (1)
1012get => _property.IsReadOnly;
System\ComponentModel\Design\UndoEngine.cs (1)
457!prop.IsReadOnly)
System\Windows\Forms\Design\ButtonBaseDesigner.cs (1)
28if (prop is not null && prop.PropertyType == typeof(bool) && !prop.IsReadOnly && prop.IsBrowsable)
System\Windows\Forms\Design\ComboBoxDesigner.cs (1)
85if (textProp is not null && textProp.PropertyType == typeof(string) && !textProp.IsReadOnly && textProp.IsBrowsable)
System\Windows\Forms\Design\CommandSet.cs (11)
1020if (locProp is null || locProp.IsReadOnly) 1031if (sizeProp is null || sizeProp.IsReadOnly) 1180if (locProp is null || locProp.IsReadOnly) 1283if (locProp is null || sizeProp is null || locProp.IsReadOnly || sizeProp.IsReadOnly) 1340if (locProp.IsReadOnly) 1970if (pd is null || pd.IsReadOnly) 2338if (sizeProp is null || sizeProp.IsReadOnly) 2422if (sizeProp is null || locProp is null || sizeProp.IsReadOnly || locProp.IsReadOnly) 2866if (!curLocDesc.IsReadOnly)
System\Windows\Forms\Design\ComponentTray.cs (1)
2480if (defaultPropEvent is null || defaultPropEvent.IsReadOnly)
System\Windows\Forms\Design\ControlCommandSet.cs (1)
877if (prop.IsReadOnly)
System\Windows\Forms\Design\ControlDesigner.CanResetSizePropertyDescriptor.cs (1)
22public override bool IsReadOnly => _basePropDesc.IsReadOnly;
System\Windows\Forms\Design\ControlDesigner.cs (3)
209if ((prop = props["Location"]) is not null && !prop.IsReadOnly) 214if ((prop = props["Size"]) is not null && !prop.IsReadOnly) 1142if (textProp is not null && textProp.PropertyType == typeof(string) && !textProp.IsReadOnly && textProp.IsBrowsable)
System\Windows\Forms\Design\DataGridViewDesigner.cs (1)
671dataGridViewColumn.ReadOnly = backEndProps[i].IsReadOnly;
System\Windows\Forms\Design\OleDragDropHandler.cs (2)
358readOnlyLocation = loc.IsReadOnly; 765if (loc is not null && !loc.IsReadOnly)
System\Windows\Forms\Design\RadioButtonDesigner.cs (1)
22if (prop is not null && prop.PropertyType == typeof(bool) && !prop.IsReadOnly && prop.IsBrowsable)
System\Windows\Forms\Design\SelectionUIHandler.cs (7)
396if (boundsProp is not null && !boundsProp.IsReadOnly) 426if (trayProp is not null && !trayProp.IsReadOnly) 438if (topProp is not null && !topProp.IsReadOnly) 451if (leftProp is not null && !leftProp.IsReadOnly) 467if (locationProp is not null && !locationProp.IsReadOnly) 489if (widthProp is not null && !widthProp.IsReadOnly && size.Width != (int)widthProp.GetValue(components[i])!) 502if (heightProp is not null && !heightProp.IsReadOnly && size.Height != (int)heightProp.GetValue(components[i])!)
System\Windows\Forms\Design\TabControlDesigner.cs (1)
289if (styleProp is not null && styleProp.PropertyType == typeof(bool) && !styleProp.IsReadOnly && styleProp.IsBrowsable)
System\Windows\Forms\Design\TabOrder.cs (3)
249if (_tabProperties[control].IsReadOnly) 796if (prop.IsReadOnly && prop.GetValue(ctl) is int propValue) 817if (!prop.IsReadOnly)
System\Windows\Forms\Design\TextBoxBaseDesigner.cs (1)
94if (textProp is not null && textProp.PropertyType == typeof(string) && !textProp.IsReadOnly && textProp.IsBrowsable)
System\Windows\Forms\Design\ToolStripItemDesigner.cs (1)
703if (textProp is not null && textProp.PropertyType == typeof(string) && !textProp.IsReadOnly && textProp.IsBrowsable)
System.Windows.Forms.Design.Tests (1)
System\ComponentModel\Design\Serialization\DesignerSerializationManagerTests.cs (1)
218Assert.False(property.IsReadOnly);
System.Windows.Forms.Tests (10)
System\Windows\Forms\AxHost.AxPropertyDescriptorTests.cs (3)
233Assert.False(property.IsReadOnly); 244Assert.True(property.IsReadOnly); 277Assert.True(property.IsReadOnly);
System\Windows\Forms\ComponentModel\Com2Interop\ComNativeDescriptorTests.cs (7)
49Assert.True(handleProperty.IsReadOnly); 67Assert.True(typeProperty.IsReadOnly); 132Assert.False(urlProperty.IsReadOnly); 173Assert.True(accChildCount.IsReadOnly); 177Assert.True(accFocus.IsReadOnly); 197Assert.True(accChildCount.IsReadOnly); 201Assert.True(accFocus.IsReadOnly);