PowerTools SPREAD for Windows Forms 8.0J
GetHashCode メソッド (NamedStyle)


このオブジェクトのハッシュコードを取得します。
構文
public override int GetHashCode()
'Declaration
 
Public Overrides Function GetHashCode() As Integer
 
'使用法
 
Dim instance As NamedStyle
Dim value As Integer
 
value = instance.GetHashCode()

戻り値の型

ハッシュ コード値を表す Integer
次のサンプルコードでは、このメンバを使用して、NamedStyleオブジェクトのハッシュコードを返しています。
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;
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())
参照

NamedStyle クラス
NamedStyle メンバ

 

 


© 2004-2015, GrapeCity inc. All rights reserved.