Struct Placeholder

Definition

Namespace:
Tizen.NUI.Text
Assembly:
Tizen.NUI.dll

A struct to pass data of Placeholder PropertyMap.

C#
Copy
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 Source

Color

The color of the placeholder text.

Declaration
C#
Copy
public Color Color { get; set; }
Property Value
Type Description
Color
View Source

Ellipsis

The ellipsis of the placeholder text (the default value is false).

Declaration
C#
Copy
public bool Ellipsis { get; set; }
Property Value
Type Description
Boolean
View Source

FontFamily

The FontFamily of the placeholder text.

Declaration
C#
Copy
public string FontFamily { get; set; }
Property Value
Type Description
String
View Source

FontStyle

The FontStyle of the placeholder text (if null, the text control FontStyle is used).

Declaration
C#
Copy
public FontStyle? FontStyle { get; set; }
Property Value
Type Description
Nullable<FontStyle>
View Source

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
C#
Copy
public float? PixelSize { get; set; }
Property Value
Type Description
Nullable<Single>
View Source

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
C#
Copy
public float? PointSize { get; set; }
Property Value
Type Description
Nullable<Single>
View Source

Text

The text to display when the TextField is empty and inactive.

Declaration
C#
Copy
public string Text { get; set; }
Property Value
Type Description
String
View Source

TextFocused

The text to display when the placeholder has focus.

Declaration
C#
Copy
public string TextFocused { get; set; }
Property Value
Type Description
String

Methods

View Source

Equals(Object)

Determines whether the specified object is equal to the current object.

Declaration
C#
Copy
public override bool Equals(object obj)
Parameters
Type Name Description
Object obj

The object to compare with the current object.

Returns
Type Description
Boolean

true if equal Placeholder, else false.

View Source

Equals(Placeholder)

Determines whether the specified object is equal to the current object.

Declaration
C#
Copy
public bool Equals(Placeholder other)
Parameters
Type Name Description
Placeholder other

The Placeholder to compare with the current Placeholder.

Returns
Type Description
Boolean

true if equal Placeholder, else false.

View Source

GetHashCode()

Gets the hash code of this Placeholder.

Declaration
C#
Copy
public override int GetHashCode()
Returns
Type Description
Int32

The hash code.

Operators

View Source

Equality(Placeholder, Placeholder)

The == operator.

Declaration
C#
Copy
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
Boolean

true if Placeholders are equal

View Source

Inequality(Placeholder, Placeholder)

The != operator.

Declaration
C#
Copy
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
Boolean

true if Placeholders are not equal

Implements

IEquatable<>

Extension Methods