Edit

GridLengthConverter Class

Definition

Converts instances of other types to and from GridLength instances.

public ref class GridLengthConverter : System::ComponentModel::TypeConverter
public class GridLengthConverter : System.ComponentModel.TypeConverter
type GridLengthConverter = class
    inherit TypeConverter
Public Class GridLengthConverter
Inherits TypeConverter
Inheritance
GridLengthConverter

Remarks

GridLengthConverter supports conversion to and from the following types: String, Decimal, Single, Double, Int16, Int32, Int64, UInt16, UInt32, UInt64.

Constructors

Name Description
GridLengthConverter()

Initializes a new instance of the GridLengthConverter class.

Methods

Name Description
CanConvertFrom(ITypeDescriptorContext, Type)

Determines whether a class can be converted from a given type to an instance of GridLength.

CanConvertTo(ITypeDescriptorContext, Type)

Determines whether an instance of GridLength can be converted to a different type.

ConvertFrom(ITypeDescriptorContext, CultureInfo, Object)

Attempts to convert a specified object to an instance of GridLength.

ConvertTo(ITypeDescriptorContext, CultureInfo, Object, Type)

Attempts to convert an instance of GridLength to a specified type.

Applies to

See also