Skip to main content

DevExpress v24.2 Update — Your Feedback Matters

Our What's New in v24.2 webpage includes product-specific surveys. Your response to our survey questions will help us measure product satisfaction for features released in this major update and help us refine our plans for our next major release.

Take the survey Not interested

TdxSpreadSheetDefinedNames.GetItemByName(string,TdxSpreadSheetCustomView) Method

Returns the defined name by its caption.

#Declaration

Delphi
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