Back to Devexpress

SpreadsheetControl.DefinedNameValidating Event

windowsforms-devexpress-dot-xtraspreadsheet-dot-spreadsheetcontrol-66725d32.md

latest4.0 KB
Original Source

SpreadsheetControl.DefinedNameValidating Event

Occurs when a new Defined Name is created before it is added to a collection.

Namespace : DevExpress.XtraSpreadsheet

Assembly : DevExpress.XtraSpreadsheet.v25.2.dll

NuGet Package : DevExpress.Win.Spreadsheet

Declaration

csharp
public event DefinedNameEditingEventHandler DefinedNameValidating
vb
Public Event DefinedNameValidating As DefinedNameEditingEventHandler

Event Data

The DefinedNameValidating event's data class is DefinedNameEditingEventArgs. The following properties provide information specific to this event:

PropertyDescription
CancelGets or sets a value indicating whether the event should be canceled. Inherited from CancelEventArgs.
CommentGets the additional information about the current Defined Name. Inherited from DefinedNameEventArgsBase.
NameGets the name of the current Defined Name. Inherited from DefinedNameEventArgsBase.
OriginalNameGets the name of the Defined Name before it is edited.
ReferenceGets the reference to a cell or cell range, formula or constant associated with the Defined Name. Inherited from DefinedNameEventArgsBase.
ScopeGets the scope (individual worksheet or entire workbook) where a Defined Name is recognized and can be used without qualification. Inherited from DefinedNameEventArgsBase.
ScopeIndexGets the index identifying the scope of the Defined Name. Inherited from DefinedNameEventArgsBase.

Remarks

The DefinedNameValidating event allows you to cancel editing by setting the e.Cancel value to true.

Note

The DefinedNameValidating event is fired only if editing is started in the Name Manager dialog.

See Also

SpreadsheetControl Class

SpreadsheetControl Members

DevExpress.XtraSpreadsheet Namespace