Struct TextFit

Definition

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

A struct to pass data of TextFit PropertyMap.

C#
Copy
public struct TextFit : IEquatable<TextFit>
Implements
IEquatable<TextFit>
Remarks

The TextFit struct is used as an argument to SetTextFit and GetTextFit methods.
See SetTextFit(TextFit) and GetTextFit().

Properties

View Source

Enable

True to enable the text fit or false to disable (the default value is false).

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

FontSize

Font Size for text fit

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

FontSizeType

The size type of font, PointSize or PixelSize (the default value is PointSize).

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

MaxSize

Maximum Size for text fit (if null, the default value is 100.0f).

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

MinSize

Minimum Size for text fit (if null, the default value is 10.0f).

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

StepSize

Step Size for font increase (if null, the default value is 1.0f).

Declaration
C#
Copy
public float? StepSize { get; set; }
Property Value
Type Description
Nullable<Single>

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 TextFit, else false.

View Source

Equals(TextFit)

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

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

The TextFit to compare with the current TextFit.

Returns
Type Description
Boolean

true if equal TextFit, else false.

View Source

GetHashCode()

Gets the hash code of this TextFit.

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

The hash code.

Operators

View Source

Equality(TextFit, TextFit)

The == operator.

Declaration
C#
Copy
public static bool operator ==(TextFit lhsTextFit, TextFit rhsTextFit)
Parameters
Type Name Description
TextFit lhsTextFit

TextFit to compare

TextFit rhsTextFit

TextFit to be compared

Returns
Type Description
Boolean

true if TextFits are equal

View Source

Inequality(TextFit, TextFit)

The != operator.

Declaration
C#
Copy
public static bool operator !=(TextFit lhsTextFit, TextFit rhsTextFit)
Parameters
Type Name Description
TextFit lhsTextFit

TextFit to compare

TextFit rhsTextFit

TextFit to be compared

Returns
Type Description
Boolean

true if TextFits are not equal

Implements

IEquatable<>

Extension Methods