Struct
FontStretch

Definition

Namespace:Telerik.WinControls.SyntaxEditor.UI

Assembly:Telerik.WinControls.SyntaxEditor.dll

Syntax:

cs-api-definition
public struct FontStretch : IFormattable

Implements: IFormattable

Methods

Compare(FontStretch, FontStretch)

Compares two instances of objects.

Declaration

cs-api-definition
public static int Compare(FontStretch left, FontStretch right)

Parameters

left

FontStretch

The first object to compare.

right

FontStretch

The second object to compare.

Returns

int

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

Equals(FontStretch)

Compares a object with the current object.

Declaration

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

Parameters

obj

FontStretch

The instance of the object to compare for equality.

Returns

bool

true if two instances are equal; otherwise, false.

Equals(object)

Compares a object with the current object.

Declaration

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

Parameters

obj

object

The instance of the object to compare for equality.

Returns

bool

true if two instances are equal; otherwise, false.

Overrides ValueType.Equals(object)

FromOpenTypeStretch(int)

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

Declaration

cs-api-definition
public static FontStretch FromOpenTypeStretch(int stretchValue)

Parameters

stretchValue

int

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

Returns

FontStretch

A new instance of .

GetHashCode()

Retrieves the hash code for this object.

Declaration

cs-api-definition
public override int GetHashCode()

Returns

int

An int value representing the hash code for the object.

Overrides ValueType.GetHashCode()

ToOpenTypeStretch()

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

Declaration

cs-api-definition
public int ToOpenTypeStretch()

Returns

int

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

ToString()

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

Declaration

cs-api-definition
public override string ToString()

Returns

string

A string value representation of the object.

Overrides ValueType.ToString()

Operators

operator !=(FontStretch, FontStretch)

Evaluates two instances of to determine inequality.

Declaration

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

Parameters

left

FontStretch

The first instance of to compare.

right

FontStretch

The second instance of to compare.

Returns

bool

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

operator <(FontStretch, FontStretch)

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

Declaration

cs-api-definition
public static bool operator <(FontStretch left, FontStretch right)

Parameters

left

FontStretch

The first instance of to compare.

right

FontStretch

The second instance of to compare.

Returns

bool

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

operator <=(FontStretch, FontStretch)

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

Declaration

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

Parameters

left

FontStretch

The first instance of to compare.

right

FontStretch

The second instance of to compare.

Returns

bool

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

operator ==(FontStretch, FontStretch)

Compares two instances of for equality.

Declaration

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

Parameters

left

FontStretch

First instance of to compare.

right

FontStretch

Second instance of to compare.

Returns

bool

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

operator >(FontStretch, FontStretch)

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

Declaration

cs-api-definition
public static bool operator >(FontStretch left, FontStretch right)

Parameters

left

FontStretch

First instance of to compare.

right

FontStretch

Second instance of to compare.

Returns

bool

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

operator >=(FontStretch, FontStretch)

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

Declaration

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

Parameters

left

FontStretch

The first instance of to compare.

right

FontStretch

The second instance of to compare.

Returns

bool

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