C# Class Revit.SDK.Samples.NewRoof.RoofForms.CS.FootPrintRoofLineConverter

The FootPrintRoofLineConverter class is inherited from the ExpandableObjectConverter class which is used to expand the property which returns FootPrintRoofLine type as like a tree view in the PropertyGrid control.
Inheritance: System.ComponentModel.ExpandableObjectConverter
Afficher le fichier Open project: AMEE/revit Class Usage Examples

Méthodes publiques

Méthode Description
CanConvertFrom ( ITypeDescriptorContext context, Type sourceType ) : bool

Override the CanConvertFrom method.

CanConvertTo ( ITypeDescriptorContext context, Type destinationType ) : bool

Override the CanConvertTo method.

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

Override the ConvertFrom method, convert a string type value to a FootPrintRoofLine type value.

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

Override the ConvertTo method, convert a FootPrintRoofLine type value to a string type value for displaying in the PropertyGrid.

GetStandardValues ( ITypeDescriptorContext context ) : StandardValuesCollection

Override the StandardValuesCollection method for supplying a FootPrintRoofLine list in the PropertyGrid.

GetStandardValuesSupported ( ITypeDescriptorContext context ) : bool

Override the GetStandardValuesSupported method for displaying a FootPrintRoofLine list in the PropertyGrid.

SetStandardValues ( List footPrintRoofLines ) : void

Initialize the FootPrintRoofLines data.

Method Details

CanConvertFrom() public méthode

Override the CanConvertFrom method.
public CanConvertFrom ( ITypeDescriptorContext context, Type sourceType ) : bool
context ITypeDescriptorContext
sourceType System.Type
Résultat bool

CanConvertTo() public méthode

Override the CanConvertTo method.
public CanConvertTo ( ITypeDescriptorContext context, Type destinationType ) : bool
context ITypeDescriptorContext
destinationType System.Type
Résultat bool

ConvertFrom() public méthode

Override the ConvertFrom method, convert a string type value to a FootPrintRoofLine type value.
public ConvertFrom ( ITypeDescriptorContext context, System culture, object value ) : object
context ITypeDescriptorContext
culture System
value object
Résultat object

ConvertTo() public méthode

Override the ConvertTo method, convert a FootPrintRoofLine type value to a string type value for displaying in the PropertyGrid.
public ConvertTo ( ITypeDescriptorContext context, System culture, object value, Type destinationType ) : object
context ITypeDescriptorContext
culture System
value object
destinationType System.Type
Résultat object

GetStandardValues() public méthode

Override the StandardValuesCollection method for supplying a FootPrintRoofLine list in the PropertyGrid.
public GetStandardValues ( ITypeDescriptorContext context ) : StandardValuesCollection
context ITypeDescriptorContext
Résultat StandardValuesCollection

GetStandardValuesSupported() public méthode

Override the GetStandardValuesSupported method for displaying a FootPrintRoofLine list in the PropertyGrid.
public GetStandardValuesSupported ( ITypeDescriptorContext context ) : bool
context ITypeDescriptorContext
Résultat bool

SetStandardValues() public static méthode

Initialize the FootPrintRoofLines data.
public static SetStandardValues ( List footPrintRoofLines ) : void
footPrintRoofLines List
Résultat void