You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: Document-Processing/Excel/Spreadsheet/Blazor/cell-range.md
+29-46Lines changed: 29 additions & 46 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -60,6 +60,35 @@ Autofill can be performed in one of the following ways:
60
60
* Drag and drop the cell using the fill handle element.
61
61
* Use the [AutofillAsync()](https://help.syncfusion.com/cr/blazor/Syncfusion.Blazor.Spreadsheet.SfSpreadsheet.html#Syncfusion_Blazor_Spreadsheet_SfSpreadsheet_AutofillAsync_System_String_System_String_) method programmatically.
62
62
63
+
### Autofill options
64
+
65
+
Autofill supports multiple behaviors that control how adjacent cells are populated when using the fill handle. The available options are:
66
+
67
+
- Copy Cells
68
+
- Fill Series
69
+
- Fill Formatting Only
70
+
- Fill Without Formatting
71
+
72
+
#### Copy Cells
73
+
74
+
Copies the source cell content and formatting to the selected destination range. After dragging the fill handle from the selection to the target area, choose Copy Cells from the AutoFillOptions menu to replicate both values and presentation. When the source contains formulas, relative references are adjusted to match the destination.
75
+
76
+
#### Fill Series
77
+
78
+
Extends a recognizable pattern—such as numbers (1, 2, 3), days or months (Mon, Tue; Jan, Feb), or dates—into the destination range while preserving the source formatting. Drag the fill handle to the target cells and choose Fill Series in the AutoFillOptions menu to continue the detected sequence.
79
+
80
+
#### Fill Formatting Only
81
+
82
+
Applies only the source styling—number format, font, fill color, borders, and alignment—to the destination range, leaving existing values unchanged. Drag the fill handle over the target cells and select Fill Formatting Only from the AutoFillOptions menu to unify appearance without altering data.
83
+
84
+
#### Fill Without Formatting
85
+
86
+
Continues the detected series into the destination range but retains the destination’s existing formatting. After dragging the fill handle, choose Fill Without Formatting from the AutoFillOptions menu to apply only the new values while keeping the target style intact.
87
+
88
+
The following illustration demonstrates the use of autofill in the Spreadsheet component.
89
+
90
+

91
+
63
92
The `AutofillAsync()` method accepts string parameters in A1 notation for `fillRange` and `dataRange`. The available parameters are:
64
93
65
94
| Parameter | Type | Description |
@@ -100,52 +129,6 @@ The `AutofillAsync()` method accepts string parameters in A1 notation for `fillR
100
129
{% endhighlight %}
101
130
{% endtabs %}
102
131
103
-
### Autofill options
104
-
105
-
The Spreadsheet provides multiple autofill behaviors that determine how adjacent cells are populated when using the fill handle :
106
-
107
-
-`CopyCells`
108
-
-`FillSeries`
109
-
-`FillFormattingOnly`
110
-
-`FillWithoutFormatting`
111
-
112
-
113
-
#### Copy Cells
114
-
115
-
Copies the selected cell content and formatting to the adjacent cells.
116
-
117
-
Can be done in the following way:
118
-
119
-
- Using the fill handle to select the adjacent cell range and choosing the "Copy Cells" option from the "AutoFillOptions" menu to fill the adjacent cells.
120
-
121
-
#### Fill Series
122
-
123
-
Fills a series of numbers, characters, or dates based on the selected cell content to the adjacent cells, including their formats.
124
-
125
-
Can be done in the following ways:
126
-
127
-
- Using the fill handle to select the adjacent cell range and choosing the "Fill Series" option from the "AutoFillOptions" menu to fill the adjacent cells.
128
-
129
-
#### Fill Formatting Only
130
-
131
-
Fills only the cell style and number formatting based on the selected cell content to the adjacent cells, without copying the content itself.
132
-
133
-
Can be done in the following way:
134
-
135
-
- Using the fill handle to select the adjacent cell range and choosing the "Fill Formatting Only" option in the "AutoFillOptions" menu to fill the adjacent cells.
136
-
137
-
#### Fill Without Formatting
138
-
139
-
Fills a series of numbers, characters, or dates based on the selected cells to the adjacent cells, without copying their formats.
140
-
141
-
Can be done in the following way:
142
-
143
-
- Using the fill handle to select the adjacent cell range and choosing the "Fill Without Formatting" option in the "AutoFillOptions" menu to fill the adjacent cells.
144
-
145
-
The following illustration demonstrates the use of autofill in the Spreadsheet component.
146
-
147
-

148
-
149
132
## Events
150
133
151
134
The Blazor Spreadsheet provides events that are triggered during autofill operations, such as [AutofillActionBegin](https://help.syncfusion.com/cr/blazor/Syncfusion.Blazor.Spreadsheet.AutofillActionBeginEventArgs.html) and [AutofillActionEnd](https://help.syncfusion.com/cr/blazor/Syncfusion.Blazor.Spreadsheet.AutofillActionEndEventArgs.html). These events enable the execution of custom actions before and after an autofill operation, allowing for validation, customization, and response handling.
Copy file name to clipboardExpand all lines: Document-Processing/Excel/Spreadsheet/Blazor/worksheet.md
+9-9Lines changed: 9 additions & 9 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -74,20 +74,20 @@ This method inserts one or more sheets at a specified position in the workbook w
74
74
75
75
### Get active worksheet
76
76
77
-
Retrieves key properties of the [GetActiveWorksheet](https://help.syncfusion.com/cr/blazor/Syncfusion.Blazor.Spreadsheet.SfSpreadsheet.html#Syncfusion_Blazor_Spreadsheet_SfSpreadsheet_GetActiveWorksheet_System_Nullable_System_Int32__System_Int32_:~:text=A1%22%2C%20%22New%20York%22), including name, index, row and column counts, the active cell, and the current selection. Returns null when no active worksheet is available.
77
+
Retrieves key properties of the [GetActiveWorksheet](https://help.syncfusion.com/cr/blazor/Syncfusion.Blazor.Spreadsheet.SfSpreadsheet.html#Syncfusion_Blazor_Spreadsheet_SfSpreadsheet_GetActiveWorksheet), including name, index, row and column counts, the active cell, and the current selection. Returns null when no active worksheet is available.
78
78
79
79
{% tabs %}
80
80
{% highlight razor %}
81
81
82
82
<button @onclick="GetActiveWorksheet">Get Active Worksheet</button>
@@ -98,7 +98,7 @@ Retrieves key properties of the [GetActiveWorksheet](https://help.syncfusion.co
98
98
public async Task GetActiveWorksheet()
99
99
{
100
100
// Get the active sheet snapshot
101
-
var active = spreadsheet.GetActiveWorksheet();
101
+
var active = SpreadsheetInstance.GetActiveWorksheet();
102
102
}
103
103
}
104
104
@@ -107,7 +107,7 @@ Retrieves key properties of the [GetActiveWorksheet](https://help.syncfusion.co
107
107
108
108
### Get cell or range data
109
109
110
-
Retrieves key properties of the [GetData](https://help.syncfusion.com/cr/blazor/Syncfusion.Blazor.Spreadsheet.SfSpreadsheet.html#Syncfusion_Blazor_Spreadsheet_SfSpreadsheet_GetActiveWorksheet_System_Nullable_System_Int32__System_Int32_:~:text=Selected%3A%20%7Bactive.SelectedRange%7D%22), for a single cell or a selected range and returns a map keyed by each cell's address. Each value is a `CellData` built from the corresponding worksheet cell, including value, number format, formatted display text (when a format is applied), wrap state, lock state, optional hyperlink, and computed style. Returns null when the provided address is null or whitespace.
110
+
Retrieves key properties of the [GetData](https://help.syncfusion.com/cr/blazor/Syncfusion.Blazor.Spreadsheet.SfSpreadsheet.html#Syncfusion_Blazor_Spreadsheet_SfSpreadsheet_GetData_System_String_), for a single cell or a selected range and returns a map keyed by each cell's address. Each value is a `CellData` built from the corresponding worksheet cell, including value, number format, formatted display text (when a format is applied), wrap state, lock state, optional hyperlink, and computed style. Returns null when the provided address is null or whitespace.
0 commit comments