Struct Placeholder
Definition
- Assembly:
- Tizen.NUI.dll
A struct to pass data of Placeholder PropertyMap.
public struct Placeholder : IEquatable<Placeholder>
- Implements
-
IEquatable<><Placeholder>
Remarks
The Placeholder struct is used as an argument to SetPlaceholder and GetPlaceholder methods.
See SetPlaceholder(Placeholder), SetPlaceholder(Placeholder), SetPlaceholder(Placeholder) and SetPlaceholder(Placeholder).
Properties
View SourceColor
The color of the placeholder text.
Declaration
public Color Color { readonly get; set; }
Property Value
| Type | Description |
|---|---|
| Color |
Remarks
The Placeholder struct is used as an argument to SetPlaceholder and GetPlaceholder methods.
See SetPlaceholder(Placeholder), SetPlaceholder(Placeholder), SetPlaceholder(Placeholder) and SetPlaceholder(Placeholder).
Ellipsis
The ellipsis of the placeholder text (the default value is false).
Declaration
public bool Ellipsis { readonly get; set; }
Property Value
| Type | Description |
|---|---|
| bool |
Remarks
The Placeholder struct is used as an argument to SetPlaceholder and GetPlaceholder methods.
See SetPlaceholder(Placeholder), SetPlaceholder(Placeholder), SetPlaceholder(Placeholder) and SetPlaceholder(Placeholder).
FontFamily
The FontFamily of the placeholder text.
Declaration
public string FontFamily { readonly get; set; }
Property Value
| Type | Description |
|---|---|
| string |
Remarks
The Placeholder struct is used as an argument to SetPlaceholder and GetPlaceholder methods.
See SetPlaceholder(Placeholder), SetPlaceholder(Placeholder), SetPlaceholder(Placeholder) and SetPlaceholder(Placeholder).
FontStyle
The FontStyle of the placeholder text (if null, the text control FontStyle is used).
Declaration
public FontStyle? FontStyle { readonly get; set; }
Property Value
| Type | Description |
|---|---|
| FontStyle? |
Remarks
The Placeholder struct is used as an argument to SetPlaceholder and GetPlaceholder methods.
See SetPlaceholder(Placeholder), SetPlaceholder(Placeholder), SetPlaceholder(Placeholder) and SetPlaceholder(Placeholder).
PixelSize
The PiexSize of the placeholder text.
Not required if PointSize provided.
If both provided or neither provided then the text control point size is used.
Declaration
public float? PixelSize { readonly get; set; }
Property Value
| Type | Description |
|---|---|
| float? |
Remarks
The Placeholder struct is used as an argument to SetPlaceholder and GetPlaceholder methods.
See SetPlaceholder(Placeholder), SetPlaceholder(Placeholder), SetPlaceholder(Placeholder) and SetPlaceholder(Placeholder).
PointSize
The PointSize of the placeholder text.
Not required if PixelSize provided.
If both provided or neither provided then the text control point size is used.
Declaration
public float? PointSize { readonly get; set; }
Property Value
| Type | Description |
|---|---|
| float? |
Remarks
The Placeholder struct is used as an argument to SetPlaceholder and GetPlaceholder methods.
See SetPlaceholder(Placeholder), SetPlaceholder(Placeholder), SetPlaceholder(Placeholder) and SetPlaceholder(Placeholder).
Text
The text to display when the TextField is empty and inactive.
Declaration
public string Text { readonly get; set; }
Property Value
| Type | Description |
|---|---|
| string |
Remarks
The Placeholder struct is used as an argument to SetPlaceholder and GetPlaceholder methods.
See SetPlaceholder(Placeholder), SetPlaceholder(Placeholder), SetPlaceholder(Placeholder) and SetPlaceholder(Placeholder).
TextFocused
The text to display when the placeholder has focus.
Declaration
public string TextFocused { readonly get; set; }
Property Value
| Type | Description |
|---|---|
| string |
Remarks
The Placeholder struct is used as an argument to SetPlaceholder and GetPlaceholder methods.
See SetPlaceholder(Placeholder), SetPlaceholder(Placeholder), SetPlaceholder(Placeholder) and SetPlaceholder(Placeholder).
Methods
View SourceEquals(object)
Determines whether the specified object is equal to the current object.
Declaration
public override bool Equals(object obj)
Parameters
| Type | Name | Description |
|---|---|---|
| object | obj | The object to compare with the current object. |
Returns
| Type | Description |
|---|---|
| bool | true if equal Placeholder, else false. |
Remarks
The Placeholder struct is used as an argument to SetPlaceholder and GetPlaceholder methods.
See SetPlaceholder(Placeholder), SetPlaceholder(Placeholder), SetPlaceholder(Placeholder) and SetPlaceholder(Placeholder).
Equals(Placeholder)
Determines whether the specified object is equal to the current object.
Declaration
public bool Equals(Placeholder other)
Parameters
| Type | Name | Description |
|---|---|---|
| Placeholder | other | The Placeholder to compare with the current Placeholder. |
Returns
| Type | Description |
|---|---|
| bool | true if equal Placeholder, else false. |
Remarks
The Placeholder struct is used as an argument to SetPlaceholder and GetPlaceholder methods.
See SetPlaceholder(Placeholder), SetPlaceholder(Placeholder), SetPlaceholder(Placeholder) and SetPlaceholder(Placeholder).
GetHashCode()
Gets the hash code of this Placeholder.
Declaration
public override int GetHashCode()
Returns
| Type | Description |
|---|---|
| int | The hash code. |
Remarks
The Placeholder struct is used as an argument to SetPlaceholder and GetPlaceholder methods.
See SetPlaceholder(Placeholder), SetPlaceholder(Placeholder), SetPlaceholder(Placeholder) and SetPlaceholder(Placeholder).
Operators
View Sourceoperator ==(Placeholder, Placeholder)
The == operator.
Declaration
public static bool operator ==(Placeholder lhsPlaceholder, Placeholder rhsPlaceholder)
Parameters
| Type | Name | Description |
|---|---|---|
| Placeholder | lhsPlaceholder | Placeholder to compare |
| Placeholder | rhsPlaceholder | Placeholder to be compared |
Returns
| Type | Description |
|---|---|
| bool | true if Placeholders are equal |
Remarks
The Placeholder struct is used as an argument to SetPlaceholder and GetPlaceholder methods.
See SetPlaceholder(Placeholder), SetPlaceholder(Placeholder), SetPlaceholder(Placeholder) and SetPlaceholder(Placeholder).
operator !=(Placeholder, Placeholder)
The != operator.
Declaration
public static bool operator !=(Placeholder lhsPlaceholder, Placeholder rhsPlaceholder)
Parameters
| Type | Name | Description |
|---|---|---|
| Placeholder | lhsPlaceholder | Placeholder to compare |
| Placeholder | rhsPlaceholder | Placeholder to be compared |
Returns
| Type | Description |
|---|---|
| bool | true if Placeholders are not equal |
Remarks
The Placeholder struct is used as an argument to SetPlaceholder and GetPlaceholder methods.
See SetPlaceholder(Placeholder), SetPlaceholder(Placeholder), SetPlaceholder(Placeholder) and SetPlaceholder(Placeholder).