# WindowSelection class

Namespace: [Grasshopper2.UI.Flex](https://developer.rhino3d.com/api/gh2/namespace/grasshopper2.ui.flex.md) · Assembly: [Grasshopper2](https://developer.rhino3d.com/api/gh2/assembly/grasshopper2.md)

```cs
public class WindowSelection
```

Stores all relevant information regarding UI window selection boxes.

## Constructors

- [WindowSelection](https://developer.rhino3d.com/api/gh2/type/grasshopper2.ui.flex.windowselection/ctor.md): Construct a new window selection.

## Properties

- [Box](https://developer.rhino3d.com/api/gh2/type/grasshopper2.ui.flex.windowselection/box.md): Gets the window selection box.
- [IsCrossing](https://developer.rhino3d.com/api/gh2/type/grasshopper2.ui.flex.windowselection/iscrossing.md): Gets whether this window selection is crossing (ie. right-to-left).
- [IsEmpty](https://developer.rhino3d.com/api/gh2/type/grasshopper2.ui.flex.windowselection/isempty.md): Gets whether this window selection has zero area.
- [IsZero](https://developer.rhino3d.com/api/gh2/type/grasshopper2.ui.flex.windowselection/iszero.md): Gets whether this window selection has zero circumference.
- [Point0](https://developer.rhino3d.com/api/gh2/type/grasshopper2.ui.flex.windowselection/point0.md): Gets the window selection start point.
- [Point1](https://developer.rhino3d.com/api/gh2/type/grasshopper2.ui.flex.windowselection/point1.md): Gets the window selection end point.

## Methods

- [Adapt](https://developer.rhino3d.com/api/gh2/type/grasshopper2.ui.flex.windowselection/adapt.md): Adapt this window selection to terminate at a new end point.
- [Selects](https://developer.rhino3d.com/api/gh2/type/grasshopper2.ui.flex.windowselection/selects.md): (5 overloads) Gets whether this window selection would select the given bezier.
