Struct TextFit
Definition
- Namespace:
- Tizen.NUI.Text
- Assembly:
- Tizen.NUI.dll
A struct to pass data of TextFit PropertyMap.
C#Copypublic 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
Declaration
C#Copypublic bool Enable { get; set; }
Property Value
Type | Description |
---|---|
Boolean |
Declaration
C#Copypublic 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#Copypublic FontSizeType FontSizeType { get; set; }
Property Value
Type | Description |
---|---|
FontSizeType |
Declaration
C#Copypublic float? MaxSize { get; set; }
Property Value
Type | Description |
---|---|
Nullable<Single> |
Declaration
C#Copypublic float? MinSize { get; set; }
Property Value
Type | Description |
---|---|
Nullable<Single> |
Declaration
C#Copypublic float? StepSize { get; set; }
Property Value
Type | Description |
---|---|
Nullable<Single> |
Methods
Declaration
C#Copypublic 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. |
Declaration
C#Copypublic 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. |
Declaration
C#Copypublic override int GetHashCode()
Returns
Type | Description |
---|---|
Int32 | The hash code. |
Operators
Declaration
C#Copypublic 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 |
Declaration
C#Copypublic 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<>