FontTypeConverter.GetProperties 方法
定义
重要
一些信息与预发行产品相关,相应产品在发行之前可能会进行重大修改。 对于此处提供的信息,Microsoft 不作任何明示或暗示的担保。
获取指定类型的属性说明的集合。
public:
override System::ComponentModel::PropertyDescriptorCollection ^ GetProperties(System::ComponentModel::ITypeDescriptorContext ^ context, System::Object ^ value, cli::array <Attribute ^> ^ attributes);
public override System.ComponentModel.PropertyDescriptorCollection GetProperties(System.ComponentModel.ITypeDescriptorContext context, object value, Attribute[] attributes);
override this.GetProperties : System.ComponentModel.ITypeDescriptorContext * obj * Attribute[] -> System.ComponentModel.PropertyDescriptorCollection
Public Overrides Function GetProperties (context As ITypeDescriptorContext, value As Object, attributes As Attribute()) As PropertyDescriptorCollection
参数
- context
- ITypeDescriptorContext
提供上下文信息的对象。
- value
- Object
需要属性说明的对象。
- attributes
- Attribute[]
一个属性数组,用于筛选返回的集合以排除不相关的属性。
返回
一个 PropertyDescriptorCollection 包含为组件公开的属性说明;如果未 null 返回任何属性说明,
例外
此方法是从此类而不是派生类调用的。
注解
此方法未在此类中实现 - 除非引发异常。 请参阅继承者的说明。
继承者说明
重写此方法以提供用于获取所选 PropertyDescriptor 对象或类型的方法。 使用 context 参数提取有关从中调用此转换器的环境的其他信息。 使用 attributes 数组指定要包含或排除的属性。