Xceed Workbooks for .NET v3.0 Documentation
Xceed.Workbooks.NET Assembly / Xceed.Workbooks.NET Namespace / WorksheetCollection Class / Add Method / Add(String,WorksheetVisibility) Method
Identifies the Worksheet that will be added to the WorksheetCollection by using a string that corresponds to its name.
Sets how the added Worksheet is displayed. The default setting is Visible


In This Topic
    Add(String,WorksheetVisibility) Method
    In This Topic
    Adds a Worksheet to the WorksheetCollection using a string and then sets how it is displayed.
    Syntax
    'Declaration
     
    
    Public Overloads Function Add( _
       ByVal sourceWorksheetName As String, _
       Optional ByVal visibility As WorksheetVisibility _
    ) As Worksheet
    'Usage
     
    
    Dim instance As WorksheetCollection
    Dim sourceWorksheetName As String
    Dim visibility As WorksheetVisibility
    Dim value As Worksheet
     
    value = instance.Add(sourceWorksheetName, visibility)

    Parameters

    sourceWorksheetName
    Identifies the Worksheet that will be added to the WorksheetCollection by using a string that corresponds to its name.
    visibility
    Sets how the added Worksheet is displayed. The default setting is Visible
    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