Spread Windows Forms 13.0 Product Documentation
FarPoint.Win.Spread Assembly / FarPoint.Win.Spread Namespace / SheetView Class / ShowNotes Method
Whether to show the cell notes
Example


In This Topic
    ShowNotes Method
    In This Topic
    Shows or hides all cell notes on the sheet.
    Syntax
    'Declaration
     
    Public Overridable Sub ShowNotes( _
       ByVal show As Boolean _
    ) 
    'Usage
     
    Dim instance As SheetView
    Dim show As Boolean
     
    instance.ShowNotes(show)
    public virtual void ShowNotes( 
       bool show
    )

    Parameters

    show
    Whether to show the cell notes

    Return Value

    Boolean: true if the notes are displayed; false otherwise
    Remarks
    This methods shows or hides the cell notes for an entire sheet.
    Example
    This example shows all notes in the notes container.
    fpSpread1.ActiveSheet.Cells[0, 0].Text = "This is a note test!";
    
    fpSpread1.ActiveSheet.SetNote(0, 0, "I am a note!");
    
    fpSpread1.ActiveSheet.ShowNotes(true);
    
    FpSpread1.ActiveSheet.Cells(0, 0).Text = "This is a note test!"
    
    FpSpread1.ActiveSheet.SetNote(0, 0, "I am a note!")
    
    FpSpread1.ActiveSheet.ShowNotes(True)
    See Also