MeasuredText.Builder.SetComputeLayout(Boolean) 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.
By passing true to this method, the build method will compute all full layout information.
[Android.Runtime.Register("setComputeLayout", "(Z)Landroid/graphics/text/MeasuredText$Builder;", "", ApiSince=29)]
public Android.Graphics.Text.MeasuredText.Builder SetComputeLayout(bool computeLayout);
[<Android.Runtime.Register("setComputeLayout", "(Z)Landroid/graphics/text/MeasuredText$Builder;", "", ApiSince=29)>]
member this.SetComputeLayout : bool -> Android.Graphics.Text.MeasuredText.Builder
Parameters
- computeLayout
- Boolean
true if you want to retrieve full layout info, e.g. bbox.
Returns
This builder instance.
- Attributes
Remarks
Pass true to compute full layout information. If you do not use GetBounds(Int32, Int32, Rect), you can pass false to save memory. The default is true. If you pass false, you can still call GetBounds(Int32, Int32, Rect), but it is slower.
A measured-text instance built with layout computation disabled cannot be used to construct another MeasuredText.Builder.
Android reference for android.graphics.text.MeasuredText.Builder.setComputeLayout.
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.