ArcGIS Pro 2.8 API Reference Guide
QueryDrawingOutline Method

ArcGIS.Desktop.Mapping Namespace > BasicFeatureLayer Class : QueryDrawingOutline Method
Object id of the feature to lookup
The viewer whose current reference scale will be used
The type of outline to be generated
Returns the outline geometry for the corresponding feature identified by the object id. This method must be called on the MCT. Use QueuedTask.Run
Syntax
public Geometry QueryDrawingOutline( 
   long oid,
   MapView view,
   DrawingOutlineType outlineType
)
Public Function QueryDrawingOutline( _
   ByVal oid As Long, _
   ByVal view As MapView, _
   ByVal outlineType As DrawingOutlineType _
) As Geometry

Parameters

oid
Object id of the feature to lookup
view
The viewer whose current reference scale will be used
outlineType
The type of outline to be generated

Return Value

Exceptions
ExceptionDescription
This method or property must be called within the lambda passed to QueuedTask.Run.
MapView is null
Unsupported geometry type
QueryDrawingOutline supported in 2D only
Remarks
QueryDrawingOutline is supported for 2D map views only. The view must be initialized or null will be returned. The returned geometry outline for points, lines, and polygons takes into consideration the current view extent (2D) and current map reference scale. If there is no map reference scale set then the current mapscale is used. For annotation the annotation reference scale is used.
For Polygon and Polyline geometry features the output outline will always be Exact. The outlineType parameter is ignored.
Multipatch geometry type is not supported.
Requirements

Target Platforms: Windows 10, Windows 8.1

See Also

Reference

BasicFeatureLayer Class
BasicFeatureLayer Members