C# 클래스 System.ComponentModel.ReferenceConverter

상속: TypeConverter
파일 보기 프로젝트 열기: dotnet/corefx 1 사용 예제들

공개 메소드들

메소드 설명
CanConvertFrom ( ITypeDescriptorContext context, Type sourceType ) : bool

Gets a value indicating whether this converter can convert an object in the given source type to a reference object using the specified context.

ConvertFrom ( ITypeDescriptorContext context, CultureInfo culture, object value ) : object

Converts the given object to the reference type.

ConvertTo ( ITypeDescriptorContext context, CultureInfo culture, object value, Type destinationType ) : object

Converts the given value object to the reference type using the specified context and arguments.

GetStandardValues ( ITypeDescriptorContext context ) : StandardValuesCollection

Gets a collection of standard values for the reference data type.

GetStandardValuesExclusive ( ITypeDescriptorContext context ) : bool

Gets a value indicating whether the list of standard values returned from is an exclusive list.

GetStandardValuesSupported ( ITypeDescriptorContext context ) : bool

Gets a value indicating whether this object supports a standard set of values that can be picked from a list.

ReferenceConverter ( Type type ) : Microsoft.Win32

Initializes a new instance of the class.

보호된 메소드들

메소드 설명
IsValueAllowed ( ITypeDescriptorContext context, object value ) : bool

Gets a value indicating whether a particular value can be added to the standard values collection.

메소드 상세

CanConvertFrom() 공개 메소드

Gets a value indicating whether this converter can convert an object in the given source type to a reference object using the specified context.

public CanConvertFrom ( ITypeDescriptorContext context, Type sourceType ) : bool
context ITypeDescriptorContext
sourceType System.Type
리턴 bool

ConvertFrom() 공개 메소드

Converts the given object to the reference type.

public ConvertFrom ( ITypeDescriptorContext context, CultureInfo culture, object value ) : object
context ITypeDescriptorContext
culture System.Globalization.CultureInfo
value object
리턴 object

ConvertTo() 공개 메소드

Converts the given value object to the reference type using the specified context and arguments.

public ConvertTo ( ITypeDescriptorContext context, CultureInfo culture, object value, Type destinationType ) : object
context ITypeDescriptorContext
culture System.Globalization.CultureInfo
value object
destinationType System.Type
리턴 object

GetStandardValues() 공개 메소드

Gets a collection of standard values for the reference data type.

public GetStandardValues ( ITypeDescriptorContext context ) : StandardValuesCollection
context ITypeDescriptorContext
리턴 StandardValuesCollection

GetStandardValuesExclusive() 공개 메소드

Gets a value indicating whether the list of standard values returned from is an exclusive list.

public GetStandardValuesExclusive ( ITypeDescriptorContext context ) : bool
context ITypeDescriptorContext
리턴 bool

GetStandardValuesSupported() 공개 메소드

Gets a value indicating whether this object supports a standard set of values that can be picked from a list.

public GetStandardValuesSupported ( ITypeDescriptorContext context ) : bool
context ITypeDescriptorContext
리턴 bool

IsValueAllowed() 보호된 메소드

Gets a value indicating whether a particular value can be added to the standard values collection.

protected IsValueAllowed ( ITypeDescriptorContext context, object value ) : bool
context ITypeDescriptorContext
value object
리턴 bool

ReferenceConverter() 공개 메소드

Initializes a new instance of the class.

public ReferenceConverter ( Type type ) : Microsoft.Win32
type System.Type
리턴 Microsoft.Win32