DataColumnSelectionConverter.GetStandardValuesSupported(ITypeDescriptorContext) 方法

定义

指示在指定的上下文内,此转换器是否返回一组可以分配给控件属性的值。Indicates whether this converter returns a set of available values for assignment to a control property, within the specified context.

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 实现。An ITypeDescriptorContext implementation that can be used to gain additional context information.

返回

如果此转换器返回一组可以分配给关联控件属性的值,则返回 true;否则返回 falsetrue if this converter returns a standard set of available values for assignment to the associated control property; otherwise false.

注解

GetStandardValuesSupported 方法指示转换器是否支持通过 GetStandardValues 方法返回可用值的列表。The GetStandardValuesSupported method indicates whether the converter supports returning a list of available values through the GetStandardValues method.

如果指定的 context 对象在其 IComponent 属性中提供 Instance 实现,则 DataColumnSelectionConverter 对象的 GetStandardValuesSupported 方法返回 trueThe GetStandardValuesSupported method for the DataColumnSelectionConverter object returns true if the specified context object supplies an IComponent implementation in its Instance property. GetStandardValues 方法使用 IComponent 实现在设计时访问关联的控件,并从关联的 GridView 组件检索可用绑定列字段的列表。The GetStandardValues method uses the IComponent implementation to access the associated control at design time and retrieve the list of available bound column fields from the associated GridView component.

适用于

另请参阅