System.ComponentModel.TypeConverter.GetStandardValuesSupported C# (CSharp) Method

GetStandardValuesSupported() public method

public GetStandardValuesSupported ( ) : bool
return bool
        public bool GetStandardValuesSupported() {
            return GetStandardValuesSupported(null);
        }

Same methods

TypeConverter::GetStandardValuesSupported ( ITypeDescriptorContext context ) : bool

Usage Example

Example #1
0
 /// <returns>A <see cref="T:System.ComponentModel.TypeConverter.StandardValuesCollection" /> that holds a standard set of valid values, or null if the data type does not support a standard set of values.</returns>
 /// <param name="context">An <see cref="T:System.ComponentModel.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 null.</param>
 public override StandardValuesCollection GetStandardValues(ITypeDescriptorContext context)
 {
     if (underlyingTypeConverter != null && underlyingTypeConverter.GetStandardValuesSupported(context))
     {
         StandardValuesCollection standardValues = underlyingTypeConverter.GetStandardValues(context);
         if (standardValues != null)
         {
             ArrayList arrayList = new ArrayList(standardValues);
             arrayList.Add(null);
             return(new StandardValuesCollection(arrayList));
         }
     }
     return(base.GetStandardValues(context));
 }
All Usage Examples Of System.ComponentModel.TypeConverter::GetStandardValuesSupported