Xceed Workbooks for .NET v3.0 Documentation
Xceed.Workbooks.NET Assembly / Xceed.Workbooks.NET Namespace / DataValidationCollection Class / Item Property
The DataValidation's index. 
Example


In This Topic
    Item Property (DataValidationCollection)
    In This Topic
    Gets the DataValidation corresponding to a specific index.
    Syntax
    'Declaration
     
    
    Public ReadOnly Default Property Item( _
       ByVal index As Integer _
    ) As DataValidation
    'Usage
     
    
    Dim instance As DataValidationCollection
    Dim index As Integer
    Dim value As DataValidation
     
    value = instance.Item(index)
    public DataValidation this[ 
       int index
    ]; {get;}

    Parameters

    index
    The DataValidation's index. 
    Example
    Retrieves a DataValidation using an index.
    var selectedValidation = doc.Worksheets[0].DataValidations[0];
    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