Ask Learn
Preview
Ask Learn is an AI assistant that can answer questions, clarify concepts, and define terms using trusted Microsoft documentation.
Please sign in to use Ask Learn.
Sign inThis browser is no longer supported.
Upgrade to Microsoft Edge to take advantage of the latest features, security updates, and technical support.
Note
Access to this page requires authorization. You can try signing in or changing directories.
Access to this page requires authorization. You can try changing directories.
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.
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. |
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
The text that should be checked for caps modes.
Location in the text at which to check.
The modes to be checked: may be any combination of
#CAP_MODE_CHARACTERS
, #CAP_MODE_WORDS
, and
#CAP_MODE_SENTENCES
.
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
.
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.
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
The text that should be checked for caps modes.
Location in the text at which to check.
The modes to be checked: may be any combination of
#CAP_MODE_CHARACTERS
, #CAP_MODE_WORDS
, and
#CAP_MODE_SENTENCES
.
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
.
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.
Ask Learn is an AI assistant that can answer questions, clarify concepts, and define terms using trusted Microsoft documentation.
Please sign in to use Ask Learn.
Sign in