System.Double
Get/Set
The FloatItem property provides access to the parameters in the ParameterCollection that hold a double value. The property takes a single argument, which gives the name of the desired parameter. If no such parameter exists in the collection, a GeoCalcException will be thrown.
In C#, this property takes the form of two methods:
public System.Double get_FloatItem(System.String name)
public void set_FloatItem(System.String name, System.Double value)
These methods provide the same access as described above.
Private Sub GeoCalcNET_ParameterCollection_FloatItem(ByVal pc As GeoCalcNET.ParameterCollection)
If pc.AddFloatItem("dxx") Then
pc.FloatItem("dxx") = 1.00034
Dim d As Double = pc.FloatItem("dxx")
End If
End Sub
private void GeoCalcNET_ParameterCollection_FloatItem(GeoCalcNET.ParameterCollection pc)
{
double floatVal = 1.314;
String paramName = "scale factor";
if(pc.AddFloatItem(paramName))
{
pc.set_FloatItem(paramName, floatVal);
double d = pc.get_FloatItem(paramName);
}
}