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 hash code
Remarks
Example
This example illustrates the use of this member by returning the hash code of the NamedStyle object.
C# | Copy Code |
---|
FarPoint.Web.Spread.NamedStyle ns = new FarPoint.Web.Spread.NamedStyle();
FarPoint.Web.Spread.StyleInfo si = new FarPoint.Web.Spread.StyleInfo();
int i;
si.BackColor = Color.LightBlue;
ns.CopyFrom(si);
i = ns.GetHashCode();
listBox1.Items.Add(i.ToString());
fpSpread1.ActiveSheetView.DefaultStyle = ns;
|
Visual Basic | Copy Code |
---|
Dim ns As New FarPoint.Web.Spread.NamedStyle()
Dim si As New FarPoint.Web.Spread.StyleInfo()
si.BackColor = Color.LightBlue
ns.CopyFrom(si)
FpSpread1.ActiveSheetView.DefaultStyle = ns
Dim b As Boolean
Dim doc As New System.Xml.XmlDocument()
Dim node As System.Xml.XmlNode
Dim r As System.Xml.XmlNodeReader
doc.Load("..\files\mystyle.xml")
node = doc.FirstChild
While Not (node.Name.Equals("Style"))
node = node.NextSibling
End While
r = New System.Xml.XmlNodeReader(node)
r.Read()
b = ns.Deserialize(r)
ListBox1.Items.Add(b)
|
Requirements
Target Platforms: Windows 7, Windows 8, Windows Vista, Windows Server 2000, Windows 2000 Professional, Windows XP Professional, Windows NT 4.0 Workstation, SP6, Windows NT 4.0 Server, SP6
See Also