Spread Windows Forms 12.0 Product Documentation
GetNote Method (DefaultSheetDataModel)
Example 


FarPoint.Win.Spread Assembly > FarPoint.Win.Spread.Model Namespace > DefaultSheetDataModel Class : GetNote Method
Row index of cell (in model)
Column index of cell (in model)
Gets a user-defined note value for the cell of the specified row and column.
Syntax
'Declaration
 
Public Overrides Function GetNote( _
   ByVal row As Integer, _
   ByVal column As Integer _
) As String
'Usage
 
Dim instance As DefaultSheetDataModel
Dim row As Integer
Dim column As Integer
Dim value As String
 
value = instance.GetNote(row, column)
public override string GetNote( 
   int row,
   int column
)

Parameters

row
Row index of cell (in model)
column
Column index of cell (in model)

Return Value

String containing the user-defined note for the cell
Example
This example illustrates the use of this member by returning the note for the specified index.
FarPoint.Win.Spread.Model.DefaultSheetDataModel dataModel = new FarPoint.Win.Spread.Model.DefaultSheetDataModel(5, 5);
string s;
dataModel.SetNote(0, 0, "TestNote");
fpSpread1.ActiveSheet.Models.Data = dataModel;
s = dataModel.GetNote(0, 0);
listBox1.Items.Add(s);
Dim dataModel As New FarPoint.Win.Spread.Model.DefaultSheetDataModel(5, 5)
Dim s As String
dataModel.SetNote(0, 0, "TestNote")
FpSpread1.ActiveSheet.Models.Data = dataModel
s = dataModel.GetNote(0, 0)
ListBox1.Items.Add(s)
See Also

Reference

DefaultSheetDataModel Class
DefaultSheetDataModel Members