次の方法で共有


Paint.GetRunCharacterAdvance Method

Definition

Overloads

GetRunCharacterAdvance(ICharSequence, Int32, Int32, Int32, Int32, Boolean, Int32, Single[], Int32)
GetRunCharacterAdvance(Char[], Int32, Int32, Int32, Int32, Boolean, Int32, Single[], Int32)

Measure the advance of each character within a run of text and also return the cursor position within the run.

GetRunCharacterAdvance(String, Int32, Int32, Int32, Int32, Boolean, Int32, Single[], Int32)

GetRunCharacterAdvance(ICharSequence, Int32, Int32, Int32, Int32, Boolean, Int32, Single[], Int32)

[Android.Runtime.Register("getRunCharacterAdvance", "(Ljava/lang/CharSequence;IIIIZI[FI)F", "GetGetRunCharacterAdvance_Ljava_lang_CharSequence_IIIIZIarrayFIHandler", ApiSince=34)]
public virtual float GetRunCharacterAdvance (Java.Lang.ICharSequence text, int start, int end, int contextStart, int contextEnd, bool isRtl, int offset, float[]? advances, int advancesIndex);
[<Android.Runtime.Register("getRunCharacterAdvance", "(Ljava/lang/CharSequence;IIIIZI[FI)F", "GetGetRunCharacterAdvance_Ljava_lang_CharSequence_IIIIZIarrayFIHandler", ApiSince=34)>]
abstract member GetRunCharacterAdvance : Java.Lang.ICharSequence * int * int * int * int * bool * int * single[] * int -> single
override this.GetRunCharacterAdvance : Java.Lang.ICharSequence * int * int * int * int * bool * int * single[] * int -> single

Parameters

text
ICharSequence

the text to measure. Cannot be null.

start
Int32

the index of the start of the range to measure

end
Int32

the index + 1 of the end of the range to measure

contextStart
Int32

the index of the start of the shaping context

contextEnd
Int32

the index + 1 of the end of the shaping context

isRtl
Boolean

whether the run is in RTL direction

offset
Int32

index of caret position

advances
Single[]

the array that receives the computed character advances

advancesIndex
Int32

the start index from which the advances array is filled

Returns

width measurement between start and offset

Attributes

Remarks

Java documentation for android.graphics.Paint.getRunCharacterAdvance(java.lang.CharSequence, int, int, int, int, boolean, int, float[], int).

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.

Applies to

GetRunCharacterAdvance(Char[], Int32, Int32, Int32, Int32, Boolean, Int32, Single[], Int32)

Measure the advance of each character within a run of text and also return the cursor position within the run.

[Android.Runtime.Register("getRunCharacterAdvance", "([CIIIIZI[FI)F", "GetGetRunCharacterAdvance_arrayCIIIIZIarrayFIHandler", ApiSince=34)]
public virtual float GetRunCharacterAdvance (char[] text, int start, int end, int contextStart, int contextEnd, bool isRtl, int offset, float[]? advances, int advancesIndex);
[<Android.Runtime.Register("getRunCharacterAdvance", "([CIIIIZI[FI)F", "GetGetRunCharacterAdvance_arrayCIIIIZIarrayFIHandler", ApiSince=34)>]
abstract member GetRunCharacterAdvance : char[] * int * int * int * int * bool * int * single[] * int -> single
override this.GetRunCharacterAdvance : char[] * int * int * int * int * bool * int * single[] * int -> single

Parameters

text
Char[]

the text to measure. Cannot be null.

start
Int32

the start index of the range to measure, inclusive

end
Int32

the end index of the range to measure, exclusive

contextStart
Int32

the start index of the shaping context, inclusive

contextEnd
Int32

the end index of the shaping context, exclusive

isRtl
Boolean

whether the run is in RTL direction

offset
Int32

index of caret position

advances
Single[]

the array that receives the computed character advances

advancesIndex
Int32

the start index from which the advances array is filled

Returns

width measurement between start and offset

Attributes

Remarks

Measure the advance of each character within a run of text and also return the cursor position within the run.

Java documentation for android.graphics.Paint.getRunCharacterAdvance(char[], int, int, int, int, boolean, int, float[], int).

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.

Applies to

GetRunCharacterAdvance(String, Int32, Int32, Int32, Int32, Boolean, Int32, Single[], Int32)

public float GetRunCharacterAdvance (string text, int start, int end, int contextStart, int contextEnd, bool isRtl, int offset, float[]? advances, int advancesIndex);
member this.GetRunCharacterAdvance : string * int * int * int * int * bool * int * single[] * int -> single

Parameters

text
String

the text to measure. Cannot be null.

start
Int32

the index of the start of the range to measure

end
Int32

the index + 1 of the end of the range to measure

contextStart
Int32

the index of the start of the shaping context

contextEnd
Int32

the index + 1 of the end of the shaping context

isRtl
Boolean

whether the run is in RTL direction

offset
Int32

index of caret position

advances
Single[]

the array that receives the computed character advances

advancesIndex
Int32

the start index from which the advances array is filled

Returns

width measurement between start and offset

Remarks

Java documentation for android.graphics.Paint.getRunCharacterAdvance(java.lang.CharSequence, int, int, int, int, boolean, int, float[], int).

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.

Applies to