ArcGIS Pro 3.4 API Reference Guide
ArcGIS.Core.Geometry Namespace / GeometryBagBuilderEx Class
Members Version

GeometryBagBuilderEx Class
Builder for creating a GeometryBag.
Object Model
GeometryBagBuilderEx ClassGeometryBag ClassGeometryBag ClassGeometryBag ClassSpatialReference ClassGeometryBag Class
Syntax
public class GeometryBagBuilderEx : GeometryBuilderEx 
Remarks

Use the GeometryBagBuilderEx class to to create a GeometryBag shape. A GeometryBag is based upon the parent Geometry class. Use the GeometryBagBuilderEx.ToGeometry method to get the GeometryBag geometry from the builder.

The spatial reference of the GeometryBagBuilderEx is transferred to the GeometryBag and any geometries it contains after calling GeometryBagBuilderEx.ToGeometry. However, the spatial reference of the added geometry is ignored, and is not transferred to the GeometryBagBuilderEx. Adding a geometry that is not in the domain of the spatial reference could lead to unexpected results.

An Envelope is converted to a Polygon when a GeometryBag is created by calling GeometryBagBuilderEx.ToGeometry. As a result, when retrieving an Envelope from a GeometryBag, it will be a Polygon.

Inheritance Hierarchy

System.Object
   ArcGIS.Core.Geometry.GeometryBuilderEx
      ArcGIS.Core.Geometry.GeometryBagBuilderEx

Requirements

Target Platforms: Windows 11, Windows 10

ArcGIS Pro version: 3 or higher.
See Also