TextUtils.GetCapsMode Method

Definition

Overloads

GetCapsMode(String, Int32, CapitalizationMode)

Determine what caps mode should be in effect at the current offset in the text.

GetCapsMode(ICharSequence, Int32, CapitalizationMode)

Determine what caps mode should be in effect at the current offset in the text.

GetCapsMode(String, Int32, CapitalizationMode)

Determine what caps mode should be in effect at the current offset in the text.

public static Android.Text.CapitalizationMode GetCapsMode (string? cs, int off, Android.Text.CapitalizationMode reqModes);
static member GetCapsMode : string * int * Android.Text.CapitalizationMode -> Android.Text.CapitalizationMode

Parameters

cs
String

The text that should be checked for caps modes.

off
Int32

Location in the text at which to check.

reqModes
CapitalizationMode

The modes to be checked: may be any combination of #CAP_MODE_CHARACTERS, #CAP_MODE_WORDS, and #CAP_MODE_SENTENCES.

Returns

Returns the actual capitalization modes that can be in effect at the current position, which is any combination of #CAP_MODE_CHARACTERS, #CAP_MODE_WORDS, and #CAP_MODE_SENTENCES.

Remarks

Determine what caps mode should be in effect at the current offset in the text. Only the mode bits set in <var>reqModes</var> will be checked. Note that the caps mode flags here are explicitly defined to match those in InputType.

Java documentation for android.text.TextUtils.getCapsMode(java.lang.CharSequence, int, 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

GetCapsMode(ICharSequence, Int32, CapitalizationMode)

Determine what caps mode should be in effect at the current offset in the text.

[Android.Runtime.Register("getCapsMode", "(Ljava/lang/CharSequence;II)I", "")]
public static Android.Text.CapitalizationMode GetCapsMode (Java.Lang.ICharSequence? cs, int off, Android.Text.CapitalizationMode reqModes);
[<Android.Runtime.Register("getCapsMode", "(Ljava/lang/CharSequence;II)I", "")>]
static member GetCapsMode : Java.Lang.ICharSequence * int * Android.Text.CapitalizationMode -> Android.Text.CapitalizationMode

Parameters

cs
ICharSequence

The text that should be checked for caps modes.

off
Int32

Location in the text at which to check.

reqModes
CapitalizationMode

The modes to be checked: may be any combination of #CAP_MODE_CHARACTERS, #CAP_MODE_WORDS, and #CAP_MODE_SENTENCES.

Returns

Returns the actual capitalization modes that can be in effect at the current position, which is any combination of #CAP_MODE_CHARACTERS, #CAP_MODE_WORDS, and #CAP_MODE_SENTENCES.

Attributes

Remarks

Determine what caps mode should be in effect at the current offset in the text. Only the mode bits set in <var>reqModes</var> will be checked. Note that the caps mode flags here are explicitly defined to match those in InputType.

Java documentation for android.text.TextUtils.getCapsMode(java.lang.CharSequence, int, 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