Parameter Methods


Parameter Methods

The Parameter type exposes the following members.

Methods
Name Description
Public method AsDouble Provides access to the double precision number within the parameter.
Public method AsElementId Provides access to the Autodesk::Revit::DB::ElementId^ stored within the parameter.
Public method AsInteger Provides access to the integer number within the parameter.
Public method AssociateWithGlobalParameter Associates this parameter with a global parameter in the same document.
Public method AsString Provides access to the string contents of the parameter.
Public method AsValueString Get the parameter value as a string with units.
Public method AsValueString(FormatOptions) Get the parameter value as a string with units.
Public method CanBeAssociatedWithGlobalParameter Tests whether this parameter can be associated with the given global parameter.
Public method CanBeAssociatedWithGlobalParameters Tests whether this parameter can be associated with any global parameter.
Public method ClearValue Clears the parameter to its initial value.
Public method Dispose Causes the object to release immediately any resources it may be utilizing.
(Inherited from APIObject )
Public method DissociateFromGlobalParameter Dissociates this parameter from a global parameter.
Public method Equals Determines whether the specified object is equal to the current object.
(Inherited from Object )
Public method GetAssociatedGlobalParameter Returns a global parameter, if any, currently associated with this parameter.
Public method GetHashCode Serves as the default hash function.
(Inherited from Object )
Public method GetType Gets the Type of the current instance.
(Inherited from Object )
Public method GetTypeId Gets the identifier of the parameter.
Public method GetUnitTypeId Gets the identifier of the unit quantifying the parameter value.
Public method Set(Double) Sets the parameter to a new real number value.
Public method Set(ElementId) Sets the parameter to a new element id.
Public method Set(Int32) Sets the parameter to a new integer value.
Public method Set(String) Sets the parameter to a new string of text.
Public method Static member SetMultiple
Public method SetValueString Set the parameter value according to the input string.
Public method ToString Returns a string that represents the current object.
(Inherited from Object )
Top
See Also