Creates a new instance of a GeneralSegmentLabel on a feature object with the specified line label and curve label styles.
Namespace: Autodesk.Civil.DatabaseServicesAssembly: AeccDbMgd (in AeccDbMgd.dll) Version: 13.4.2516.0
Syntax
C# |
---|
public static ObjectId Create(
ObjectId featureId,
double ratio,
ObjectId lineLabelStyleId,
ObjectId curveLabelStyleId
) |
Visual Basic |
---|
Public Shared Function Create ( _
featureId As ObjectId, _
ratio As Double, _
lineLabelStyleId As ObjectId, _
curveLabelStyleId As ObjectId _
) As ObjectId |
Visual C++ |
---|
public:
static ObjectId Create(
ObjectId featureId,
double ratio,
ObjectId lineLabelStyleId,
ObjectId curveLabelStyleId
) |
Parameters
- featureId
- Type: ObjectId
The ObjectId of the feature object to label (object type Line, Arc, Polyline or Featureline).
- ratio
- Type: System..::..Double
The ratio that sets the relative position of the label to the feature.
- lineLabelStyleId
- Type: ObjectId
The ObjectId of the line Label style (object type LabelStyle) to use.
- curveLabelStyleId
- Type: ObjectId
The ObjectId of the curve Label style (object type LabelStyle) to use.
Remarks
Exceptions
Exception | Condition |
---|
System..::..ArgumentException |
Thrown when:
- The featureId, lineLabelStyleId or curveLabelStyleId parameter is invalid.
- The ratio is out of range.
|
See Also