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", "([CIILandroid/graphics/Rect;)V", "GetGetTextBounds_arrayCIILandroid_graphics_Rect_Handler")]
public virtual void GetTextBounds (char[] text, int index, int count, Rect bounds)

Parameters

text
Array of chars to measure and return their unioned bounds
index
Index of the first char in the array to measure
count
The number of chars, beginning at index, to 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