This document is archived and information here might be outdated. Recommended version. |
ArcObjects Help for .NET developers > ArcObjects namespaces > Geodatabase > ESRI.ArcGIS.GeoDatabase > Interfaces > IP > IPlugInCursorHelper Interface > IPlugInCursorHelper.QueryShape Method (ArcObjects .NET 10.5 SDK) |
Gets the geometry of the current record.
[Visual Basic .NET] Public Sub QueryShape ( _ ByVal pGeometry As IGeometry _ )
[C#] public void QueryShape ( IGeometry pGeometry );
[C++]
HRESULT QueryShape(
IGeometry* pGeometry
);
[C++]
Parameters pGeometry [in]
pGeometry is a parameter of type IGeometry
QueryShape uses the data in the shape field of the current record to populate the geometry. If anything goes wrong, the geometry should be set empty.
This method should not allocate memory. For simple shapes you can reset the contents of the supplied geometry object. For data sources with complex shapes it is more efficient to use the AttachtoESRIShape method on IESRIShape to attach a shape buffer to the geometry. This shape buffer should be reused for each geometry. For information on the shape buffer, see the white paper on shapefiles, which use the same shape format, found at http://www.esri.com/library/whitepapers/pdfs/shapefile.pdf.