# PageMatchBounds

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/PageMatchBounds.kt+class:androidx.pdf.content.PageMatchBounds) Added in [1.0.0-beta01](https://developer.android.com/jetpack/androidx/releases/pdf#1.0.0-beta01)

*** ** * ** ***


```
public final class PageMatchBounds
```

<br />

*** ** * ** ***

Represents the bounds of a single search match on a page of the PDF document.

## Summary

| ### Public constructors |
|---|
| `https://developer.android.com/reference/androidx/pdf/content/PageMatchBounds#PageMatchBounds(kotlin.collections.List,kotlin.Int)(@https://developer.android.com/reference/androidx/annotation/NonNull https://developer.android.com/reference/java/util/List.html<@https://developer.android.com/reference/androidx/annotation/NonNull https://developer.android.com/reference/android/graphics/RectF.html> bounds, int textStartIndex)` |

| ### Public methods |
|---|---|
| `final @https://developer.android.com/reference/androidx/annotation/NonNull https://developer.android.com/reference/java/util/List.html<@https://developer.android.com/reference/androidx/annotation/NonNull https://developer.android.com/reference/android/graphics/RectF.html>` | `https://developer.android.com/reference/androidx/pdf/content/PageMatchBounds#getBounds()()` : Bounds of the text match. |
| `final int` | `https://developer.android.com/reference/androidx/pdf/content/PageMatchBounds#getTextStartIndex()()` : starting index of the text match. |

## Public constructors

### PageMatchBounds

```
public PageMatchBounds(@NonNull List<@NonNull RectF> bounds, int textStartIndex)
```

| Parameters |
|---|---|
| `@https://developer.android.com/reference/androidx/annotation/NonNull https://developer.android.com/reference/java/util/List.html<@https://developer.android.com/reference/androidx/annotation/NonNull https://developer.android.com/reference/android/graphics/RectF.html> bounds` | : Bounds of the text match. |
| `int textStartIndex` | : starting index of the text match. |

## Public methods

### getBounds

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

```
public final @NonNull List<@NonNull RectF> getBounds()
```

: Bounds of the text match.

### getTextStartIndex

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

```
public final int getTextStartIndex()
```

: starting index of the text match.