Show / Hide Table of Contents

Class PaddingLengthConverter

Converts instances of other types to and from PaddingLength instances.

Inheritance
object
TypeConverter
LengthConverter
PaddingLengthConverter
LengthConverter.CanConvertFrom(ITypeDescriptorContext, Type)
LengthConverter.CanConvertTo(ITypeDescriptorContext, Type)
TypeConverter.CanConvertFrom(Type)
TypeConverter.CanConvertTo(Type)
TypeConverter.ConvertFrom(object)
TypeConverter.ConvertFromInvariantString(ITypeDescriptorContext, string)
TypeConverter.ConvertFromInvariantString(string)
TypeConverter.ConvertFromString(ITypeDescriptorContext, CultureInfo, string)
TypeConverter.ConvertFromString(ITypeDescriptorContext, string)
TypeConverter.ConvertFromString(string)
TypeConverter.ConvertTo(object, Type)
TypeConverter.ConvertToInvariantString(ITypeDescriptorContext, object)
TypeConverter.ConvertToInvariantString(object)
TypeConverter.ConvertToString(ITypeDescriptorContext, CultureInfo, object)
TypeConverter.ConvertToString(ITypeDescriptorContext, object)
TypeConverter.ConvertToString(object)
TypeConverter.CreateInstance(IDictionary)
TypeConverter.CreateInstance(ITypeDescriptorContext, IDictionary)
TypeConverter.GetConvertFromException(object)
TypeConverter.GetConvertToException(object, Type)
TypeConverter.GetCreateInstanceSupported()
TypeConverter.GetCreateInstanceSupported(ITypeDescriptorContext)
TypeConverter.GetProperties(ITypeDescriptorContext, object)
TypeConverter.GetProperties(ITypeDescriptorContext, object, Attribute[])
TypeConverter.GetProperties(object)
TypeConverter.GetPropertiesSupported()
TypeConverter.GetPropertiesSupported(ITypeDescriptorContext)
TypeConverter.GetStandardValues()
TypeConverter.GetStandardValues(ITypeDescriptorContext)
TypeConverter.GetStandardValuesExclusive()
TypeConverter.GetStandardValuesExclusive(ITypeDescriptorContext)
TypeConverter.GetStandardValuesSupported()
TypeConverter.GetStandardValuesSupported(ITypeDescriptorContext)
TypeConverter.IsValid(ITypeDescriptorContext, object)
TypeConverter.IsValid(object)
TypeConverter.SortProperties(PropertyDescriptorCollection, string[])
object.Equals(object)
object.Equals(object, object)
object.GetHashCode()
object.GetType()
object.MemberwiseClone()
object.ReferenceEquals(object, object)
object.ToString()
Namespace: Sartorius.SAF.Presentation.Controls
Assembly: Sartorius.SAF.Presentation.Controls.dll
Syntax
public class PaddingLengthConverter : LengthConverter

Methods

View Source

ConvertFrom(ITypeDescriptorContext, CultureInfo, object)

Converts instances of other data types into instances of double that represent an object's length.

Declaration
public override object ConvertFrom(ITypeDescriptorContext typeDescriptorContext, CultureInfo cultureInfo, object source)
Parameters
Type Name Description
ITypeDescriptorContext typeDescriptorContext

Provides contextual information about a component.

CultureInfo cultureInfo

Represents culture-specific information that is maintained during a conversion.

object source

Identifies the object that is being converted to double.

Returns
Type Description
object

An instance of double that is the value of the conversion.

Overrides
LengthConverter.ConvertFrom(ITypeDescriptorContext, CultureInfo, object)
Exceptions
Type Condition
ArgumentNullException

Occurs if the source is null.

ArgumentException

Occurs if the source is not null and is not a valid type for conversion.

View Source

ConvertTo(ITypeDescriptorContext, CultureInfo, object, Type)

Converts other types into instances of double that represent an object's length.

Declaration
public override object ConvertTo(ITypeDescriptorContext typeDescriptorContext, CultureInfo cultureInfo, object value, Type destinationType)
Parameters
Type Name Description
ITypeDescriptorContext typeDescriptorContext

Describes context information of a component, such as its container and PropertyDescriptor.

CultureInfo cultureInfo

Identifies culture-specific information, including the writing system and the calendar that is used.

object value

Identifies the object that is being converted.

Type destinationType

The data type that this instance of double is being converted to.

Returns
Type Description
object

A new object that is the value of the conversion.

Overrides
LengthConverter.ConvertTo(ITypeDescriptorContext, CultureInfo, object, Type)
Exceptions
Type Condition
ArgumentNullException

Occurs if the value is null.

ArgumentException

Occurs if the value is not null and is not a Brush, or the destinationType is not valid.

Extension Methods

CollectionExtensions.AddRange<T, TCollection>(TCollection, IEnumerable<T>)
SerializableObjectCloneExtension.Clone<T>(T)
  • View Source
Back to top Generated by DocFX