Class TextField
Definition
- Namespace:
- Tizen.NUI.BaseComponents
- Assembly:
- Tizen.NUI.dll
- API Level:
- 3
A control which provides a single line editable text field.
public class TextField : View, INotifyPropertyChanged, IDynamicResourceHandler, IElement, INameScope, IElementController, IDisposable, IResourcesProvider
- Inheritance
-
Tizen.NUI.Binding.BindableObjectTizen.NUI.Binding.ElementTextField
- Implements
Constructors
View SourceTextField()
Creates the TextField control.
Declaration
public TextField()
API Level: 3
Properties
View SourceCursorBlinkDuration
The CursorBlinkDuration property.
Declaration
public float CursorBlinkDuration { get; set; }
Property Value
Type | Description |
---|---|
Single |
API Level: 3
View SourceCursorBlinkInterval
The CursorBlinkInterval property.
Declaration
public float CursorBlinkInterval { get; set; }
Property Value
Type | Description |
---|---|
Single |
API Level: 3
View SourceCursorWidth
The CursorWidth property.
Declaration
public int CursorWidth { get; set; }
Property Value
Type | Description |
---|---|
Int32 |
API Level: 3
View SourceDecorationBoundingBox
The DecorationBoundingBox property.
Declaration
public Rectangle DecorationBoundingBox { get; set; }
Property Value
Type | Description |
---|---|
Rectangle |
Remarks
The property cascade chaining set is possible. For example, this (textField.DecorationBoundingBox.X = 0.1f;) is possible.
API Level: 3
View SourceEllipsis
The Ellipsis property.
Enable or disable the ellipsis.
Placeholder PropertyMap is used to add ellipsis to placeholder text.
Declaration
public bool Ellipsis { get; set; }
Property Value
Type | Description |
---|---|
Boolean |
API Level: 4
View SourceEmboss
The Emboss property.
Declaration
public string Emboss { get; set; }
Property Value
Type | Description |
---|---|
String |
API Level: 3
View SourceEnableCursorBlink
The EnableCursorBlink property.
Declaration
public bool EnableCursorBlink { get; set; }
Property Value
Type | Description |
---|---|
Boolean |
API Level: 3
View SourceEnableMarkup
The EnableMarkup property.
Declaration
public bool EnableMarkup { get; set; }
Property Value
Type | Description |
---|---|
Boolean |
API Level: 3
View SourceEnableSelection
The Enable selection property.
Declaration
public bool EnableSelection { get; set; }
Property Value
Type | Description |
---|---|
Boolean |
API Level: 3
View SourceExceedPolicy
The ExceedPolicy property.
Declaration
public int ExceedPolicy { get; set; }
Property Value
Type | Description |
---|---|
Int32 |
API Level: 3
View SourceFontFamily
The FontFamily property.
Declaration
public string FontFamily { get; set; }
Property Value
Type | Description |
---|---|
String |
API Level: 3
View SourceFontStyle
The FontStyle property.
Declaration
public PropertyMap FontStyle { get; set; }
Property Value
Type | Description |
---|---|
PropertyMap |
API Level: 3
View SourceGrabHandleImage
The GrabHandleImage property.
Declaration
public string GrabHandleImage { get; set; }
Property Value
Type | Description |
---|---|
String |
API Level: 3
View SourceGrabHandlePressedImage
The GrabHandlePressedImage property.
Declaration
public string GrabHandlePressedImage { get; set; }
Property Value
Type | Description |
---|---|
String |
API Level: 3
View SourceHiddenInputSettings
The HiddenInputSettings property.
Declaration
public PropertyMap HiddenInputSettings { get; set; }
Property Value
Type | Description |
---|---|
PropertyMap |
API Level: 3
View SourceHorizontalAlignment
The HorizontalAlignment property.
Declaration
public HorizontalAlignment HorizontalAlignment { get; set; }
Property Value
Type | Description |
---|---|
HorizontalAlignment |
API Level: 3
View SourceInputColor
The InputColor property.
Declaration
public Vector4 InputColor { get; set; }
Property Value
Type | Description |
---|---|
Vector4 |
Remarks
The property cascade chaining set is possible. For example, this (textField.InputColor.X = 0.1f;) is possible.
API Level: 3
View SourceInputEmboss
The InputEmboss property.
Declaration
public string InputEmboss { get; set; }
Property Value
Type | Description |
---|---|
String |
API Level: 3
View SourceInputFontFamily
The InputFontFamily property.
Declaration
public string InputFontFamily { get; set; }
Property Value
Type | Description |
---|---|
String |
API Level: 3
View SourceInputFontStyle
The InputFontStyle property.
Declaration
public PropertyMap InputFontStyle { get; set; }
Property Value
Type | Description |
---|---|
PropertyMap |
API Level: 3
View SourceInputMethodSettings
The InputMethodSettings property.
Declaration
public PropertyMap InputMethodSettings { get; set; }
Property Value
Type | Description |
---|---|
PropertyMap |
API Level: 3
View SourceInputOutline
The InputOutline property.
Declaration
public string InputOutline { get; set; }
Property Value
Type | Description |
---|---|
String |
API Level: 3
View SourceInputPointSize
The InputPointSize property.
Declaration
public float InputPointSize { get; set; }
Property Value
Type | Description |
---|---|
Single |
API Level: 3
View SourceInputShadow
The InputShadow property.
Declaration
public string InputShadow { get; set; }
Property Value
Type | Description |
---|---|
String |
API Level: 3
View SourceInputUnderline
The InputUnderline property.
Declaration
public string InputUnderline { get; set; }
Property Value
Type | Description |
---|---|
String |
API Level: 3
View SourceMatchSystemLanguageDirection
The text alignment to match the direction of the system language.
Declaration
public bool MatchSystemLanguageDirection { get; set; }
Property Value
Type | Description |
---|---|
Boolean |
API Level: 6
View SourceMaxLength
The MaxLength property.
Declaration
public int MaxLength { get; set; }
Property Value
Type | Description |
---|---|
Int32 |
API Level: 3
View SourceOutline
The Outline property.
Declaration
public PropertyMap Outline { get; set; }
Property Value
Type | Description |
---|---|
PropertyMap |
API Level: 3
View SourcePixelSize
The PixelSize property.
Declaration
public float PixelSize { get; set; }
Property Value
Type | Description |
---|---|
Single |
API Level: 3
View SourcePlaceholder
The Placeholder property. Gets or sets the placeholder: text, color, font family, font style, point size, and pixel size.
Declaration
public PropertyMap Placeholder { get; set; }
Property Value
Type | Description |
---|---|
PropertyMap |
Examples
The following example demonstrates how to set the Placeholder property.
PropertyMap propertyMap = new PropertyMap();
propertyMap.Add("text", new PropertyValue("Setting Placeholder Text"));
propertyMap.Add("textFocused", new PropertyValue("Setting Placeholder Text Focused"));
propertyMap.Add("color", new PropertyValue(Color.Red));
propertyMap.Add("fontFamily", new PropertyValue("Arial"));
propertyMap.Add("pointSize", new PropertyValue(12.0f));
PropertyMap fontStyleMap = new PropertyMap();
fontStyleMap.Add("weight", new PropertyValue("bold"));
fontStyleMap.Add("width", new PropertyValue("condensed"));
fontStyleMap.Add("slant", new PropertyValue("italic"));
propertyMap.Add("fontStyle", new PropertyValue(fontStyleMap));
TextField field = new TextField();
field.Placeholder = propertyMap;
API Level: 3
View SourcePlaceholderText
The PlaceholderText property.
Declaration
public string PlaceholderText { get; set; }
Property Value
Type | Description |
---|---|
String |
API Level: 3
View SourcePlaceholderTextColor
The PlaceholderTextColor property.
Declaration
public Vector4 PlaceholderTextColor { get; set; }
Property Value
Type | Description |
---|---|
Vector4 |
Remarks
The property cascade chaining set is possible. For example, this (textField.PlaceholderTextColor.X = 0.1f;) is possible.
API Level: 3
View SourcePlaceholderTextFocused
The PlaceholderTextFocused property.
Declaration
public string PlaceholderTextFocused { get; set; }
Property Value
Type | Description |
---|---|
String |
API Level: 3
View SourcePointSize
The PointSize property.
Declaration
public float PointSize { get; set; }
Property Value
Type | Description |
---|---|
Single |
API Level: 3
View SourcePrimaryCursorColor
The PrimaryCursorColor property.
Declaration
public Vector4 PrimaryCursorColor { get; set; }
Property Value
Type | Description |
---|---|
Vector4 |
Remarks
The property cascade chaining set is possible. For example, this (textField.PrimaryCursorColor.X = 0.1f;) is possible.
API Level: 3
View SourceScrollSpeed
The ScrollSpeed property.
Declaration
public float ScrollSpeed { get; set; }
Property Value
Type | Description |
---|---|
Single |
API Level: 3
View SourceScrollThreshold
The ScrollThreshold property.
Declaration
public float ScrollThreshold { get; set; }
Property Value
Type | Description |
---|---|
Single |
API Level: 3
View SourceSecondaryCursorColor
The SecondaryCursorColor property.
Declaration
public Vector4 SecondaryCursorColor { get; set; }
Property Value
Type | Description |
---|---|
Vector4 |
Remarks
The property cascade chaining set is possible. For example, this (textField.SecondaryCursorColor.X = 0.1f;) is possible.
API Level: 3
View SourceSelectionHandleImageLeft
The SelectionHandleImageLeft property.
Declaration
public PropertyMap SelectionHandleImageLeft { get; set; }
Property Value
Type | Description |
---|---|
PropertyMap |
API Level: 3
View SourceSelectionHandleImageRight
The SelectionHandleImageRight property.
Declaration
public PropertyMap SelectionHandleImageRight { get; set; }
Property Value
Type | Description |
---|---|
PropertyMap |
API Level: 3
View SourceSelectionHandleMarkerImageLeft
The SelectionHandleMarkerImageLeft property.
Declaration
public PropertyMap SelectionHandleMarkerImageLeft { get; set; }
Property Value
Type | Description |
---|---|
PropertyMap |
API Level: 3
View SourceSelectionHandleMarkerImageRight
The SelectionHandleMarkerImageRight property.
Declaration
public PropertyMap SelectionHandleMarkerImageRight { get; set; }
Property Value
Type | Description |
---|---|
PropertyMap |
API Level: 3
View SourceSelectionHandlePressedImageLeft
The SelectionHandlePressedImageLeft property.
Declaration
public PropertyMap SelectionHandlePressedImageLeft { get; set; }
Property Value
Type | Description |
---|---|
PropertyMap |
API Level: 3
View SourceSelectionHandlePressedImageRight
The SelectionHandlePressedImageRight property.
Declaration
public PropertyMap SelectionHandlePressedImageRight { get; set; }
Property Value
Type | Description |
---|---|
PropertyMap |
API Level: 3
View SourceSelectionHighlightColor
The SelectionHighlightColor property.
Declaration
public Vector4 SelectionHighlightColor { get; set; }
Property Value
Type | Description |
---|---|
Vector4 |
Remarks
The property cascade chaining set is possible. For example, this (textField.SelectionHighlightColor.X = 0.1f;) is possible.
API Level: 3
View SourceShadow
The Shadow property.
Declaration
public PropertyMap Shadow { get; set; }
Property Value
Type | Description |
---|---|
PropertyMap |
API Level: 3
View SourceShadowColor
The ShadowColor property.
Declaration
[Obsolete("Please do not use this ShadowColor(Deprecated). Please use Shadow instead.")]
public Vector4 ShadowColor { get; set; }
Property Value
Type | Description |
---|---|
Vector4 |
Remarks
Deprecated.(API Level 6) Use Shadow instead. The property cascade chaining set is possible. For example, this (textField.ShadowColor.X = 0.1f;) is possible.
API Level: 3
View SourceShadowOffset
The ShadowOffset property.
Declaration
[Obsolete("Please do not use this ShadowOffset(Deprecated). Please use Shadow instead.")]
public Vector2 ShadowOffset { get; set; }
Property Value
Type | Description |
---|---|
Vector2 |
Remarks
Deprecated.(API Level 6) Use Shadow instead. The property cascade chaining set is possible. For example, this (textField.ShadowOffset.X = 0.1f;) is possible.
API Level: 3
View SourceText
The Text property.
Declaration
public string Text { get; set; }
Property Value
Type | Description |
---|---|
String |
API Level: 3
View SourceTextColor
The TextColor property.
Declaration
public Color TextColor { get; set; }
Property Value
Type | Description |
---|---|
Color |
Remarks
The property cascade chaining set is possible. For example, this (textField.TextColor.X = 0.1f;) is possible.
API Level: 3
View SourceTranslatablePlaceholderText
The TranslatablePlaceholderText property.
The text can set the SID value.
Declaration
public string TranslatablePlaceholderText { get; set; }
Property Value
Type | Description |
---|---|
String |
Exceptions
Type | Condition |
---|---|
ArgumentNullException | ResourceManager about multilingual is null. |
API Level: 4
View SourceTranslatableText
The TranslatableText property.
The text can set the SID value.
Declaration
public string TranslatableText { get; set; }
Property Value
Type | Description |
---|---|
String |
Exceptions
Type | Condition |
---|---|
ArgumentNullException | ResourceManager about multilingual is null. |
API Level: 4
View SourceUnderline
The Underline property.
Declaration
public PropertyMap Underline { get; set; }
Property Value
Type | Description |
---|---|
PropertyMap |
API Level: 3
View SourceVerticalAlignment
The VerticalAlignment property.
Declaration
public VerticalAlignment VerticalAlignment { get; set; }
Property Value
Type | Description |
---|---|
VerticalAlignment |
API Level: 3
Methods
View SourceDispose(DisposeTypes)
Dispose.
Declaration
protected override void Dispose(DisposeTypes type)
Parameters
Type | Name | Description |
---|---|---|
DisposeTypes | type |
Overrides
API Level: 3
View SourceGetInputMethodContext()
Get the InputMethodContext instance.
Declaration
public InputMethodContext GetInputMethodContext()
Returns
Type | Description |
---|---|
InputMethodContext | The InputMethodContext instance. |
API Level: 5
Events
View SourceMaxLengthReached
The MaxLengthReached event.
Declaration
public event EventHandler<TextField.MaxLengthReachedEventArgs> MaxLengthReached
Event Type
Type | Description |
---|---|
EventHandler<TextField.MaxLengthReachedEventArgs> |
API Level: 3
View SourceTextChanged
The TextChanged event.
Declaration
public event EventHandler<TextField.TextChangedEventArgs> TextChanged
Event Type
Type | Description |
---|---|
EventHandler<TextField.TextChangedEventArgs> |