TextSelection


class TextSelection : Selection


Represents text content that has been selected.

Summary

Public constructors

Public functions

open operator Boolean
equals(other: Any?)
open Int
String

Returns text as a String

open String

Public properties

open List<PdfRect>

The bounding rectangles of the selected text.

CharSequence

The selected text.

Public constructors

TextSelection

Added in 1.0.0-alpha11
TextSelection(text: CharSequence, bounds: List<PdfRect>)

Public functions

equals

open operator fun equals(other: Any?): Boolean

hashCode

open fun hashCode(): Int

textAsString

Added in 1.0.0-alpha11
fun textAsString(): String

Returns text as a String

toString

open fun toString(): String

Public properties

bounds

open val boundsList<PdfRect>

The bounding rectangles of the selected text.

text

Added in 1.0.0-alpha11
val textCharSequence

The selected text.