语言

Layout.FillCharacterBounds(Int32, Int32, Single[], Int32) 方法

定义

返回给定区域中字符的边界。

[Android.Runtime.Register("fillCharacterBounds", "(II[FI)V", "GetFillCharacterBounds_IIarrayFIHandler", ApiSince=34)]
public virtual void FillCharacterBounds(int start, int end, float[] bounds, int boundsStart);
[<Android.Runtime.Register("fillCharacterBounds", "(II[FI)V", "GetFillCharacterBounds_IIarrayFIHandler", ApiSince=34)>]
abstract member FillCharacterBounds : int * int * single[] * int -> unit
override this.FillCharacterBounds : int * int * single[] * int -> unit

参数

start
Int32

用于计算字符边界(含)的起始索引。

end
Int32

用于计算字符边界(独占)的结束索引。

bounds
Single[]

要填充字符边界的数组。 该数组分为四个段,其中该段中的每个索引表示字符的左、上、右和底部。

boundsStart
Int32

数组中要从中填充值的非独占开始索引。

特性

注解

返回给定区域中字符的边界。 数组 bounds 将从(含)开始 boundsStart 填充。 坐标采用本地文本布局。

Java文档android.text.Layout.fillCharacterBounds(int, int, float[], int)。

本页的某些部分是根据 创建和共享的工作进行的修改,并根据 许可证中所述的条款使用。

适用于