Struct TextFit
Definition
- Assembly:
- Tizen.NUI.dll
A struct to pass data of TextFit PropertyMap.
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 SourceEnable
True to enable the text fit or false to disable (the default value is false).
Declaration
public bool Enable { readonly get; set; }
Property Value
Type | Description |
---|---|
bool |
Remarks
The TextFit struct is used as an argument to SetTextFit and GetTextFit methods.
See SetTextFit(TextFit) and GetTextFit().
FontSize
Font Size for text fit
Declaration
public float? FontSize { readonly get; set; }
Property Value
Type | Description |
---|---|
float? |
Remarks
The TextFit struct is used as an argument to SetTextFit and GetTextFit methods.
See SetTextFit(TextFit) and GetTextFit().
FontSizeType
The size type of font, PointSize or PixelSize (the default value is PointSize).
Declaration
public FontSizeType FontSizeType { readonly get; set; }
Property Value
Type | Description |
---|---|
FontSizeType |
Remarks
The TextFit struct is used as an argument to SetTextFit and GetTextFit methods.
See SetTextFit(TextFit) and GetTextFit().
MaxSize
Maximum Size for text fit (if null, the default value is 100.0f).
Declaration
public float? MaxSize { readonly get; set; }
Property Value
Type | Description |
---|---|
float? |
Remarks
The TextFit struct is used as an argument to SetTextFit and GetTextFit methods.
See SetTextFit(TextFit) and GetTextFit().
MinSize
Minimum Size for text fit (if null, the default value is 10.0f).
Declaration
public float? MinSize { readonly get; set; }
Property Value
Type | Description |
---|---|
float? |
Remarks
The TextFit struct is used as an argument to SetTextFit and GetTextFit methods.
See SetTextFit(TextFit) and GetTextFit().
StepSize
Step Size for font increase (if null, the default value is 1.0f).
Declaration
public float? StepSize { readonly get; set; }
Property Value
Type | Description |
---|---|
float? |
Remarks
The TextFit struct is used as an argument to SetTextFit and GetTextFit methods.
See SetTextFit(TextFit) and GetTextFit().
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 TextFit, else false. |
Remarks
The TextFit struct is used as an argument to SetTextFit and GetTextFit methods.
See SetTextFit(TextFit) and GetTextFit().
Equals(TextFit)
Determines whether the specified object is equal to the current object.
Declaration
public bool Equals(TextFit other)
Parameters
Type | Name | Description |
---|---|---|
TextFit | other | The TextFit to compare with the current TextFit. |
Returns
Type | Description |
---|---|
bool | true if equal TextFit, else false. |
Remarks
The TextFit struct is used as an argument to SetTextFit and GetTextFit methods.
See SetTextFit(TextFit) and GetTextFit().
GetHashCode()
Gets the hash code of this TextFit.
Declaration
public override int GetHashCode()
Returns
Type | Description |
---|---|
int | The hash code. |
Remarks
The TextFit struct is used as an argument to SetTextFit and GetTextFit methods.
See SetTextFit(TextFit) and GetTextFit().
Operators
View Sourceoperator ==(TextFit, TextFit)
The == operator.
Declaration
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 |
---|---|
bool | true if TextFits are equal |
Remarks
The TextFit struct is used as an argument to SetTextFit and GetTextFit methods.
See SetTextFit(TextFit) and GetTextFit().
operator !=(TextFit, TextFit)
The != operator.
Declaration
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 |
---|---|
bool | true if TextFits are not equal |
Remarks
The TextFit struct is used as an argument to SetTextFit and GetTextFit methods.
See SetTextFit(TextFit) and GetTextFit().