Xceed Workbooks for .NET v3.0 Documentation
Xceed.Workbooks.NET Assembly / Xceed.Workbooks.NET Namespace / AnnotationCollection Class / AddComment Method / AddComment(String,String) Method
The text that will be displayed in the Comment.
The Address of the Cell in which the Comment will be inserted.


In This Topic
    AddComment(String,String) Method
    In This Topic
    Adds a Comment in the current Worksheet, using the Address of a Cell to determine the insertion point.
    Syntax
    'Declaration
     
    
    Public Overloads Function AddComment( _
       ByVal text As String, _
       ByVal cellAddress As String _
    ) As Comment
    'Usage
     
    
    Dim instance As AnnotationCollection
    Dim text As String
    Dim cellAddress As String
    Dim value As Comment
     
    value = instance.AddComment(text, cellAddress)
    public Comment AddComment( 
       string text,
       string cellAddress
    )

    Parameters

    text
    The text that will be displayed in the Comment.
    cellAddress
    The Address of the Cell in which the Comment will be inserted.
    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