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


row
Row index of specified cell
column
Column index of specified cell
value
Note text to associate with the cell

Glossary Item Box

Sets a note in a specified cell on this sheet.

Syntax

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

Parameters

row
Row index of specified cell
column
Column index of specified cell
value
Note text to associate with 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

Remarks

This method sets a cell note, comments or tips for the user, in a specified cell.

Example

This example sets a note in the specified cell.
C#Copy Code
fpSpread1.TextTipPolicy = FarPoint.Win.Spread.TextTipPolicy.Floating;
fpSpread1.ActiveSheet.SetNote(0, 1, "Currently out-of-stock");
Visual BasicCopy Code
FpSpread1.TextTipPolicy = FarPoint.Win.Spread.TextTipPolicy.Floating
FpSpread1.ActiveSheet.SetNote(0, 1, "Currently out-of-stock")

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.