Class AutofillActionBeginEventArgs
Provides information about the AutofillActionBegin event.
Inherited Members
Namespace: Syncfusion.Blazor.Spreadsheet
Assembly: Syncfusion.Blazor.Spreadsheet.dll
Syntax
public class AutofillActionBeginEventArgs : AutofillActionEndEventArgs
Constructors
AutofillActionBeginEventArgs()
Declaration
public AutofillActionBeginEventArgs()
Properties
Cancel
Gets or sets a value indicating whether the autofill operation should be cancelled.
Declaration
public bool Cancel { get; set; }
Property Value
Type | Description |
---|---|
System.Boolean | A System.Boolean indicating whether to cancel the autofill operation. The default value is |
Remarks
Setting this property to true
during the
This can be used to implement custom validation or business rules for autofill operations.
Examples
private void OnAutofillActionBegin(AutofillActionBeginEventArgs args)
{
// Cancel autofill operations on protected ranges
if (IsProtectedRange(args.FillRange))
{
args.Cancel = true;
}
// Example: Prevent autofill for specific data types
if (ContainsFormulas(args.DataRange))
{
args.Cancel = true;
}
}