< Civ API Docs

UnitValueFormatterFormat(UnitType, FeatureSettingsContext, Database, Double) Method

Formats a numeric value using an explicit feature settings context.

Namespace: Autodesk.Civil.Internal
Assembly: AeccDbMgd (in AeccDbMgd.dll) Version: 13.9.0.960
Syntax
public static string Format(
	UnitType unitType,
	FeatureSettingsContext featureSettingsContext,
	Database database,
	double value
)

Parameters

unitType  UnitType
 
featureSettingsContext  FeatureSettingsContext
 
database  Database
 
value  Double
 

Return Value

String
Exceptions
ExceptionCondition
ArgumentException Thrown when database is null, does not expose a valid unmanaged pointer, or a valid settings node cannot be resolved.
InvalidEnumArgumentException Thrown when unitType or featureSettingsContext is not a supported value.
Remarks

featureSettingsContext resolves to the corresponding feature settings node.

For example, Point resolves to point settings, Surface resolves to surface settings, and Corridor resolves to corridor settings.

Root uses the drawing root settings node.

See Also