Xceed Workbooks for .NET v3.0 Documentation
Xceed.Workbooks.NET Assembly / Xceed.Workbooks.NET Namespace / Note Class
Members Example


In This Topic
    Note Class
    In This Topic
    Represents a Note, which is made of multiple blocks of FormattedText that are added one after the other.
    Object Model
    Note ClassFormattedText Class
    Syntax
    'Declaration
     
    
    <DefaultMemberAttribute("Item")>
    Public Class Note 
       Inherits Annotation
    'Usage
     
    
    Dim instance As Note
    [DefaultMember("Item")]
    public class Note : Annotation 
    Remarks
    Note that line breaks are supported in a Note.
    Example
    using( var workbook = Workbook.Create( "AddNote.xlsx" ) ) 
      { 
        // Gets the first Worksheet; a Workbook always contains at least 1 Worksheet. 
        var worksheet = workbook.Worksheets[ 0 ]; 
    
        // Gets the annotations collection. 
        var annotations = worksheet.Annotations; 
    
        // Adds a Note in Cell B1 with the name of the person who wrote it. 
        var note = annotations.AddNote( new FormattedText( "This is the title of the document" ), "B1" ); 
        note.BackgroundColor = Color.Gray; 
        note.IsShown = true; 
    
        // Saves Workbook to disk; 
        workbook.Save(); 
      }
    Inheritance Hierarchy

    System.Object
       Xceed.Workbooks.NET.WorkbookElement
          Xceed.Workbooks.NET.WorksheetElement
             Xceed.Workbooks.NET.Annotation
                Xceed.Workbooks.NET.Note

    Public Properties
     NameDescription
    Public PropertyOverridden. Gets the AnnotationType.  
    Public PropertyObject that represents the person who wrote the Note or the Comment. (Inherited from Xceed.Workbooks.NET.Annotation)
    Public PropertyGets or sets the color used for the Note's background.  
    Public PropertyRepresents the Cell in which the Note or the Comment is inserted. (Inherited from Xceed.Workbooks.NET.Annotation)
    Public PropertyGets or sets the Note's height.  
    Public PropertyGets or sets if the Note uses the AutoFit option.  
    Public PropertyIndicates if the Annotation is visible or not when the Workbook is opened. (Inherited from Xceed.Workbooks.NET.Annotation)
    Public PropertyGets a specific block of FormattedText contained in the Note.  
    Public PropertyRepresents the cumulative length of all the blocks of FormattedText in the current Note.  
    Public PropertyGets or sets the Unit used to define WidthHeight.  
    Public PropertyGets or sets the NoteProtection.  
    Public PropertyRepresents the Note's HorizontalAlignement and VerticalAlignment.    
    Public PropertyGets or sets the Note's width.  
    Top
    Public Methods
     NameDescription
    Public MethodAdds a new FormattedText object at the end of the Note's current FormattedTextList.  
    Public MethodAdds multiple FormattedText objects at the end of the Note's current FormattedTextList.  
    Public Method  
    Public Method  
    Public Method  
    Public Method  
    Public Method  
    Public Method  
    Public Method  
    Public Method  
    Public Method  
    Public Method  
    Public Method  
    Public Method  
    Public Method  
    Public MethodOverloaded.   
    Public Method  
    Public Method  
    Public Method  
    Public Method  
    Top
    Protected Methods
     NameDescription
    Protected Internal MethodOverridden.   
    Protected Method (Inherited from Xceed.Workbooks.NET.Annotation)
    Protected Internal MethodOverridden.   
    Top
    Requirements

    Target Platforms: Windows 11, Windows 10, 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