다음을 통해 공유


Layout.ITextInclusionStrategy.IsSegmentInside(RectF, RectF) Method

Definition

Returns true if this TextInclusionStrategy considers the segment with bounds segmentBounds to be inside area.

[Android.Runtime.Register("isSegmentInside", "(Landroid/graphics/RectF;Landroid/graphics/RectF;)Z", "GetIsSegmentInside_Landroid_graphics_RectF_Landroid_graphics_RectF_Handler:Android.Text.Layout/ITextInclusionStrategyInvoker, Mono.Android, Version=0.0.0.0, Culture=neutral, PublicKeyToken=null", ApiSince=34)]
public bool IsSegmentInside (Android.Graphics.RectF segmentBounds, Android.Graphics.RectF area);
[<Android.Runtime.Register("isSegmentInside", "(Landroid/graphics/RectF;Landroid/graphics/RectF;)Z", "GetIsSegmentInside_Landroid_graphics_RectF_Landroid_graphics_RectF_Handler:Android.Text.Layout/ITextInclusionStrategyInvoker, Mono.Android, Version=0.0.0.0, Culture=neutral, PublicKeyToken=null", ApiSince=34)>]
abstract member IsSegmentInside : Android.Graphics.RectF * Android.Graphics.RectF -> bool

Parameters

segmentBounds
RectF
area
RectF

Returns

Attributes

Remarks

Returns true if this TextInclusionStrategy considers the segment with bounds segmentBounds to be inside area.

The segment is a range of text which does not cross line boundaries or directional run boundaries. The horizontal bounds of the segment are the start bound of the first character to the end bound of the last character. The vertical bounds match the line bounds (getLineTop(line) and getLineBottom(line, false)).

Java documentation for android.text.Layout.TextInclusionStrategy.isSegmentInside(android.graphics.RectF, android.graphics.RectF).

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.

Applies to