PowerTools SPREAD for Windows Forms 10.0J
ToString() メソッド


このセルを現在の参照スタイルで絶対参照する文字列を 取得します。
構文
public override string ToString()
'Declaration
 
Public Overloads Overrides Function ToString() As String
 
'使用法
 
Dim instance As Cell
Dim value As String
 
value = instance.ToString()

戻り値の型

このセルを現在の参照スタイルで絶対参照する String
次のサンプルコードは、Cellオブジェクトを作成し、その数式プロパティを使用して2つのセルの値を合計します。
FarPoint.Win.Spread.Cell acell, mycell, urcell;
acell = fpSpread1.ActiveSheet.Cells[0, 0];
mycell = fpSpread1.ActiveSheet.Cells[2, 2];
urcell = fpSpread1.ActiveSheet.Cells[2, 3];
fpSpread1.ActiveSheet.Cells[2, 2].Value = 10;
fpSpread1.ActiveSheet.Cells[2, 3].Value = 10;
acell.Formula = "SUM(" + mycell.ToString() + "," + urcell.ToString() + ")";
Dim acell, mycell, urcell As FarPoint.Win.Spread.Cell
acell = FpSpread1.ActiveSheet.Cells(0, 0)
mycell = FpSpread1.ActiveSheet.Cells(2, 2)
urcell = FpSpread1.ActiveSheet.Cells(2, 3)
FpSpread1.ActiveSheet.Cells(2, 3).Value = 10
FpSpread1.ActiveSheet.Cells(2, 2).Value = 10
acell.Formula = "SUM(" + mycell.ToString() + "," + urcell.ToString() + ")"
参照

Cell クラス
Cell メンバ
オーバーロード一覧

 

 


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