SoPreferencesGetFloat Method |
Returns the value of the specified environment variable in the Open Inventor environment, interpreted as a float.
Namespace: OIV.InventorAssembly: OIV.Inventor.Base (in OIV.Inventor.Base.dll) Version: 10.12.3.0 (10.12.3.0)
Syntax public static float GetFloat(
string name,
float defaultValue
)
Public Shared Function GetFloat (
name As String,
defaultValue As Single
) As Single
public:
static float GetFloat(
String^ name,
float defaultValue
)
static member GetFloat :
name : string *
defaultValue : float32 -> float32
Parameters
- name
- Type: SystemString
- defaultValue
- Type: SystemSingle
Return Value
Type:
SingleRemarks The search process is the same as for OIV.Inventor.SoPreferences.GetValue(System.String).
If the environment variable is not defined in the Open Inventor environment, or if its value cannot be interpreted as a float, the specified default value will be returned.
See Also