PdfRenderer.Page.GetTopPageObjectAtPosition(PointF, Int32[]) 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.
Retrieves the top-most page object at a specified position.
[Android.Runtime.Register("getTopPageObjectAtPosition", "(Landroid/graphics/PointF;[I)Landroid/util/Pair;", "", ApiSince=36)]
public Android.Util.Pair? GetTopPageObjectAtPosition(Android.Graphics.PointF point, int[] types);
[<Android.Runtime.Register("getTopPageObjectAtPosition", "(Landroid/graphics/PointF;[I)Landroid/util/Pair;", "", ApiSince=36)>]
member this.GetTopPageObjectAtPosition : Android.Graphics.PointF * int[] -> Android.Util.Pair
Parameters
- point
- PointF
The coordinates (as a PointF) on the page to check for page
objects.
- types
- Int32[]
An array of PdfPageObjectType.Type values. Only page objects whose
types are included in this array will be considered. If multiple matching
objects overlap at the specified point, only the one with the highest
z-index will be returned. The order of types within this array does not
influence the outcome.
If this array is empty, known supported PdfPageObjectTypes will be
considered.
Returns
A Pair containing:
<ul>
<li>An Integer representing the unique ID of the page object.
<li>A PdfPageObject representing the found page object.</li>
</ul>
Returns null if no page object is found at the given position.
- Attributes
Remarks
Retrieves the top-most page object at a specified position.
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.