RangeTemplate Constructors
Definition
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.
Overloads
RangeTemplate(String, Single, Single, Single, Single, ICharSequence) |
Construct a new |
RangeTemplate(String, Single, Single, Single, Single, String) |
RangeTemplate(String, Single, Single, Single, Single, ICharSequence)
Construct a new RangeTemplate
.
[Android.Runtime.Register(".ctor", "(Ljava/lang/String;FFFFLjava/lang/CharSequence;)V", "", ApiSince=30)]
public RangeTemplate (string templateId, float minValue, float maxValue, float currentValue, float stepValue, Java.Lang.ICharSequence? formatString);
[<Android.Runtime.Register(".ctor", "(Ljava/lang/String;FFFFLjava/lang/CharSequence;)V", "", ApiSince=30)>]
new Android.Service.Controls.Templates.RangeTemplate : string * single * single * single * single * Java.Lang.ICharSequence -> Android.Service.Controls.Templates.RangeTemplate
Parameters
- templateId
- String
the identifier for this template object
- minValue
- Single
minimum value for the input
- maxValue
- Single
maximum value for the input
- currentValue
- Single
the current value of the Control
containing this object.
- stepValue
- Single
minimum value of increments/decrements when interacting with this control.
- formatString
- ICharSequence
a formatting string as per String#format
used to display the
currentValue
. If null
is passed, the "%.1f" is used.
- Attributes
Remarks
Construct a new RangeTemplate
.
The range must be valid, meaning: <ul> <li> minValue
<maxValue
<li> minValue
<currentValue
<li> currentValue
<maxValue
<li> 0 <stepValue
</ul>
The current value of the Control will be formatted accordingly.
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
RangeTemplate(String, Single, Single, Single, Single, String)
[Android.Runtime.Register(".ctor", "(Ljava/lang/String;FFFFLjava/lang/CharSequence;)V", "", ApiSince=30)]
public RangeTemplate (string templateId, float minValue, float maxValue, float currentValue, float stepValue, string? formatString);
[<Android.Runtime.Register(".ctor", "(Ljava/lang/String;FFFFLjava/lang/CharSequence;)V", "", ApiSince=30)>]
new Android.Service.Controls.Templates.RangeTemplate : string * single * single * single * single * string -> Android.Service.Controls.Templates.RangeTemplate
Parameters
- templateId
- String
- minValue
- Single
- maxValue
- Single
- currentValue
- Single
- stepValue
- Single
- formatString
- String
- Attributes