PondContourGetOffsetContour Method |
Creates a new PondContour that is offset both horizontally and vertically from this contour.
Namespace: Autodesk.Civil.DatabaseServicesAssembly: AeccDrainageDesignMgd (in AeccDrainageDesignMgd.dll) Version: 13.9.960.0
Syntaxpublic PondContour GetOffsetContour(
double horizontalOffset,
double verticalOffset
)
Public Function GetOffsetContour (
horizontalOffset As Double,
verticalOffset As Double
) As PondContour
public:
PondContour^ GetOffsetContour(
double horizontalOffset,
double verticalOffset
)
Parameters
- horizontalOffset Double
- Horizontal offset distance from this contour to the new one. Positive values expand the contour, negative values contract it.
- verticalOffset Double
- Vertical offset distance from this contour to the new one. Positive values increase elevation.
Return Value
PondContourA new PondContour that is offset both horizontally and vertically from the original.
Exceptions| Exception | Condition |
|---|
| ArgumentException | Thrown when the offset operation results in invalid geometry. |
Remarks
The elevation of the new contour is calculated by simply adding the vertical offset to the elevation of this contour.
See Also