Struct
FontStyle

Encodes the stylistic slant of a font (for example Normal, Italic, or Oblique) for selection and comparison.

Definition

Namespace:Telerik.Documents.Core.Fonts

Assembly:Telerik.Windows.Documents.Core.dll

Syntax:

cs-api-definition
public struct FontStyle

Inherited Members ValueType.ToString()

Constructors

FontStyle(int)

Initializes a new instance of FontStyle struct.

Declaration

cs-api-definition
public FontStyle(int styleId)

Parameters

styleId

int

Methods

Equals(object)

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

Declaration

cs-api-definition
public override bool Equals(object obj)

Parameters

obj

object

The object to compare with the current instance.

Returns

bool

True if the specified object is a FontStyle with the same style identifier; otherwise, false.

Overrides ValueType.Equals(object)

GetHashCode()

Returns a hash code for the current FontStyle.

Declaration

cs-api-definition
public override int GetHashCode()

Returns

int

A hash code derived from the underlying style identifier, suitable for use in hashing algorithms and data structures.

Overrides ValueType.GetHashCode()

Operators

operator !=(FontStyle, FontStyle)

Determine whether two styles differ.

Declaration

cs-api-definition
public static bool operator !=(FontStyle fs1, FontStyle fs2)

Parameters

fs1

FontStyle

First object to compare.

fs2

FontStyle

Second object to compare.

Returns

bool

Returns false when the font style values are equal for both objects, and true otherwise.

operator ==(FontStyle, FontStyle)

Compare two styles for value equality.

Declaration

cs-api-definition
public static bool operator ==(FontStyle fs1, FontStyle fs2)

Parameters

fs1

FontStyle

First object to compare.

fs2

FontStyle

Second object to compare.

Returns

bool

Returns true when the font style values are equal for both objects, and false otherwise.