PowerTools SPREAD for Windows Forms 8.0J
GetNote メソッド (ISheetDataModel)


行インデックス
列インデックス
指定した行と列のセルのメモを取得します。
構文
'Declaration
 
Function GetNote( _
   ByVal row As Integer, _
   ByVal column As Integer _
) As String
'使用法
 
Dim instance As ISheetDataModel
Dim row As Integer
Dim column As Integer
Dim value As String
 
value = instance.GetNote(row, column)
string GetNote( 
   int row,
   int column
)

パラメータ

row
行インデックス
column
列インデックス

戻り値の型

セル ノートを含む String
次のサンプルコードは、指定したセルにメモを定義し、そのメモを取得して表示します。
FarPoint.Win.Spread.Model.ISheetDataModel isd;
isd = (FarPoint.Win.Spread.Model.ISheetDataModel)fpSpread1.ActiveSheet.Models.Data;
isd.SetNote(0, 0, "I'm a Note");
fpSpread1.CellNoteIndicatorVisible = true;
label1.Text = "The note for the first cell is " + isd.GetNote(0, 0).ToString();
Dim isd As FarPoint.Win.Spread.Model.ISheetDataModel
isd = FpSpread1.ActiveSheet.Models.Data
isd.SetNote(0, 0, "I'm a Note")
FpSpread1.CellNoteIndicatorVisible = True
Label1.Text = "The note for the first cell is " & isd.GetNote(0, 0).ToString()
参照

ISheetDataModel インタフェース
ISheetDataModel メンバ

 

 


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