public sealed class GeometryBagBuilder : ArcGIS.Core.Geometry.GeometryBuilder<GeometryBag>, System.IDisposable
Public NotInheritable Class GeometryBagBuilder Inherits ArcGIS.Core.Geometry.GeometryBuilder(Of GeometryBag) Implements System.IDisposable
public sealed class GeometryBagBuilder : ArcGIS.Core.Geometry.GeometryBuilder<GeometryBag>, System.IDisposable
Public NotInheritable Class GeometryBagBuilder Inherits ArcGIS.Core.Geometry.GeometryBuilder(Of GeometryBag) Implements System.IDisposable
Use the GeometryBagBuilder class to to create a GeometryBag shape. A GeometryBag is based upon the parent Geometry class. Use the GeometryBagBuilder.ToGeometry method to get the GeometryBag geometry from the builder.
The spatial reference of the GeometryBagBuilder is transferred (geometry projected if necessary) to any geometries added to it. However, the spatial reference of the added geometry is not transferred to the GeometryBagBuilder. Always make sure to set the spatial reference on the GeometryBagBuilder prior to adding other geometries to it to avoid creating invalid geometry. For example, adding geometries to a GeometryBagBuilder that doesn't have a well-defined spatial reference will set an unknown spatial reference to all the geometries added to the builder. Using the GeometryBag created from such a builder may cause unexpected behavior.
An Envelope is converted to a Polygon when it is inserted into a GeometryBag. As a result, when retrieving an Envelope from a GeometryBag, it will be a Polygon.
System.Object
ArcGIS.Core.CoreObjectsBase
ArcGIS.Core.Geometry.GeometryBuilder<T>
ArcGIS.Core.Geometry.GeometryBagBuilder
Target Platforms: Windows 10, Windows 8.1