New to Telerik UI for WinForms? Start a free 30-day trial

Definition

Namespace:Telerik.WinControls.SyntaxEditor.UI

Assembly:Telerik.WinControls.SyntaxEditor.dll

Syntax:

C#
public struct FontStretch : IFormattable

Implements: IFormattable

Methods

Compares two instances of objects.

C#
public static int Compare(FontStretch left, FontStretch right)
Parameters:leftFontStretch

The first object to compare.

rightFontStretch

The second object to compare.

Returns:

int

An int value that represents the relationship between the two instances of .

Compares a object with the current object.

C#
public bool Equals(FontStretch obj)
Parameters:objFontStretch

The instance of the object to compare for equality.

Returns:

bool

true if two instances are equal; otherwise, false.

Compares a object with the current object.

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

The instance of the object to compare for equality.

Returns:

bool

true if two instances are equal; otherwise, false.

Overrides: ValueType.Equals(object)

Creates a new instance of that corresponds to the OpenType usStretchClass value.

C#
public static FontStretch FromOpenTypeStretch(int stretchValue)
Parameters:stretchValueint

An integer value between one and nine that corresponds to the usStretchValue definition in the OpenType specification.

Returns:

FontStretch

A new instance of .

Retrieves the hash code for this object.

C#
public override int GetHashCode()
Returns:

int

An int value representing the hash code for the object.

Overrides: ValueType.GetHashCode()

Returns a value that represents the OpenType usStretchClass for this object.

C#
public int ToOpenTypeStretch()
Returns:

int

An integer value between 1 and 999 that corresponds to the usStretchClass definition in the OpenType specification.

Creates a string representation of the current object based on the current culture.

C#
public override string ToString()
Returns:

string

A string value representation of the object.

Overrides: ValueType.ToString()

Operators

Evaluates two instances of to determine inequality.

C#
public static bool operator !=(FontStretch left, FontStretch right)
Parameters:leftFontStretch

The first instance of to compare.

rightFontStretch

The second instance of to compare.

Returns:

bool

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

Evaluates two instances of to determine whether one instance is less than the other.

C#
public static bool operator <(FontStretch left, FontStretch right)
Parameters:leftFontStretch

The first instance of to compare.

rightFontStretch

The second instance of to compare.

Returns:

bool

true if left is less than right; otherwise, false.

Evaluates two instances of to determine whether one instance is less than or equal to the other.

C#
public static bool operator <=(FontStretch left, FontStretch right)
Parameters:leftFontStretch

The first instance of to compare.

rightFontStretch

The second instance of to compare.

Returns:

bool

true if left is less than or equal to right; otherwise, false.

Compares two instances of for equality.

C#
public static bool operator ==(FontStretch left, FontStretch right)
Parameters:leftFontStretch

First instance of to compare.

rightFontStretch

Second instance of to compare.

Returns:

bool

true when the specified objects are equal; otherwise, false.

Evaluates two instances of to determine if one instance is greater than the other.

C#
public static bool operator >(FontStretch left, FontStretch right)
Parameters:leftFontStretch

First instance of to compare.

rightFontStretch

Second instance of to compare.

Returns:

bool

true if left is greater than right; otherwise, false.

Evaluates two instances of to determine whether one instance is greater than or equal to the other.

C#
public static bool operator >=(FontStretch left, FontStretch right)
Parameters:leftFontStretch

The first instance of to compare.

rightFontStretch

The second instance of to compare.

Returns:

bool

true if left is greater than or equal to right; otherwise, false.