Class TextFieldExtensions
Definition
- Assembly:
- Tizen.NUI.Extension.dll
Markup extensions for View.
public static class TextFieldExtensions
- Inheritance
-
objectTextFieldExtensions
Methods
View SourceFontFamily<T>(T, string)
The requested font family to use.
Declaration
public static T FontFamily<T>(this T view, string family) where T : TextField
Parameters
| Type | Name | Description |
|---|---|---|
| T | view | The extension target. |
| string | family | The font family value. |
Returns
| Type | Description |
|---|---|
| T | The view itself. |
Type Parameters
| Name | Description |
|---|---|
| T | The type of the view. |
FontSize<T>(T, float)
The size of font in pixels.
Declaration
public static T FontSize<T>(this T view, float size) where T : TextField
Parameters
| Type | Name | Description |
|---|---|---|
| T | view | The extension target. |
| float | size | The size value. |
Returns
| Type | Description |
|---|---|
| T | The view itself. |
Type Parameters
| Name | Description |
|---|---|
| T | The type of the view. |
FontStyle<T>(T, FontWidthType, FontWeightType, FontSlantType)
Set FontStyle to TextField.
Declaration
public static T FontStyle<T>(this T view, FontWidthType width, FontWeightType weight, FontSlantType slant) where T : TextField
Parameters
| Type | Name | Description |
|---|---|---|
| T | view | The extension target. |
| FontWidthType | width | The font width value. |
| FontWeightType | weight | The font weight value. |
| FontSlantType | slant | The font slant value. |
Returns
| Type | Description |
|---|---|
| T | The view itself. |
Type Parameters
| Name | Description |
|---|---|
| T | The type of the view. |
InputColor(TextField)
Gets the color for the input.
Declaration
public static UIColor InputColor(this TextField view)
Parameters
| Type | Name | Description |
|---|---|---|
| TextField | view | The extension target. |
Returns
| Type | Description |
|---|---|
| UIColor | The input color value. |
PlaceholderText<T>(T, string)
The text to display when the TextField is empty and inactive.
Declaration
public static T PlaceholderText<T>(this T view, string text) where T : TextField
Parameters
| Type | Name | Description |
|---|---|---|
| T | view | The extension target. |
| string | text | The text value. |
Returns
| Type | Description |
|---|---|
| T | The view itself. |
Type Parameters
| Name | Description |
|---|---|
| T | The type of the view. |
PlaceholderTextColor(TextField)
Gets the color for the placeholder text of the View.
Declaration
public static UIColor PlaceholderTextColor(this TextField view)
Parameters
| Type | Name | Description |
|---|---|---|
| TextField | view | The extension target. |
Returns
| Type | Description |
|---|---|
| UIColor | The placeholder text color value. |
PlaceholderTextColor<T>(T, float, float, float, float)
The color of the placeholder text.
Declaration
public static T PlaceholderTextColor<T>(this T view, float r, float g, float b, float a = 1) where T : TextField
Parameters
| Type | Name | Description |
|---|---|---|
| T | view | The extension target. |
| float | r | The red component. |
| float | g | The green component. |
| float | b | The blue component. |
| float | a | The alpha component. |
Returns
| Type | Description |
|---|---|
| T | The view itself. |
Type Parameters
| Name | Description |
|---|---|
| T | The type of the view. |
PlaceholderTextColor<T>(T, uint, float)
The color of the placeholder text.
Declaration
public static T PlaceholderTextColor<T>(this T view, uint value, float alpha) where T : TextField
Parameters
| Type | Name | Description |
|---|---|---|
| T | view | The extension target. |
| uint | value | The value of 0xRRGGBB format. |
| float | alpha | The alpha value between 0.0 and 1.0. |
Returns
| Type | Description |
|---|---|
| T | The view itself. |
Type Parameters
| Name | Description |
|---|---|
| T | The type of the view. |
Examples
textField.PlaceholderTextColor(0xFF0000, 1f); // Solid red
textField.PlaceholderTextColor(0x00FF00, 0.5f) // Half transparent green
View Source
PlaceholderTextColor<T>(T, UIColor)
The color of the placeholder text.
Declaration
public static T PlaceholderTextColor<T>(this T view, UIColor color) where T : TextField
Parameters
| Type | Name | Description |
|---|---|---|
| T | view | The extension target. |
| UIColor | color | The color value. |
Returns
| Type | Description |
|---|---|
| T | The view itself. |
Type Parameters
| Name | Description |
|---|---|
| T | The type of the view. |
PlaceholderTextFocused<T>(T, string)
The text to display when the TextField is empty with input focus.
Declaration
public static T PlaceholderTextFocused<T>(this T view, string text) where T : TextField
Parameters
| Type | Name | Description |
|---|---|---|
| T | view | The extension target. |
| string | text | The text value. |
Returns
| Type | Description |
|---|---|
| T | The view itself. |
Type Parameters
| Name | Description |
|---|---|
| T | The type of the view. |
PrimaryCursorColor(TextField)
Gets the color for the primary cursor.
Declaration
public static UIColor PrimaryCursorColor(this TextField view)
Parameters
| Type | Name | Description |
|---|---|---|
| TextField | view | The extension target. |
Returns
| Type | Description |
|---|---|
| UIColor | The primary cursor color value. |
PrimaryCursorColor<T>(T, float, float, float, float)
The color to apply to the primary cursor.
Declaration
public static T PrimaryCursorColor<T>(this T view, float r, float g, float b, float a = 1) where T : TextField
Parameters
| Type | Name | Description |
|---|---|---|
| T | view | The extension target. |
| float | r | The red component. |
| float | g | The green component. |
| float | b | The blue component. |
| float | a | The alpha component. |
Returns
| Type | Description |
|---|---|
| T | The view itself. |
Type Parameters
| Name | Description |
|---|---|
| T | The type of the view. |
PrimaryCursorColor<T>(T, uint, float)
The color to apply to the primary cursor.
Declaration
public static T PrimaryCursorColor<T>(this T view, uint value, float alpha) where T : TextField
Parameters
| Type | Name | Description |
|---|---|---|
| T | view | The extension target. |
| uint | value | The value of 0xRRGGBB format. |
| float | alpha | The alpha value between 0.0 and 1.0. |
Returns
| Type | Description |
|---|---|
| T | The view itself. |
Type Parameters
| Name | Description |
|---|---|
| T | The type of the view. |
Examples
new UIColor(0xFF0000, 1f); // Solid red
new UIColor(0x00FF00, 0.5f) // Half transparent green
View Source
PrimaryCursorColor<T>(T, UIColor)
The color to apply to the primary cursor.
Declaration
public static T PrimaryCursorColor<T>(this T view, UIColor color) where T : TextField
Parameters
| Type | Name | Description |
|---|---|---|
| T | view | The extension target. |
| UIColor | color | The color value. |
Returns
| Type | Description |
|---|---|
| T | The view itself. |
Type Parameters
| Name | Description |
|---|---|
| T | The type of the view. |
SecondaryCursorColor(TextField)
Gets the color for the secondary cursor.
Declaration
public static UIColor SecondaryCursorColor(this TextField view)
Parameters
| Type | Name | Description |
|---|---|---|
| TextField | view | The extension target. |
Returns
| Type | Description |
|---|---|
| UIColor | The secondary cursor color value. |
SecondaryCursorColor<T>(T, float, float, float, float)
The color to apply to the secondary cursor.
Declaration
public static T SecondaryCursorColor<T>(this T view, float r, float g, float b, float a = 1) where T : TextField
Parameters
| Type | Name | Description |
|---|---|---|
| T | view | The extension target. |
| float | r | The red component. |
| float | g | The green component. |
| float | b | The blue component. |
| float | a | The alpha component. |
Returns
| Type | Description |
|---|---|
| T | The view itself. |
Type Parameters
| Name | Description |
|---|---|
| T | The type of the view. |
SecondaryCursorColor<T>(T, uint, float)
The color to apply to the secondary cursor.
Declaration
public static T SecondaryCursorColor<T>(this T view, uint value, float alpha) where T : TextField
Parameters
| Type | Name | Description |
|---|---|---|
| T | view | The extension target. |
| uint | value | The value of 0xRRGGBB format. |
| float | alpha | The alpha value between 0.0 and 1.0. |
Returns
| Type | Description |
|---|---|
| T | The view itself. |
Type Parameters
| Name | Description |
|---|---|
| T | The type of the view. |
Examples
new UIColor(0xFF0000, 1f); // Solid red
new UIColor(0x00FF00, 0.5f) // Half transparent green
View Source
SecondaryCursorColor<T>(T, UIColor)
The color to apply to the secondary cursor.
Declaration
public static T SecondaryCursorColor<T>(this T view, UIColor color) where T : TextField
Parameters
| Type | Name | Description |
|---|---|---|
| T | view | The extension target. |
| UIColor | color | The color value. |
Returns
| Type | Description |
|---|---|
| T | The view itself. |
Type Parameters
| Name | Description |
|---|---|
| T | The type of the view. |
SelectionHighlightColor(TextField)
Gets the color for the selection highlight.
Declaration
public static UIColor SelectionHighlightColor(this TextField view)
Parameters
| Type | Name | Description |
|---|---|---|
| TextField | view | The extension target. |
Returns
| Type | Description |
|---|---|
| UIColor | The selection highlight color value. |
Text<T>(T, string)
The text to display in the UTF-8 format.
Declaration
public static T Text<T>(this T view, string text) where T : TextField
Parameters
| Type | Name | Description |
|---|---|---|
| T | view | The extension target. |
| string | text | The text value. |
Returns
| Type | Description |
|---|---|
| T | The view itself. |
Type Parameters
| Name | Description |
|---|---|
| T | The type of the view. |
TextAlignment<T>(T, HorizontalAlignment, VerticalAlignment)
The line vertical alignment.
Declaration
public static T TextAlignment<T>(this T view, HorizontalAlignment horizontal, VerticalAlignment vertical) where T : TextField
Parameters
| Type | Name | Description |
|---|---|---|
| T | view | The extension target. |
| HorizontalAlignment | horizontal | The horizontal value. |
| VerticalAlignment | vertical | The vertical value. |
Returns
| Type | Description |
|---|---|
| T | The view itself. |
Type Parameters
| Name | Description |
|---|---|
| T | The type of the view. |
TextColor(TextField)
Gets the color for the text of the View.
Declaration
public static UIColor TextColor(this TextField view)
Parameters
| Type | Name | Description |
|---|---|---|
| TextField | view | The extension target. |
Returns
| Type | Description |
|---|---|
| UIColor | The text color value. |
TextColor<T>(T, float, float, float, float)
The color of the text.
Declaration
public static T TextColor<T>(this T view, float r, float g, float b, float a = 1) where T : TextField
Parameters
| Type | Name | Description |
|---|---|---|
| T | view | The extension target. |
| float | r | The red component. |
| float | g | The green component. |
| float | b | The blue component. |
| float | a | The alpha component. |
Returns
| Type | Description |
|---|---|
| T | The view itself. |
Type Parameters
| Name | Description |
|---|---|
| T | The type of the view. |
TextColor<T>(T, uint, float)
The color of the text.
Declaration
public static T TextColor<T>(this T view, uint value, float alpha) where T : TextField
Parameters
| Type | Name | Description |
|---|---|---|
| T | view | The extension target. |
| uint | value | The value of 0xRRGGBB format. |
| float | alpha | The alpha value between 0.0 and 1.0. |
Returns
| Type | Description |
|---|---|
| T | The view itself. |
Type Parameters
| Name | Description |
|---|---|
| T | The type of the view. |
Examples
new UIColor(0xFF0000, 1f); // Solid red
new UIColor(0x00FF00, 0.5f) // Half transparent green
View Source
TextColor<T>(T, UIColor)
The color of the text.
Declaration
public static T TextColor<T>(this T view, UIColor color) where T : TextField
Parameters
| Type | Name | Description |
|---|---|---|
| T | view | The extension target. |
| UIColor | color | The color value. |
Returns
| Type | Description |
|---|---|
| T | The view itself. |
Type Parameters
| Name | Description |
|---|---|
| T | The type of the view. |
TranslatablePlaceholderText<T>(T, string)
The text can set the SID value.
Declaration
public static T TranslatablePlaceholderText<T>(this T view, string text) where T : TextField
Parameters
| Type | Name | Description |
|---|---|---|
| T | view | The extension target. |
| string | text | The text value. |
Returns
| Type | Description |
|---|---|
| T | The view itself. |
Type Parameters
| Name | Description |
|---|---|
| T | The type of the view. |
TranslatableText<T>(T, string)
The text can set the SID value.
Declaration
public static T TranslatableText<T>(this T view, string text) where T : TextField
Parameters
| Type | Name | Description |
|---|---|---|
| T | view | The extension target. |
| string | text | The text value. |
Returns
| Type | Description |
|---|---|
| T | The view itself. |
Type Parameters
| Name | Description |
|---|---|
| T | The type of the view. |