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

Identifies one of the predefined pixel layouts exposed by PixelFormats.

Definition

Namespace:Telerik.WinControls.RichTextEditor.UI

Assembly:Telerik.WinControls.RichTextEditor.dll

Syntax:

C#
public class PixelFormat

Inheritance: objectPixelFormat

Methods

Determines whether this instance and another object have the same pixel-format identifier.

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

The object to compare with this instance.

Returns:

bool

true when obj is a non-null PixelFormat with the same identifier; false when obj is null.

Exceptions: NullReferenceException

obj is non-null but is not a PixelFormat.

Overrides: object.Equals(object)

Returns the hash code provided by the base object implementation.

C#
public override int GetHashCode()
Returns:

int

The base object hash code.

Overrides: object.GetHashCode()

This hash code is not derived from the pixel-format identifier, so separate instances that compare equal may have different hash codes.

Operators

Compares two PixelFormat instances for inequality.

C#
public static bool operator !=(PixelFormat left, PixelFormat right)
Parameters:leftPixelFormat

The first PixelFormat to compare.

rightPixelFormat

The second PixelFormat to compare.

Returns:

bool

true if the PixelFormat objects are not equal; otherwise, false.

Exceptions: NullReferenceException

Either operand is null.

Determines whether two pixel-format instances contain the same identifier.

C#
public static bool operator ==(PixelFormat left, PixelFormat right)
Parameters:leftPixelFormat

The first pixel format to compare.

rightPixelFormat

The second pixel format to compare.

Returns:

bool

true when the identifiers match.

Exceptions: NullReferenceException

Either operand is null.