Back to Devexpress

DefinedNameConflictResolvingEventArgs.Validator Property

officefileapi-devexpress-dot-spreadsheet-dot-definednameconflictresolvingeventargs-26832545.md

latest2.3 KB
Original Source

DefinedNameConflictResolvingEventArgs.Validator Property

Gets or sets a validator used to check whether a new version of the conflict name is valid and unique.

Namespace : DevExpress.Spreadsheet

Assembly : DevExpress.Spreadsheet.v25.2.Core.dll

NuGet Package : DevExpress.Spreadsheet.Core

Declaration

csharp
public IDefinedNameValidator Validator { get; set; }
vb
Public Property Validator As IDefinedNameValidator

Property Value

TypeDescription
IDefinedNameValidator

An object implementing the IDefinedNameValidator interface.

|

Remarks

Use the Validator property to get access to the object that allows you to validate a new version of the conflict defined name before pasting it into the destination worksheet/workbook. When an end-user enters a new name in the New Name editor of the Name Conflict dialog, the SpreadsheetControl calls the IDefinedNameValidator.Validate method of the default IDefinedNameValidator implementation. However, you can implement your own validator with a custom IDefinedNameValidator.Validate method and assign it to the Validator property.

See Also

DefinedNameConflictResolvingEventArgs Class

DefinedNameConflictResolvingEventArgs Members

DevExpress.Spreadsheet Namespace