Search Results for

    Show / Hide Table of Contents

    TExcelFile.GetDataValidationRanges Method

    Returns a list of ranges for which a data validation definition applies. There are 2 ways you can access the data validation information on a sheet:

    1. If you know the row and column where you want to look, you can use GetDataValidation(Integer, Integer) to return the data validation in the cell.
    2. If you want to find out all data validation structures in the sheet, you can use DataValidationCount, GetDataValidationInfo and GetDataValidationRanges to loop over all existing data validations.

    Syntax

    Unit: FlexCel.Core

    function TExcelFile.GetDataValidationRanges(const index: Integer): TArray<TXlsCellRange>; virtual; abstract;

    Parameters

    <-> Parameter Type Description
    const index Integer Position in the list of data validations. (1 based)

    Returns

    A list of cell ranges.

    See also

    • TExcelFile
    In This Article
    Back to top FlexCel Studio for VCL and FireMonkey v7.24
    © 2002 - 2025 tmssoftware.com