DataColumnSelectionConverter.GetStandardValuesSupported 方法

定义

指示在指定的上下文内,此转换器是否返回一组可以分配给控件属性的值。

public:
 override bool GetStandardValuesSupported(System::ComponentModel::ITypeDescriptorContext ^ context);
public override bool GetStandardValuesSupported (System.ComponentModel.ITypeDescriptorContext context);
override this.GetStandardValuesSupported : System.ComponentModel.ITypeDescriptorContext -> bool
Public Overrides Function GetStandardValuesSupported (context As ITypeDescriptorContext) As Boolean

参数

context
ITypeDescriptorContext

可用于获取附加上下文信息的 ITypeDescriptorContext 实现。

返回

如果此转换器返回一组可以分配给关联控件属性的值,则返回 true;否则返回 false

注解

GetStandardValuesSupported方法指示转换器是否支持通过 GetStandardValues 方法返回可用值的列表。

如果指定的 context 对象在其 Instance 属性中提供IComponent实现,则 GetStandardValuesSupported 对象的 方法DataColumnSelectionConverter将返回 true 。 方法 GetStandardValues 使用 IComponent 实现在设计时访问关联的控件,并从关联的 GridView 组件检索可用绑定列字段的列表。

适用于

另请参阅