C# Класс Microsoft.Windows.Controls.Ribbon.RibbonControlLengthConverter

A class used for converting between RibbonControlLengths and strings/numbers.
Наследование: System.ComponentModel.TypeConverter
Показать файл Открыть проект Примеры использования класса

Открытые методы

Метод Описание
CanConvertFrom ( ITypeDescriptorContext context, Type sourceType ) : bool

Checks whether or not this class can convert from a given type.

CanConvertTo ( ITypeDescriptorContext context, Type destinationType ) : bool

Checks whether or not this class can convert to a given type.

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

Attempts to convert to a RibbonControlLength from the given object.

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

Attempts to convert a RibbonControlLength instance to the given type.

Приватные методы

Метод Описание
FromString ( string s, CultureInfo cultureInfo ) : RibbonControlLength

Parses a RibbonControlLength from a string given the CultureInfo.

ToString ( RibbonControlLength length, CultureInfo cultureInfo ) : string

Converts a RibbonControlLength instance to a String given the CultureInfo.

Описание методов

CanConvertFrom() публичный Метод

Checks whether or not this class can convert from a given type.
public CanConvertFrom ( ITypeDescriptorContext context, Type sourceType ) : bool
context ITypeDescriptorContext
sourceType System.Type
Результат bool

CanConvertTo() публичный Метод

Checks whether or not this class can convert to a given type.
public CanConvertTo ( ITypeDescriptorContext context, Type destinationType ) : bool
context ITypeDescriptorContext
destinationType System.Type
Результат bool

ConvertFrom() публичный Метод

Attempts to convert to a RibbonControlLength from the given object.
public ConvertFrom ( ITypeDescriptorContext context, CultureInfo culture, object value ) : object
context ITypeDescriptorContext
culture System.Globalization.CultureInfo
value object
Результат object

ConvertTo() публичный Метод

Attempts to convert a RibbonControlLength instance to the given type.
public ConvertTo ( ITypeDescriptorContext context, CultureInfo culture, object value, Type destinationType ) : object
context ITypeDescriptorContext
culture System.Globalization.CultureInfo
value object
destinationType System.Type
Результат object