This document is archived and information here might be outdated.  Recommended version.


IPlugInCursorHelper.QueryShape Method (ArcObjects .NET 10.4 SDK)
ArcObjects Library Reference (GeoDatabase)  

IPlugInCursorHelper.QueryShape Method

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

Product Availability

Available with ArcGIS Engine, ArcGIS Desktop, and ArcGIS Server.

Description

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.

See Also

IPlugInCursorHelper Interface