UnitValueFormatterFormat(UnitType, FeatureSettingsContext, Database, Double) Method |
Formats a numeric value using an explicit feature settings context.
Namespace: Autodesk.Civil.InternalAssembly: AeccDbMgd (in AeccDbMgd.dll) Version: 13.9.0.960
Syntaxpublic static string Format(
UnitType unitType,
FeatureSettingsContext featureSettingsContext,
Database database,
double value
)
Public Shared Function Format (
unitType As UnitType,
featureSettingsContext As FeatureSettingsContext,
database As Database,
value As Double
) As String
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| Exception | Condition |
|---|
| 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.
|
RemarksfeatureSettingsContext 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