PdfRendererPreV.Page.SelectContent Method
Definition
Important
Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.
Return a PageSelection
which represents the selected content that spans between
the two boundaries.
[Android.Runtime.Register("selectContent", "(Landroid/graphics/pdf/models/selection/SelectionBoundary;Landroid/graphics/pdf/models/selection/SelectionBoundary;)Landroid/graphics/pdf/models/selection/PageSelection;", "", ApiSince=35)]
public Android.Graphics.Pdf.Models.Selection.PageSelection? SelectContent (Android.Graphics.Pdf.Models.Selection.SelectionBoundary start, Android.Graphics.Pdf.Models.Selection.SelectionBoundary stop);
[<Android.Runtime.Register("selectContent", "(Landroid/graphics/pdf/models/selection/SelectionBoundary;Landroid/graphics/pdf/models/selection/SelectionBoundary;)Landroid/graphics/pdf/models/selection/PageSelection;", "", ApiSince=35)>]
member this.SelectContent : Android.Graphics.Pdf.Models.Selection.SelectionBoundary * Android.Graphics.Pdf.Models.Selection.SelectionBoundary -> Android.Graphics.Pdf.Models.Selection.PageSelection
Parameters
- start
- SelectionBoundary
boundary where the selection starts (inclusive)
- stop
- SelectionBoundary
boundary where the selection stops (exclusive)
Returns
collection of the selected content for text, images, etc.
- Attributes
Remarks
Return a PageSelection
which represents the selected content that spans between the two boundaries. The boundaries can be either exactly defined with text indexes, or approximately defined with points on the page. The resulting selection will also be exactly defined with both indexes and points. If the start and stop boundary are both at the same point, selects the word at that point. In case the selection from the given boundaries result in an empty space, then the method returns null
. The start and stop SelectionBoundary
in PageSelection
resolves to the "nearest" index when returned.
<strong>Note:</strong> Should be invoked on a android.annotation.WorkerThread
as it is long-running task.
Portions of this page are modifications based on work created and shared by the Android Open Source Project and used according to terms described in the Creative Commons 2.5 Attribution License.