Spread Windows Forms 6.0 Product Documentation
GetNote Method
See Also  Example Support Options
FarPoint.Win.Spread Assembly > FarPoint.Win.Spread Namespace > SheetView Class : GetNote Method


row
Row index of cell
column
Column index of cell

Glossary Item Box

Gets the note (comments) from a specified cell.

Syntax

Visual Basic (Declaration) 
Public Function GetNote( _
   ByVal row As Integer, _
   ByVal column As Integer _
) As String
Visual Basic (Usage)Copy Code
Dim instance As SheetView
Dim row As Integer
Dim column As Integer
Dim value As String
 
value = instance.GetNote(row, column)
C# 
public string GetNote( 
   int row,
   int column
)

Parameters

row
Row index of cell
column
Column index of cell

Return Value

String containing the value of the user-defined note for the cell

Exceptions

ExceptionDescription
System.ArgumentOutOfRangeException Specified row index is out of range; must be between 0 and the total number of rows
System.ArgumentOutOfRangeException Specified column index is out of range; must be between 0 and the total number of columns

Example

This example illustrates the use of this member by returning the note for the specified cell.
C#Copy Code
fpSpread1.ActiveSheet.Cells[0, 0, 1, 1].Value = 20;
fpSpread1.ActiveSheet.SetFormula(2, 0, "Sum(A1:B1)");         
object o, o1;
o = fpSpread1.ActiveSheet.GetFormula(2, 0);
fpSpread1.ActiveSheet.SetNote(2, 0, o.ToString());
o1 = fpSpread1.ActiveSheet.GetNote(2,0);
listBox1.Items.Add(o1.ToString());
Visual BasicCopy Code
FpSpread1.ActiveSheet.Cells(0, 0, 1, 1).Value = 20
FpSpread1.ActiveSheet.SetFormula(2, 0, "Sum(A1:B1)")
Dim o, o1 As Object
o = FpSpread1.ActiveSheet.GetFormula(2, 0)
FpSpread1.ActiveSheet.SetNote(2, 0, o.ToString())
o1 = FpSpread1.ActiveSheet.GetNote(2, 0)
ListBox1.Items.Add(o1.ToString())

Requirements

Target Platforms: Windows 7, Windows Vista SP1 or later, Windows XP SP3, Windows Server 2008 (Server Core not supported), Windows Server 2008 R2 (Server Core supported with SP1 or later), Windows Server 2003 SP2

See Also

© 2002-2012 ComponentOne, a division of GrapeCity. All Rights Reserved.