Language

ConstrainedFieldPosition.SetState(_Format+Field, Object, Int32, Int32) Method

Definition

Sets new values for the primary public getters.

[Android.Runtime.Register("setState", "(Ljava/text/Format$Field;Ljava/lang/Object;II)V", "GetSetState_Ljava_text_Format_Field_Ljava_lang_Object_IIHandler", ApiSince=31)]
public virtual void SetState(Java.Text._Format.Field? field, Java.Lang.Object? value, int start, int limit);
[<Android.Runtime.Register("setState", "(Ljava/text/Format$Field;Ljava/lang/Object;II)V", "GetSetState_Ljava_text_Format_Field_Ljava_lang_Object_IIHandler", ApiSince=31)>]
abstract member SetState : Java.Text._Format.Field * Java.Lang.Object * int * int -> unit
override this.SetState : Java.Text._Format.Field * Java.Lang.Object * int * int -> unit

Parameters

field
_Format.Field

The new field.

value
Object

The new field value. Should be null if there is no value.

start
Int32

The new inclusive start index.

limit
Int32

The new exclusive end index.

Attributes

Remarks

Sets new values for the primary public getters. Intended to be used by FormattedValue implementations. It is up to the implementation to ensure that the user-requested constraints are satisfied. This method does not check!

Android reference for android.icu.text.ConstrainedFieldPosition.setState.

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