GetShapeByPt(Position: IGxPointF): IWxShape;
Position. View point.
The GetShapeByPt method gets an object by the defined coordinate.
Executing the example requires an existing ws object of the IWxWorkspace type.
Sub UserProc;
Var
ws: IWxWorkspace;
view : IWxView;
PointF : IGxPointF;
Shape : IWxShape;
Begin
view := ws.Views.Item(0);
PointF := New GxPointF.Create(-66,-7);
Shape := view.GetShapeByPt(PointF);
view.ActiveShape := Shape;
End Sub UserProc;
After executing the example, the object which is in this view point is selected.
See also: