Skip to content

Commit a97ec04

Browse files
959853: Enhancing the changes
1 parent fbe2716 commit a97ec04

2 files changed

Lines changed: 38 additions & 55 deletions

File tree

Document-Processing/Excel/Spreadsheet/Blazor/cell-range.md

Lines changed: 29 additions & 46 deletions
Original file line numberDiff line numberDiff line change
@@ -60,6 +60,35 @@ Autofill can be performed in one of the following ways:
6060
* Drag and drop the cell using the fill handle element.
6161
* 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.
6262

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+
![Autofill Illustration](images/autofill.gif)
91+
6392
The `AutofillAsync()` method accepts string parameters in A1 notation for `fillRange` and `dataRange`. The available parameters are:
6493

6594
| Parameter | Type | Description |
@@ -100,52 +129,6 @@ The `AutofillAsync()` method accepts string parameters in A1 notation for `fillR
100129
{% endhighlight %}
101130
{% endtabs %}
102131

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-
![Autofill Illustration](images/autofill.gif)
148-
149132
## Events
150133

151134
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.

Document-Processing/Excel/Spreadsheet/Blazor/worksheet.md

Lines changed: 9 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -74,20 +74,20 @@ This method inserts one or more sheets at a specified position in the workbook w
7474

7575
### Get active worksheet
7676

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.
7878

7979
{% tabs %}
8080
{% highlight razor %}
8181

8282
<button @onclick="GetActiveWorksheet">Get Active Worksheet</button>
8383

84-
<SfSpreadsheet @ref=SpreadsheetRef DataSource="DataSourceBytes">
84+
<SfSpreadsheet @ref=SpreadsheetInstance DataSource="DataSourceBytes">
8585
<SpreadsheetRibbon></SpreadsheetRibbon>
8686
</SfSpreadsheet>
8787

8888
@code {
8989
public byte[] DataSourceBytes { get; set; }
90-
public SfSpreadsheet SpreadsheetRef;
90+
public SfSpreadsheet SpreadsheetInstance;
9191

9292
protected override void OnInitialized()
9393
{
@@ -98,7 +98,7 @@ Retrieves key properties of the [GetActiveWorksheet](https://help.syncfusion.co
9898
public async Task GetActiveWorksheet()
9999
{
100100
// Get the active sheet snapshot
101-
var active = spreadsheet.GetActiveWorksheet();
101+
var active = SpreadsheetInstance.GetActiveWorksheet();
102102
}
103103
}
104104

@@ -107,7 +107,7 @@ Retrieves key properties of the [GetActiveWorksheet](https://help.syncfusion.co
107107

108108
### Get cell or range data
109109

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.
111111

112112
Parameters
113113

@@ -122,13 +122,13 @@ Parameters
122122

123123
<button @onclick="GetData">Get Data</button>
124124

125-
<SfSpreadsheet @ref=SpreadsheetRef DataSource="DataSourceBytes">
125+
<SfSpreadsheet @ref=SpreadsheetInstance DataSource="DataSourceBytes">
126126
<SpreadsheetRibbon></SpreadsheetRibbon>
127127
</SfSpreadsheet>
128128

129129
@code {
130130
public byte[] DataSourceBytes { get; set; }
131-
public SfSpreadsheet SpreadsheetRef;
131+
public SfSpreadsheet SpreadsheetInstance;
132132

133133
protected override void OnInitialized()
134134
{
@@ -138,8 +138,8 @@ Parameters
138138

139139
public async Task GetData()
140140
{
141-
// Get the active sheet snapshot
142-
var data = spreadsheet.GetData("Sheet2!D5:E6");
141+
// Get the cellData snapshot
142+
var data = SpreadsheetInstance.GetData("Sheet2!D5:E6");
143143
}
144144
}
145145

0 commit comments

Comments
 (0)