Spread Windows Forms 6.0 Product Documentation
GetHashCode Method
See Also  Example Support Options
FarPoint.Win.Spread Assembly > FarPoint.Win.Spread Namespace > Cell Class : GetHashCode Method


Glossary Item Box

Hash code of an object

Syntax

Visual Basic (Declaration) 
Public Overrides Function GetHashCode() As Integer
Visual Basic (Usage)Copy Code
Dim instance As Cell
Dim value As Integer
 
value = instance.GetHashCode()
C# 
public override int GetHashCode()

Return Value

Integer with hash code of that object

Example

This example illustrates the use of this member by returning the automatically generated code from a hash table for the cell object.
C#Copy Code
FarPoint.Win.Spread.Cell aCell;
object o;
bool b;
o = fpSpread1.ActiveSheet.Cells[0, 0];
aCell = (FarPoint.Win.Spread.Cell)o;
b = aCell.Equals(o);
listBox1.Items.Add(b.ToString());
Visual BasicCopy Code
Dim aCell As FarPoint.Win.Spread.Cell
Dim b As Boolean
Dim o As Object
o = FpSpread1.ActiveSheet.Cells(0, 0)
aCell = o
b = aCell.Equals(o)
ListBox1.Items.Add(b.ToString())

Requirements

Target Platforms: Windows 7, Windows Vista SP1 or later, Windows XP SP3, Windows Server 2008 (Server Core not supported), Windows Server 2008 R2 (Server Core supported with SP1 or later), Windows Server 2003 SP2

See Also

© 2002-2012 ComponentOne, a division of GrapeCity. All Rights Reserved.