Skip to content

Commit ff223c5

Browse files
Merge branch 'development' into AI_Coding_Assistant
2 parents 0b1fef4 + 6194828 commit ff223c5

File tree

1,105 files changed

+64829
-16653
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

1,105 files changed

+64829
-16653
lines changed

Document-Processing-toc.html

Lines changed: 318 additions & 40 deletions
Large diffs are not rendered by default.

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

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -42,7 +42,10 @@ Cell formatting options include:
4242
* **Middle** – Centers content vertically
4343
* **Bottom** – Default alignment
4444

45-
* **Wrap Text** - Displays long content on multiple lines within a single cell, preventing it from overflowing into adjacent cells.
45+
* **Wrap Text** - Displays long content on multiple lines within a single cell, preventing it from overflowing into adjacent cells. To enable text wrapping:
46+
1. Select the target cell or range (e.g., C5).
47+
2. Go to the Home tab.
48+
3. Click Wrap Text in the ribbon to toggle text wrapping for the selected cells.
4649

4750
Cell formatting can be applied or removed from a cell or range by using the options available in the component's built-in **Ribbon** under the **Home** tab.
4851

Lines changed: 160 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,160 @@
1+
---
2+
layout: post
3+
title: Rows and columns in Blazor Spreadsheet component | Syncfusion
4+
description: Checkout and learn here all about Rows and columns in the Syncfusion Blazor Spreadsheet component and more.
5+
platform: document-processing
6+
control: Spreadsheet
7+
documentation: ug
8+
---
9+
10+
# Rows and columns in Blazor Spreadsheet component
11+
12+
Spreadsheet is a tabular format consisting of rows and columns. The intersection point of rows and columns are called as cells. The list of operations that you can perform in rows and columns are,
13+
14+
* Insert
15+
* Setting Column and Row Count
16+
17+
## Insert
18+
19+
You can insert rows or columns anywhere in a spreadsheet.
20+
21+
### Row
22+
23+
The rows can be inserted in the following ways,
24+
25+
* Using [`InsertRowAsync`](https://help.syncfusion.com/cr/blazor/Syncfusion.Blazor.Spreadsheet.SfSpreadsheet.html#Syncfusion_Blazor_Spreadsheet_SfSpreadsheet_InsertRowAsync_System_Int32_System_Int32_System_Object_Syncfusion_Blazor_Spreadsheet_RowPosition_) method, you can insert the rows once the component is loaded.
26+
* Using context menu, insert the rows in the desired position.
27+
28+
The following code example shows the options for inserting rows in the spreadsheet.
29+
30+
{% tabs %}
31+
{% highlight razor tabtitle="Index.razor" %}
32+
33+
@using Syncfusion.Blazor.Spreadsheet
34+
@using Syncfusion.Blazor.Buttons
35+
36+
<SfButton OnClick="InsertRowsHandler" Content="Insert Rows"></SfButton>
37+
<SfSpreadsheet @ref="@SpreadsheetInstance" DataSource="DataSourceBytes">
38+
<SpreadsheetRibbon></SpreadsheetRibbon>
39+
</SfSpreadsheet>
40+
41+
@code {
42+
public byte[] DataSourceBytes { get; set; }
43+
public SfSpreadsheet SpreadsheetInstance;
44+
45+
protected override void OnInitialized()
46+
{
47+
string filePath = "wwwroot/Sample.xlsx";
48+
DataSourceBytes = File.ReadAllBytes(filePath);
49+
}
50+
51+
public async Task InsertRowsHandler()
52+
{
53+
// Insert 2 rows above row index 0 in the active sheet
54+
await SpreadsheetInstance.InsertRowAsync(0, 2);
55+
56+
// Insert 3 rows below row index 2 in the sheet named "Sheet2"
57+
await SpreadsheetInstance.InsertRowAsync(2, 3, "Sheet2", RowPosition.Below);
58+
59+
// Insert 1 row above row index 1 in the active sheet
60+
await SpreadsheetInstance.InsertRowAsync(1, 1, null, RowPosition.Above);
61+
62+
// Insert 4 rows below row index 3 in the sheet at index 3
63+
await SpreadsheetInstance.InsertRowAsync(3, 4, 3, RowPosition.Below);
64+
}
65+
}
66+
67+
{% endhighlight %}
68+
{% endtabs %}
69+
70+
### Column
71+
72+
The columns can be inserted in the following ways,
73+
74+
* Using [`InsertColumnAsync`](https://help.syncfusion.com/cr/blazor/Syncfusion.Blazor.Spreadsheet.SfSpreadsheet.html#Syncfusion_Blazor_Spreadsheet_SfSpreadsheet_InsertColumnAsync_System_Int32_System_Int32_System_Object_Syncfusion_Blazor_Spreadsheet_ColumnPosition_) method, you can insert the columns once the component is loaded.
75+
* Using context menu, insert the columns in the desired position.
76+
77+
The following code example shows the options for inserting columns in the spreadsheet.
78+
79+
{% tabs %}
80+
{% highlight razor tabtitle="Index.razor" %}
81+
82+
@using Syncfusion.Blazor.Spreadsheet
83+
@using Syncfusion.Blazor.Buttons
84+
85+
<SfButton OnClick="InsertColumnsHandler" Content="Insert Columns"></SfButton>
86+
<SfSpreadsheet @ref="@SpreadsheetInstance" DataSource="DataSourceBytes">
87+
<SpreadsheetRibbon></SpreadsheetRibbon>
88+
</SfSpreadsheet>
89+
90+
@code {
91+
public byte[] DataSourceBytes { get; set; }
92+
public SfSpreadsheet SpreadsheetInstance;
93+
94+
protected override void OnInitialized()
95+
{
96+
string filePath = "wwwroot/Sample.xlsx";
97+
DataSourceBytes = File.ReadAllBytes(filePath);
98+
}
99+
100+
public async Task InsertColumnsHandler()
101+
{
102+
// Insert 2 columns to the right of column index 2
103+
await SpreadsheetInstance.InsertColumnAsync(2, 2);
104+
105+
// Insert 3 columns to the left of column index 5
106+
await SpreadsheetInstance.InsertColumnAsync(5, 3, null, ColumnPosition.Left);
107+
108+
// Insert 1 column to the right of column B in Sheet2
109+
await SpreadsheetInstance.InsertColumnAsync(1, 1, "Sheet2", ColumnPosition.Right);
110+
111+
// Insert 4 columns to the left of column D in the sheet at index 3
112+
await SpreadsheetInstance.InsertColumnAsync(3, 4, 3, ColumnPosition.Left);
113+
}
114+
}
115+
116+
{% endhighlight %}
117+
{% endtabs %}
118+
119+
## Setting Row and Column Count
120+
121+
The Blazor Spreadsheet component enables you to define the initial number of rows and columns using the [`RowCount`](https://help.syncfusion.com/cr/blazor/Syncfusion.Blazor.Spreadsheet.SfSpreadsheet.html#Syncfusion_Blazor_Spreadsheet_SfSpreadsheet_RowCount) and [`ColumnCount`](https://help.syncfusion.com/cr/blazor/Syncfusion.Blazor.Spreadsheet.SfSpreadsheet.html#Syncfusion_Blazor_Spreadsheet_SfSpreadsheet_ColumnCount) properties.
122+
123+
* The default `RowCount` is **1000**.
124+
* The default `ColumnCount` is **200**.
125+
126+
### Rendering Behavior
127+
128+
- **Without Data Source:**
129+
130+
- When no data is bound to the spreadsheet, the sheet renders empty cells up to the specified row and column counts.
131+
132+
- **With Data Source (e.g., byte array or imported file):**
133+
134+
- If the data source contains fewer rows and columns than the specified row and column counts, the spreadsheet renders additional empty rows and columns to meet those counts.
135+
- If the data source contains more rows and columns than the specified row and column counts, the spreadsheet renders enough rows and columns to display all the data (i.e., it extends beyond those counts to fit the data). Your data is never truncated by these properties.
136+
137+
138+
You can set these properties as follows:
139+
140+
{% tabs %}
141+
{% highlight razor tabtitle="Index.razor" %}
142+
143+
@using Syncfusion.Blazor.Spreadsheet
144+
145+
<SfSpreadsheet DataSource="DataSourceBytes" RowCount="1200" ColumnCount="300" >
146+
<SpreadsheetRibbon></SpreadsheetRibbon>
147+
</SfSpreadsheet>
148+
149+
@code {
150+
public byte[] DataSourceBytes { get; set; }
151+
152+
protected override void OnInitialized()
153+
{
154+
string filePath = "wwwroot/Sample.xlsx";
155+
DataSourceBytes = File.ReadAllBytes(filePath);
156+
}
157+
}
158+
159+
{% endhighlight %}
160+
{% endtabs %}

Document-Processing/PDF/PDF-Library/NET/Working-with-Flow-Layout.md

Lines changed: 60 additions & 16 deletions
Original file line numberDiff line numberDiff line change
@@ -90,11 +90,11 @@ PdfDocument pdfDocument = render.ConvertToPDF(wordDocument);
9090
render.Dispose();
9191
wordDocument.Dispose();
9292

93-
//Save the document into stream.
94-
MemoryStream stream = new MemoryStream();
95-
pdfDocument.Save(stream);
96-
//Close the documents.
93+
//Save and close the PDF document.
94+
pdfDocument.Save("Output.pdf");
9795
pdfDocument.Close(true);
96+
//Close the document.
97+
wordDocument.Close();
9898
{% endhighlight %}
9999

100100
{% highlight c# tabtitle="C# [Windows-specific]" %}
@@ -180,6 +180,11 @@ You can create PDF document with text and image using the following code snippet
180180

181181
{% tabs %}
182182
{% highlight c# tabtitle="C# [Cross-platform]" %}
183+
184+
using Syncfusion.Pdf;
185+
using Syncfusion.DocIO.DLS;
186+
using Syncfusion.DocToPDFConverter;
187+
183188
//A new document is created.
184189
WordDocument document = new WordDocument();
185190
//Adding a new section to the document.
@@ -230,15 +235,18 @@ PdfDocument pdfDocument = render.ConvertToPDF(document);
230235
render.Dispose();
231236
document.Dispose();
232237

233-
//Save the document into stream.
234-
MemoryStream stream = new MemoryStream();
235-
pdfDocument.Save(stream);
236-
//Close the documents.
238+
//Saves the PDF file.
239+
pdfDocument.Save("Sample.pdf");
237240
pdfDocument.Close(true);
241+
document.Close();
238242
{% endhighlight %}
239243

240244
{% highlight c# tabtitle="C# [Windows-specific]" %}
241245

246+
using Syncfusion.Pdf;
247+
using Syncfusion.DocIO.DLS;
248+
using Syncfusion.DocToPDFConverter;
249+
242250
//A new document is created.
243251
WordDocument document = new WordDocument();
244252
//Adding a new section to the document.
@@ -293,6 +301,11 @@ document.Close();
293301
{% endhighlight %}
294302

295303
{% highlight vb.net tabtitle="VB.NET [Windows-specific]" %}
304+
305+
Imports Syncfusion.DocIO.DLS
306+
Imports Syncfusion.DocToPDFConverter
307+
Imports Syncfusion.Pdf
308+
296309
'A new document is created
297310
Dim document As New WordDocument()
298311
'Adding a new section to the document
@@ -355,6 +368,11 @@ You can create PDF document with simple table using the following code snippet.
355368

356369
{% tabs %}
357370
{% highlight c# tabtitle="C# [Cross-platform]" %}
371+
372+
using Syncfusion.Pdf;
373+
using Syncfusion.DocIO.DLS;
374+
using Syncfusion.DocToPDFConverter;
375+
358376
//Creates a new Word document.
359377
WordDocument wordDocument = new WordDocument();
360378
//Adding a new section to the document.
@@ -424,15 +442,19 @@ PdfDocument pdfDocument = render.ConvertToPDF(wordDocument);
424442
render.Dispose();
425443
wordDocument.Dispose();
426444

427-
//Save the document into stream.
428-
MemoryStream stream = new MemoryStream();
429-
pdfDocument.Save(stream);
430-
//Close the documents.
445+
//Save and close the PDF document.
446+
pdfDocument.Save("Output.pdf");
431447
pdfDocument.Close(true);
448+
//Close the document.
449+
wordDocument.Close();
432450
{% endhighlight %}
433451

434452
{% highlight c# tabtitle="C# [Windows-specific]" %}
435453

454+
using Syncfusion.Pdf;
455+
using Syncfusion.DocIO.DLS;
456+
using Syncfusion.DocToPDFConverter;
457+
436458
//Creates a new Word document.
437459
WordDocument wordDocument = new WordDocument();
438460
//Adding a new section to the document.
@@ -508,6 +530,11 @@ wordDocument.Close();
508530
{% endhighlight %}
509531

510532
{% highlight vb.net tabtitle="VB.NET [Windows-specific]" %}
533+
534+
Imports Syncfusion.DocIO.DLS
535+
Imports Syncfusion.DocToPDFConverter
536+
Imports Syncfusion.Pdf
537+
511538
'Creates a new Word document
512539
Dim wordDocument As New WordDocument()
513540
'Adding a new section to the document
@@ -593,7 +620,13 @@ Syncfusion Essential<sup>&reg;</sup> PDF supports creating a PDF document with f
593620
The following code snippet explains how to create a PDF document with image, paragraph text, header text, a line below the header text, and a table using flow model.
594621

595622
{% tabs %}
596-
{% highlight c# tabtitle="C#" %}
623+
{% highlight c# tabtitle="C# [Cross-platform]" %}
624+
625+
using Syncfusion.Drawing;
626+
using Syncfusion.Pdf;
627+
using Syncfusion.Pdf.Graphics;
628+
using Syncfusion.Pdf.Grid;
629+
597630
//Create a new PDF document.
598631
PdfDocument document = new PdfDocument();
599632
//Add a page to the document.
@@ -650,15 +683,20 @@ grid.ApplyBuiltinStyle(PdfGridBuiltinStyle.GridTable5DarkAccent5);
650683
//Draw the table in page, below the line with a height gap of 20.
651684
grid.Draw(page, new PointF(0, layoutResult.Bounds.Bottom + 20));
652685

653-
//Saving the PDF to the MemoryStream.
654-
MemoryStream stream = new MemoryStream();
655-
document.Save(stream);
686+
//Save the PDF document.
687+
document.Save("Output.pdf");
656688
//Close the instance of PdfDocument.
657689
document.Close(true);
690+
658691
{% endhighlight %}
659692

660693
{% highlight c# tabtitle="C# [Windows-specific]" %}
661694

695+
using System.Drawing;
696+
using Syncfusion.Pdf;
697+
using Syncfusion.Pdf.Graphics;
698+
using Syncfusion.Pdf.Grid;
699+
662700
//Create a new PDF document.
663701
PdfDocument document = new PdfDocument();
664702
//Add a page to the document.
@@ -722,6 +760,12 @@ document.Close(true);
722760
{% endhighlight %}
723761

724762
{% highlight vb.net tabtitle="VB.NET [Windows-specific]" %}
763+
764+
Imports System.Drawing
765+
Imports Syncfusion.Pdf
766+
Imports Syncfusion.Pdf.Graphics
767+
Imports Syncfusion.Pdf.Grid
768+
725769
'Create a new PDF document
726770
Dim document As PdfDocument = New PdfDocument
727771
'Add a page to the document

Document-Processing/PDF/PDF-Viewer/angular/accessibility.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@ documentation: ug
88
domainurl: ##DomainURL##
99
---
1010

11-
# Accessibility in Syncfusion<sup style="font-size:70%">&reg;</sup> Angular PDF Viewer components
11+
# Accessible PDF Viewing with Syncfusion Angular Components
1212

1313
The PDF Viewer component followed the accessibility guidelines and standards, including [ADA](https://www.ada.gov/), [Section 508](https://www.section508.gov/), [WCAG 2.2](https://www.w3.org/TR/WCAG22/) standards, and [WCAG roles](https://www.w3.org/TR/wai-aria/#roles) that are commonly used to evaluate accessibility.
1414

@@ -132,7 +132,7 @@ import { LinkAnnotationService, BookmarkViewService, MagnificationService,
132132
})
133133
export class AppComponent implements OnInit {
134134
public document = 'https://cdn.syncfusion.com/content/pdf/pdf-succinctly.pdf';
135-
public resourceUrl = 'https://cdn.syncfusion.com/ej2/24.1.41/dist/ej2-pdfviewer-lib';
135+
public resourceUrl = 'https://cdn.syncfusion.com/ej2/31.2.2/dist/ej2-pdfviewer-lib';
136136

137137
ngOnInit(): void {
138138
}

0 commit comments

Comments
 (0)