System.Windows.Forms.Padding.GetHashCode Method

Generates a hash code for the current System.Windows.Forms.Padding.

Syntax

public override int GetHashCode ()

Returns

A 32-bit signed integer hash code.

Remarks

The Padding.GetHashCode method uses the Padding.Right, Padding.Left, Padding.Top, and Padding.Bottom values to generate a 32-bit hash code that represents the current System.Windows.Forms.Padding.

A hash code is a number that corresponds to the value of an object (so two objects that have the same value should generate the same hash code). Hash codes are used to sort and store collections of objects. For example, a Hashtable represents a collection of key-and-value pairs that are organized based on the hash code of the key.

For more information on hash codes and hash functions, see the object.GetHashCode method.

Requirements

Namespace: System.Windows.Forms
Assembly: System.Windows.Forms (in System.Windows.Forms.dll)
Assembly Versions: 2.0.0.0
Since: .NET 2.0