Gets the hash code of this object.
Syntax
Visual Basic (Declaration) | |
---|
Public Overrides Function GetHashCode() As Integer |
Visual Basic (Usage) | Copy Code |
---|
Dim instance As NamedStyle
Dim value As Integer
value = instance.GetHashCode() |
C# | |
---|
public override int GetHashCode() |
Return Value
Integer value of the hash code
Example
This example illustrates the use of this member by returning the hash code of the NamedStyle object.
C# | Copy Code |
---|
FarPoint.Win.Spread.NamedStyle ns = new FarPoint.Win.Spread.NamedStyle();
FarPoint.Win.Spread.StyleInfo si = new FarPoint.Win.Spread.StyleInfo();
int i;
si.BackColor = Color.LightBlue;
ns.CopyFrom(si);
i = ns.GetHashCode();
listBox1.Items.Add(i.ToString());
fpSpread1.ActiveSheet.DefaultStyle = ns; |
Visual Basic | Copy Code |
---|
Dim ns As New FarPoint.Win.Spread.NamedStyle()
Dim si As New FarPoint.Win.Spread.StyleInfo()
Dim i As Integer
si.BackColor = Color.LightBlue
ns.CopyFrom(si)
i = ns.GetHashCode()
FpSpread1.ActiveSheet.DefaultStyle = ns
ListBox1.Items.Add(i.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