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 PdfRect bounds of this selection.

CharSequence

Public constructors

TextSelection

Added in 1.0.0-alpha10
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-alpha10
fun textAsString(): String

Returns text as a String

toString

open fun toString(): String

Public properties

bounds

open val boundsList<PdfRect>

The PdfRect bounds of this selection. May contain multiple 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.

text

Added in 1.0.0-alpha10
val textCharSequence