18 references to PropertyDescriptor
System.Windows.Forms.Design (18)
System\ComponentModel\Design\DesignerActionPanel.EditorPropertyLine.cs (5)
66
string newItem =
PropertyDescriptor
.Converter.ConvertToString(TypeDescriptorContext, CultureInfo.CurrentCulture, standardValue)!;
160
bool converterReadOnly = !
PropertyDescriptor
.Converter.CanConvertFrom(TypeDescriptorContext, typeof(string));
164
PropertyDescriptor
.Converter.GetStandardValuesSupported(TypeDescriptorContext) &&
165
PropertyDescriptor
.Converter.GetStandardValuesExclusive(TypeDescriptorContext);
228
_editor =
PropertyDescriptor
.GetEditor<UITypeEditor>();
System\ComponentModel\Design\DesignerActionPanel.PropertyLine.cs (10)
29
protected ITypeDescriptorContext TypeDescriptorContext => _typeDescriptorContext ??= new TypeDescriptorContext(ServiceProvider,
PropertyDescriptor
, _actionList!);
52
if (!
PropertyDescriptor
.PropertyType.IsAssignableFrom(valueType))
54
if (
PropertyDescriptor
.Converter is not null)
57
if (!
PropertyDescriptor
.Converter.CanConvertFrom(_typeDescriptorContext, valueType))
59
ActionPanel.ShowError(string.Format(SR.DesignerActionPanel_CouldNotConvertValue, newValue,
PropertyDescriptor
.PropertyType));
64
newValue =
PropertyDescriptor
.Converter.ConvertFrom(_typeDescriptorContext, CultureInfo.CurrentCulture, newValue);
72
PropertyDescriptor
.SetValue(_actionList, newValue);
74
Value =
PropertyDescriptor
.GetValue(_actionList);
85
ActionPanel.ShowError(string.Format(SR.DesignerActionPanel_ErrorSettingValue, newValue,
PropertyDescriptor
.Name, e.Message));
100
Value =
PropertyDescriptor
.GetValue(info.List);
System\ComponentModel\Design\DesignerActionPanel.TextBoxPropertyLine.cs (3)
122
protected virtual bool IsReadOnly() => IsReadOnlyProperty(
PropertyDescriptor
);
177
TypeConverter converter =
PropertyDescriptor
.Converter;
286
protected override void OnValueChanged() => EditControl!.Text =
PropertyDescriptor
.Converter.ConvertToString(TypeDescriptorContext, Value);