Struct FontStyle

Definition

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

A struct to pass data of FontStyle PropertyMap.

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

Slant

The Slant defines whether to use italics.

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

Weight

The Weight defines the thickness or darkness of the glyphs.

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

Width

The Width defines occupied by each glyph.

Declaration
C#
Copy
public FontWidthType Width { get; set; }
Property Value
Type Description
FontWidthType

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

View Source

Equals(FontStyle)

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

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

The FontStyle to compare with the current FontStyle.

Returns
Type Description
Boolean

true if equal FontStyle, else false.

View Source

GetHashCode()

Gets the hash code of this FontStyle.

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

The hash code.

Operators

View Source

Equality(FontStyle, FontStyle)

The == operator.

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

true if FontStyles are equal

View Source

Inequality(FontStyle, FontStyle)

The != operator.

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

true if FontStyles are not equal

Implements

IEquatable<>

Extension Methods