This documentation is archived and is not being maintained.
ControlIDConverter::GetStandardValues Method (ITypeDescriptorContext)
Visual Studio 2010
Returns a collection of control IDs from the container within the IDesignerHost when provided with a format context.
Assembly: System.Web (in System.Web.dll)
public: virtual TypeConverter..::..StandardValuesCollection^ GetStandardValues( ITypeDescriptorContext^ context ) override
Parameters
- context
- Type: System.ComponentModel::ITypeDescriptorContext
An ITypeDescriptorContext that provides a format context that can be used to extract additional information about the environment from which this converter is invoked. This parameter or properties of this parameter can be nullptr.
Return Value
Type: System.ComponentModel::TypeConverter::StandardValuesCollectionA TypeConverter::StandardValuesCollection that holds a set of strings representing the control IDs of the controls in the current container. If no controls are currently contained, an empty collection is returned. If the context is nullptr or there is no current container, then nullptr is returned.
The FilterControl method is called on each control found in the container. The control ID is only added to the TypeConverter::StandardValuesCollection if the method returns true.
Windows 7, Windows Vista SP1 or later, Windows XP SP3, Windows XP SP2 x64 Edition, Windows Server 2008 (Server Core not supported), Windows Server 2008 R2 (Server Core supported with SP1 or later), Windows Server 2003 SP2
The .NET Framework does not support all versions of every platform. For a list of the supported versions, see .NET Framework System Requirements.
Show: