STK X Send comments on this topic.
RubberBandPickInfo Method (AgUiAx2DCntrl)
See Also  Example
Left
Specifies the x-coordinate of the left edge of the rubber band rectangle in control coordinates.
Top
Specifies the y-coordinate of the top edge of the rubber band rectangle in control coordinates.
Right
Specifies the x-coordinate of the right edge of the rubber band rectangle in control coordinates.
Bottom
Specifies the y-coordinate of the bottom edge of the rubber band rectangle in control coordinates.





Description

Get detailed information about a rubber-band mouse pick. The values must be within the 2D window (0 to width-1 for left and right, 0 to height-1 for top and bottom).

Syntax

[Visual Basic .NET]
Public Function RubberBandPickInfo( _
   ByVal Left As Integer, _
   ByVal Top As Integer, _
   ByVal Right As Integer, _
   ByVal Bottom As Integer _
) As AgRubberBandPickInfoData

[C#]
public AgRubberBandPickInfoData RubberBandPickInfo(
int Left,
int Top,
int Right,
int Bottom
);

[Managed C++]
public: AgRubberBandPickInfoData^ RubberBandPickInfo(
int Left,
int Top,
int Right,
int Bottom
);

[Java]
public AgRubberBandPickInfoData rubberBandPickInfo(
int Left,
int Top,
int Right,
int Bottom
);

[Unmanaged C++]
public: HRESULT RubberBandPickInfo(
long Left,
long Top,
long Right,
long Bottom,
AgRubberBandPickInfoData ** ReturnValue
);

Parameters

Left
Specifies the x-coordinate of the left edge of the rubber band rectangle in control coordinates.
Top
Specifies the y-coordinate of the top edge of the rubber band rectangle in control coordinates.
Right
Specifies the x-coordinate of the right edge of the rubber band rectangle in control coordinates.
Bottom
Specifies the y-coordinate of the bottom edge of the rubber band rectangle in control coordinates.

Return Type

Returns an object of type AgRubberBandPickInfoData which contains the list of objects selected (if any).

Remarks

The RubberBandPickInfo method returns extended information when the AdvancedPickMode Property is set to true.

Example

[Visual Basic .NET] Copy Code
Dim pickInfo As AGI.STKX.AgRubberBandPickInfoDataClass
pickInfo = Me.AxAgUiAx2DCntrl1.RubberBandPickInfo(x0, y0, x, y)
If pickInfo.ObjPaths.Count Then
...

See Also

© 2016 Analytical Graphics, Inc. All Rights Reserved.

STK Programming Interface 11.0.1