ArcGIS Pro 2.7 API Reference Guide
SideBuffer(Polyline,Double,LeftOrRightSide,LineCapType) Method
Example 

ArcGIS.Core.Geometry Namespace > IGeometryEngine Interface > SideBuffer Method : SideBuffer(Polyline,Double,LeftOrRightSide,LineCapType) Method
The polyline to buffer
The buffer distance
The side of the polyline to create the buffer
The line caps
Constructs a buffer on one side of a polyline
Syntax
Overloads Function SideBuffer( _
   ByVal polyline As Polyline, _
   ByVal distance As Double, _
   ByVal side As LeftOrRightSide, _
   ByVal caps As LineCapType _
) As Geometry

Parameters

polyline
The polyline to buffer
distance
The buffer distance
side
The side of the polyline to create the buffer
caps
The line caps

Return Value

Geometry representing the side buffer
Exceptions
ExceptionDescription
Geometry is null or empty
The buffer distance must be a valid floating point number.
The method is not implemented for LineCapType.Square.
Example
// right side, round caps
SpatialReference sr = SpatialReferenceBuilder.CreateSpatialReference(102010);
List<Coordinate2D> coords = new List<Coordinate2D>()
{
  new Coordinate2D(1200, 5800),
  new Coordinate2D(1400, 5800),
  new Coordinate2D(1400, 6000),
  new Coordinate2D(1300, 6000),
  new Coordinate2D(1300, 5700)
};

Polyline polyline = PolylineBuilder.CreatePolyline(coords, sr);
Polygon output = GeometryEngine.Instance.SideBuffer(polyline, 20, LeftOrRightSide.RightSide, LineCapType.Round) as Polygon;
Requirements

Target Platforms: Windows 10, Windows 8.1

See Also

Reference

IGeometryEngine Interface
IGeometryEngine Members
Overload List