Aspose::Cells::WorksheetCollection::GetRangeByName method

WorksheetCollection::GetRangeByName(const U16String&) method

Gets Range object by pre-defined name.

Range Aspose::Cells::WorksheetCollection::GetRangeByName(const U16String &rangeName)
ParameterTypeDescription
rangeNameconst U16String&Name of range.

ReturnValue

Range object.

Returns null if the named range does not exist.

See Also

WorksheetCollection::GetRangeByName(const char16_t*) method

Gets Range object by pre-defined name.

Range Aspose::Cells::WorksheetCollection::GetRangeByName(const char16_t *rangeName)
ParameterTypeDescription
rangeNameconst char16_t*Name of range.

ReturnValue

Range object.

Returns null if the named range does not exist.

See Also

WorksheetCollection::GetRangeByName(const U16String&, int32_t, bool) method

Gets Range by pre-defined name or table’s name.

Range Aspose::Cells::WorksheetCollection::GetRangeByName(const U16String &rangeName, int32_t currentSheetIndex, bool includeTable)
ParameterTypeDescription
rangeNameconst U16String&Name of range or table’s name.
currentSheetIndexint32_tThe sheet index. -1 represents global .
includeTableboolIndicates whether checking all tables.

ReturnValue

See Also

WorksheetCollection::GetRangeByName(const char16_t*, int32_t, bool) method

Gets Range by pre-defined name or table’s name.

Range Aspose::Cells::WorksheetCollection::GetRangeByName(const char16_t *rangeName, int32_t currentSheetIndex, bool includeTable)
ParameterTypeDescription
rangeNameconst char16_t*Name of range or table’s name.
currentSheetIndexint32_tThe sheet index. -1 represents global .
includeTableboolIndicates whether checking all tables.

ReturnValue

See Also