Skip to main content

TdxSpreadSheetCreateDefinedName Class

Implements the CreateDefinedName end-user command available for spreadsheet controls.

Declaration

TdxSpreadSheetCreateDefinedName = class(
    TdxSpreadSheetAction
)

Remarks

This class does not introduce any new public members. Its overridden Execute function invokes the “New Name“ dialog.

"New Name" Dialog Example

UI elements linked to a TdxSpreadSheetCreateDefinedName action object are enabled only if the following conditions are met:

  • Spreadsheet document edit operations are allowed (that is, the control’s OptionsBehavior.Editing property is set to True).

  • An in-place cell editor is inactive (the active worksheet’s IsEditing property returns False).

  • The active worksheet is not protected (that is, its OptionsProtection.Protected property is set to False).

To localize the caption of UI elements linked to a TdxSpreadSheetCreateDefinedName action object, use the sdxSpreadSheetActionCreateDefinedNameCaption resource string.

See Also