# PageSelection

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

*** ** * ** ***


```
class PageSelection
```

<br />

*** ** * ** ***

Represents the list of selected content on a particular page of the PDF document. By default, the selection boundary is represented from left to right.

## Summary

| ### Public constructors |
|---|
| `https://developer.android.com/reference/kotlin/androidx/pdf/content/PageSelection#PageSelection(kotlin.Int,androidx.pdf.content.SelectionBoundary,androidx.pdf.content.SelectionBoundary,kotlin.collections.List)( page: https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-int/index.html, start: https://developer.android.com/reference/kotlin/androidx/pdf/content/SelectionBoundary, stop: https://developer.android.com/reference/kotlin/androidx/pdf/content/SelectionBoundary, selectedContents: https://kotlinlang.org/api/core/kotlin-stdlib/kotlin.collections/-list/index.html<https://developer.android.com/reference/kotlin/androidx/pdf/content/PdfPageContent> )` |

| ### Public properties |
|---|---|
| `https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-int/index.html` | `https://developer.android.com/reference/kotlin/androidx/pdf/content/PageSelection#page()` : The page number of the selection. |
| `https://kotlinlang.org/api/core/kotlin-stdlib/kotlin.collections/-list/index.html<https://developer.android.com/reference/kotlin/androidx/pdf/content/PdfPageContent>` | `https://developer.android.com/reference/kotlin/androidx/pdf/content/PageSelection#selectedContents()` : list of segments of selected content. |
| `https://developer.android.com/reference/kotlin/androidx/pdf/content/SelectionBoundary` | `https://developer.android.com/reference/kotlin/androidx/pdf/content/PageSelection#start()` : Boundary where the selection starts. |
| `https://developer.android.com/reference/kotlin/androidx/pdf/content/SelectionBoundary` | `https://developer.android.com/reference/kotlin/androidx/pdf/content/PageSelection#stop()` : Boundary where the selection stops. |

## Public constructors

### PageSelection

```
PageSelection(
    page: Int,
    start: SelectionBoundary,
    stop: SelectionBoundary,
    selectedContents: List<PdfPageContent>
)
```

| Parameters |
|---|---|
| `page: https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-int/index.html` | : The page number of the selection. |
| `start: https://developer.android.com/reference/kotlin/androidx/pdf/content/SelectionBoundary` | : Boundary where the selection starts. |
| `stop: https://developer.android.com/reference/kotlin/androidx/pdf/content/SelectionBoundary` | : Boundary where the selection stops. |
| `selectedContents: https://kotlinlang.org/api/core/kotlin-stdlib/kotlin.collections/-list/index.html<https://developer.android.com/reference/kotlin/androidx/pdf/content/PdfPageContent>` | : list of segments of selected content. |

## Public properties

### page

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

```
val page: Int
```

: The page number of the selection.

### selectedContents

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

```
val selectedContents: List<PdfPageContent>
```

: list of segments of selected content.

### start

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

```
val start: SelectionBoundary
```

: Boundary where the selection starts.

### stop

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

```
val stop: SelectionBoundary
```

: Boundary where the selection stops.