IWxView.GetShapeByPt

Syntax

GetShapeByPt(Position: IGxPointF): IWxShape;

Parameters

Position. View point.

Description

The GetShapeByPt method gets an object by the defined coordinate.

Example

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:

IWxView