# Selection

Artifact: [androidx.pdf:pdf-core](https://developer.android.com/jetpack/androidx/releases/pdf) [View Source](https://cs.android.com/search?q=file:androidx/pdf/selection/Selection.kt+class:androidx.pdf.selection.Selection) Added in [1.0.0-beta01](https://developer.android.com/jetpack/androidx/releases/pdf#1.0.0-beta01)

*** ** * ** ***


```
interface Selection
```

<br />

Known direct subclasses [ImageSelection](https://developer.android.com/reference/kotlin/androidx/pdf/selection/model/ImageSelection), [LinkSelection](https://developer.android.com/reference/kotlin/androidx/pdf/selection/LinkSelection), [TextSelection](https://developer.android.com/reference/kotlin/androidx/pdf/selection/model/TextSelection)

|---|---|
| `https://developer.android.com/reference/kotlin/androidx/pdf/selection/model/ImageSelection` | Represents a specific image object selected from a PDF document. |
| `https://developer.android.com/reference/kotlin/androidx/pdf/selection/LinkSelection` | Represents a link within a PDF document that has been selected. |
| `https://developer.android.com/reference/kotlin/androidx/pdf/selection/model/TextSelection` | Represents text content that has been selected. |

Known indirect subclasses [GoToLinkSelection](https://developer.android.com/reference/kotlin/androidx/pdf/selection/model/GoToLinkSelection), [HyperLinkSelection](https://developer.android.com/reference/kotlin/androidx/pdf/selection/model/HyperLinkSelection)

|---|---|
| `https://developer.android.com/reference/kotlin/androidx/pdf/selection/model/GoToLinkSelection` | A `https://developer.android.com/reference/kotlin/androidx/pdf/selection/Selection` for a goto link. |
| `https://developer.android.com/reference/kotlin/androidx/pdf/selection/model/HyperLinkSelection` | A `https://developer.android.com/reference/kotlin/androidx/pdf/selection/Selection` for a hyperlink. |

*** ** * ** ***

Represents PDF content that has been selected.

## Summary

| ### Public properties |
|---|---|
| `https://kotlinlang.org/api/core/kotlin-stdlib/kotlin.collections/-list/index.html<https://developer.android.com/reference/kotlin/androidx/pdf/PdfRect>` | `https://developer.android.com/reference/kotlin/androidx/pdf/selection/Selection#bounds()` The `https://developer.android.com/reference/kotlin/androidx/pdf/PdfRect` bounds of this selection. |

## Public properties

### bounds

Added in [1.0.0-beta01](https://developer.android.com/jetpack/androidx/releases/pdf#1.0.0-beta01)

```
val bounds: List<PdfRect>
```

The `https://developer.android.com/reference/kotlin/androidx/pdf/PdfRect` bounds of this selection. May contain multiple `https://developer.android.com/reference/kotlin/androidx/pdf/PdfRect` if this selection spans multiple discrete areas within the PDF. Consider for example any selection spanning multiple pages, or a text selection spanning multiple lines on the same page.