Language

MeasuredText.Builder.SetComputeLayout(Boolean) メソッド

定義

このメソッドに true を渡すと、ビルド メソッドはすべての完全なレイアウト情報を計算します。

[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

パラメーター

computeLayout
Boolean

完全なレイアウト情報 (bbox など) を取得する場合は true。

戻り値

このビルダー インスタンス。

属性

注釈

trueを渡して、完全なレイアウト情報を計算します。 GetBounds(Int32, Int32, Rect)を使用しない場合は、falseを渡してメモリを節約できます。 既定値は true です。 falseを渡しても、GetBounds(Int32, Int32, Rect)を呼び出すことができますが、時間がかかります。

レイアウト計算を無効にして構築された測定テキスト インスタンスを使用して、別の MeasuredText.Builderを構築することはできません。

android.graphics.text.MeasuredText.Builder.setComputeLayoutの Android リファレンス。

このページの一部は、によって作成および共有され、に記載されている条件に従って使用される作業に基づく変更です。

適用対象