Graphics > Graphics Methods > GetSelect Method

# GetSelect Method

The GetSelect function method retrieves the selected items within a graphic window.

## Example

p = PLOT(/TEST, LAYOUT=[2,1,1])

c = CONTOUR(/TEST, LAYOUT=[2,1,2], /CURRENT)

; Click on something

; Retrieve the selected item(s)

graphics = p.Window.GetSelect()

## Syntax

Result = window.GetSelect( )

## Return Value

The result is an array of graphics items, or !NULL if nothing is currently selected.

## Arguments

None

## Keywords

None

## Version History

8.0 | Introduced

## See Also

Select Method, GETWINDOWS