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

Represents a pixel-format identifier used by Spreadsheet bitmap compatibility APIs.

Definition

Namespace:Telerik.WinControls.Spreadsheet.UI

Assembly:Telerik.WinControls.RadSpreadsheet.dll

Syntax:

C#
public class PixelFormat

Inheritance: objectPixelFormat

Methods

Compares this format with another object by its internal format identifier.

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

The object to compare.

Returns:

bool

false for null; otherwise, whether the object's format identifier matches this instance.

Exceptions: NullReferenceException

The object is non-null but is not a PixelFormat.

Overrides: object.Equals(object)

Returns the object-identity hash code of this format instance.

C#
public override int GetHashCode()
Returns:

int

Overrides: object.GetHashCode()

This hash code is not derived from the internal format identifier, so distinct instances that compare equal can 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.

Compares the internal format identifiers of two pixel formats.

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

The left format.

rightPixelFormat

The right format.

Returns:

bool

true when the internal format identifiers match.

Exceptions: NullReferenceException

Either operand is null.