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

Wraps a pixel-format identifier; instances are obtained from the named properties on PixelFormats.

Definition

Namespace:Telerik.WinControls.UI.Legacy

Assembly:Telerik.WinControls.PdfViewer.dll

Syntax:

C#
public class PixelFormat

Inheritance: objectPixelFormat

Methods

Compares this instance with another PixelFormat by their stored format identifiers.

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

The pixel format to compare with this instance.

Returns:

bool

true when the identifiers match; false when obj is null.

Exceptions: NullReferenceException

obj is not a PixelFormat.

Overrides: object.Equals(object)

Returns the hash code from object; it is not derived from the format identifier used by equality.

C#
public override int GetHashCode()
Returns:

int

The hash code for this instance.

Overrides: object.GetHashCode()

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.

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

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

The first pixel format.

rightPixelFormat

The second pixel format.

Returns:

bool

true when the stored identifiers match; otherwise, false.

Exceptions: NullReferenceException

Either operand is null.