Android.Graphics.Paint.GetTextBounds Method
Return in bounds (allocated by the caller) the smallest rectangle that encloses all of the characters, with an implied origin at (0,0).

Syntax

[Android.Runtime.Register("getTextBounds", "(Ljava/lang/String;IILandroid/graphics/Rect;)V", "GetGetTextBounds_Ljava_lang_String_IILandroid_graphics_Rect_Handler")]
public virtual void GetTextBounds (string text, int start, int end, Rect bounds)

Parameters

text
String to measure and return its bounds
start
Index of the first char in the string to measure
end
1 past the last char in the string measure
bounds
Returns the unioned bounds of all the text. Must be allocated by the caller.

Remarks

Return in bounds (allocated by the caller) the smallest rectangle that encloses all of the characters, with an implied origin at (0,0).

[Android Documentation]

Requirements

Namespace: Android.Graphics
Assembly: Mono.Android (in Mono.Android.dll)
Assembly Versions: 0.0.0.0
Since: Added in API level 1