Base:
property
PropertyDescriptor
System.Windows.Forms.PropertyGridInternal.GridEntry.PropertyDescriptor
1 write to PropertyDescriptor
System.Windows.Forms (1)
System\Windows\Forms\Controls\PropertyGrid\PropertyGridInternal\PropertyDescriptorGridEntry.cs (1)
44PropertyDescriptor = propertyDescriptor;
49 references to PropertyDescriptor
System.Windows.Forms (49)
System\Windows\Forms\Controls\PropertyGrid\PropertyGrid.cs (2)
2365&& selectedEntry.PropertyDescriptor.Attributes is not null) 2368if (selectedEntry.PropertyDescriptor.TryGetAttribute(out DispIdAttribute? dispIdAttribute)
System\Windows\Forms\Controls\PropertyGrid\PropertyGridInternal\ImmutablePropertyDescriptorGridEntry.cs (2)
60if (PropertyDescriptor.Name is not null && PropertyDescriptor.Name.Equals(properties[i].Name))
System\Windows\Forms\Controls\PropertyGrid\PropertyGridInternal\MultiPropertyDescriptorGridEntry.cs (5)
27_mergedDescriptor = (MergePropertyDescriptor)PropertyDescriptor; 199propertyEntry.PropertyDescriptor.Attributes.Contains(NotifyParentPropertyAttribute.Yes)) 260owner = descriptor.GetPropertyOwner(PropertyDescriptor); 308Debug.Assert(PropertyDescriptor is MergePropertyDescriptor, "Did not get a MergePropertyDescriptor!!!"); 311if (PropertyDescriptor is MergePropertyDescriptor mergeDescriptor)
System\Windows\Forms\Controls\PropertyGrid\PropertyGridInternal\PropertyDescriptorGridEntry.cs (39)
49=> PropertyDescriptor.GetAttribute<MergablePropertyAttribute>()?.IsDefaultAttribute() ?? true; 51protected override AttributeCollection Attributes => PropertyDescriptor.Attributes; 68if (PropertyDescriptor.TryGetAttribute(out HelpKeywordAttribute? helpAttribute) && 96Type? componentType = PropertyDescriptor.ComponentType; 117_helpKeyword = $"{typeName}.{PropertyDescriptor.Name}"; 128internal virtual bool IsPropertyReadOnly => PropertyDescriptor.IsReadOnly; 140_parensAroundName = PropertyDescriptor.GetAttribute<ParenthesizePropertyNameAttribute>()?.NeedParenthesis ?? false; 151string? category = PropertyDescriptor.Category; 163public override string? PropertyDescription => PropertyDescriptor.Description; 169string? label = PropertyDescriptor.DisplayName; 182public override string? PropertyName => PropertyDescriptor.Name; 184public override Type? PropertyType => PropertyDescriptor.PropertyType; 250if (PropertyDescriptor.IsReadOnly && !_readOnlyVerified && GetFlagSet(Flags.ReadOnlyEditable)) 277_typeConverter ??= PropertyDescriptor.Converter; 292Editor = (UITypeEditor?)PropertyDescriptor.GetEditor(typeof(UITypeEditor)); 304if (PropertyDescriptor.TryGetAttribute(out RefreshPropertiesAttribute? refreshAttribute) && 336owner = descriptor.GetPropertyOwner(PropertyDescriptor); 339return PropertyDescriptor.GetValue(owner); 361propertyEntry.PropertyDescriptor.Attributes.Contains(NotifyParentPropertyAttribute.Yes)) 402owner = descriptor.GetPropertyOwner(PropertyDescriptor); 423return PropertyDescriptor.CanResetValue(owner!) 441return PropertyDescriptor.ShouldSerializeValue(owner!); 459if (_eventBindings?.GetEvent(PropertyDescriptor) is not null) 491_propertyValueUIItems[i].InvokeHandler(this, PropertyDescriptor, _propertyValueUIItems[i]); 516_propertyValueUIItems = uiService.GetPropertyUIValueItems(this, PropertyDescriptor); 570transaction = host?.CreateTransaction(undoText ?? string.Format(SR.PropertyGridSetValue, PropertyDescriptor.Name)); 587ComponentChangeService?.OnComponentChanging(owner, PropertyDescriptor); 608var refresh = PropertyDescriptor.GetAttribute<RefreshPropertiesAttribute>(); 624eventDescriptor = _eventBindings?.GetEvent(PropertyDescriptor); 633if (PropertyDescriptor is MergePropertyDescriptor && owner is Array objArray) 642eventDescriptor = TypeDescriptor.GetEvents(eventObj!)[PropertyDescriptor.Name]; 656PropertyDescriptor.ResetValue(owner); 674ComponentChangeService?.OnComponentChanged(owner!, PropertyDescriptor, oldValue: null, value); 730realOwner = descriptor.GetPropertyOwner(PropertyDescriptor); 749PropertyDescriptor.SetValue(realOwner, newValue); 802if (component is null && PropertyDescriptor is MergePropertyDescriptor) 816if (PropertyDescriptor.IsReadOnly) 824eventDescriptor = _eventBindings?.GetEvent(PropertyDescriptor); 880PropertyDescriptor.SetValue(owner, newHandler);
System\Windows\Forms\Controls\PropertyGrid\PropertyGridInternal\PropertyGridView.DropDownHolder.cs (1)
190var editor = entry.PropertyDescriptor.GetEditor(typeof(InstanceCreationEditor)) as InstanceCreationEditor;