Class SingleLineTextInput
Inheritance
System.Object
SingleLineTextInput
Implements
System.ComponentModel.INotifyPropertyChanged
Assembly: SensusAndroid.dll
Syntax
public class SingleLineTextInput : Input, INotifyPropertyChanged, IVariableDefiningInput
Constructors
SingleLineTextInput()
Declaration
public SingleLineTextInput()
SingleLineTextInput(String, String, Keyboard, Boolean)
Declaration
public SingleLineTextInput(string labelText, string name, Keyboard keyboard, bool masked = false)
Parameters
Type |
Name |
Description |
System.String |
labelText |
|
System.String |
name |
|
Xamarin.Forms.Keyboard |
keyboard |
|
System.Boolean |
masked |
|
SingleLineTextInput(String, Keyboard, Boolean)
Declaration
public SingleLineTextInput(string labelText, Keyboard keyboard, bool masked = false)
Parameters
Type |
Name |
Description |
System.String |
labelText |
|
Xamarin.Forms.Keyboard |
keyboard |
|
System.Boolean |
masked |
|
Properties
DefaultName
Declaration
public override string DefaultName { get; }
Property Value
Type |
Description |
System.String |
|
Overrides
DefinedVariable
The name of the variable in VariableValueUiProperty that this input should
define the value for. For example, if you wanted this input to supply the value for a variable
named study-name
, then set this field to study-name
and the user's selection will be used as
the value for this variable.
Declaration
[EntryStringUiProperty("Define Variable:", true, 2, false)]
public string DefinedVariable { get; set; }
Property Value
Type |
Description |
System.String |
The defined variable.
|
Enabled
Declaration
public override bool Enabled { get; set; }
Property Value
Type |
Description |
System.Boolean |
|
Overrides
Masked
Whether or not to mask the entered text with asterisks (e.g., for passwords or other sensitive information).
Declaration
[OnOffUiProperty(null, true, 1)]
public bool Masked { get; set; }
Property Value
Type |
Description |
System.Boolean |
true to mask; otherwise, false .
|
Value
Declaration
public override object Value { get; }
Property Value
Type |
Description |
System.Object |
|
Overrides
Methods
GetView(Int32)
Declaration
public override View GetView(int index)
Parameters
Type |
Name |
Description |
System.Int32 |
index |
|
Returns
Type |
Description |
Xamarin.Forms.View |
|
Overrides
Implements
System.ComponentModel.INotifyPropertyChanged