TextBoundsInfo.GetRangeForRect 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.
Finds the range of text which is inside the specified rectangle area.
[Android.Runtime.Register("getRangeForRect", "(Landroid/graphics/RectF;Landroid/text/SegmentFinder;Landroid/text/Layout$TextInclusionStrategy;)[I", "", ApiSince=34)]
public int[]? GetRangeForRect(Android.Graphics.RectF area, Android.Text.SegmentFinder segmentFinder, Android.Text.Layout.ITextInclusionStrategy inclusionStrategy);
[<Android.Runtime.Register("getRangeForRect", "(Landroid/graphics/RectF;Landroid/text/SegmentFinder;Landroid/text/Layout$TextInclusionStrategy;)[I", "", ApiSince=34)>]
member this.GetRangeForRect : Android.Graphics.RectF * Android.Text.SegmentFinder * Android.Text.Layout.ITextInclusionStrategy -> int[]
Parameters
- area
- RectF
area for which the text range will be found. This value cannot be null.
- segmentFinder
- SegmentFinder
SegmentFinder for determining the ranges of text to be considered as a text segment. This value cannot be null.
- inclusionStrategy
- Layout.ITextInclusionStrategy
strategy for determining whether a text segment is inside the specified area. This value cannot be null.
Returns
the text range stored in a two element int array. The first element is the start (inclusive) of the text range, and the second element is the end (exclusive) character offsets of the text range, or null if there are no text segments inside the area.
- Attributes
Remarks
Finds the range of text which is inside the specified rectangle area. This method is a counterpart of the Layout.getRangeForRect(RectF,SegmentFinder,Layout.TextInclusionStrategy).
Android reference for android.view.inputmethod.TextBoundsInfo.getRangeForRect.
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.