Struct FontStyle
Definition
- Assembly:
- Tizen.NUI.dll
A struct to pass data of FontStyle PropertyMap.
public struct FontStyle : IEquatable<FontStyle>
- Implements
-
IEquatable<><FontStyle>
Remarks
The FontStyle struct is used as an argument to SetFontStyle and GetFontStyle methods.
See SetFontStyle(FontStyle), GetFontStyle(), SetFontStyle(FontStyle), GetFontStyle(), SetFontStyle(FontStyle) and GetFontStyle().
Properties
View SourceSlant
The Slant defines whether to use italics.
Declaration
public FontSlantType Slant { readonly get; set; }
Property Value
Type | Description |
---|---|
FontSlantType |
Remarks
The FontStyle struct is used as an argument to SetFontStyle and GetFontStyle methods.
See SetFontStyle(FontStyle), GetFontStyle(), SetFontStyle(FontStyle), GetFontStyle(), SetFontStyle(FontStyle) and GetFontStyle().
Weight
The Weight defines the thickness or darkness of the glyphs.
Declaration
public FontWeightType Weight { readonly get; set; }
Property Value
Type | Description |
---|---|
FontWeightType |
Remarks
The FontStyle struct is used as an argument to SetFontStyle and GetFontStyle methods.
See SetFontStyle(FontStyle), GetFontStyle(), SetFontStyle(FontStyle), GetFontStyle(), SetFontStyle(FontStyle) and GetFontStyle().
Width
The Width defines occupied by each glyph.
Declaration
public FontWidthType Width { readonly get; set; }
Property Value
Type | Description |
---|---|
FontWidthType |
Remarks
The FontStyle struct is used as an argument to SetFontStyle and GetFontStyle methods.
See SetFontStyle(FontStyle), GetFontStyle(), SetFontStyle(FontStyle), GetFontStyle(), SetFontStyle(FontStyle) and GetFontStyle().
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 FontStyle, else false. |
Remarks
The FontStyle struct is used as an argument to SetFontStyle and GetFontStyle methods.
See SetFontStyle(FontStyle), GetFontStyle(), SetFontStyle(FontStyle), GetFontStyle(), SetFontStyle(FontStyle) and GetFontStyle().
Equals(FontStyle)
Determines whether the specified object is equal to the current object.
Declaration
public bool Equals(FontStyle other)
Parameters
Type | Name | Description |
---|---|---|
FontStyle | other | The FontStyle to compare with the current FontStyle. |
Returns
Type | Description |
---|---|
bool | true if equal FontStyle, else false. |
Remarks
The FontStyle struct is used as an argument to SetFontStyle and GetFontStyle methods.
See SetFontStyle(FontStyle), GetFontStyle(), SetFontStyle(FontStyle), GetFontStyle(), SetFontStyle(FontStyle) and GetFontStyle().
GetHashCode()
Gets the hash code of this FontStyle.
Declaration
public override int GetHashCode()
Returns
Type | Description |
---|---|
int | The hash code. |
Remarks
The FontStyle struct is used as an argument to SetFontStyle and GetFontStyle methods.
See SetFontStyle(FontStyle), GetFontStyle(), SetFontStyle(FontStyle), GetFontStyle(), SetFontStyle(FontStyle) and GetFontStyle().
Operators
View Sourceoperator ==(FontStyle, FontStyle)
The == operator.
Declaration
public static bool operator ==(FontStyle lhsFontStyle, FontStyle rhsFontStyle)
Parameters
Type | Name | Description |
---|---|---|
FontStyle | lhsFontStyle | FontStyle to compare |
FontStyle | rhsFontStyle | FontStyle to be compared |
Returns
Type | Description |
---|---|
bool | true if FontStyles are equal |
Remarks
The FontStyle struct is used as an argument to SetFontStyle and GetFontStyle methods.
See SetFontStyle(FontStyle), GetFontStyle(), SetFontStyle(FontStyle), GetFontStyle(), SetFontStyle(FontStyle) and GetFontStyle().
operator !=(FontStyle, FontStyle)
The != operator.
Declaration
public static bool operator !=(FontStyle lhsFontStyle, FontStyle rhsFontStyle)
Parameters
Type | Name | Description |
---|---|---|
FontStyle | lhsFontStyle | FontStyle to compare |
FontStyle | rhsFontStyle | FontStyle to be compared |
Returns
Type | Description |
---|---|
bool | true if FontStyles are not equal |
Remarks
The FontStyle struct is used as an argument to SetFontStyle and GetFontStyle methods.
See SetFontStyle(FontStyle), GetFontStyle(), SetFontStyle(FontStyle), GetFontStyle(), SetFontStyle(FontStyle) and GetFontStyle().