Struct
FontStyle

Defines a structure that represents the style of a font face as normal, italic, or oblique.

Definition

Namespace:Telerik.WinControls.Spreadsheet.UI

Assembly:Telerik.WinControls.RadSpreadsheet.dll

Syntax:

cs-api-definition
[TypeConverter(typeof(FontStyleConverter))]
public struct FontStyle : IFormattable

Implements: IFormattable

Methods

Equals(FontStyle)

Compares a FontStyle with the current FontStyle instance for equality.

Declaration

cs-api-definition
public bool Equals(FontStyle obj)

Parameters

obj

FontStyle

An instance of FontStyle to compare for equality.

Returns

bool

true to show the two instances are equal; otherwise, false.

Equals(object)

Compares an object with the current FontStyle instance for equality.

Declaration

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

Parameters

obj

object

An object value that represents the FontStyle to compare for equality.

Returns

bool

true to show the two instances are equal; otherwise, false.

Overrides ValueType.Equals(object)

GetHashCode()

Retrieves the hash code for this object.

Declaration

cs-api-definition
public override int GetHashCode()

Returns

int

A 32-bit hash code, which is a signed integer.

Overrides ValueType.GetHashCode()

ToString()

Creates a string that represents the current FontStyle object and is based on the CurrentCulture property information.

Declaration

cs-api-definition
public override string ToString()

Returns

string

A string that represents the value of the FontStyle object, such as "Normal", "Italic", or "Oblique".

Overrides ValueType.ToString()

Operators

operator !=(FontStyle, FontStyle)

Evaluates two instances of FontStyle to determine inequality.

Declaration

cs-api-definition
public static bool operator !=(FontStyle left, FontStyle right)

Parameters

left

FontStyle

The first instance of FontStyle to compare.

right

FontStyle

The second instance of FontStyle to compare.

Returns

bool

false to show left is equal to right; otherwise, true.

operator ==(FontStyle, FontStyle)

Compares two instances of FontStyle for equality.

Declaration

cs-api-definition
public static bool operator ==(FontStyle left, FontStyle right)

Parameters

left

FontStyle

The first instance of FontStyle to compare.

right

FontStyle

The second instance of FontStyle to compare.

Returns

bool

true to show the specified FontStyle objects are equal; otherwise, false.