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

Identifies a pixel format used when creating or describing a diagram bitmap.

Definition

Namespace:Telerik.WinControls.UI.Diagrams

Assembly:Telerik.WinControls.RadDiagram.dll

Syntax:

C#
public class PixelFormat

Inheritance: objectPixelFormat

Methods

Compares the underlying pixel-format identifier with the identifier in another PixelFormat.

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

The other pixel format. A null value returns false.

Returns:

bool

true when the identifiers match; otherwise, false.

Exceptions: NullReferenceException

obj is non-null but is not a PixelFormat.

Overrides: object.Equals(object)

Returns the base object hash code; it is not derived from the pixel-format identifier.

C#
public override int GetHashCode()
Returns:

int

The hash code returned by GetHashCode().

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.

Compares two pixel formats by their underlying identifiers.

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

The first format.

rightPixelFormat

The second format.

Returns:

bool

true when the identifiers match.

Exceptions: NullReferenceException

Either operand is null.