Skip to main content

TdxSpreadSheetDefinedNames.GetItemByName(string,TdxSpreadSheetCustomView) Method

Returns the defined name by its caption.

Declaration

function GetItemByName(const ACaption: string; AScope: TdxSpreadSheetCustomView): TdxSpreadSheetDefinedName;

Parameters

Name Type
ACaption string
AScope TdxSpreadSheetCustomView

Returns

Type
TdxSpreadSheetDefinedName

Remarks

Call this function to obtain a defined name whose caption is passed as the ACaption parameter within the scope passed as the AScope parameter. If the specified defined name does not exist within the collection, the GetItemByName function returns nil. Every time you call the AddOrSet function, it automatically invokes the GetItemByName function.

Note

In order to obtain an individual defined name by its zero-based index, use the Items property.

See Also