Xceed Grid for WinForms v4.3 Documentation
Xceed.Grid.v4.3 Assembly / Xceed.Grid.Exporting Namespace / CustomStyleList Class / Insert Method
The zero-based index at which excelStyle should be inserted.
The ExcelStyle to insert into the CustomStyleList


In This Topic
    Insert Method (CustomStyleList)
    In This Topic
    Inserts an ExcelStyle object to the CustomStyleList at the specified index.
    Syntax
    'Declaration
     
    Public Function Insert( _
       ByVal index As Integer, _
       ByVal excelStyle As ExcelStyle _
    ) As String
    'Usage
     
    Dim instance As CustomStyleList
    Dim index As Integer
    Dim excelStyle As ExcelStyle
    Dim value As String
     
    value = instance.Insert(index, excelStyle)
    public string Insert( 
       int index,
       ExcelStyle excelStyle
    )

    Parameters

    index
    The zero-based index at which excelStyle should be inserted.
    excelStyle
    The ExcelStyle to insert into the CustomStyleList

    Return Value

    The unique ID of the style to be used when referencing the ExcelStyle object in an XMLSS element's StyleID attribute.
    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