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