New to Telerik UI for WinFormsStart a free 30-day trial

FontStyle

Struct

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

Definition

Namespace:Telerik.WinControls.SyntaxEditor.UI

Assembly:Telerik.WinControls.SyntaxEditor.dll

Syntax:

C#
[TypeConverter(typeof(FontStyleConverter))]
public struct FontStyle : IFormattable

Implements: IFormattable

Methods

Compares a FontStyle with the current FontStyle instance for equality.

C#
public bool Equals(FontStyle obj)
Parameters:objFontStyle

An instance of FontStyle to compare for equality.

Returns:

bool

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

Compares an object with the current FontStyle instance for equality.

C#
public override bool Equals(object obj)
Parameters:objobject

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)

Retrieves the hash code for this object.

C#
public override int GetHashCode()
Returns:

int

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

Overrides: ValueType.GetHashCode()

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

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

C#
public static implicit operator FontStyle(FontStyle style)
Parameters:styleFontStyleReturns:

FontStyle

C#
public static implicit operator FontStyle(FontStyle style)
Parameters:styleFontStyleReturns:

FontStyle

Evaluates two instances of FontStyle to determine inequality.

C#
public static bool operator !=(FontStyle left, FontStyle right)
Parameters:leftFontStyle

The first instance of FontStyle to compare.

rightFontStyle

The second instance of FontStyle to compare.

Returns:

bool

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

Compares two instances of FontStyle for equality.

C#
public static bool operator ==(FontStyle left, FontStyle right)
Parameters:leftFontStyle

The first instance of FontStyle to compare.

rightFontStyle

The second instance of FontStyle to compare.

Returns:

bool

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