From e7318d8181a0f3538a5561104a39711f4327bba1 Mon Sep 17 00:00:00 2001 From: RajClinton26 Date: Thu, 23 Jul 2026 15:48:34 +0530 Subject: [PATCH 1/4] ES-1041967 - UG corrections --- .../Winforms/Conditional-Formatting.md | 47 +++++----- .../Excel/Spreadsheet/Winforms/Conversion.md | 25 +++-- .../Spreadsheet/Winforms/Custom-Formula.md | 15 +-- .../Spreadsheet/Winforms/Data-Management.md | 20 ++-- .../Excel/Spreadsheet/Winforms/Editing.md | 92 +++++++++---------- .../Spreadsheet/Winforms/Find-and-Replace.md | 80 ++++++++-------- .../Excel/Spreadsheet/Winforms/Formatting.md | 48 +++++----- .../Excel/Spreadsheet/Winforms/Formulas.md | 43 +++++---- .../Winforms/Interactive-Features.md | 86 ++++++++--------- .../Excel/Spreadsheet/Winforms/Outline.md | 21 +++-- .../Excel/Spreadsheet/Winforms/Overview.md | 46 +++++----- .../Excel/Spreadsheet/Winforms/Printing.md | 28 +++--- .../Spreadsheet/Winforms/Rows-and-Columns.md | 38 ++++---- .../Excel/Spreadsheet/Winforms/Selection.md | 53 ++++++----- .../Excel/Spreadsheet/Winforms/Shapes.md | 40 ++++---- .../Winforms/Sorting-and-Filtering.md | 18 ++-- .../Winforms/Workbook-Operations.md | 16 ++-- .../Winforms/Working-with-Spreadsheet.md | 22 ++--- .../Winforms/Worksheet-Management.md | 69 +++++++------- .../Spreadsheet/Winforms/localization.md | 35 ++++--- .../Spreadsheet/Winforms/ui-builder-skill.md | 20 ++-- 21 files changed, 429 insertions(+), 433 deletions(-) diff --git a/Document-Processing/Excel/Spreadsheet/Winforms/Conditional-Formatting.md b/Document-Processing/Excel/Spreadsheet/Winforms/Conditional-Formatting.md index 06d890eeda..2956d7ec38 100644 --- a/Document-Processing/Excel/Spreadsheet/Winforms/Conditional-Formatting.md +++ b/Document-Processing/Excel/Spreadsheet/Winforms/Conditional-Formatting.md @@ -9,14 +9,14 @@ documentation: ug # Conditional Formatting in Windows Forms Spreadsheet -This section explains about how to apply conditional formatting rules programmatically at run time in Spreadsheet. +This section explains how to apply conditional formatting rules programmatically at runtime in Spreadsheet. -In Spreadsheet, to apply conditional format for a cell or range of cells, add [IConditionalFormat](https://help.syncfusion.com/cr/windowsforms/Syncfusion.XlsIO.IConditionalFormat.html) to that range by using [AddCondition](https://help.syncfusion.com/cr/windowsforms/Syncfusion.XlsIO.IConditionalFormats.html#Syncfusion_XlsIO_IConditionalFormats_AddCondition) method. +In Spreadsheet, to apply a conditional format to a cell or range of cells, add a new [IConditionalFormat](https://help.syncfusion.com/cr/windowsforms/Syncfusion.XlsIO.IConditionalFormat.html) to that range by using the [AddCondition](https://help.syncfusion.com/cr/windowsforms/Syncfusion.XlsIO.IConditionalFormats.html#Syncfusion_XlsIO_IConditionalFormats_AddCondition) method. {% tabs %} {% highlight c# %} -var worksheet =spreadsheet.Workbook.Worksheets[0]; +var worksheet = spreadsheet.Workbook.Worksheets[0]; IConditionalFormats condition = worksheet.Range["A1"].ConditionalFormats; IConditionalFormat condition1 = condition.AddCondition(); @@ -25,9 +25,9 @@ IConditionalFormat condition1 = condition.AddCondition(); ## Highlight Cell Rules -### Based on CellValue +### Based on Cell Value -To format the cells based on cell value, define the conditional format type as **CellValue** and other formatting options such as formula, operator, background color etc., to the specified cell or range. Finally, invalidate the cells to refresh the view. +To format the cells based on a cell value, define the conditional format type as **CellValue** and set the operator, threshold (`FirstFormula`), and background color on the specified cell or range. {% tabs %} {% highlight c# %} @@ -48,7 +48,7 @@ spreadsheet.ActiveGrid.InvalidateCell(GridRangeInfo.Col(1)); ### Based on Formula or Cell References -To format the cells based on Formula or Cell References, define the conditional format type as **Formula** and other formatting options such as formula, background color etc., to the specified cell or range. Finally, invalidate the cells to refresh the view. +To format the cells based on a formula or cell references, define the conditional format type as **Formula** and set the `FirstFormula` and background color on the specified cell or range. {% tabs %} {% highlight c# %} @@ -66,9 +66,9 @@ spreadsheet.ActiveGrid.InvalidateCell(GridRangeInfo.Col(1)); {% endhighlight %} {% endtabs %} -### Based on SpecificText +### Based on Specific Text -To format the cells based on specified text, define the conditional format type as **SpecificText** and other formatting options such as the particular text, operator, background color etc., to the specified cell or range. Finally, invalidate the cells to refresh the view. +To format the cells based on a specified text, define the conditional format type as **SpecificText** and set the `Text`, `Operator`, and background color on the specified cell or range. {% tabs %} {% highlight c# %} @@ -87,9 +87,9 @@ spreadsheet.ActiveGrid.InvalidateCell(GridRangeInfo.Col(1)); {% endhighlight %} {% endtabs %} -### Based on TimePeriod +### Based on Time Period -To format the cells based on time period, define the conditional format type as **TimePeriod** and other formatting options such as the time periods for the date, operator, background color etc., to the specified cell or range. Finally, invalidate the cells to refresh the view. +To format the cells based on a time period, define the conditional format type as **TimePeriod** and set the `TimePeriodType` and background color on the specified cell or range. Common `CFTimePeriods` values include `Today`, `Yesterday`, `Last7Days`, `LastMonth`, `NextMonth`, and `ThisWeek`. {% tabs %} {% highlight c# %} @@ -98,7 +98,7 @@ var worksheet = spreadsheet.Workbook.Worksheets[0]; IConditionalFormats condition = worksheet.Range["A1:A100"].ConditionalFormats; IConditionalFormat condition1 = condition.AddCondition(); condition1.FormatType = ExcelCFType.TimePeriod; -condition1.TimePeriodType = CFTimePeriods.Today +condition1.TimePeriodType = CFTimePeriods.Today; condition1.BackColor = ExcelKnownColors.Light_orange; spreadsheet.ActiveGrid.InvalidateCell(GridRangeInfo.Col(1)); @@ -106,19 +106,19 @@ spreadsheet.ActiveGrid.InvalidateCell(GridRangeInfo.Col(1)); {% endhighlight %} {% endtabs %} -Sample Output +**Sample Output** -![Formatting based on time](Conditional-Formatting_images/Conditional-Formatting_img1.PNG) +![Formatting based on time period](Conditional-Formatting_images/Conditional-Formatting_img1.PNG) ## Data Bars -To apply the conditional format based on data bars,define the conditional format type as a **DataBar** and specify the properties associated with DataBars such as bar color, MinPoint, MaxPoint etc.,.to the specified cell or range. Finally, invalidate that cells to update the view. +To apply the conditional format based on data bars, define the conditional format type as **DataBar** and set the `BarColor`, `MinPoint`, and `MaxPoint` on the specified cell or range. The `MinPoint` and `MaxPoint` accept a `ConditionValueType` such as `LowestValue`, `HighestValue`, `Number`, `Percent`, `Percentile`, or `Formula`. {% tabs %} {% highlight c# %} var worksheet = spreadsheet.Workbook.Worksheets[0]; -var conditionalFormats = worksheet.Range["B1:B100"].ConditionalFormats; +var conditionalFormats = worksheet.Range["B1:B100"].ConditionalFormats; var conditionalFormat = conditionalFormats.AddCondition(); conditionalFormat.FormatType = ExcelCFType.DataBar; @@ -131,13 +131,13 @@ spreadsheet.ActiveGrid.InvalidateCell(GridRangeInfo.Col(2)); {% endhighlight %} {% endtabs %} -Sample Output +**Sample Output** -![Appearance with data bars](Conditional-Formatting_images/Conditional-Formatting_img2.PNG) +![Formatting with data bars](Conditional-Formatting_images/Conditional-Formatting_img2.PNG) ## Color Scales -To apply the conditional format based on color scales, define the conditional format type as a **ColorScale** and specify the other properties associated with ColorScale such as condition count,color criteria etc.,to the specified cell or range. Finally,invalidate that cells to update the view. +To apply the conditional format based on color scales, define the conditional format type as **ColorScale** and set the condition count (2 or 3) along with the color criteria on the specified cell or range. Each `Criteria[index]` defines a color stop; with three criteria you get a 2- or 3-color gradient between the stop colors. {% tabs %} {% highlight c# %} @@ -156,14 +156,13 @@ spreadsheet.ActiveGrid.InvalidateCell(GridRangeInfo.Col(3)); {% endhighlight %} {% endtabs %} -Sample Output - -![Formatting using color gradient](Conditional-Formatting_images/Conditional-Formatting_img3.PNG) +**Sample Output** +![Formatting using color scale](Conditional-Formatting_images/Conditional-Formatting_img3.PNG) ## Icon Sets -To apply the conditional format for Icon sets, define the conditional format type as **IconSet** and the properties associated with IconSet such as the type of the icon,criteria etc., to the specified cell or range. Finally, invalidate that cells to update the view. +To apply the conditional format based on icon sets, define the conditional format type as **IconSet** and set the `IconSet` property (from the `ExcelIconSetType` enum such as `ThreeArrows`, `ThreeSymbols`, `ThreeTrafficLights`, `ThreeFlags`, or `ThreeSigns`) on the specified cell or range. Optionally configure threshold criteria via `IconSet.Criteria`. {% tabs %} {% highlight c# %} @@ -180,6 +179,6 @@ spreadsheet.ActiveGrid.InvalidateCell(GridRangeInfo.Col(4)); {% endhighlight %} {% endtabs %} -Sample Output +**Sample Output** -![Formatting with icons](Conditional-Formatting_images/Conditional-Formatting_img4.PNG) +![Formatting with icon sets](Conditional-Formatting_images/Conditional-Formatting_img4.PNG) diff --git a/Document-Processing/Excel/Spreadsheet/Winforms/Conversion.md b/Document-Processing/Excel/Spreadsheet/Winforms/Conversion.md index 220d336ca2..bb31b7665e 100644 --- a/Document-Processing/Excel/Spreadsheet/Winforms/Conversion.md +++ b/Document-Processing/Excel/Spreadsheet/Winforms/Conversion.md @@ -8,14 +8,14 @@ documentation: ug --- # Conversion in Windows Forms Spreadsheet -This section explains about the conversion of workbook in Spreadsheet into image, PDF and HTML +This section explains the conversion of a workbook in Spreadsheet to image, PDF, and HTML formats. -## Convert into Image +## Convert to Image -Spreadsheet provides support to convert a worksheet in to an image of type Bitmap or Metafile based on the input range of rows and columns with all basic formats preserved, By using the [ConvertToImage](https://help.syncfusion.com/cr/windowsforms/Syncfusion.XlsIO.IWorksheet.html#Syncfusion_XlsIO_IWorksheet_ConvertToImage_System_Int32_System_Int32_System_Int32_System_Int32_) method,worksheet can be converted into an image. +Spreadsheet provides support to convert a worksheet into an image of type `Bitmap` or `Metafile` based on the input range of rows and columns with all basic formats preserved. By using the [ConvertToImage](https://help.syncfusion.com/cr/windowsforms/Syncfusion.XlsIO.IWorksheet.html#Syncfusion_XlsIO_IWorksheet_ConvertToImage_System_Int32_System_Int32_System_Int32_System_Int32_) method, you can convert a worksheet into an image. {% tabs %} -{% highlight c# %} +{% highlight c# tabtitle="C#" %} IWorksheet sheet = spreadsheet.Workbook.ActiveSheet; sheet.UsedRangeIncludesFormatting = false; @@ -31,16 +31,16 @@ System.Diagnostics.Process.Start("Sample.png"); {% endhighlight %} {% endtabs %} -## Convert into PDF +## Convert to PDF -Spreadsheet provides support to export the Excel workbook to PDF using ExcelToPdfConverter. +Spreadsheet provides support to export the Excel workbook to PDF using `ExcelToPdfConverter`. -For converting the Excel sheet to PDF, “Syncfusion.ExcelToPDFConverter.Base.dll” and “Syncfusion.Pdf.Base.dll” references should be added. +For converting the Excel worksheet to PDF, the `Syncfusion.ExcelToPDFConverter.Base.dll` and `Syncfusion.Pdf.Base.dll` references should be added. -Export the Excel workbook as PDF document using [Convert](https://help.syncfusion.com/cr/windowsforms/Syncfusion.ExcelToPdfConverter.ExcelToPdfConverter.html#Syncfusion_ExcelToPdfConverter_ExcelToPdfConverter_Convert) method of [ExcelToPdfConverter](https://help.syncfusion.com/cr/windowsforms/Syncfusion.ExcelToPdfConverter.ExcelToPdfConverter.html) class which is available under the name space “Syncfusion.ExcelToPdfConverter” +Export the Excel workbook as a PDF document using the [Convert](https://help.syncfusion.com/cr/windowsforms/Syncfusion.ExcelToPdfConverter.ExcelToPdfConverter.html#Syncfusion_ExcelToPdfConverter_ExcelToPdfConverter_Convert) method of the [ExcelToPdfConverter](https://help.syncfusion.com/cr/windowsforms/Syncfusion.ExcelToPdfConverter.ExcelToPdfConverter.html) class, which is available in the namespace `Syncfusion.ExcelToPdfConverter`. {% tabs %} -{% highlight c# %} +{% highlight c# tabtitle="C#" %} ExcelToPdfConverter converter = new ExcelToPdfConverter(spreadsheet.Workbook); @@ -65,16 +65,15 @@ System.Diagnostics.Process.Start("Sample.pdf"); {% endhighlight %} {% endtabs %} -## Convert into HTML +## Convert to HTML -Spreadsheet provides support to convert the excel workbook into HTML page. +Spreadsheet provides support to convert the Excel workbook into an HTML page. {% tabs %} -{% highlight c# %} +{% highlight c# tabtitle="C#" %} spreadsheet.Workbook.SaveAsHtml("Sample.html", HtmlSaveOptions.Default); System.Diagnostics.Process.Start("Sample.html"); {% endhighlight %} {% endtabs %} - diff --git a/Document-Processing/Excel/Spreadsheet/Winforms/Custom-Formula.md b/Document-Processing/Excel/Spreadsheet/Winforms/Custom-Formula.md index a03537af33..3e22295956 100644 --- a/Document-Processing/Excel/Spreadsheet/Winforms/Custom-Formula.md +++ b/Document-Processing/Excel/Spreadsheet/Winforms/Custom-Formula.md @@ -9,7 +9,7 @@ documentation: ug # Custom Formula in Windows Forms Spreadsheet -Spreadsheet allows you to add custom formulas into its function library. You can add the custom formula into the Spreadsheet by using the [AddFunction](https://help.syncfusion.com/cr/windowsforms/Syncfusion.Windows.Forms.CellGrid.FormulaEngine.html#Syncfusion_Windows_Forms_CellGrid_FormulaEngine_AddFunction_System_String_Syncfusion_Windows_Forms_CellGrid_FormulaEngine_LibraryFunction_) method of [FormulaEngine](https://help.syncfusion.com/cr/windowsforms/Syncfusion.Windows.Forms.CellGrid.FormulaEngine.html), +Spreadsheet allows you to add custom formulas into its function library by using the [AddFunction](https://help.syncfusion.com/cr/windowsforms/Syncfusion.Windows.Forms.CellGrid.FormulaEngine.html#Syncfusion_Windows_Forms_CellGrid_FormulaEngine_AddFunction_System_String_Syncfusion_Windows_Forms_CellGrid_FormulaEngine_LibraryFunction_) method of [FormulaEngine](https://help.syncfusion.com/cr/windowsforms/Syncfusion.Windows.Forms.CellGrid.FormulaEngine.html). {% tabs %} {% highlight c# %} @@ -19,28 +19,29 @@ spreadsheet.WorkbookLoaded += spreadsheet_WorkbookLoaded; void spreadsheet_WorkbookLoaded(object sender, WorkbookLoadedEventArgs args) { + // Iterate over every grid in the loaded workbook and register the custom formula on each one. foreach (var grid in args.GridCollection) AddCustomFormula(grid); - + //Computing the formula at runtime var range = spreadsheet.ActiveSheet.Range["B2"]; spreadsheet.ActiveGrid.SetCellValue(range,"=FindLength(Sample)"); - -} + +} private void AddCustomFormula(SpreadsheetGrid grid) { - // Add a formula named FindLength to the Library. + // Add a formula named FindLength to the library. grid.FormulaEngine.AddFunction("FindLength", new FormulaEngine.LibraryFunction(ComputeLength)); } -//Implementation of formula +// Custom formula implementation. public string ComputeLength(string range) { - //Used to calculate the length of the string + // Used to calculate the length of the string. return range.Length.ToString(); } diff --git a/Document-Processing/Excel/Spreadsheet/Winforms/Data-Management.md b/Document-Processing/Excel/Spreadsheet/Winforms/Data-Management.md index d6e971a901..f62366b7ff 100644 --- a/Document-Processing/Excel/Spreadsheet/Winforms/Data-Management.md +++ b/Document-Processing/Excel/Spreadsheet/Winforms/Data-Management.md @@ -8,20 +8,19 @@ documentation: ug --- # Data Management in Windows Forms Spreadsheet -This section explains about how to import and export the DataTable in `Spreadsheet`. +This section explains how to import and export data in the Syncfusion® `Spreadsheet` control. ## Import from DataTable -Spreadsheet provides support to import the data. The following list of data can be imported into the worksheet +The following data sources can be imported into the worksheet: -* Data Table -* Data Column -* Data View +* DataTable +* DataColumn +* DataView * Business Objects * Array -To import the data from a data table, you can use [ImportDataTable](https://help.syncfusion.com/file-formats/xlsio/working-with-data#importing-data-to-worksheets) -method +To import data from a `DataTable`, use the [ImportDataTable](https://help.syncfusion.com/file-formats/xlsio/working-with-data#importing-data-to-worksheets) method. {% tabs %} {% highlight c# %} @@ -32,12 +31,11 @@ spreadsheet.ActiveGrid.InvalidateCells(); {% endhighlight %} {% endtabs %} -For more details regarding importing of data, please refer the [XlsIO UG](https://help.syncfusion.com/file-formats/xlsio/working-with-data#importing-data-to-worksheets) +For more details, refer to the [XlsIO UG](https://help.syncfusion.com/file-formats/xlsio/working-with-data#importing-data-to-worksheets). ## Export to DataTable -Spreadsheet provides support to export the data. To Export the data from a data table, you can use [ExportDataTable](https://help.syncfusion.com/file-formats/xlsio/working-with-data#exporting-from-worksheet-to-data-table) -method +To export worksheet data to a `DataTable`, use the [ExportDataTable](https://help.syncfusion.com/file-formats/xlsio/working-with-data#exporting-from-worksheet-to-data-table) method. {% tabs %} {% highlight c# %} @@ -50,4 +48,4 @@ DataTable data_table = sheet.ExportDataTable(range, ExcelExportDataTableOptions. {% endhighlight %} {% endtabs %} -For more details regarding exporting of data, please refer the [XlsIO UG](https://help.syncfusion.com/file-formats/xlsio/working-with-data#exporting-from-worksheet-to-data-table) +For more details, refer to the [XlsIO UG](https://help.syncfusion.com/file-formats/xlsio/working-with-data#exporting-from-worksheet-to-data-table). diff --git a/Document-Processing/Excel/Spreadsheet/Winforms/Editing.md b/Document-Processing/Excel/Spreadsheet/Winforms/Editing.md index 826187d7e2..64c2644e8f 100644 --- a/Document-Processing/Excel/Spreadsheet/Winforms/Editing.md +++ b/Document-Processing/Excel/Spreadsheet/Winforms/Editing.md @@ -9,18 +9,18 @@ documentation: ug # Editing in Windows Forms Spreadsheet -This section explains about the Editing behavior, Data Validation and Hyperlinks in Spreadsheet. +This section explains the editing behavior, data validation, and hyperlinks in the Spreadsheet. ## Cell Editing -The Spreadsheet control provides support for editing, you can modify and commit the cell values in the workbook. +The Spreadsheet control supports editing, allowing you to modify and commit cell values in the workbook. -By default, Editing will be enabled in `Spreadsheet`,but if you want to disable the editing in Spreadsheet, then set the [AllowEditing](https://help.syncfusion.com/cr/windowsforms/Syncfusion.Windows.Forms.CellGrid.SfCellGrid.html#Syncfusion_Windows_Forms_CellGrid_SfCellGrid_AllowEditing) Property to be false. +By default, editing is enabled in the `Spreadsheet`. To disable editing, set the [AllowEditing](https://help.syncfusion.com/cr/windowsforms/Syncfusion.Windows.Forms.CellGrid.SfCellGrid.html#Syncfusion_Windows_Forms_CellGrid_SfCellGrid_AllowEditing) property to `false`. {% tabs %} {% highlight c# %} -void spreadsheet_WorkbookLoaded(object sender, WorkbookLoadedEventArgs args) +private void spreadsheet_WorkbookLoaded(object sender, WorkbookLoadedEventArgs args) { spreadsheet.ActiveGrid.AllowEditing = false; } @@ -32,7 +32,7 @@ void spreadsheet_WorkbookLoaded(object sender, WorkbookLoadedEventArgs args) #### Start editing -User can edit a cell programmatically by using [BeginEdit](https://help.syncfusion.com/cr/windowsforms/Syncfusion.Windows.Forms.Spreadsheet.SpreadsheetCurrentCell.html#Syncfusion_Windows_Forms_Spreadsheet_SpreadsheetCurrentCell_BeginEdit_System_Boolean_) method. +You can edit a cell programmatically by using the [BeginEdit](https://help.syncfusion.com/cr/windowsforms/Syncfusion.Windows.Forms.Spreadsheet.SpreadsheetCurrentCell.html#Syncfusion_Windows_Forms_Spreadsheet_SpreadsheetCurrentCell_BeginEdit_System_Boolean_) method. {% tabs %} {% highlight c# %} @@ -44,28 +44,28 @@ spreadsheet.ActiveGrid.CurrentCell.BeginEdit(true); #### End editing -User can end the editing of a cell programmatically in any of the following way, +You can end the editing of a cell programmatically in any of the following ways: -* [ValidateAndEndEdit](https://help.syncfusion.com/cr/windowsforms/Syncfusion.Windows.Forms.CellGrid.GridCurrentCell.html#Syncfusion_Windows_Forms_CellGrid_GridCurrentCell_ValidateAndEndEdit) - Validates and ends the edit operation for the current cell. if the cancel is "true", then the current cell remains in edit mode else if the validation is true, commits the new value and moved to next cell or else if the validation is false, it reverts the old value and moved to next cell. +* [ValidateAndEndEdit](https://help.syncfusion.com/cr/windowsforms/Syncfusion.Windows.Forms.CellGrid.GridCurrentCell.html#Syncfusion_Windows_Forms_CellGrid_GridCurrentCell_ValidateAndEndEdit) - Validates and ends the edit operation for the current cell. If the cancel argument is `true`, the current cell remains in edit mode. If validation succeeds, the new value is committed and the active cell moves to the next cell. If validation fails, the old value is restored and the active cell moves to the next cell. -* [EndEdit](https://help.syncfusion.com/cr/windowsforms/Syncfusion.Windows.Forms.CellGrid.GridCurrentCell.html#Syncfusion_Windows_Forms_CellGrid_GridCurrentCell_EndEdit_System_Boolean_) - Commits and ends the edit operation for the current cell, if it is passed with parameter _"true"_, commits the new changes for the cell, else reverts the old value. +* [EndEdit](https://help.syncfusion.com/cr/windowsforms/Syncfusion.Windows.Forms.CellGrid.GridCurrentCell.html#Syncfusion_Windows_Forms_CellGrid_GridCurrentCell_EndEdit_System_Boolean_) - Commits and ends the edit operation for the current cell. If `true` is passed, the new value is committed; otherwise, the old value is restored. {% tabs %} {% highlight c# %} -//Validates and end the edit operation, +//Validates and ends the edit operation, spreadsheet.ActiveGrid.CurrentCell.ValidateAndEndEdit(); -//Commits the value and end the edit operation, +//Commits the value and ends the edit operation, spreadsheet.ActiveGrid.CurrentCell.EndEdit(true); {% endhighlight %} {% endtabs %} -### Locking or unlocking a cell +### Locking or UnLocking a cell -Locking cells allows you to disable editing and formatting the cells when the sheet is protected. By default, every cells are locked in the worksheet. -But while in protect mode, if you want to edit or format a cell, you can unlock the cells. +Locking cells allows you to disable editing and formatting the cells when the sheet is protected. By default, every cell is locked in the worksheet. +When the sheet is protected, you can unlock specific cells to allow editing or formatting. {% tabs %} {% highlight c# %} @@ -73,18 +73,18 @@ But while in protect mode, if you want to edit or format a cell, you can unlock var worksheet = spreadsheet.ActiveSheet; var excelStyle = worksheet.Range["A2"].CellStyle; -//To unlock a cell, +//To unlock a cell, excelStyle.Locked = false; -//To lock a cell, -excelStyle.Locked = true; +//To lock a cell, +excelStyle.Locked = true; {% endhighlight %} {% endtabs %} ### Properties, Methods, and Events -The order of events when editing and committing a cell value in Spreadsheet, +The order of events when editing and committing a cell value in the Spreadsheet is as follows: @@ -94,7 +94,7 @@ Description +Occurs when the current cell enters edit mode. This event allows you to cancel entering edit mode. +Occurs when the current cell value is going to be validated. It allows you to validate the value and cancel the end editing. +Occurs after the current cell value is validated. +Occurs when the current cell leaves edit mode.
{{ '[CurrentCellBeginEdit](https://help.syncfusion.com/cr/windowsforms/Syncfusion.Windows.Forms.CellGrid.SfCellGrid.html)' | markdownify }} -Occurs when the current cell enters into edit mode. This event allows to cancel entering the edit mode.
{{ '[CurrentCellValueChanged](https://help.syncfusion.com/cr/windowsforms/Syncfusion.Windows.Forms.CellGrid.SfCellGrid.html)' | markdownify }} @@ -102,18 +102,18 @@ Occurs when the current cell value is changed in edit mode.
{{ '[CurrentCellValidating](https://help.syncfusion.com/cr/windowsforms/Syncfusion.Windows.Forms.CellGrid.SfCellGrid.html)' | markdownify }} -Occurs when the current cell value is going to be validated. It allows you to validate and cancel the end editing.
{{ '[CurrentCellValidated](https://help.syncfusion.com/cr/windowsforms/Syncfusion.Windows.Forms.CellGrid.SfCellGrid.html)' | markdownify }} -Occurs after the current cell is validated.
{{ '[CurrentCellEndEdit](https://help.syncfusion.com/cr/windowsforms/Syncfusion.Windows.Forms.CellGrid.SfCellGrid.html)' | markdownify }} -Occurs when the current cell leaves from edit mode.
-Below table list the properties associated with Editing. +The table below lists the properties associated with editing. @@ -127,18 +127,18 @@ Gets or sets the value indicating whether to allow the editing operation or not. +Gets or sets a value indicating whether the editor selects all the cell text or moves the caret to the last position. +Gets or sets the trigger options that cause cells to enter edit mode. +Gets a value indicating whether the current cell is in edit mode.
{{ '[EditorSelectionBehavior](https://help.syncfusion.com/cr/windowsforms/Syncfusion.Windows.Forms.CellGrid.SfCellGrid.html#Syncfusion_Windows_Forms_CellGrid_SfCellGrid_EditorSelectionBehavior)' | markdownify }} -Gets or sets a value indicating whether editor select all the value or move last position.
{{ '[EditTrigger](https://help.syncfusion.com/cr/windowsforms/Syncfusion.Windows.Forms.CellGrid.SfCellGrid.html#Syncfusion_Windows_Forms_CellGrid_SfCellGrid_EditTrigger)' | markdownify }} -Gets or sets a value indicating any of the trigger options will cause cells to enter Edit Mode.
{{ '[IsEditing](https://help.syncfusion.com/cr/windowsforms/Syncfusion.Windows.Forms.CellGrid.GridCurrentCell.html#Syncfusion_Windows_Forms_CellGrid_GridCurrentCell_isEditing)' | markdownify }} -Gets whether the current cell is in edit mode or not.
-Below table list the methods associated with Editing. +The table below lists the methods associated with editing. @@ -148,11 +148,11 @@ Description +Begins the edit operation for the current cell and returns `true` if the current cell enters edit mode. +Commits and ends the edit operation for the current cell.
{{ '[BeginEdit](https://help.syncfusion.com/cr/windowsforms/Syncfusion.Windows.Forms.Spreadsheet.SpreadsheetCurrentCell.html#Syncfusion_Windows_Forms_Spreadsheet_SpreadsheetCurrentCell_BeginEdit_System_Boolean_)' | markdownify }} -Begins the editing operation of the current cell and returns true if the current cell enters into edit mode.
{{ '[EndEdit](https://help.syncfusion.com/cr/windowsforms/Syncfusion.Windows.Forms.Spreadsheet.SpreadsheetCurrentCell.html#Syncfusion_Windows_Forms_Spreadsheet_SpreadsheetCurrentCell_EndEdit_System_Boolean_)' | markdownify }} -Commits and ends the edit operation of the current cell.
{{ '[ValidateAndEndEdit](https://help.syncfusion.com/cr/windowsforms/Syncfusion.Windows.Forms.CellGrid.GridCurrentCell.html#Syncfusion_Windows_Forms_CellGrid_GridCurrentCell_ValidateAndEndEdit)' | markdownify }} @@ -169,7 +169,7 @@ Data Validation is a list of rules to limit the type of data or the values that ### Applying data validation at runtime -Spreadsheet allows the user to apply the data validation rules at runtime for particular cell or range using `IDataValidation` interface. +The Spreadsheet allows you to apply data validation rules at runtime for a particular cell or range using the `IDataValidation` interface. {% tabs %} {% highlight c# %} @@ -214,35 +214,35 @@ validation.ErrorBoxText = "Sum of the values in A1 and A2 should be greater than For more reference, please go through the [XlsIO](https://help.syncfusion.com/file-formats/xlsio/working-with-data-validation) UG. -T> If you want to load ComboBox to a cell in Spreadsheet, you can apply List Validation to that cell. +T> If you want to display a ComboBox in a cell of the Spreadsheet, you can apply List validation to that cell. -## Hyperlink +## Hyperlinks -The Hyperlink is a convenient way to access the web pages, files and browse the data within a worksheet or other worksheets in a workbook. Spreadsheet provides support to add, edit and remove the Hyperlinks in the workbook. +A hyperlink is a convenient way to access web pages, files, and other data within a workbook. The Spreadsheet supports adding, editing, and removing hyperlinks in the workbook. -### Adding hyperlink to a cell +### Adding a hyperlink to a cell -Spreadsheet provides support to add hyperlink to a cell and it can be added in the hyperlinks collection using `IHyperlinks` interface. +The Spreadsheet supports adding hyperlinks to a cell, and they can be added to the hyperlinks collection using the `IHyperLinks` interface. -Spreadsheet allows you to add below types of the hyperlink. +The Spreadsheet allows you to add the following types of hyperlinks. * Web URL -* Cell or range in workbook +* Cell or range in a workbook * E-mail * External files {% tabs %} {% highlight c# %} -// Creating a Hyperlink for e-mail, +// Creating a hyperlink for an e-mail, var range = spreadsheet.ActiveSheet.Range["A5"]; IHyperLink hyperlink1 = spreadsheet.ActiveSheet.HyperLinks.Add(range); hyperlink1.Type = ExcelHyperLinkType.Url; hyperlink1.Address = "mailto:Username@syncfusion.com"; -hyperlink1.TextToDisplay="Send Mail"; +hyperlink1.TextToDisplay = "Send Mail"; spreadsheet.ActiveGrid.InvalidateCell(GridRangeInfo.Cell(5, 1)); -// Creating a Hyperlink for Opening Files, +// Creating a hyperlink for opening files, var range1 = spreadsheet.ActiveSheet.Range["D5"]; IHyperLink hyperlink2 = spreadsheet.ActiveSheet.HyperLinks.Add(range1); hyperlink2.Type = ExcelHyperLinkType.File; @@ -250,7 +250,7 @@ hyperlink2.Address = @"C:\Samples\Local"; hyperlink2.TextToDisplay = "File Location"; spreadsheet.ActiveGrid.InvalidateCell(GridRangeInfo.Cell(5, 4)); -//Creating a Hyperlink to refer another cell in the workbook, +// Creating a hyperlink that refers to another cell in the workbook, var range2 = spreadsheet.ActiveSheet.Range["C13"]; IHyperLink hyperlink3 = spreadsheet.ActiveSheet.HyperLinks.Add(range); hyperlink3.Type = ExcelHyperLinkType.Workbook; @@ -261,22 +261,22 @@ spreadsheet.ActiveGrid.InvalidateCell(GridRangeInfo.Cell(13, 3)); {% endhighlight %} {% endtabs %} -### Editing or removing hyperlink +### Editing or removing a hyperlink -Spreadsheet provides support to edit or remove the hyperlinks from the range by accessing Hyperlinks collection. +The Spreadsheet supports editing or removing the hyperlinks from a range by accessing the hyperlinks collection. {% tabs %} {% highlight c# %} -//To Edit a hyperlink in a cell, +//To edit a hyperlink in a cell, var hyperlink = spreadsheet.ActiveSheet.Range["A5"].Hyperlinks[0]; hyperlink.TextToDisplay = "Sample"; hyperlink.Address = "http://help.syncfusion.com"; -spreadsheet.ActiveGrid.InvalidateCell(GridRangeInfo.Cell(5,1)); +spreadsheet.ActiveGrid.InvalidateCell(GridRangeInfo.Cell(5, 1)); //To remove a hyperlink in a cell, -var hyperlink = spreadsheet.ActiveSheet.Range["A5"].Hyperlinks.RemoveAt(0); -spreadsheet.ActiveGrid.InvalidateCell(GridRangeInfo.Cell(5,1)); +spreadsheet.ActiveSheet.Range["A5"].Hyperlinks.RemoveAt(0); +spreadsheet.ActiveGrid.InvalidateCell(GridRangeInfo.Cell(5, 1)); {% endhighlight %} {% endtabs %} diff --git a/Document-Processing/Excel/Spreadsheet/Winforms/Find-and-Replace.md b/Document-Processing/Excel/Spreadsheet/Winforms/Find-and-Replace.md index e5648fce45..038695c159 100644 --- a/Document-Processing/Excel/Spreadsheet/Winforms/Find-and-Replace.md +++ b/Document-Processing/Excel/Spreadsheet/Winforms/Find-and-Replace.md @@ -9,11 +9,11 @@ documentation: ug # Find and Replace in Windows Forms Spreadsheet -This section explains about Find and Replace operations in Spreadsheet. +This section explains Find and Replace operations in the Spreadsheet control. -## Find +## Find -Searches for specific data such as particular number or text according to specified options and returns an IRange representing the cell or null if no cell is found. The various options in Find operation are +Searches for specific data, such as a particular number or text, according to the specified options and returns an `IRange` representing the cell, or `null` if no cell is found. The various Find options are: * [FindAll](https://help.syncfusion.com/cr/windowsforms/Syncfusion.Windows.Forms.Spreadsheet.Commands.SearchManager.html#Syncfusion_Windows_Forms_Spreadsheet_Commands_SearchManager_FindAll_Syncfusion_XlsIO_IWorkbook_System_String_Syncfusion_Windows_Forms_Spreadsheet_Commands_SearchBy_Syncfusion_XlsIO_ExcelFindType_System_Boolean_System_Boolean_) * [FindNext](https://help.syncfusion.com/cr/windowsforms/Syncfusion.Windows.Forms.Spreadsheet.Commands.SearchManager.html#Syncfusion_Windows_Forms_Spreadsheet_Commands_SearchManager_FindNext_Syncfusion_XlsIO_IWorkbook_System_String_Syncfusion_Windows_Forms_Spreadsheet_Commands_SearchBy_Syncfusion_XlsIO_ExcelFindType_System_Boolean_System_Boolean_) @@ -22,18 +22,18 @@ Searches for specific data such as particular number or text according to specif * [FindFormulas](https://help.syncfusion.com/cr/windowsforms/Syncfusion.Windows.Forms.Spreadsheet.Commands.SearchManager.html#Syncfusion_Windows_Forms_Spreadsheet_Commands_SearchManager_FindFormulas_Syncfusion_XlsIO_IWorksheet_) * [FindDataValidation](https://help.syncfusion.com/cr/windowsforms/Syncfusion.Windows.Forms.Spreadsheet.Commands.SearchManager.html#Syncfusion_Windows_Forms_Spreadsheet_Commands_SearchManager_FindDataValidation_Syncfusion_XlsIO_IWorksheet_) -The common parameters to be passed in Find functions are, +The common parameters passed to Find functions are: -* The option to specify whether the search can be done within the Workbook([IWorkbook](https://help.syncfusion.com/cr/windowsforms/Syncfusion.XlsIO.IWorkbook.html)) or Worksheet([IWorksheet](https://help.syncfusion.com/cr/windowsforms/Syncfusion.XlsIO.IWorksheet.html)). -* The text to be searched. -* The option to specify the direction whether the search can be done either by row wise or column wise using [SearchBy](https://help.syncfusion.com/cr/windowsforms/Syncfusion.Windows.Forms.Spreadsheet.Commands.SearchBy.html) enum. -* The type to specify whether the search can be done either in formulas or values using [ExcelFindType](https://help.syncfusion.com/cr/windowsforms/Syncfusion.XlsIO.ExcelFindType.html) enum. -* For a case sensitive search, pass the parameter as true otherwise you can pass the parameter as false. -* For matching the entire cell content with the search text, pass the parameter as true otherwise you can pass the parameter as false. +* The option that specifies whether the search is performed within the [IWorkbook](https://help.syncfusion.com/cr/windowsforms/Syncfusion.XlsIO.IWorkbook.html) or [IWorksheet](https://help.syncfusion.com/cr/windowsforms/Syncfusion.XlsIO.IWorksheet.html). +* The text to search for. +* The [SearchBy](https://help.syncfusion.com/cr/windowsforms/Syncfusion.Windows.Forms.Spreadsheet.Commands.SearchBy.html) enum that specifies whether the search proceeds by row or by column. +* The [ExcelFindType](https://help.syncfusion.com/cr/windowsforms/Syncfusion.XlsIO.ExcelFindType.html) enum that specifies whether the search is performed in text, numbers, or formulas. +* For a case-sensitive search, pass `true`; otherwise pass `false`. +* To match the entire cell content with the search text, pass `true`; otherwise pass `false`. ### Find All -Searches every occurrence of specific data based on the criteria that you are searching for and returns an `IRange` list representing the cells in `Spreadsheet` +Searches every occurrence of specific data that matches the criteria and returns an `IRange` list representing the matched cells in the `Spreadsheet`. {% tabs %} {% highlight c# %} @@ -44,18 +44,18 @@ var list = spreadsheet.SearchManager.FindAll(spreadsheet.Workbook, "sample", Sea // To select the matched cell content ranges, foreach (var cell in list) -{ - spreadsheet.ActiveGrid.SelectionController.AddSelection(GridRangeInfo.Cell(cell.Row, cell.Column)); +{ + spreadsheet.ActiveGrid.SelectionController.AddSelection(GridRangeInfo.Cell(cell.Row, cell.Column)); } -//Search the particular worksheet +//Search the specified worksheet var list = spreadsheet.SearchManager.FindAll(spreadsheet.Workbook.Worksheets[0], "sample", SearchBy.ByRows, ExcelFindType.Text, false, true); // To select the matched cell content ranges, foreach (var cell in list) { - spreadsheet.ActiveGrid.SelectionController.AddSelection(GridRangeInfo.Cell(cell.Row, cell.Column)); + spreadsheet.ActiveGrid.SelectionController.AddSelection(GridRangeInfo.Cell(cell.Row, cell.Column)); } {% endhighlight %} @@ -63,29 +63,29 @@ foreach (var cell in list) ### Find Next -Searches the first occurrence of specific data which matches the conditions and returns the matched `IRange` from the current range that represents the cell. +Searches for the first occurrence of specific data that matches the conditions and returns the matched `IRange` from the current range. {% tabs %} {% highlight c# %} -//Search the text in entire workbook in column wise, +//Search the text in the entire workbook by column var cell = spreadsheet.SearchManager.FindNext(spreadsheet.Workbook, "sample", SearchBy.ByColumns, ExcelFindType.Text, false, true); -// To move the current cell to matched cell content range, -spreadsheet.ActiveGrid.CurrentCell.MoveCurrentCell(cell.Row,cell.Column); +// To move the current cell to the matched cell, +spreadsheet.ActiveGrid.CurrentCell.MoveCurrentCell(cell.Row,cell.Column); -//Search the formula in particular worksheet in row wise, +//Search the text in the specified worksheet by row var cell = spreadsheet.SearchManager.FindNext(spreadsheet.Workbook.Worksheets[0], "sum", SearchBy.ByRows, ExcelFindType.Text, false, false); -// To move the current cell to matched cell content range, -spreadsheet.ActiveGrid.CurrentCell.MoveCurrentCell(cell.Row,cell.Column); +// To move the current cell to the matched cell, +spreadsheet.ActiveGrid.CurrentCell.MoveCurrentCell(cell.Row,cell.Column); {% endhighlight %} {% endtabs %} ### Finding conditional formatting -Searches and returns the `IRange` list which have conditional formatting within the specified worksheet. +Searches and returns the `IRange` list of cells that have conditional formatting in the specified worksheet. {% tabs %} {% highlight c# %} @@ -97,7 +97,7 @@ var list = spreadsheet.SearchManager.FindConditionalFormatting(spreadsheet.Workb foreach (var cell in list) { - spreadsheet.ActiveGrid.SelectionController.AddSelection(GridRangeInfo.Cell(cell.Row, cell.Column)); + spreadsheet.ActiveGrid.SelectionController.AddSelection(GridRangeInfo.Cell(cell.Row, cell.Column)); } {% endhighlight %} @@ -105,7 +105,7 @@ foreach (var cell in list) ### Finding constants -Searches and returns the `IRange` list which have constants within the specified worksheet. +Searches and returns the `IRange` list of cells that contain constants in the specified worksheet. {% tabs %} {% highlight c# %} @@ -117,7 +117,7 @@ var list = spreadsheet.SearchManager.FindConstants(spreadsheet.Workbook.Workshee foreach (var cell in list) { - spreadsheet.ActiveGrid.SelectionController.AddSelection(GridRangeInfo.Cell(cell.Row, cell.Column)); + spreadsheet.ActiveGrid.SelectionController.AddSelection(GridRangeInfo.Cell(cell.Row, cell.Column)); } {% endhighlight %} @@ -125,7 +125,7 @@ foreach (var cell in list) ### Finding formulas -Searches and returns the `IRange` list which have formulas within the specified worksheet. +Searches and returns the `IRange` list of cells that contain formulas in the specified worksheet. {% tabs %} {% highlight c# %} @@ -137,7 +137,7 @@ var list = spreadsheet.SearchManager.FindFormulas(spreadsheet.Workbook.Worksheet foreach (var cell in list) { - spreadsheet.ActiveGrid.SelectionController.AddSelection(GridRangeInfo.Cell(cell.Row, cell.Column)); + spreadsheet.ActiveGrid.SelectionController.AddSelection(GridRangeInfo.Cell(cell.Row, cell.Column)); } {% endhighlight %} @@ -145,7 +145,7 @@ foreach (var cell in list) ### Finding data validation -Searches and returns the `IRange` list which have data validation within the specified worksheet. +Searches and returns the `IRange` list of cells that have data validation in the specified worksheet. {% tabs %} {% highlight c# %} @@ -157,7 +157,7 @@ var list = spreadsheet.SearchManager.FindDataValidation(spreadsheet.Workbook.Wor foreach (var cell in list) { - spreadsheet.ActiveGrid.SelectionController.AddSelection(GridRangeInfo.Cell(cell.Row, cell.Column)); + spreadsheet.ActiveGrid.SelectionController.AddSelection(GridRangeInfo.Cell(cell.Row, cell.Column)); } {% endhighlight %} @@ -165,15 +165,15 @@ foreach (var cell in list) ## Replace All -Searches and replaces all the texts either in the workbook or worksheet based on the given option. +Searches and replaces all occurrences of the text in the workbook or in a specified worksheet. -The parameters to be passed in [ReplaceAll](https://help.syncfusion.com/cr/windowsforms/Syncfusion.Windows.Forms.Spreadsheet.Commands.SearchManager.html#Syncfusion_Windows_Forms_Spreadsheet_Commands_SearchManager_ReplaceAll_Syncfusion_XlsIO_IWorkbook_System_String_System_String_System_Boolean_System_Boolean_) function is, +The parameters passed to the [ReplaceAll](https://help.syncfusion.com/cr/windowsforms/Syncfusion.Windows.Forms.Spreadsheet.Commands.SearchManager.html#Syncfusion_Windows_Forms_Spreadsheet_Commands_SearchManager_ReplaceAll_Syncfusion_XlsIO_IWorkbook_System_String_System_String_System_Boolean_System_Boolean_) method are: -* The option to specify whether the search can be done within the Workbook([IWorkbook](https://help.syncfusion.com/cr/windowsforms/Syncfusion.XlsIO.IWorkbook.html)) or Worksheet([IWorksheet](https://help.syncfusion.com/cr/windowsforms/Syncfusion.XlsIO.IWorksheet.html)) in Spreadsheet. -* The text to be searched. -* The text to be replaced. -* For a case sensitive search, pass the parameter as true otherwise you can pass the parameter as false. -* For matching the entire cell content with the search text, pass the parameter as true otherwise you can pass the parameter as false. +* The option that specifies whether the search is performed within the [IWorkbook](https://help.syncfusion.com/cr/windowsforms/Syncfusion.XlsIO.IWorkbook.html) or [IWorksheet](https://help.syncfusion.com/cr/windowsforms/Syncfusion.XlsIO.IWorksheet.html) in the Spreadsheet. +* The text to search for. +* The replacement text. +* For a case-sensitive search, pass `true`; otherwise pass `false`. +* To match the entire cell content with the search text, pass `true`; otherwise pass `false`. {% tabs %} {% highlight c# %} @@ -181,7 +181,7 @@ The parameters to be passed in [ReplaceAll](https://help.syncfusion.com/cr/windo //Replaces the text in the entire workbook spreadsheet.SearchManager.ReplaceAll(spreadsheet.Workbook, "sample","Sync", false, false); -//Replaces the text in the particular worksheet +//Replaces the text in the specified worksheet spreadsheet.SearchManager.ReplaceAll(spreadsheet.Workbook.Worksheets[0], "sample", "sync", false, true); {% endhighlight %} @@ -189,12 +189,12 @@ spreadsheet.SearchManager.ReplaceAll(spreadsheet.Workbook.Worksheets[0], "sample ## Replace -Searches for the text or numbers that you want to change using `FindNext` method and once the immediate matched cell has been found, use [SetCellValue](https://help.syncfusion.com/cr/windowsforms/Syncfusion.Windows.Forms.Spreadsheet.SpreadsheetGrid.html#Syncfusion_Windows_Forms_Spreadsheet_SpreadsheetGrid_SetCellValue_Syncfusion_XlsIO_IRange_System_String_) method to replace it with specified text or numbers in `Spreadsheet`. +Searches for the text or number to change using `FindNext`; once a match is found, use [SetCellValue](https://help.syncfusion.com/cr/windowsforms/Syncfusion.Windows.Forms.Spreadsheet.SpreadsheetGrid.html#Syncfusion_Windows_Forms_Spreadsheet_SpreadsheetGrid_SetCellValue_Syncfusion_XlsIO_IRange_System_String_) to replace it with the specified text or number in the `Spreadsheet`. {% tabs %} {% highlight c# %} -//Searches the given text and replaces it with specified text +//Searches the given text and replaces it with the specified text var cell = spreadsheet.SearchManager.FindNext(spreadsheet.Workbook, "sample", SearchBy.ByColumns, ExcelFindType.Text, false, true); spreadsheet.ActiveGrid.SetCellValue(cell, "sync"); diff --git a/Document-Processing/Excel/Spreadsheet/Winforms/Formatting.md b/Document-Processing/Excel/Spreadsheet/Winforms/Formatting.md index 906bbf477e..fa34584287 100644 --- a/Document-Processing/Excel/Spreadsheet/Winforms/Formatting.md +++ b/Document-Processing/Excel/Spreadsheet/Winforms/Formatting.md @@ -9,24 +9,24 @@ documentation: ug # Formatting in Windows Forms Spreadsheet -This section explains about the formatting options similar to excel in Spreadsheet. +This section describes the formatting options available in Spreadsheet, similar to those in Excel. -Styles and formats defined in an Excel file are automatically imported. Users can also apply these settings to cells during run time. The following are the formatting attributes for the cell. +Styles and formats defined in an Excel file are automatically imported. You can also apply these settings to cells at run time. The following are the formatting attributes for a cell. -* Cell font settings (font name, size, color, style, etc.) -* Cell background -* Cell content alignment (vertical and horizontal alignment, indent and text wrapping) -* Cell borders -* Number Formatting -* Merge Cells +* Cell font settings (font name, size, color, style, etc.) +* Cell background +* Cell content alignment (vertical and horizontal alignment, indentation, and orientation) +* Cell borders +* Number Format +* Merge and Unmerge Cells * Built-in Styles -* Table Formats +* Format as Table ## Cell Background -For applying background color for the cells at runtime in Spreadsheet, set the color index for the particular XlsIO range and invalidate the range in order to update the view in `SpreadsheetGrid`. +To apply a background color to cells at runtime in Spreadsheet, set the `ColorIndex` of the XlsIO range and invalidate the range to update the view in `SpreadsheetGrid`. -For single cell +For a single cell {% tabs %} {% highlight c# %} @@ -57,7 +57,7 @@ foreach (var range in selectedRanges) ## Font -Spreadsheet allows the user to apply the font settings such as font color, font name ,font size etc., for a particular cell or a range of cells. +Spreadsheet allows you to apply font settings such as font color, font name, font size, etc., to a particular cell or a range of cells. {% tabs %} {% highlight c# %} @@ -92,7 +92,7 @@ spreadsheet.ActiveGrid.InvalidateCell(gridRange, true); ## Cell Borders -Spreadsheet allows the user to apply the borders at runtime for particular cell or range of cells, +Spreadsheet allows you to apply borders at runtime to a particular cell or range of cells. {% tabs %} {% highlight c# %} @@ -117,7 +117,7 @@ spreadsheet.ActiveGrid.InvalidateCell(gridRange, true); ## Cell Alignment -Spreadsheet allows the user to align the content of the cell. The alignment options includes Horizontal Alignment, Vertical Alignment, Indentation, Orientation etc., +Spreadsheet allows you to align the content of a cell. The alignment options include Horizontal Alignment, Vertical Alignment, Indentation, and Orientation. {% tabs %} {% highlight c# %} @@ -149,7 +149,7 @@ spreadsheet.FormatIndentLevel(3); ## Wrap Text -Spreadsheet allows the user to wrap the text in the cell, if the text is too large. +Spreadsheet allows you to wrap text in a cell if the text is too large. {% tabs %} {% highlight c# %} @@ -163,11 +163,11 @@ spreadsheet.ActiveGrid.InvalidateCell(4, 3); {% endhighlight %} {% endtabs %} -## Merge Cells +## Merge and Unmerge Cells ### Merge -Spreadsheet provides support to merge two or more cells. When a group of cells is merged, the contents of the upper-left cell will be taken as the content of the merged cell, rest will be deleted. +Spreadsheet provides support to merge two or more cells. When a group of cells is merged, the contents of the upper-left cell become the content of the merged cell, and the contents of the remaining cells are discarded. For merging the cells in Spreadsheet, you need to add the [CoveredCellInfo](https://help.syncfusion.com/cr/windowsforms/Syncfusion.Windows.Forms.CellGrid.CoveredCellInfo.html) into [CoveredCells](https://help.syncfusion.com/cr/windowsforms/Syncfusion.Windows.Forms.CellGrid.SfCellGrid.html#Syncfusion_Windows_Forms_CellGrid_SfCellGrid_CoveredCells) collection of SpreadsheetGrid and merge the range using [Merge](https://help.syncfusion.com/cr/windowsforms/Syncfusion.XlsIO.IRange.html#Syncfusion_XlsIO_IRange_Merge) method in XlsIO. Also to update the view, you need to invalidate the cells in the SpreadsheetGrid @@ -206,7 +206,7 @@ spreadsheet.ActiveGrid.InvalidateCell(gridRange, true); ## Number Format -Spreadsheet allows the user to view the numbers in the cells with different formats which includes currency, percentage, datetime, scientific etc., +Spreadsheet allows you to view numbers in cells with different formats, which include currency, percentage, datetime, scientific, etc. {% tabs %} {% highlight c# %} @@ -226,7 +226,7 @@ spreadsheet.ActiveGrid.InvalidateCell(3,4); {% endhighlight %} {% endtabs %} -The different types of number formats with its notation are +The different types of number formats and their notations are: @@ -277,7 +277,7 @@ m/d/yyyy ## Built-in Styles -Spreadsheet supports some predefined built in styles of XlsIO. [BuiltInStyles](https://help.syncfusion.com/cr/windowsforms/Syncfusion.XlsIO.BuiltInStyles.html) is an enum which contains different styles for formatting a cell or range of cells. +Spreadsheet supports some predefined built-in styles of XlsIO. [BuiltInStyles](https://help.syncfusion.com/cr/windowsforms/Syncfusion.XlsIO.BuiltInStyles.html) is an enum that contains different styles for formatting a cell or range of cells. {% tabs %} {% highlight c# %} @@ -290,7 +290,7 @@ spreadsheet.ActiveGrid.InvalidateCell(3, 1); ## Format as Table -Spreadsheet allows the users to format a table with built in styles of table (i.e.) [TableBuiltInStyles](https://help.syncfusion.com/cr/windowsforms/Syncfusion.XlsIO.TableBuiltInStyles.html) of XlsIO +Spreadsheet allows you to format a table using built-in table styles of XlsIO, such as [TableBuiltInStyles](https://help.syncfusion.com/cr/windowsforms/Syncfusion.XlsIO.TableBuiltInStyles.html). {% tabs %} {% highlight c# %} @@ -307,11 +307,11 @@ spreadsheet.ActiveGrid.InvalidateCells(); For more information regarding formatting options, please go through [XlsIO](https://help.syncfusion.com/file-formats/xlsio/working-with-cell-or-range-formatting) -N> Users need to [refresh the view](https://help.syncfusion.com/document-processing/excel/spreadsheet/winforms/working-with-spreadsheet#refreshing-the-view) after the formatting is applied on the XlsIO range to update the styles in `SpreadsheetGrid`. +N> You need to [refresh the view](https://help.syncfusion.com/document-processing/excel/spreadsheet/winforms/working-with-spreadsheet#refreshing-the-view) to update the styles in `SpreadsheetGrid` after formatting is applied to an XlsIO range. -## Clear formatting +## Clear Formatting -Spreadsheet provides support to clear the contents of a cell along with its formatting or by specifying the required clear options using [ExcelClearOptions](https://help.syncfusion.com/cr/file-formats/Syncfusion.XlsIO.ExcelClearOptions.html) enum which specifies the possible directions to clear the cell formats, content, comments,conditional format,data validation or clear all of them. +Spreadsheet provides support to clear the contents of a cell along with its formatting, or to specify the required clear options using the [ExcelClearOptions](https://help.syncfusion.com/cr/file-formats/Syncfusion.XlsIO.ExcelClearOptions.html) enum, which specifies the options to clear cell formats, content, comments, conditional formats, data validation, or all of them. {% tabs %} {% highlight c# %} diff --git a/Document-Processing/Excel/Spreadsheet/Winforms/Formulas.md b/Document-Processing/Excel/Spreadsheet/Winforms/Formulas.md index f218452236..a1cfde94e0 100644 --- a/Document-Processing/Excel/Spreadsheet/Winforms/Formulas.md +++ b/Document-Processing/Excel/Spreadsheet/Winforms/Formulas.md @@ -11,27 +11,27 @@ documentation: ug [Winforms Spreadsheet Editor](https://www.syncfusion.com/spreadsheet-editor-sdk/winforms-spreadsheet-editor) calculation engine offers automated calculation over a formula, expression, or cross sheet references. Spreadsheet calculation engine is preloaded with 409 formulas covering a broad range of business functions. -## Adding formula into cell +## Adding formulas to cells -To add formulas into a cell programmatically, use [SetCellValue](https://help.syncfusion.com/cr/windowsforms/Syncfusion.Windows.Forms.Spreadsheet.SpreadsheetGrid.html#Syncfusion_Windows_Forms_Spreadsheet_SpreadsheetGrid_SetCellValue_Syncfusion_XlsIO_IRange_System_String_) method of [SpreadsheetGrid](https://help.syncfusion.com/cr/windowsforms/Syncfusion.Windows.Forms.Spreadsheet.SpreadsheetGrid.html) should be invoked and then invalidate that cell to update the view. +To add a formula to a cell programmatically, call the [SetCellValue](https://help.syncfusion.com/cr/windowsforms/Syncfusion.Windows.Forms.Spreadsheet.SpreadsheetGrid.html#Syncfusion_Windows_Forms_Spreadsheet_SpreadsheetGrid_SetCellValue_Syncfusion_XlsIO_IRange_System_String_) method of [SpreadsheetGrid](https://help.syncfusion.com/cr/windowsforms/Syncfusion.Windows.Forms.Spreadsheet.SpreadsheetGrid.html), then call `InvalidateCell(row, column)` to refresh the view. {% tabs %} {% highlight c# %} var range = spreadsheet.ActiveSheet.Range["A2"]; spreadsheet.ActiveGrid.SetCellValue(range, "=SUM(B1:B2)"); -spreadsheet.ActiveGrid.InvalidateCell(2,1); +spreadsheet.ActiveGrid.InvalidateCell(2, 1); {% endhighlight %} {% endtabs %} ## Named Ranges -Named Ranges are the defined names that represents a cell, range of cells, formula, or constant value or table. Each name have a scope of either to a specific worksheet or to the entire workbook. +Named ranges are the defined names that represents a cell, range of cells, formula, constant value, or table. Each name has a scope of either a specific worksheet or the entire workbook. -### Define named ranges at runtime +### Defining named ranges at runtime -Spreadsheet allows the user to define/add the named ranges at runtime by using [AddNamedRange](https://help.syncfusion.com/cr/windowsforms/Syncfusion.Windows.Forms.Spreadsheet.Spreadsheet.html#Syncfusion_Windows_Forms_Spreadsheet_Spreadsheet_AddNamedRange_System_String_System_String_System_String_) method. +Use the [AddNamedRange](https://help.syncfusion.com/cr/windowsforms/Syncfusion.Windows.Forms.Spreadsheet.Spreadsheet.html#Syncfusion_Windows_Forms_Spreadsheet_Spreadsheet_AddNamedRange_System_String_System_String_System_String_) method to define a named range at runtime. {% tabs %} {% highlight c# %} @@ -43,16 +43,16 @@ spreadsheet.AddNamedRange("SampleName", "A3:B3", "Sheet1"); ### Editing or removing named ranges at runtime -Spreadsheet allows the user to edit the named ranges at runtime by [EditNamedRange](https://help.syncfusion.com/cr/windowsforms/Syncfusion.Windows.Forms.Spreadsheet.Spreadsheet.html#Syncfusion_Windows_Forms_Spreadsheet_Spreadsheet_EditNamedRange_System_String_System_String_Syncfusion_XlsIO_IName_) method and remove the named ranges at runtime by [DeleteNamedRange](https://help.syncfusion.com/cr/windowsforms/Syncfusion.Windows.Forms.Spreadsheet.Spreadsheet.html#Syncfusion_Windows_Forms_Spreadsheet_Spreadsheet_DeleteNamedRange_Syncfusion_XlsIO_IName_) method +Edit a named range at runtime with the [EditNamedRange](https://help.syncfusion.com/cr/windowsforms/Syncfusion.Windows.Forms.Spreadsheet.Spreadsheet.html#Syncfusion_Windows_Forms_Spreadsheet_Spreadsheet_EditNamedRange_System_String_System_String_Syncfusion_XlsIO_IName_) method, or remove it with the [DeleteNamedRange](https://help.syncfusion.com/cr/windowsforms/Syncfusion.Windows.Forms.Spreadsheet.Spreadsheet.html#Syncfusion_Windows_Forms_Spreadsheet_Spreadsheet_DeleteNamedRange_Syncfusion_XlsIO_IName_) method. {% tabs %} {% highlight c# %} -//To Edit the named ranges, +// To edit a named range: IName name = spreadsheet.Workbook.Names["Sample"]; spreadsheet.EditNamedRange("Test", "A3:B3", name); -//To remove the named ranges, +// To remove a named range: IName name = spreadsheet.Workbook.Names["Sample"]; spreadsheet.DeleteNamedRange(name); @@ -226,8 +226,8 @@ DEC2BIN

+DEC2OCT

+Converts a binary number to decimal

+Returns information about the current operating environment

+Tests a number of user-defined conditions and returns TRUE if ALL of the conditions evaluate to TRUE, or FALSE otherwise

+Tests a number of user-defined conditions and returns TRUE if ANY of the conditions evaluate to TRUE, or FALSE otherwise

+Returns the rank of a value in a dataset as a percentage (0 to 1 inclusive); if more than one value shares the same rank, the average rank is returned

+Returns the rank of a given value within a supplied array of values; if more than one value has the same rank, the top rank of that set is returned

+RANK

+Returns the smallest value in a set of values, counting text and logical values (does not ignore them)

Converts a decimal number to binary

-DCE2OCT

-Converts a binary number to octal

+Converts a decimal number to octal

DEC2HEX

@@ -235,7 +235,7 @@ Converts a decimal number to hexadecimal

BIN2DEC

-Converts a binary number to hexadecimal

BIN2OCT

@@ -633,7 +633,7 @@ Returns information about the contents, formatting or location of a given cell INFO

-Returns information about the the current operating environment

TYPE

@@ -654,11 +654,11 @@ Description

AND

-Tests a number of user-defined conditions and returns TRUE if ALL of the conditions evaluate to TRUE, orFALSE otherwise

OR

-Tests a number of user-defined conditions and returns TRUE if ANY of the conditions evaluate to TRUE, orFALSE otherwise

IF

@@ -1140,7 +1140,7 @@ PERCENTRANK.EXC

Returns the rank of value in dataset as a percentage of the data set as percentage (0….1, exclusive) of the dataset

-PERCENTRANC.INC

+PERCENTRANK.INC

Returns the rank of value in dataset as a percentage of the data set as percentage (0….1, inclusive) of the dataset

@@ -1253,11 +1253,11 @@ Returns the one-tailed probability value of a z-test

RANK.AVG

-Returns the statistical rank of a given value, within a supplied array of values (if more than one value has same rank, the average rank is returned)

RANK.EQ

-Returns the Mode (the most frequently occurring value) of a list of supplied numbers (if more than one value has same rank, the top rank of that set is returned)

NEGBINOM.DIST

@@ -1456,8 +1456,8 @@ QUARTILE

Returns the specified quartile of a set of supplied numbers, based on percentile value 0 - 1 (inclusive)

-RANQ

-Returns the Mode (the most frequently occurring value) of a list of supplied numbers (if more than one value has same rank, the top rank of that set is returned)

+Returns the rank of a number in a list of supplied numbers (if more than one value has the same rank, the top rank of that set is returned)

RSQ

@@ -1614,7 +1614,7 @@ Returns the length of a supplied text string

MINB

-Returns the smallest value in a set of values. does not ignore logical text and values

RIGHTB

@@ -1670,4 +1670,3 @@ WEBSERVICE

Returns data from a web service on the Internet or Intranet

-
diff --git a/Document-Processing/Excel/Spreadsheet/Winforms/Interactive-Features.md b/Document-Processing/Excel/Spreadsheet/Winforms/Interactive-Features.md index 9fcc0b7a5c..bb08ed558c 100644 --- a/Document-Processing/Excel/Spreadsheet/Winforms/Interactive-Features.md +++ b/Document-Processing/Excel/Spreadsheet/Winforms/Interactive-Features.md @@ -9,13 +9,13 @@ documentation: ug # Interactive Features in Windows Forms Spreadsheet - This section explains about the interactive operations with Spreadsheet +This section covers the interactive operations in the Spreadsheet. ## Clipboard Operations -Spreadsheet provides support for all the clipboard operations to with all the format settings when copied within a workbook. +Spreadsheet supports all clipboard operations, including all format settings when content is copied within a workbook. -You can use the following shortcut keys for Clipboard operations like Excel +You can use the following shortcut keys for clipboard operations, as in Excel.
@@ -35,7 +35,7 @@ Paste Ctrl + V
-The following are a list of paste options used while performing paste operation, +The following is a list of paste options available during a paste operation: @@ -45,27 +45,27 @@ Description +Pastes with all format options from the source range +Pastes the formulas only +Maintains the source range’s formatting +Pastes the values only +Pastes only the formats without pasting the values +Maintains the source range’s original format and pastes only values
Paste -To paste with all the format options in the source range
Formula -To paste the formulas alone
Keep Source Formatting -To maintain the source range’s formatting
Value -To paste the values alone
Format -To paste only the formats alone without pasting the values.
Value & Source Formatting -To maintain the source range original format and paste only values
N> When the content is copied from external source, Spreadsheet does not support the format settings (paste options). @@ -75,11 +75,11 @@ For [Cut](https://help.syncfusion.com/cr/windowsforms/Syncfusion.Windows.Forms.S {% tabs %} {% highlight c# %} -//To perform cut operation for selected ranges +//To perform the cut operation on the selected range var range = spreadsheet.ActiveGrid.SelectedRanges.ActiveRange; spreadsheet.ActiveGrid.CopyPaste.Copy(range, true); -//To perform cut operation +//To perform the cut operation spreadsheet.ActiveGrid.CopyPaste.Cut(); {% endhighlight %} @@ -90,11 +90,11 @@ For [Copy](https://help.syncfusion.com/cr/windowsforms/Syncfusion.Windows.Forms. {% tabs %} {% highlight c# %} -//To perform copy operation for selected ranges +//To perform the copy operation on the selected range var range = spreadsheet.ActiveGrid.SelectedRanges.ActiveRange; spreadsheet.ActiveGrid.CopyPaste.Copy(range, false); -//To perform Copy operation +//To perform the copy operation on the current selection spreadsheet.ActiveGrid.CopyPaste.Copy(); {% endhighlight %} @@ -105,10 +105,10 @@ For [Paste](https://help.syncfusion.com/cr/windowsforms/Syncfusion.Windows.Forms {% tabs %} {% highlight c# %} -//To perform paste operation +//To perform the paste operation on the current selection spreadsheet.ActiveGrid.CopyPaste.Paste(); -//To perform paste operation with range and Paste Options +//To perform the paste operation with a range and paste options var copyPaste = spreadsheet.ActiveGrid.CopyPaste as SpreadsheetCopyPaste; copyPaste.Paste(range); copyPaste.Paste(range, PasteOptions.Paste); @@ -116,13 +116,13 @@ copyPaste.Paste(range, PasteOptions.Paste); {% endhighlight %} {% endtabs %} -T> Users can also set their default [PasteOptions](https://help.syncfusion.com/cr/windowsforms/Syncfusion.Windows.Forms.Spreadsheet.PasteOptions.html) while pasting in Spreadsheet, by using [DefaultPasteOption](https://help.syncfusion.com/cr/windowsforms/Syncfusion.Windows.Forms.Spreadsheet.SpreadsheetCopyPaste.html#Syncfusion_Windows_Forms_Spreadsheet_SpreadsheetCopyPaste_DefaultPasteOption) property. +T> Users can also set their default [PasteOptions](https://help.syncfusion.com/cr/windowsforms/Syncfusion.Windows.Forms.Spreadsheet.PasteOptions.html) while pasting in Spreadsheet by using the [DefaultPasteOption](https://help.syncfusion.com/cr/windowsforms/Syncfusion.Windows.Forms.Spreadsheet.SpreadsheetCopyPaste.html#Syncfusion_Windows_Forms_Spreadsheet_SpreadsheetCopyPaste_DefaultPasteOption) property. -## Undo or Redo +## Undo or redo -Spreadsheet provides support for Undo/Redo functionality like Microsoft Excel. +Spreadsheet provides support for the undo/redo functionality like Microsoft Excel. -The shortcut keys used for Undo/Redo Operations +The following shortcut keys are used for undo/redo operations: @@ -139,9 +139,9 @@ Redo
Ctrl + Y
-Spreadsheet has [History Manager](https://help.syncfusion.com/cr/windowsforms/Syncfusion.Windows.Forms.Spreadsheet.History.HistoryManager.html) class that supports the implementation of undo/ redo operations +Spreadsheet has a [History Manager](https://help.syncfusion.com/cr/windowsforms/Syncfusion.Windows.Forms.Spreadsheet.History.HistoryManager.html) class that supports the implementation of undo/redo operations. -By default, Undo/Redo operations in Spreadsheet is enabled. To disable the Undo/Redo operations, set the [Enabled](https://help.syncfusion.com/cr/windowsforms/Syncfusion.Windows.Forms.Spreadsheet.History.HistoryManager.html#Syncfusion_Windows_Forms_Spreadsheet_History_HistoryManager_Enabled) property of [History Manager](https://help.syncfusion.com/cr/windowsforms/Syncfusion.Windows.Forms.Spreadsheet.History.HistoryManager.html) to be false. +By default, undo/redo operations in Spreadsheet are enabled. To disable the undo/redo operations, set the [Enabled](https://help.syncfusion.com/cr/windowsforms/Syncfusion.Windows.Forms.Spreadsheet.History.HistoryManager.html#Syncfusion_Windows_Forms_Spreadsheet_History_HistoryManager_Enabled) property of the [History Manager](https://help.syncfusion.com/cr/windowsforms/Syncfusion.Windows.Forms.Spreadsheet.History.HistoryManager.html) to false. {% tabs %} {% highlight c# %} @@ -151,7 +151,7 @@ spreadsheet.HistoryManager.Enabled = false; {% endhighlight %} {% endtabs %} -To programmatically, invoke the Undo/Redo operations, +To programmatically invoke the undo/redo operations: {% tabs %} {% highlight c# %} @@ -165,13 +165,13 @@ spreadsheet.HistoryManager.Redo(); ## Context menu -Context menu in Spreadsheet is customizable menu which can be used for various functionalities +The context menu in Spreadsheet is customizable and can be used for various functionalities. -### TabItem Context menu +### TabItem context menu -TabItem Context menu opens when the user right-click on the sheet tab and contains the menus related to worksheet operations. +The TabItem context menu opens when the user right-clicks on the sheet tab and contains menus related to worksheet operations. -By default, TabItem Context menu is enabled in Spreadsheet. To disable the TabItem context menu, set the [AllowTabItemContextMenu](https://help.syncfusion.com/cr/windowsforms/Syncfusion.Windows.Forms.Spreadsheet.Spreadsheet.html#Syncfusion_Windows_Forms_Spreadsheet_Spreadsheet_AllowTabItemContextMenu) property to false. +By default, the TabItem context menu is enabled in Spreadsheet. To disable the TabItem context menu, set the [AllowTabItemContextMenu](https://help.syncfusion.com/cr/windowsforms/Syncfusion.Windows.Forms.Spreadsheet.Spreadsheet.html#Syncfusion_Windows_Forms_Spreadsheet_Spreadsheet_AllowTabItemContextMenu) property to false. {% tabs %} {% highlight c# %} @@ -181,7 +181,7 @@ spreadsheet.AllowTabItemContextMenu = false; {% endhighlight %} {% endtabs %} -Default TabItem context menu has options like Insert, Delete, Hide/Unhide and Protect sheet. You can also customize the TabItem Context menu by setting [IsCustomTabItemContextMenuEnabled](https://help.syncfusion.com/cr/windowsforms/Syncfusion.Windows.Forms.Spreadsheet.Spreadsheet.html#Syncfusion_Windows_Forms_Spreadsheet_Spreadsheet_IsCustomTabItemContextMenuEnabled) property to be true and you can add your customized menu items. +The default TabItem context menu has options like Insert, Delete, Hide/Unhide, and Protect sheet. You can also customize the TabItem context menu by setting the [IsCustomTabItemContextMenuEnabled](https://help.syncfusion.com/cr/windowsforms/Syncfusion.Windows.Forms.Spreadsheet.Spreadsheet.html#Syncfusion_Windows_Forms_Spreadsheet_Spreadsheet_IsCustomTabItemContextMenuEnabled) property to true and adding your customized menu items. {% tabs %} {% highlight c# %} @@ -189,7 +189,7 @@ Default TabItem context menu has options like Insert, Delete, Hide/Unhide and Pr spreadsheet.IsCustomTabItemContextMenuEnabled = true; spreadsheet.TabItemContextMenu = CustomTabItemContextMenu(); -//Custom TabItem ContextMenus +//Custom TabItem context menus public ContextMenu CustomTabItemContextMenu() { @@ -197,11 +197,11 @@ public ContextMenu CustomTabItemContextMenu() contextMenu.BackColor = Color.White; contextMenu.RenderMode = ToolStripRenderMode.System; var insertRowIcon = new Image() { Source = new BitmapImage(new Uri(@"..\..\Icon\insertRow.png", UriKind.Relative)) }; - var insertRow = new ToolStripMenuItem() { BackColor = Color.White, Text = "InsertRow" }; + var insertRow = new ToolStripMenuItem() { BackColor = Color.White, Text = "InsertRow" }; insertRow.Image = insertRowIcon; insertRow.Click += insertRow_Click; var deleteRowIcon = new Image() { Source = new BitmapImage(new Uri(@"..\..\Icon\deleteRow.png", UriKind.Relative)) }; - var deleteRow = new ToolStripMenuItem() { BackColor = Color.White, Text = "DeleteRow"}; + var deleteRow = new ToolStripMenuItem() { BackColor = Color.White, Text = "DeleteRow" }; deleteRow.Image = deleteRowIcon; deleteRow.Click += deleteRow_Click; contextMenu.Items.Add(insertRow); @@ -212,11 +212,11 @@ public ContextMenu CustomTabItemContextMenu() {% endhighlight %} {% endtabs %} -### Cell Context menu +### Cell context menu -Cell Context menu opens when the user right-click on a worksheet cell or selection of cells in Spreadsheet. +The Cell context menu opens when the user right-clicks on a worksheet cell or a selection of cells in Spreadsheet. -By default, Cell Context menu is enabled in Spreadsheet. To disable the Cell Context menu, set the [AllowCellContextMenu](https://help.syncfusion.com/cr/windowsforms/Syncfusion.Windows.Forms.Spreadsheet.Spreadsheet.html#Syncfusion_Windows_Forms_Spreadsheet_Spreadsheet_AllowCellContextMenu) property as false. +By default, the Cell context menu is enabled in Spreadsheet. To disable the Cell context menu, set the [AllowCellContextMenu](https://help.syncfusion.com/cr/windowsforms/Syncfusion.Windows.Forms.Spreadsheet.Spreadsheet.html#Syncfusion_Windows_Forms_Spreadsheet_Spreadsheet_AllowCellContextMenu) property to false. {% tabs %} {% highlight c# %} @@ -226,9 +226,9 @@ spreadsheet.AllowCellContextMenu = false; {% endhighlight %} {% endtabs %} -Users can also customize the Cell Context menu of Spreadsheet by using [CellContextMenuOpening](https://help.syncfusion.com/cr/windowsforms/Syncfusion.Windows.Forms.CellGrid.SfCellGrid.html) Event of `SpreadsheetGrid`. +Users can also customize the Cell context menu of Spreadsheet by using the [CellContextMenuOpening](https://help.syncfusion.com/cr/windowsforms/Syncfusion.Windows.Forms.CellGrid.SfCellGrid.html) event of `SpreadsheetGrid`. -Adding the customized menu items in the CellContextMenuOpening Event, +Adding the customized menu items in the `CellContextMenuOpening` event: {% tabs %} {% highlight c# %} @@ -237,7 +237,7 @@ spreadsheet.ActiveGrid.CellContextMenuOpening += ActiveGrid_CellContextMenuOpeni void ActiveGrid_CellContextMenuOpening(object sender, CellContextMenuOpeningEventArgs e) { - //Adding Customized Menu item + //Adding customized menu item var PasteSpecial = new ToolStripMenuItem(){ BackColor = Color.White, Name = "PasteSpecial"}; PasteSpecial.Text = "PasteSpecial"; Image paste = new Image() { Source = new BitmapImage(new Uri(@"..\..\Icon\paste.png", UriKind.Relative)) }; @@ -245,18 +245,18 @@ void ActiveGrid_CellContextMenuOpening(object sender, CellContextMenuOpeningEven PasteSpecial.Click += PasteSpecial_Click; spreadsheet.ActiveGrid.CellContextMenu.Items.Add(PasteSpecial); - //Remove the existing Context menu + //Remove the existing context menu item spreadsheet.ActiveGrid.CellContextMenu.Items.RemoveAt(2); } {% endhighlight %} {% endtabs %} -## Cell Comments +## Cell comments -Spreadsheet provides support for cell comments like in excel to give the reader additional context for the data it contains. You can set the comment height and color for the particular comments at runtime by invoking [CellCommentOpening](https://help.syncfusion.com/cr/windowsforms/Syncfusion.Windows.Forms.CellGrid.SfCellGrid.html) Event of SpreadsheetGrid +Spreadsheet provides support for cell comments, like in Excel, to give the reader additional context for the data it contains. You can set the comment height and color for the particular comments at runtime by invoking the [CellCommentOpening](https://help.syncfusion.com/cr/windowsforms/Syncfusion.Windows.Forms.CellGrid.SfCellGrid.html) event of `SpreadsheetGrid`. -To enable the comment in Spreadsheet, set the [ShowComment](https://help.syncfusion.com/cr/windowsforms/Syncfusion.Windows.Forms.CellGrid.SfCellGrid.html#Syncfusion_Windows_Forms_CellGrid_SfCellGrid_ShowComment) property of SpreadsheetGrid to true. +To enable comments in Spreadsheet, set the [ShowComment](https://help.syncfusion.com/cr/windowsforms/Syncfusion.Windows.Forms.CellGrid.SfCellGrid.html#Syncfusion_Windows_Forms_CellGrid_SfCellGrid_ShowComment) property of `SpreadsheetGrid` to true. {% tabs %} {% highlight c# %} @@ -266,13 +266,13 @@ spreadsheet.ActiveGrid.ShowComment = true; {% endhighlight %} {% endtabs %} -To set the comments for particular cell at run time, +To set the comment for a particular cell at run time: {% tabs %} {% highlight c# %} spreadsheet.ActiveSheet.Range["E5"].AddComment().Text = "Sample Comment"; spreadsheet.ActiveGrid.InvalidateCell(5, 5); - + {% endhighlight %} {% endtabs %} diff --git a/Document-Processing/Excel/Spreadsheet/Winforms/Outline.md b/Document-Processing/Excel/Spreadsheet/Winforms/Outline.md index f7a12602b2..8ba6354221 100644 --- a/Document-Processing/Excel/Spreadsheet/Winforms/Outline.md +++ b/Document-Processing/Excel/Spreadsheet/Winforms/Outline.md @@ -9,13 +9,13 @@ documentation: ug # Outline in Windows Forms Spreadsheet -Spreadsheet provides support for outlines like in excel which makes your data easier to view. You can group or ungroup the data’s either by rows or columns. +Spreadsheet provides support for outlines like in Excel which makes your data easier to view. You can group or ungroup rows and columns. ## Grouping rows and columns Spreadsheet provides support to group the specified range in a worksheet. -To [Group](https://help.syncfusion.com/cr/windowsforms/Syncfusion.Windows.Forms.Spreadsheet.Spreadsheet.html#Syncfusion_Windows_Forms_Spreadsheet_Spreadsheet_Group_Syncfusion_XlsIO_IWorksheet_Syncfusion_Windows_Forms_CellGrid_GridRangeInfo_Syncfusion_XlsIO_ExcelGroupBy_) the rows/columns +Use the [Group](https://help.syncfusion.com/cr/windowsforms/Syncfusion.Windows.Forms.Spreadsheet.Spreadsheet.html#Syncfusion_Windows_Forms_Spreadsheet_Spreadsheet_Group_Syncfusion_XlsIO_IWorksheet_Syncfusion_Windows_Forms_CellGrid_GridRangeInfo_Syncfusion_XlsIO_ExcelGroupBy_) method to group rows or columns: {% tabs %} {% highlight c# %} @@ -33,9 +33,9 @@ spreadsheet.Group(spreadsheet.ActiveSheet, gridRange, ExcelGroupBy.ByColumns); ## Ungrouping rows and columns -Spreadsheet provides support to ungroup the specified range in a worksheet. +The grouping applied to rows or columns can be removed as follows. -To [Ungroup](https://help.syncfusion.com/cr/windowsforms/Syncfusion.Windows.Forms.Spreadsheet.Spreadsheet.html#Syncfusion_Windows_Forms_Spreadsheet_Spreadsheet_UnGroup_Syncfusion_XlsIO_IWorksheet_Syncfusion_Windows_Forms_CellGrid_GridRangeInfo_Syncfusion_XlsIO_ExcelGroupBy_) the rows/columns +Use the [Ungroup](https://help.syncfusion.com/cr/windowsforms/Syncfusion.Windows.Forms.Spreadsheet.Spreadsheet.html#Syncfusion_Windows_Forms_Spreadsheet_Spreadsheet_UnGroup_Syncfusion_XlsIO_IWorksheet_Syncfusion_Windows_Forms_CellGrid_GridRangeInfo_Syncfusion_XlsIO_ExcelGroupBy_) method to ungroup rows or columns: {% tabs %} {% highlight c# %} @@ -52,7 +52,7 @@ spreadsheet.UnGroup(spreadsheet.ActiveSheet, gridRange, ExcelGroupBy.ByColumns); ## Collapsing or expanding group -Groups can be Expanded by [ExpandGroup](https://help.syncfusion.com/cr/windowsforms/Syncfusion.XlsIO.IRange.html#Syncfusion_XlsIO_IRange_ExpandGroup_Syncfusion_XlsIO_ExcelGroupBy_) method and Collapsed by [CollapseGroup](https://help.syncfusion.com/cr/windowsforms/Syncfusion.XlsIO.IRange.html#Syncfusion_XlsIO_IRange_CollapseGroup_Syncfusion_XlsIO_ExcelGroupBy_) method of `XlsIO`. +Groups can be expanded using the [ExpandGroup](https://help.syncfusion.com/cr/windowsforms/Syncfusion.XlsIO.IRange.html#Syncfusion_XlsIO_IRange_ExpandGroup_Syncfusion_XlsIO_ExcelGroupBy_) method and collapsed using the [CollapseGroup](https://help.syncfusion.com/cr/windowsforms/Syncfusion.XlsIO.IRange.html#Syncfusion_XlsIO_IRange_CollapseGroup_Syncfusion_XlsIO_ExcelGroupBy_) method of `XlsIO`. {% tabs %} {% highlight c# %} @@ -60,22 +60,22 @@ Groups can be Expanded by [ExpandGroup](https://help.syncfusion.com/cr/windowsfo //Expand Rows, spreadsheet.ActiveSheet.Range["A4:A8"].ExpandGroup(ExcelGroupBy.ByRows); spreadsheet.ActiveGrid.RowHeights.SetHidden(4, 8, false); -spreadsheet.RefreshOutlines(true,false); +spreadsheet.RefreshOutlines(true, false); //Expand Columns, spreadsheet.ActiveSheet.Range["A3:F3"].ExpandGroup(ExcelGroupBy.ByColumns); spreadsheet.ActiveGrid.ColumnWidths.SetHidden(1, 6, false); -spreadsheet.RefreshOutlines(false,true); +spreadsheet.RefreshOutlines(false, true); //Collapse Rows, spreadsheet.ActiveSheet.Range["A4:A8"].CollapseGroup(ExcelGroupBy.ByRows); spreadsheet.ActiveGrid.RowHeights.SetHidden(4, 8, true); -spreadsheet.RefreshOutlines(true,false); +spreadsheet.RefreshOutlines(true, false); //Collapse Columns, spreadsheet.ActiveSheet.Range["A3:F3"].CollapseGroup(ExcelGroupBy.ByColumns); spreadsheet.ActiveGrid.ColumnWidths.SetHidden(1, 6, true); -spreadsheet.RefreshOutlines(false,true); +spreadsheet.RefreshOutlines(false, true); {% endhighlight %} {% endtabs %} @@ -84,7 +84,7 @@ N> [RefreshOutlines](https://help.syncfusion.com/cr/windowsforms/Syncfusion.Wind ## Changing Outline settings -In Spreadsheet, users can change the outline settings by changing the display of summary rows to either below or above the details and summary columns to either left or right of the details in Outlines Group. +In Spreadsheet, users can change the outline settings by configuring whether summary rows appear above or below the detail rows, and whether summary columns appear to the left or right of the detail columns, in an outline group. {% tabs %} {% highlight c# %} @@ -97,6 +97,7 @@ spreadsheet.RefreshOutlines(true, true); {% endtabs %} ## Clearing Outlines + Spreadsheet provides support to clear all the Outlines of the Grouped range. {% tabs %} diff --git a/Document-Processing/Excel/Spreadsheet/Winforms/Overview.md b/Document-Processing/Excel/Spreadsheet/Winforms/Overview.md index 3bb7305bea..07e573a8ff 100644 --- a/Document-Processing/Excel/Spreadsheet/Winforms/Overview.md +++ b/Document-Processing/Excel/Spreadsheet/Winforms/Overview.md @@ -9,62 +9,62 @@ documentation: ug # Windows Forms Spreadsheet Overview -The [WinForms Spreadsheet Editor](https://www.syncfusion.com/spreadsheet-editor-sdk/winforms-spreadsheet-editor) is an Excel inspired control that allows you to create, edit, view and format the Microsoft Excel files without Excel installed. It provides absolute ease of use UI experience with integrated ribbon to cover any possible business scenario. Spreadsheet comes with built-in calculation engine with support for 400+ most widely used formulas. +The [WinForms Spreadsheet Editor](https://www.syncfusion.com/spreadsheet-editor-sdk/winforms-spreadsheet-editor) is an Excel inspired control that allows you to create, edit, view and format the Microsoft Excel files without Excel installed. It provides an easy-to-use UI experience with an integrated ribbon for common business scenarios. Spreadsheet comes with built-in calculation engine with support for 400+ most widely used formulas. -![Spreadsheet](Overview-image\wf-spreadsheet-overview-image.png) +![WinForms Spreadsheet overview](Overview-image/wf-spreadsheet-overview-image.png) Spreadsheet includes several advanced features like -* **[Editing](Editing) and [Selection](Selection)**-Interactive support for editing and cell selection in workbook. +* **[Editing](Editing) and [Selection](Selection)** - Interactive support for editing and cell selection in the workbook. -* **[Formulas](Formulas)** - Provides support for 400+ most widely used formulas which any business user needs and allows you to add, remove and edit the formulas like in excel. +* **[Formulas](Formulas)** - Provides support for 400+ most widely used formulas and allows you to add, remove, and edit formulas like in Excel. -* **[Name Manager](https://help.syncfusion.com/document-processing/excel/spreadsheet/winforms/formulas#named-ranges)** – Supports the name ranges in the formulas. By using the name ranges, you can specify the name of the cell range, and then you can use it in the formula more easily without hassling of remembering cell locations. +* **[Name Manager](https://help.syncfusion.com/document-processing/excel/spreadsheet/winforms/formulas#named-ranges)** - Supports named ranges in formulas. By using named ranges, you can specify a name for a cell range and then use it in formulas more easily without the hassle of remembering cell locations. -* **[Data validation](https://help.syncfusion.com/document-processing/excel/spreadsheet/winforms/editing#data-validation)** – Provides support to ensure the data integrity by enforcing end users to enter valid data into the cells and if entered data does not meet the specified criteria, and error message is displayed. +* **[Data validation](https://help.syncfusion.com/document-processing/excel/spreadsheet/winforms/editing#data-validation)** - Provides support to ensure data integrity by enforcing end users to enter valid data into cells. If the entered data does not meet the specified criteria, an error message is displayed. -* **[Floating Cells](https://help.syncfusion.com/document-processing/excel/spreadsheet/winforms/formatting#wrap-text)**- Provides support for floating cell mode that is when the text exceeds the length of the cell, it will float the text to the adjacent cell. +* **[Floating Cells](https://help.syncfusion.com/document-processing/excel/spreadsheet/winforms/formatting#wrap-text)** - Provides support for floating cell mode where text that exceeds the cell width floats into the adjacent cell. * **[Merge Cells](https://help.syncfusion.com/document-processing/excel/spreadsheet/winforms/formatting#merge-cells)** - Merge two or more adjacent cells into a single cell and display the contents of one cell in the merged cell. -* **[Conditional Formatting](Conditional-Formatting)**- Provides support for excel compatible conditional formatting and allows you to apply formats to a cell or range of cells depending on the value of cells or formula that meet specific criteria. Also provides support to define and import the conditional formatting rules such as Data Bars, Icon Sets and Color Scales options which are used to visualize the data. +* **[Conditional Formatting](Conditional-Formatting)** - Provides support for Excel-compatible conditional formatting and allows you to apply formats to a cell or range of cells depending on the value of cells or formulas that meet specific criteria. Also provides support to create and import conditional formatting rules such as Data Bars, Icon Sets, and Color Scales, which are used to visualize the data. -* **[Cell Comments](https://help.syncfusion.com/document-processing/excel/spreadsheet/winforms/interactive-features#cell-comments)**- Supports comments that provide additional information about a cell such as what the value represents. And it would be useful if you want the end users to understand the data in the cells more deeply. +* **[Cell Comments](https://help.syncfusion.com/document-processing/excel/spreadsheet/winforms/interactive-features#cell-comments)** - Supports comments that provide additional information about a cell, such as what the value represents. This is useful when end users need to understand the data in cells more deeply. -* **[Hyperlinks and Bookmarks](https://help.syncfusion.com/document-processing/excel/spreadsheet/winforms/editing#hyperlink)**- Provides support to import, create, and edit hyperlinks and bookmarks. The hyperlink is a convenient way to navigate or browse data within a worksheet or other worksheets in a workbook. +* **[Hyperlinks and Bookmarks](https://help.syncfusion.com/document-processing/excel/spreadsheet/winforms/editing#hyperlink)** - Provides support to import, create, and edit hyperlinks and bookmarks. The hyperlink is a convenient way to navigate or browse data within a worksheet or other worksheets in a workbook. * **[Undo/Redo](https://help.syncfusion.com/document-processing/excel/spreadsheet/winforms/interactive-features#undo-or-redo)** - Provides support to undo or redo the changes that you have made in the workbook. * **[Clipboard Operations](Interactive-Features)** – Provides support for Cut/Copy/Paste Operations in Spreadsheet. -* **Fill Series** – Provides support to automatically fill cells with data that follows or completes a pattern. +* **Fill Series** - Provides support to automatically fill cells with data that follows or completes a pattern. -* **Ribbon** – Ribbon integrated with organically enhanced UI experience. +* **Ribbon** - Integrated ribbon for an enhanced UI experience. -* **[Freeze panes](https://help.syncfusion.com/document-processing/excel/spreadsheet/winforms/rows-and-columns#freezing-rows-and-columns)** – Provides support to freeze rows/columns. +* **[Freeze panes](https://help.syncfusion.com/document-processing/excel/spreadsheet/winforms/rows-and-columns#freezing-rows-and-columns)** - Provides support to freeze rows and columns. -* **[Resizing and Hiding](https://help.syncfusion.com/document-processing/excel/spreadsheet/winforms/rows-and-columns#hiding-rows-and-columns)** – Provides interactive support to resize or hide/unhide the rows and columns. +* **[Resizing and Hiding](https://help.syncfusion.com/document-processing/excel/spreadsheet/winforms/rows-and-columns#hiding-rows-and-columns)** - Provides interactive support to resize or hide and unhide rows and columns. -* **[Charts, Pictures and Textboxes](Shapes)** - Provides support to import Charts, Pictures and Textboxes. +* **[Charts, Pictures, and Textboxes](Shapes)** - Provides support to import charts, pictures, and text boxes. -* **[Sparklines](https://help.syncfusion.com/document-processing/excel/spreadsheet/winforms/shapes#sparklines)** – Provides support to import Sparklines. +* **[Sparklines](https://help.syncfusion.com/document-processing/excel/spreadsheet/winforms/shapes#sparklines)** - Provides support to import sparklines. * **[Outlines](Outline)** - Provides support to group or ungroup rows and columns. -* **[Workbook and Worksheet Protection](https://help.syncfusion.com/document-processing/excel/spreadsheet/winforms/worksheet-management#protection)**- Provides support to protect the worksheet and also supports to lock-down the structure and window of workbook, which enables you to prevent workbook from any structural change or from any change in size. +* **[Workbook and Worksheet Protection](https://help.syncfusion.com/document-processing/excel/spreadsheet/winforms/worksheet-management#protection)** - Provides support to protect the worksheet and also supports locking down the structure and window of the workbook, which enables you to prevent any structural changes or changes in size. -* **[Conversion](Conversion)** – Provides support to export the workbook to PDF, HTML, Image and CSV. +* **[Conversion](Conversion)** - Provides support to export the workbook to PDF, HTML, image, and CSV. -* **[Zooming](https://help.syncfusion.com/document-processing/excel/spreadsheet/winforms/worksheet-management#zooming)** – Provides support to zoom in and zoom out of the worksheet view. +* **[Zooming](https://help.syncfusion.com/document-processing/excel/spreadsheet/winforms/worksheet-management#zooming)** - Provides support to zoom in and zoom out of the worksheet view. -* **[Localization](localization)** - Provides support to localize all the static text in a Ribbon and all dialogs to any desired language. +* **[Localization](localization)** - Provides support to localize all the static text in a ribbon and all dialogs to any desired language. -* **Supported file types** - Ability to import the different types of excel which are XLS, XLSX, XLSM, XLT, XLTX, CSV(Comma delimited) respectively. +* **Supported file types** - Ability to import the following Excel file types: XLS, XLSX, XLSM, XLT, XLTX, and CSV (comma-delimited). ## Related Link -- [Getting Started](Getting-Started) +- [Getting Started](https://help.syncfusion.com/document-processing/excel/spreadsheet/winforms/getting-started) - [API Reference](https://help.syncfusion.com/cr/windowsforms/Syncfusion.Windows.Forms.Spreadsheet.html) - [Online Demos](https://github.com/syncfusion/spreadsheet-editor-sdk-winforms-demos) - [GitHub Samples](https://github.com/SyncfusionExamples/winforms-spreadsheet-examples) -- [Release Notes](https://help.syncfusion.com/wpf/release-notes/v33.1.46) \ No newline at end of file +- [Release Notes](https://help.syncfusion.com/windowsforms/release-notes) \ No newline at end of file diff --git a/Document-Processing/Excel/Spreadsheet/Winforms/Printing.md b/Document-Processing/Excel/Spreadsheet/Winforms/Printing.md index f7c5038b95..04ac89f73c 100644 --- a/Document-Processing/Excel/Spreadsheet/Winforms/Printing.md +++ b/Document-Processing/Excel/Spreadsheet/Winforms/Printing.md @@ -1,6 +1,6 @@ --- layout: post -title: Printing in Windows Forms Spreadsheet control | Syncfusion® +title: Printing in Windows Forms Spreadsheet | Syncfusion® description: Learn about Printing support in Syncfusion® Windows Forms Spreadsheet control, its elements and more details. platform: document-processing control: Spreadsheet @@ -9,11 +9,11 @@ documentation: ug # Printing in Windows Forms Spreadsheet -Spreadsheet control allows you to print the data in the workbook with the help of PDF Conversion. To provide the printing support in Spreadsheet, you need to convert the workbook into PDF document using ExcelToPdfConverter. +The Spreadsheet control allows you to print the data in the workbook via PDF Conversion. To enable printing in the Spreadsheet, convert the workbook into a PDF document using `ExcelToPdfConverter`. -For Conversion of Excel Workbook in Spreadsheet to PDF document, use `Convert` method of `ExcelToPdfConverter`. +To convert a workbook in the Spreadsheet to a PDF document, use the `Convert` method of `ExcelToPdfConverter`. -For viewing the PDF document, you can use `PdfViewerControl` to load the saved PDF stream. +To view the PDF document, you can use `PdfViewerControl` to load the saved PDF stream. {% tabs %} {% highlight c# %} @@ -21,12 +21,12 @@ For viewing the PDF document, you can use `PdfViewerControl` to load the saved P //Create the pdf viewer for load the document. PdfViewerControl pdfViewer = new PdfViewerControl(); -//Create Memory Stream to save pdf document +//Create a MemoryStream to save the PDF document MemoryStream pdfStream = new MemoryStream(); -ExcelToPdfConverter converter = new ExcelToPdfConverter (spreadsheet.Workbook); +ExcelToPdfConverter converter = new ExcelToPdfConverter(spreadsheet.Workbook); -//Initialize the ExcelToPdfConverter Settings -ExcelToPdfConverterSettings settings = new ExcelToPdfConverterSettings(); +//Initialize the ExcelToPdfConverter settings +ExcelToPdfConverterSettings settings = new ExcelToPdfConverterSettings(); settings.LayoutOptions = LayoutOptions.NoScaling; {% endhighlight %} @@ -38,22 +38,22 @@ For print preview you can load the PDF stream into viewer and for direct printin {% highlight c# %} //Initialize the PdfDocument -PdfDocument pdfDoc = new PdfDocument (); +PdfDocument pdfDoc = new PdfDocument(); -//Assign the PdfDocument to the templateDocument property of ExcelToPdfConverterSettings +//Assign the PdfDocument to the TemplateDocument property of ExcelToPdfConverterSettings settings.TemplateDocument = pdfDoc; settings.DisplayGridLines = GridLinesDisplayStyle.Invisible; -//Convert Excel Document into PDF document +//Convert the workbook into a PDF document pdfDoc = converter.Convert(settings); -//Save the PDF file +//Save the PDF file pdfDoc.Save(pdfStream); -//Load the document to pdf viewer +//Load the document into the PDF viewer pdfViewer.Load(pdfStream); -//Print the doc +//Print the document pdfViewer.Print(true); {% endhighlight %} diff --git a/Document-Processing/Excel/Spreadsheet/Winforms/Rows-and-Columns.md b/Document-Processing/Excel/Spreadsheet/Winforms/Rows-and-Columns.md index e32e923079..be20775e7a 100644 --- a/Document-Processing/Excel/Spreadsheet/Winforms/Rows-and-Columns.md +++ b/Document-Processing/Excel/Spreadsheet/Winforms/Rows-and-Columns.md @@ -8,7 +8,7 @@ documentation: ug --- # Rows and Columns in Windows Forms Spreadsheet -This section explains about the operations related with rows and columns in Spreadsheet +This section explains operations related to rows and columns in the Spreadsheet ## Inserting rows and columns @@ -21,16 +21,16 @@ Spreadsheet provides support for dynamically inserting rows and columns into a w spreadsheet.ActiveSheet.InsertRow(2, 3); spreadsheet.ActiveGrid.Model.InsertRows(2, 3); -//For Inserting Cols +//For Inserting Columns spreadsheet.ActiveSheet.InsertColumn(3, 2); spreadsheet.ActiveGrid.Model.InsertColumns(3, 2); {% endhighlight %} {% endtabs %} -###Events +### Events -Below events of [SpreadsheetGridModel](https://help.syncfusion.com/cr/windowsforms/Syncfusion.Windows.Forms.Spreadsheet.SpreadsheetGridModel.html) are triggered while inserting the rows and columns. +Below events of [SpreadsheetGridModel](https://help.syncfusion.com/cr/windowsforms/Syncfusion.Windows.Forms.Spreadsheet.SpreadsheetGridModel.html) are triggered while inserting the rows and columns. * [RowsInserted](https://help.syncfusion.com/cr/windowsforms/Syncfusion.Windows.Forms.Spreadsheet.SpreadsheetGridModel.html) * [ColumnsInserted](https://help.syncfusion.com/cr/windowsforms/Syncfusion.Windows.Forms.Spreadsheet.SpreadsheetGridModel.html) @@ -66,16 +66,16 @@ Spreadsheet provides support for deleting rows and columns from a worksheet, spreadsheet.ActiveSheet.DeleteRow(5, 2); spreadsheet.ActiveGrid.Model.RemoveRows(5, 2); -//For Deleting Cols +//For Deleting Columns spreadsheet.ActiveSheet.DeleteColumn(3, 2); spreadsheet.ActiveGrid.Model.RemoveColumns(3, 2); {% endhighlight %} {% endtabs %} -###Events +### Events -Below events of [SpreadsheetGridModel](https://help.syncfusion.com/cr/windowsforms/Syncfusion.Windows.Forms.Spreadsheet.SpreadsheetGridModel.html) are triggered while deleting the rows and columns. +Below events of [SpreadsheetGridModel](https://help.syncfusion.com/cr/windowsforms/Syncfusion.Windows.Forms.Spreadsheet.SpreadsheetGridModel.html) are triggered while deleting the rows and columns. * [RowsRemoved](https://help.syncfusion.com/cr/windowsforms/Syncfusion.Windows.Forms.Spreadsheet.SpreadsheetGridModel.html) * [ColumnsRemoved](https://help.syncfusion.com/cr/windowsforms/Syncfusion.Windows.Forms.Spreadsheet.SpreadsheetGridModel.html) @@ -94,7 +94,7 @@ void Model_RowsRemoved(object sender, GridRangeRemovedEventArgs e) spreadsheet.ActiveGrid.Model.ColumnsRemoved += Model_ColumnsRemoved; -void Model_ColumnsRemoved(object sender, GridRangeInsertedEventArgs e) +void Model_ColumnsRemoved(object sender, GridRangeRemovedEventArgs e) { } @@ -103,16 +103,16 @@ void Model_ColumnsRemoved(object sender, GridRangeInsertedEventArgs e) ## Hiding rows and columns -Spreadsheet provides support to hide rows/columns and this can be done by [HideRow](https://help.syncfusion.com/cr/windowsforms/Syncfusion.XlsIO.IWorksheet.html#Syncfusion_XlsIO_IWorksheet_HideRow_System_Int32_) and [HideColumn](https://help.syncfusion.com/cr/windowsforms/Syncfusion.XlsIO.IWorksheet.html#Syncfusion_XlsIO_IWorksheet_HideColumn_System_Int32_) method +Rows and columns can be hidden using the [HideRow](https://help.syncfusion.com/cr/windowsforms/Syncfusion.XlsIO.IWorksheet.html#Syncfusion_XlsIO_IWorksheet_HideRow_System_Int32_) and [HideColumn](https://help.syncfusion.com/cr/windowsforms/Syncfusion.XlsIO.IWorksheet.html#Syncfusion_XlsIO_IWorksheet_HideColumn_System_Int32_) methods. {% tabs %} {% highlight c# %} -//For Hiding Rows, +//For Hiding Rows spreadsheet.ActiveSheet.HideRow(5); spreadsheet.ActiveGrid.RowHeights.SetHidden(5, 5, true); -//For Hiding Cols, +//For Hiding Columns spreadsheet.ActiveSheet.HideColumn(4); spreadsheet.ActiveGrid.ColumnWidths.SetHidden(4, 4, true); @@ -121,17 +121,17 @@ spreadsheet.ActiveGrid.ColumnWidths.SetHidden(4, 4, true); ## Unhiding rows and columns -Unhide the rows/columns in Spreadsheet can be done by [ShowRow](https://help.syncfusion.com/cr/windowsforms/Syncfusion.XlsIO.IWorksheet.html#Syncfusion_XlsIO_IWorksheet_ShowRow_System_Int32_System_Boolean_) and [ShowColumn](https://help.syncfusion.com/cr/windowsforms/Syncfusion.XlsIO.IWorksheet.html#Syncfusion_XlsIO_IWorksheet_ShowColumn_System_Int32_System_Boolean_) methods. +The rows and columns in the Spreadsheet can be unhidden using the [ShowRow](https://help.syncfusion.com/cr/windowsforms/Syncfusion.XlsIO.IWorksheet.html#Syncfusion_XlsIO_IWorksheet_ShowRow_System_Int32_System_Boolean_) and [ShowColumn](https://help.syncfusion.com/cr/windowsforms/Syncfusion.XlsIO.IWorksheet.html#Syncfusion_XlsIO_IWorksheet_ShowColumn_System_Int32_System_Boolean_) methods. {% tabs %} {% highlight c# %} -//For Unhiding Rows, +//For Unhiding Rows spreadsheet.ActiveSheet.ShowRow(5, true); spreadsheet.ActiveGrid.RowHeights.SetHidden(5, 5, false); -//For Unhiding Cols, -spreadsheet.ActiveSheet.ShowColumn(4,true); +//For Unhiding Columns +spreadsheet.ActiveSheet.ShowColumn(4, true); spreadsheet.ActiveGrid.ColumnWidths.SetHidden(4, 4, false); {% endhighlight %} @@ -139,7 +139,7 @@ spreadsheet.ActiveGrid.ColumnWidths.SetHidden(4, 4, false); ## Row Height and Column Width -Spreadsheet provides support to adjust the row height and column width. And also can import the adjusted row height and column width from Excel. Spreadsheet provides support to fit the row and column based on its contents. +Spreadsheet provides support to adjust the row height and column width. And also can import the adjusted row height and column width from Excel. Spreadsheet provides support to fit the row and column based on their contents. {% tabs %} {% highlight c# %} @@ -156,7 +156,7 @@ spreadsheet.ActiveGrid.InvalidateCell(GridRangeInfo.Col(5), true); {% endhighlight %} {% endtabs %} -N> In case if you insert/delete and hide/unhide the rows/columns inside the Grouping, [RefreshOutlines](https://help.syncfusion.com/cr/windowsforms/Syncfusion.Windows.Forms.Spreadsheet.Spreadsheet.html#Syncfusion_Windows_Forms_Spreadsheet_Spreadsheet_RefreshOutlines_System_Boolean_System_Boolean_) method must be invoked to refresh/update the Outlines of the Group. +N> When you insert, delete, hide, or unhide rows or columns inside a Grouping, the [RefreshOutlines](https://help.syncfusion.com/cr/windowsforms/Syncfusion.Windows.Forms.Spreadsheet.Spreadsheet.html#Syncfusion_Windows_Forms_Spreadsheet_Spreadsheet_RefreshOutlines_System_Boolean_System_Boolean_) method must be invoked to refresh/update the Outlines of the Group. ## Freezing rows and columns @@ -192,9 +192,9 @@ spreadsheet.ActiveGrid.FrozenColumns = 1; {% endhighlight %} {% endtabs %} -## Auto Fit rows and columns +## Auto fit rows and columns -Spreadsheet provides support to fit the rows or columns based on its content at run time. +Spreadsheet provides support to fit the rows or columns based on their content at run time. You can fit the rows/columns by calling [AutoFitRows](https://help.syncfusion.com/cr/windowsforms/Syncfusion.XlsIO.IRange.html#Syncfusion_XlsIO_IRange_AutofitRows) and [AutoFitColumns](https://help.syncfusion.com/cr/windowsforms/Syncfusion.XlsIO.IRange.html#Syncfusion_XlsIO_IRange_AutofitColumns) methods of XlsIO’s `IRange`. Also set the adjusted row height and column width into the grid by using [SetRowHeight](https://help.syncfusion.com/cr/windowsforms/Syncfusion.Windows.Forms.Spreadsheet.SpreadsheetGrid.html#Syncfusion_Windows_Forms_Spreadsheet_SpreadsheetGrid_SetRowHeight_System_Int32_System_Int32_System_Double_) and [SetColumnWidth](https://help.syncfusion.com/cr/windowsforms/Syncfusion.Windows.Forms.Spreadsheet.SpreadsheetGrid.html#Syncfusion_Windows_Forms_Spreadsheet_SpreadsheetGrid_SetColumnWidth_System_Int32_System_Int32_System_Double_) methods of `SpreadsheetGrid`. diff --git a/Document-Processing/Excel/Spreadsheet/Winforms/Selection.md b/Document-Processing/Excel/Spreadsheet/Winforms/Selection.md index e638fe02ee..a435fd916b 100644 --- a/Document-Processing/Excel/Spreadsheet/Winforms/Selection.md +++ b/Document-Processing/Excel/Spreadsheet/Winforms/Selection.md @@ -13,7 +13,7 @@ This section explains about the Selection behavior in Spreadsheet. The Spreadsheet control provides support for selection in grid by using mouse, keyboard and touch interactions. -By default, Selection behavior will be enabled in `Spreadsheet`,but if you want to disable the selection in Spreadsheet, then set the [AllowSelection](https://help.syncfusion.com/cr/windowsforms/Syncfusion.Windows.Forms.CellGrid.SfCellGrid.html#Syncfusion_Windows_Forms_CellGrid_SfCellGrid_AllowSelection) Property to be false. +By default, the selection behavior is enabled in the `Spreadsheet`. To disable the selection in the `Spreadsheet`, set the [AllowSelection](https://help.syncfusion.com/cr/windowsforms/Syncfusion.Windows.Forms.CellGrid.SfCellGrid.html#Syncfusion_Windows_Forms_CellGrid_SfCellGrid_AllowSelection) property to `false`. {% tabs %} {% highlight c# %} @@ -59,22 +59,22 @@ Spreadsheet allows the user to add and clear the selection in the Active `Spread {% tabs %} {% highlight c# %} -//To Add the Selection for range, +//To add the selection for a range, spreadsheet.ActiveGrid.SelectionController.AddSelection(GridRangeInfo.Cells(4,6,5,8)); -//To Add the Selection for particular row, +//To add the selection for a particular row, spreadsheet.ActiveGrid.SelectionController.AddSelection(GridRangeInfo.Row(4)); -//To Add the Selection for multiple rows, +//To add the selection for multiple rows, spreadsheet.ActiveGrid.SelectionController.AddSelection(GridRangeInfo.Rows(4,9)); -//To Add the Selection for particular column, +//To add the selection for a particular column, spreadsheet.ActiveGrid.SelectionController.AddSelection(GridRangeInfo.Col(5)); -//To Add the Selection for multiple columns, +//To add the selection for multiple columns, spreadsheet.ActiveGrid.SelectionController.AddSelection(GridRangeInfo.Cols(5,10)); -//To Clear the Selection, +//To clear the selection, spreadsheet.ActiveGrid.SelectionController.ClearSelection(); {% endhighlight %} @@ -87,10 +87,10 @@ Spreadsheet allows the user to move the current cell to the mentioned cell in `S {% tabs %} {% highlight c# %} -//Moves current cell to the mentioned row and column index of cell, +//Moves the current cell to the specified row and column index, spreadsheet.ActiveGrid.CurrentCell.MoveCurrentCell(5, 5); -For moving the current cell to a different sheet, +//To move the current cell to a different sheet, spreadsheet.SetActiveSheet("Sheet2"); spreadsheet.ActiveGrid.CurrentCell.MoveCurrentCell(6, 5); @@ -122,12 +122,12 @@ Events Description -{{ '[CellClick](https://help.syncfusion.com/cr/windowsforms/Syncfusion.Windows.Forms.CellGrid.SfCellGrid.html) ' | markdownify }} - Occurs when you click on the cell. +{{ '[CellClick](https://help.syncfusion.com/cr/windowsforms/Syncfusion.Windows.Forms.CellGrid.SfCellGrid.html)' | markdownify }} +Occurs when a cell is clicked. {{ '[CurrentCellActivating](https://help.syncfusion.com/cr/windowsforms/Syncfusion.Windows.Forms.CellGrid.SfCellGrid.html)' | markdownify }} -Occurs when the current cell is going to be activated. This event allow to cancel the current cell activation. +Occurs when the current cell is going to be activated. This event allows you to cancel the current cell activation. {{ '[CurrentCellActivated](https://help.syncfusion.com/cr/windowsforms/Syncfusion.Windows.Forms.CellGrid.SfCellGrid.html)' | markdownify }} @@ -171,8 +171,8 @@ Gets or sets the thickness of selection border. Gets the Selection Controller which provides the selection of content when the user drags the pressed mouse to an edge of the control. -{{ '[AllowSelection](https://help.syncfusion.com/cr/windowsforms/Syncfusion.Windows.Forms.CellGrid.SfCellGrid.html#Syncfusion_Windows_Forms_CellGrid_SfCellGrid_AllowSelection) ' | markdownify }} -Gets or Sets the value whether to allow the selection in the ActiveGrid or not. +{{ '[AllowSelection](https://help.syncfusion.com/cr/windowsforms/Syncfusion.Windows.Forms.CellGrid.SfCellGrid.html#Syncfusion_Windows_Forms_CellGrid_SfCellGrid_AllowSelection)' | markdownify }} +Gets or sets a value that indicates whether to allow the selection in the ActiveGrid. {{ '[ShowTouchIndicator](https://help.syncfusion.com/cr/windowsforms/Syncfusion.Windows.Forms.CellGrid.SelectionController.html#Syncfusion_Windows_Forms_CellGrid_SelectionController_ShowTouchIndicator) ' | markdownify }} @@ -193,7 +193,7 @@ Description {{ '[CellRowColumnIndex](https://help.syncfusion.com/cr/windowsforms/Syncfusion.Windows.Forms.CellGrid.GridCurrentCell.html#Syncfusion_Windows_Forms_CellGrid_GridCurrentCell_CellRowColumnIndex) ' | markdownify }} -Gets the row and column index of the CurrentCell. {{ '[RowIndex](https://help.syncfusion.com/cr/windowsforms/Syncfusion.Windows.Forms.CellGrid.GridCurrentCell.html#Syncfusion_Windows_Forms_CellGrid_GridCurrentCell_RowIndex) ' | markdownify }} @@ -208,12 +208,12 @@ Gets the column index of the CurrentCell. Gets the range of the CurrentCell. -{{ '[HasCurrentCell](https://help.syncfusion.com/cr/windowsforms/Syncfusion.Windows.Forms.CellGrid.GridCurrentCell.html#Syncfusion_Windows_Forms_CellGrid_GridCurrentCell_HasCurrentCell) ' | markdownify }} -Gets the value indicating whether the Grid has CurrentCell or not. +{{ '[HasCurrentCell](https://help.syncfusion.com/cr/windowsforms/Syncfusion.Windows.Forms.CellGrid.GridCurrentCell.html#Syncfusion_Windows_Forms_CellGrid_GridCurrentCell_HasCurrentCell)' | markdownify }} +Gets a value indicating whether the grid has a CurrentCell. {{ '[PreviousRowColumnIndex](https://help.syncfusion.com/cr/windowsforms/Syncfusion.Windows.Forms.CellGrid.GridCurrentCell.html#Syncfusion_Windows_Forms_CellGrid_GridCurrentCell_PreviousRowColumnIndex) ' | markdownify }} -Gets or sets the row and column index of old CurrentCell. +Gets or sets the row and column index of the previous CurrentCell. Below table lists the methods associated with selection, @@ -226,7 +226,7 @@ Description {{ '[AddSelection](https://help.syncfusion.com/cr/windowsforms/Syncfusion.Windows.Forms.CellGrid.SelectionController.html#Syncfusion_Windows_Forms_CellGrid_SelectionController_AddSelection_Syncfusion_Windows_Forms_CellGrid_GridRangeInfo_)' | markdownify }} -Adds/Extends the Selection to the mentioned range . +Adds or extends the selection to the specified range. {{ '[ClearSelection](https://help.syncfusion.com/cr/windowsforms/Syncfusion.Windows.Forms.CellGrid.SelectionController.html#Syncfusion_Windows_Forms_CellGrid_SelectionController_ClearSelection)' | markdownify }} @@ -234,7 +234,7 @@ Clears the Selection. {{ '[MoveCurrentCell](https://help.syncfusion.com/cr/windowsforms/Syncfusion.Windows.Forms.CellGrid.GridCurrentCell.html#Syncfusion_Windows_Forms_CellGrid_GridCurrentCell_MoveCurrentCell_Syncfusion_Windows_Forms_CellGrid_ScrollAxis_RowColumnIndex_System_Boolean_)' | markdownify }} -Move the Current cell to mentioned row and column index. +Moves the current cell to the specified row and column index. ## Key Navigation @@ -249,15 +249,14 @@ Description HOME -Moves to the first cell of the current row . +Moves to the first cell of the current row. END -Moves to the last cell of the current row . +Moves to the last cell of the current row. -UPARROW - +UPARROW Moves to one cell up of the current cell in the worksheet. @@ -301,7 +300,7 @@ Moves one screen to the right in a worksheet. CTRL + ARROW KEYS -Moves to the first/last cell of the current cell based on Arrow directions . +Moves to the first or last cell of the current cell based on the arrow direction. ENTER @@ -317,7 +316,7 @@ Moves the active current cell in one cell to the right of the selection. SHIFT+TAB -Moves the active current cell in one cell to the left of the selection. +Moves the active current cell one cell to the left of the selection. BACKSPACE @@ -333,7 +332,7 @@ Extends the selection by one cell based on the arrow direction. CTRL+SHIFT+ARROW KEYS -Extend the selection to the last cell in a row or column. +Extends the selection to the last cell in a row or column. SHIFT+HOME diff --git a/Document-Processing/Excel/Spreadsheet/Winforms/Shapes.md b/Document-Processing/Excel/Spreadsheet/Winforms/Shapes.md index ccf9ad226b..ad20bff06c 100644 --- a/Document-Processing/Excel/Spreadsheet/Winforms/Shapes.md +++ b/Document-Processing/Excel/Spreadsheet/Winforms/Shapes.md @@ -8,17 +8,17 @@ documentation: ug --- # Shapes in Windows Forms Spreadsheet - This section explains how to import charts, sparklines, pictures and textboxes in Spreadsheet. + This section explains how to import charts, sparklines, pictures and textboxes in Spreadsheet control. ## Charts -Spreadsheet provides support to import charts from excel which are used to represent numeric data in graphical format to make it easier to understand large quantities of data. +Spreadsheet supports importing charts from Excel, which represent numeric data in a graphical format and make large quantities of data easier to understand. -For importing charts in Spreadsheet, add the following assembly as reference into the application. +To import charts in Spreadsheet, add the following assembly as a reference to the application. Assembly: **Syncfusion.SpreadsheetHelper.Windows.dll** -Create an instance of Syncfusion.Windows.Forms.SpreadsheetHelper.[GraphicChartCellRenderer](https://help.syncfusion.com/cr/windowsforms/Syncfusion.Windows.Forms.SpreadsheetHelper.GraphicChartCellRenderer.html) and add that renderer into [GraphicCellRenderers](https://help.syncfusion.com/cr/windowsforms/Syncfusion.Windows.Forms.Spreadsheet.GraphicCells.GraphicModel.html#Syncfusion_Windows_Forms_Spreadsheet_GraphicCells_GraphicModel_GraphicCellRenderers) collection by using the helper method [AddGraphicChartCellRenderer](https://help.syncfusion.com/cr/windowsforms/Syncfusion.Windows.Forms.Spreadsheet.GraphicCells.GraphicCellHelper.html#Syncfusion_Windows_Forms_Spreadsheet_GraphicCells_GraphicCellHelper_AddGraphicChartCellRenderer_Syncfusion_Windows_Forms_Spreadsheet_Spreadsheet_Syncfusion_Windows_Forms_Spreadsheet_GraphicCells_IGraphicCellRenderer_) which is available under the namespace `Syncfusion.Windows.Forms.Spreadsheet.GraphicCells`. +Create an instance of Syncfusion.Windows.Forms.SpreadsheetHelper.[GraphicChartCellRenderer](https://help.syncfusion.com/cr/windowsforms/Syncfusion.Windows.Forms.SpreadsheetHelper.GraphicChartCellRenderer.html) and register it with the [GraphicCellRenderers](https://help.syncfusion.com/cr/windowsforms/Syncfusion.Windows.Forms.Spreadsheet.GraphicCells.GraphicModel.html#Syncfusion_Windows_Forms_Spreadsheet_GraphicCells_GraphicModel_GraphicCellRenderers) collection using the helper method [AddGraphicChartCellRenderer](https://help.syncfusion.com/cr/windowsforms/Syncfusion.Windows.Forms.Spreadsheet.GraphicCells.GraphicCellHelper.html#Syncfusion_Windows_Forms_Spreadsheet_GraphicCells_GraphicCellHelper_AddGraphicChartCellRenderer_Syncfusion_Windows_Forms_Spreadsheet_Spreadsheet_Syncfusion_Windows_Forms_Spreadsheet_GraphicCells_IGraphicCellRenderer_) which is available under the namespace `Syncfusion.Windows.Forms.Spreadsheet.GraphicCells`. {% tabs %} {% highlight c# %} @@ -27,7 +27,7 @@ public Form1() { InitializeComponent(); - //For importing charts, + // Registers the chart cell renderer for importing and displaying charts. this.spreadsheet.AddGraphicChartCellRenderer(new GraphicChartCellRenderer()); } @@ -37,7 +37,7 @@ public Form1() ### Adding charts at runtime -For adding the Charts in Spreadsheet at runtime, use [AddChart](https://help.syncfusion.com/cr/windowsforms/Syncfusion.Windows.Forms.Spreadsheet.GraphicCells.GraphicCellHelper.html#Syncfusion_Windows_Forms_Spreadsheet_GraphicCells_GraphicCellHelper_AddChart_Syncfusion_Windows_Forms_Spreadsheet_Spreadsheet_Syncfusion_XlsIO_IWorksheet_) method, also you can resize and reposition the chart. +To add a chart in Spreadsheet at runtime, use the [AddChart](https://help.syncfusion.com/cr/windowsforms/Syncfusion.Windows.Forms.Spreadsheet.GraphicCells.GraphicCellHelper.html#Syncfusion_Windows_Forms_Spreadsheet_GraphicCells_GraphicCellHelper_AddChart_Syncfusion_Windows_Forms_Spreadsheet_Spreadsheet_Syncfusion_XlsIO_IWorksheet_) method. You can also resize and reposition the chart. {% tabs %} {% highlight c# %} @@ -47,19 +47,19 @@ var chart = spreadsheet.AddChart(spreadsheet.ActiveSheet); object[] Y_values = new object[] { 200, 100, 100 }; object[] X_values = new object[] { "Total Income", "Expenses", "Profit" }; -IChartSerie series = chart.Series.Add(ExcelChartType.Pie); +IChartSeries series = chart.Series.Add(ExcelChartType.Pie); -// Enters the X and Y values directly +// Enters the X and Y values directly. series.EnteredDirectlyValues = Y_values; series.EnteredDirectlyCategoryLabels = X_values; var shape = chart as ShapeImpl; -// Re-Positioning Chart +// Repositioning the chart shape.Top = 200; shape.Left = 200; -//Re-sizing a Chart +// Resizing the chart shape.Height = 300; shape.Width = 300; {% endhighlight %} @@ -71,7 +71,7 @@ For importing sparklines in Spreadsheet, add the following assembly as reference Assembly: **Syncfusion.SpreadsheetHelper.Windows.dll** -Create an instance of Syncfusion.Windows.Forms.SpreadsheetHelper.[SparklineCellRenderer](https://help.syncfusion.com/cr/windowsforms/Syncfusion.Windows.Forms.SpreadsheetHelper.SparklineCellRenderer.html) and add that renderer into Spreadsheet by using the helper method [AddSparklineCellRenderer](https://help.syncfusion.com/cr/windowsforms/Syncfusion.Windows.Forms.Spreadsheet.GraphicCells.GraphicCellHelper.html#Syncfusion_Windows_Forms_Spreadsheet_GraphicCells_GraphicCellHelper_AddSparklineCellRenderer_Syncfusion_Windows_Forms_Spreadsheet_Spreadsheet_Syncfusion_Windows_Forms_Spreadsheet_CellRenderer_ISpreadsheetCellRenderer_) which is available under the namespace `Syncfusion.Windows.Forms.Spreadsheet.GraphicCells`. +Create an instance of Syncfusion.Windows.Forms.SpreadsheetHelper.[SparklineCellRenderer](https://help.syncfusion.com/cr/windowsforms/Syncfusion.Windows.Forms.SpreadsheetHelper.SparklineCellRenderer.html) and register it with Spreadsheet using the helper method [AddSparklineCellRenderer](https://help.syncfusion.com/cr/windowsforms/Syncfusion.Windows.Forms.Spreadsheet.GraphicCells.GraphicCellHelper.html#Syncfusion_Windows_Forms_Spreadsheet_GraphicCells_GraphicCellHelper_AddSparklineCellRenderer_Syncfusion_Windows_Forms_Spreadsheet_Spreadsheet_Syncfusion_Windows_Forms_Spreadsheet_CellRenderer_ISpreadsheetCellRenderer_) which is available under the namespace `Syncfusion.Windows.Forms.Spreadsheet.GraphicCells`. {% tabs %} {% highlight c# %} @@ -80,7 +80,7 @@ public Form1() { InitializeComponent(); - //For importing sparklines, + // Registers the sparkline cell renderer for importing and displaying sparklines. this.spreadsheet.AddSparklineCellRenderer(new SparklineCellRenderer()); } @@ -89,29 +89,29 @@ public Form1() ## Pictures -Spreadsheet provides support to import images in SpreadsheetGrid and to add an image at run time, use [AddImage](https://help.syncfusion.com/cr/windowsforms/Syncfusion.Windows.Forms.Spreadsheet.GraphicCells.GraphicCellHelper.html#Syncfusion_Windows_Forms_Spreadsheet_GraphicCells_GraphicCellHelper_AddImage_Syncfusion_Windows_Forms_Spreadsheet_Spreadsheet_Syncfusion_XlsIO_IWorksheet_Syncfusion_Windows_Forms_CellGrid_ScrollAxis_RowColumnIndex_System_IO_Stream_) method and also you can resize and reposition the image. +Spreadsheet supports importing images into SpreadsheetGrid. To add an image at runtime, use the [AddImage](https://help.syncfusion.com/cr/windowsforms/Syncfusion.Windows.Forms.Spreadsheet.GraphicCells.GraphicCellHelper.html#Syncfusion_Windows_Forms_Spreadsheet_GraphicCells_GraphicCellHelper_AddImage_Syncfusion_Windows_Forms_Spreadsheet_Spreadsheet_Syncfusion_XlsIO_IWorksheet_Syncfusion_Windows_Forms_CellGrid_ScrollAxis_RowColumnIndex_System_IO_Stream_) method. You can also resize and reposition the image. {% tabs %} {% highlight c# %} var worksheet = spreadsheet.ActiveSheet; -var stream = typeof(MainWindow).Assembly.GetManifestResourceStream("GraphicCellDemo.Data.Sample.jpg"); +var stream = typeof(Form1).Assembly.GetManifestResourceStream("GraphicCellDemo.Data.Sample.jpg"); var shape = spreadsheet.AddImage(worksheet, new RowColumnIndex(5, 5), stream); -// Re-Positioning Picture +// Repositioning the picture shape.Top = 200; shape.Left = 200; -//Re-sizing a Picture +// Resizing the picture shape.Height = 200; shape.Width = 200; {% endhighlight %} {% endtabs %} -## TextBoxes +## Text Boxes -Spreadsheet provides support to import RichText Box in `SpreadsheetGrid` and to add the rich text box at run time, use [AddTextBox](https://help.syncfusion.com/cr/windowsforms/Syncfusion.Windows.Forms.Spreadsheet.GraphicCells.GraphicCellHelper.html#Syncfusion_Windows_Forms_Spreadsheet_GraphicCells_GraphicCellHelper_AddTextBox_Syncfusion_Windows_Forms_Spreadsheet_Spreadsheet_Syncfusion_XlsIO_IWorksheet_Syncfusion_Windows_Forms_CellGrid_ScrollAxis_RowColumnIndex_System_Drawing_Size_System_String_) method +Spreadsheet supports importing rich text boxes in `SpreadsheetGrid`. To add a text box at runtime, use the [AddTextBox](https://help.syncfusion.com/cr/windowsforms/Syncfusion.Windows.Forms.Spreadsheet.GraphicCells.GraphicCellHelper.html#Syncfusion_Windows_Forms_Spreadsheet_GraphicCells_GraphicCellHelper_AddTextBox_Syncfusion_Windows_Forms_Spreadsheet_Spreadsheet_Syncfusion_XlsIO_IWorksheet_Syncfusion_Windows_Forms_CellGrid_ScrollAxis_RowColumnIndex_System_Drawing_Size_System_String_) method. {% tabs %} {% highlight c# %} @@ -119,7 +119,7 @@ Spreadsheet provides support to import RichText Box in `SpreadsheetGrid` and to var rtfText = "{\\rtf1\\ansi\\ansicpg1252\\deff0\\deflang1033{\\fonttbl{\\f0\\fnil\\fcharset1 Calibri;}{\\f1\\fnil\\fcharset1 Calibri;}}{\\colortbl;\\red0\\green0\\blue0;\\red255\\green0\\blue0;}{\\f0\\fs22\\b\\cf1\\u83*\\u121*\\u110*\\u99*\\u102*\\u117*\\u115*\\u105*\\u111*\\u110*\\u32*\\b0} {\\f1\\fs22\\cf2\\u83*\\u111*\\u102*\\u116*\\u119*\\u97*\\u114*\\u101*\\u32*}{\\f1\\fs22\\cf1\\u80*\\u118*\\u116*\\u46*\\u32*\\u76*\\u116*\\u100*}}"; var textBox = spreadsheet.AddTextBox(spreadsheet.ActiveSheet, new RowColumnIndex(5, 5), new Size(200, 200), rtfText) as TextBoxShapeImpl; -// Re-positioning RichTextBox +// Repositioning the text box textBox.Left = 200; textBox.Top = 200; @@ -128,7 +128,7 @@ textBox.Top = 200; ## Accessing the selected shapes -Spreadsheet allows the user to access the selected shapes and modify the properties associated with it in `SpreadsheetGrid`. +Spreadsheet allows you to access the selected shapes and modify their properties within `SpreadsheetGrid`. {% tabs %} {% highlight c# %} diff --git a/Document-Processing/Excel/Spreadsheet/Winforms/Sorting-and-Filtering.md b/Document-Processing/Excel/Spreadsheet/Winforms/Sorting-and-Filtering.md index 713092108f..8bf65c3256 100644 --- a/Document-Processing/Excel/Spreadsheet/Winforms/Sorting-and-Filtering.md +++ b/Document-Processing/Excel/Spreadsheet/Winforms/Sorting-and-Filtering.md @@ -7,11 +7,11 @@ control: Spreadsheet documentation: ug --- -# Sorting And Filtering in Windows Forms Spreadsheet +# Sorting and Filtering in Windows Forms Spreadsheet This section explains the features of sorting and filtering in the Spreadsheet. -## Filtering +## Enable Filtering By default, the Spreadsheet does not allow filtering support, so if you want to enable filtering in Spreadsheet, set the [AllowFiltering](https://help.syncfusion.com/cr/windowsforms/Syncfusion.Windows.Forms.Spreadsheet.Spreadsheet.html#Syncfusion_Windows_Forms_Spreadsheet_Spreadsheet_AllowFiltering) property to be true. @@ -21,13 +21,13 @@ spreadsheet.AllowFiltering = true; {% endhighlight %} {% endtabs %} -N> Please find the [Filtering Demo](https://github.com/SyncfusionExamples/Spreadsheet_Sort_Filter) for your reference. +N> Refer to the [Filtering Demo](https://github.com/SyncfusionExamples/Spreadsheet_Sort_Filter) for your reference. ## Programmatic Sorting and Filtering -### Sorting +### Sorting -Sort the data programmatically when importing the workbook in the `WorkbookLoaded` event of Spreadsheet . +Sort the data programmatically when importing the workbook in the `WorkbookLoaded` event of Spreadsheet. {% tabs %} {% highlight c# %} @@ -46,7 +46,7 @@ void spreadsheet_WorkbookLoaded(object sender, WorkbookLoadedEventArgs args) {% endhighlight %} {% endtabs %} -### Filtering +### Filtering Filter the data programmatically when importing the workbook in the `WorkbookLoaded` event of Spreadsheet. @@ -81,9 +81,9 @@ Spreadsheet currently does not support the following features. ### Sorting -* Sorting label in Microsoft Excel should be varied in filter popup depending on the value type in a column (for example, "Sort Smallest to Largest" for numerical values, "Sort A to Z" for string values, etc.). But sort label is not varied in Spreadsheet based on values due to improving filter popup loading efficiency. -* If the column is sorted in Microsoft Excel, Sort Ascending or Sort Descending is not checked in the filter popup.Since XlsIO currently has no support when importing the workbook to get the sorted order. +* Microsoft Excel varies the sort label in the filter popup based on the column's value type (for example, "Sort Smallest to Largest" for numerical values, "Sort A to Z" for string values, etc.). However, the Spreadsheet does not vary the sort label based on values, in order to improve filter popup loading efficiency. +* If a column is sorted in Microsoft Excel, the "Sort Ascending" or "Sort Descending" option is not checked in the filter popup, because XlsIO does not currently expose the sorted order when importing a workbook. ### Filtering -* If the filter is applied in Microsoft Excel, the filter will be cleared from all columns while clearing the filter from any column in Spreadsheet. +* When a filter is applied in Microsoft Excel, clearing the filter on any column in the Spreadsheet also clears filters on all other columns. diff --git a/Document-Processing/Excel/Spreadsheet/Winforms/Workbook-Operations.md b/Document-Processing/Excel/Spreadsheet/Winforms/Workbook-Operations.md index f33da8d160..2255804746 100644 --- a/Document-Processing/Excel/Spreadsheet/Winforms/Workbook-Operations.md +++ b/Document-Processing/Excel/Spreadsheet/Winforms/Workbook-Operations.md @@ -9,11 +9,11 @@ documentation: ug # Workbook Operations in Windows Forms Spreadsheet -This section explains how to manage Excel workbooks in Spreadsheet, including creating new files, opening existing workbooks from various sources, and saving changes efficiently. +This section explains how to manage Excel workbooks in the Spreadsheet control, including creating a new workbook, opening existing workbooks from various sources, and saving changes efficiently. ## Creating a new Excel Workbook -A new workbook can be created by using a [Create](https://help.syncfusion.com/cr/windowsforms/Syncfusion.Windows.Forms.Spreadsheet.Spreadsheet.html#Syncfusion_Windows_Forms_Spreadsheet_Spreadsheet_Create_System_Int32_) method with specified number of worksheets. By default, a workbook will be created with single worksheet. +A new workbook can be created by using the [Create](https://help.syncfusion.com/cr/windowsforms/Syncfusion.Windows.Forms.Spreadsheet.Spreadsheet.html#Syncfusion_Windows_Forms_Spreadsheet_Spreadsheet_Create_System_Int32_) method, which accepts an `int` parameter specifying the number of worksheets to include. By default, a workbook will be created with a single worksheet. {% tabs %} {% highlight c# tabtitle="Form1.cs" %} @@ -30,7 +30,7 @@ public Form1() ## Opening an existing Excel Workbook -The Excel Workbook can be opened in Spreadsheet using the [Open](https://help.syncfusion.com/cr/windowsforms/Syncfusion.Windows.Forms.Spreadsheet.Spreadsheet.html#Syncfusion_Windows_Forms_Spreadsheet_Spreadsheet_Open_Syncfusion_XlsIO_IWorkbook_) method in various ways, +The Excel workbook can be opened in the Spreadsheet control using the [Open](https://help.syncfusion.com/cr/windowsforms/Syncfusion.Windows.Forms.Spreadsheet.Spreadsheet.html#Syncfusion_Windows_Forms_Spreadsheet_Spreadsheet_Open_Syncfusion_XlsIO_IWorkbook_) method in various ways: {% tabs %} {% highlight c# tabtitle="Form1.cs" %} @@ -59,12 +59,12 @@ public Form1() ![Opening an existing excel workbook in WindowsForms Spreadsheet](getting-started_images/windowsforms-spreadsheet-opening-an-existing-excel-workbook.png) -Opening Excel File in Spreadsheet +Opening an Excel file in the Spreadsheet control {:.caption} ## Saving the Excel Workbook -The Excel workbook can be saved in Spreadsheet using [Save](https://help.syncfusion.com/cr/windowsforms/Syncfusion.Windows.Forms.Spreadsheet.Spreadsheet.html#Syncfusion_Windows_Forms_Spreadsheet_Spreadsheet_Save) method. If the workbook already exists in the system drive, it will be saved in the same location, otherwise Save Dialog box opens to save the workbook in user specified location. +The Excel workbook can be saved in the Spreadsheet control using the [Save](https://help.syncfusion.com/cr/windowsforms/Syncfusion.Windows.Forms.Spreadsheet.Spreadsheet.html#Syncfusion_Windows_Forms_Spreadsheet_Spreadsheet_Save) method. If the workbook already exists on the system drive, it will be saved in the same location; otherwise, the Save dialog box opens to save the workbook in a user-specified location. {% tabs %} {% highlight c# tabtitle="Form1.cs" %} @@ -82,9 +82,9 @@ public Form1() {% endtabs %} -You can also use [SaveAs](https://help.syncfusion.com/cr/windowsforms/Syncfusion.Windows.Forms.Spreadsheet.Spreadsheet.html#Syncfusion_Windows_Forms_Spreadsheet_Spreadsheet_SaveAs) method directly to save the existing excel file with modifications. +You can also use the [SaveAs](https://help.syncfusion.com/cr/windowsforms/Syncfusion.Windows.Forms.Spreadsheet.Spreadsheet.html#Syncfusion_Windows_Forms_Spreadsheet_Spreadsheet_SaveAs) method directly to save the existing Excel file with modifications. -The `SaveAs` method in Spreadsheet can be used in various ways, +The `SaveAs` method in the Spreadsheet control can be used in various ways: {% tabs %} {% highlight c# tabtitle="Form1.cs" %} @@ -94,7 +94,7 @@ public Form1() InitializeComponent(); ..... - + // Using Stream spreadsheet.SaveAs(Stream file); diff --git a/Document-Processing/Excel/Spreadsheet/Winforms/Working-with-Spreadsheet.md b/Document-Processing/Excel/Spreadsheet/Winforms/Working-with-Spreadsheet.md index a2d616fde5..3b4a45d242 100644 --- a/Document-Processing/Excel/Spreadsheet/Winforms/Working-with-Spreadsheet.md +++ b/Document-Processing/Excel/Spreadsheet/Winforms/Working-with-Spreadsheet.md @@ -9,13 +9,13 @@ documentation: ug --- # Working With Spreadsheet in Windows Forms Spreadsheet - This section explains about accessing the Worksheet, Grid and the events associated with it. + This section explains how to access the worksheet, grid, and related events. ## Accessing the worksheet A __workbook__ is an excel document in the Spreadsheet. It is an object that exposes the [IWorkbook](https://help.syncfusion.com/cr/windowsforms/Syncfusion.XlsIO.IWorkbook.html) interface. Currently loaded workbook in the Spreadsheet can be accessed by using the [Workbook](https://help.syncfusion.com/cr/windowsforms/Syncfusion.Windows.Forms.Spreadsheet.Spreadsheet.html#Syncfusion_Windows_Forms_Spreadsheet_Spreadsheet_Workbook) property of Spreadsheet. -A workbook consists of one or more worksheets stored within the worksheet collection. Accessing the worksheets in the collection, can be done by the following ways, +A workbook consists of one or more worksheets stored within the worksheet collection. Accessing the worksheets in the collection can be done in the following ways: {% tabs %} {% highlight c# %} @@ -73,7 +73,7 @@ void spreadsheet_WorksheetRemoved(object sender, WorksheetRemovedEventArgs args) You can also access the each `SpreadsheetGrid` in the Spreadsheet either by passing the particular sheet name in the [GridCollection](https://help.syncfusion.com/cr/windowsforms/Syncfusion.Windows.Forms.Spreadsheet.Spreadsheet.html#Syncfusion_Windows_Forms_Spreadsheet_Spreadsheet_GridCollection) or by invoking `WorkbookLoaded` Event of Spreadsheet. -### By using sheet name +### Using a Sheet Name For your reference, setting the row and column count dynamically for the second sheet in the Workbook @@ -87,7 +87,7 @@ spreadsheet.GridCollection[sheet.Name].ColumnCount = 12; {% endhighlight %} {% endtabs %} -### By using event +### Using Events {% tabs %} {% highlight c# %} @@ -135,7 +135,7 @@ spreadsheet.SetActiveSheet("Sheet5"); Spreadsheet allows to access a single cell or range of cells in the workbook using `IRange` interface. -The following code shows the several ways of accessing a single cell or range of cells in the `Worksheet`, +The following code shows several ways to access a single cell or range of cells in the `Worksheet`. {% tabs %} {% highlight c# %} @@ -152,7 +152,7 @@ var cell2 = spreadsheet.Workbook.Worksheets[0].Range["Namerange"]; // Accessing a range of cells by specifying cell's address. var cell3 = spreadsheet.Workbook.Worksheets[0].Range["A5:C8"]; -// Accessing a range of cells specifying cell row and column index. +// Accessing a range of cells by specifying cell row and column index. var cell4 = spreadsheet.Workbook.Worksheets[0].Range[15, 1, 15, 3]; {% endhighlight %} @@ -180,7 +180,7 @@ var displayValue = spreadsheet.Workbook.Worksheets[1].Range[4, 1].DisplayText; ## Setting the value or formula to a cell -In Spreadsheet, to update the cell value and formula programmatically, [SetCellValue](https://help.syncfusion.com/cr/windowsforms/Syncfusion.Windows.Forms.Spreadsheet.SpreadsheetGrid.html#Syncfusion_Windows_Forms_Spreadsheet_SpreadsheetGrid_SetCellValue_Syncfusion_XlsIO_IRange_System_String_) method of [SpreadsheetGrid](https://help.syncfusion.com/cr/windowsforms/Syncfusion.Windows.Forms.Spreadsheet.SpreadsheetGrid.html) should be invoked and then invalidate that cell to update the view. +To update a cell's value or formula programmatically in the Spreadsheet, invoke the [SetCellValue](https://help.syncfusion.com/cr/windowsforms/Syncfusion.Windows.Forms.Spreadsheet.SpreadsheetGrid.html#Syncfusion_Windows_Forms_Spreadsheet_SpreadsheetGrid_SetCellValue_Syncfusion_XlsIO_IRange_System_String_) method of [SpreadsheetGrid](https://help.syncfusion.com/cr/windowsforms/Syncfusion.Windows.Forms.Spreadsheet.SpreadsheetGrid.html) and then invalidate that cell to update the view. {% tabs %} {% highlight c# %} @@ -213,7 +213,7 @@ spreadsheet.Workbook.Worksheets[0].Range[3, 3].Clear(ExcelClearOptions.ClearData {% endhighlight %} {% endtabs %} -N> [ExcelClearOptions](https://help.syncfusion.com/cr/file-formats/Syncfusion.XlsIO.ExcelClearOptions.html) is an enum which specifies the possible directions to clear the cell formats, content, comments,conditional format,data validation or clear all of them. +N> [ExcelClearOptions](https://help.syncfusion.com/cr/file-formats/Syncfusion.XlsIO.ExcelClearOptions.html) is an enum that specifies the ways to clear cell formats, content, comments, conditional formats, data validation, or to clear all of them. ## Refreshing the view @@ -246,7 +246,7 @@ spreadsheet.ActiveGrid.InvalidateCellBorders(range); ## Scrolling the Grid programmatically -Spreadsheet allows the user to scroll the grid into mentioned cell, by using [ScrollInView](https://help.syncfusion.com/cr/windowsforms/Syncfusion.Windows.Forms.CellGrid.SfCellGrid.html#Syncfusion_Windows_Forms_CellGrid_SfCellGrid_ScrollInView_Syncfusion_Windows_Forms_CellGrid_ScrollAxis_RowColumnIndex_) method of `SpreadsheetGrid`. +Spreadsheet allows you to scroll the grid to a specified cell by using the [ScrollInView](https://help.syncfusion.com/cr/windowsforms/Syncfusion.Windows.Forms.CellGrid.SfCellGrid.html#Syncfusion_Windows_Forms_CellGrid_SfCellGrid_ScrollInView_Syncfusion_Windows_Forms_CellGrid_ScrollAxis_RowColumnIndex_) method of `SpreadsheetGrid`. {% tabs %} {% highlight c# %} @@ -311,13 +311,12 @@ spreadsheet.ResumeFormulaCalculation(); //Suspends the automatic formula calculation spreadsheet.SuspendFormulaCalculation(); - {% endhighlight %} {% endtabs %} ## Close the popup programmatically -In Spreadsheet, popup windows are used to display the options like copy paste option, fill series option, etc. which will be closed automatically on certain actions. However you can also able to close the popup programmatically by using the [ShowHidePopup](https://help.syncfusion.com/cr/windowsforms/Syncfusion.Windows.Forms.Spreadsheet.SpreadsheetGrid.html#Syncfusion_Windows_Forms_Spreadsheet_SpreadsheetGrid_ShowHidePopup_System_Boolean_) method of `SpreadsheetGrid`. +In the Spreadsheet, popup windows are used to display options such as the copy-paste and fill-series options, which close automatically on certain actions. However, you can also close the popup programmatically by using the [ShowHidePopup](https://help.syncfusion.com/cr/windowsforms/Syncfusion.Windows.Forms.Spreadsheet.SpreadsheetGrid.html#Syncfusion_Windows_Forms_Spreadsheet_SpreadsheetGrid_ShowHidePopup_System_Boolean_) method of `SpreadsheetGrid`. {% tabs %} {% highlight c# %} @@ -353,4 +352,3 @@ void Spreadsheet_PropertyChanged(object sender, System.ComponentModel.PropertyCh {% endhighlight %} {% endtabs %} - diff --git a/Document-Processing/Excel/Spreadsheet/Winforms/Worksheet-Management.md b/Document-Processing/Excel/Spreadsheet/Winforms/Worksheet-Management.md index a6d3d59c84..985336c988 100644 --- a/Document-Processing/Excel/Spreadsheet/Winforms/Worksheet-Management.md +++ b/Document-Processing/Excel/Spreadsheet/Winforms/Worksheet-Management.md @@ -8,11 +8,12 @@ documentation: ug --- # Worksheet Management in Windows Forms Spreadsheet -This section explains about the operations that are performed with the worksheet. + +This section explains the operations you can perform on worksheets in a workbook using the Syncfusion WinForms Spreadsheet control. ## Insert and Delete -Spreadsheet provides support to insert and delete the worksheets in a workbook. +The Spreadsheet lets you insert and delete worksheets in a workbook. {% tabs %} {% highlight c# %} @@ -31,23 +32,23 @@ spreadsheet.RemoveSheet("Sheet2"); ## Hide and Unhide -Spreadsheet provides support to hide and unhide the worksheets in a workbook. +The Spreadsheet lets you hide and unhide worksheets in a workbook. Hidden sheets remain in the workbook and can be displayed again using `UnhideSheet`. {% tabs %} {% highlight c# %} //Hide Sheet -spreadsheet.HideSheet("Sheet 2"); +spreadsheet.HideSheet("Sheet2"); //Unhide Sheet -spreadsheet.UnhideSheet("Sheet 2"); +spreadsheet.UnhideSheet("Sheet2"); {% endhighlight %} {% endtabs %} -## Rename a sheet programmatically +## Rename a Sheet programmatically -Spreadsheet provides support to rename a worksheet in the workbook programmatically by using [RenameSheet](https://help.syncfusion.com/cr/windowsforms/Syncfusion.Windows.Forms.Spreadsheet.Spreadsheet.html#Syncfusion_Windows_Forms_Spreadsheet_Spreadsheet_RenameSheet_System_String_System_String_) method. +The Spreadsheet lets you rename a worksheet in the workbook programmatically by using the [RenameSheet](https://help.syncfusion.com/cr/windowsforms/Syncfusion.Windows.Forms.Spreadsheet.Spreadsheet.html#Syncfusion_Windows_Forms_Spreadsheet_Spreadsheet_RenameSheet_System_String_System_String_) method. {% tabs %} @@ -61,33 +62,33 @@ spreadsheet.RenameSheet("ExistingSheetName", "NewSheetName"); ## Protection -### Protecting a worksheet +### Protecting a Worksheet -Spreadsheet provides support to protect the worksheet with or without password. This helps to prevent a user from modifying the contents of the worksheet. The protection of worksheet can be done with [ExcelSheetProtection](https://help.syncfusion.com/cr/windowsforms/Syncfusion.XlsIO.ExcelSheetProtection.html) options also. +The Spreadsheet lets you protect a worksheet with or without a password to prevent users from modifying its contents. Protection can be configured through the [ExcelSheetProtection](https://help.syncfusion.com/cr/windowsforms/Syncfusion.XlsIO.ExcelSheetProtection.html) options. -The Protect sheet options are +The available protection options are: -* LockedCells - Allows the users to select the locked cells of the protected worksheet. +* LockedCells - Allows users to select the locked cells of the protected worksheet. -* UnLockedCells - Allows the users to select the unlocked cells of the protected worksheet. +* UnLockedCells - Allows users to select the unlocked cells of the protected worksheet. -* FormattingCells - Allows the users to format any cell on a protected worksheet. +* FormattingCells - Allows users to format any cell on a protected worksheet. -* FormattingRows - Allows the users to format any row on a protected worksheet. +* FormattingRows - Allows users to format any row on a protected worksheet. -* FormattingColumns - Allows the users to format any column on a protected worksheet. +* FormattingColumns - Allows users to format any column on a protected worksheet. -* InsertingRows - Allows the users to insert rows on the protected worksheet. +* InsertingRows - Allows users to insert rows on the protected worksheet. -* InsertingColumns - Allows the users to insert columns on the protected worksheet. +* InsertingColumns - Allows users to insert columns on the protected worksheet. -* InsertingHyperlinks - Allows the users to insert hyperlinks on the protected worksheet. +* InsertingHyperlinks - Allows users to insert hyperlinks on the protected worksheet. -* DeletingRows - Allows the users to delete rows on the protected worksheet. +* DeletingRows - Allows users to delete rows on the protected worksheet. -* DeletingColumns - Allows the users to delete columns on the protected worksheet. +* DeletingColumns - Allows users to delete columns on the protected worksheet. -* Objects - Allows the users to edit the objects such as Graphic cells like charts,rich textbox, etc. +* Objects - Allows users to edit objects such as graphic cells, charts, and rich text boxes, and etc. {% tabs %} {% highlight c# %} @@ -104,9 +105,9 @@ spreadsheet.UnProtectSheet(spreadsheet.ActiveSheet, "123"); {% endhighlight %} {% endtabs %} -### Protecting a workbook +### Protecting a Workbook -Spreadsheet provides support to protect the structure and windows of a workbook. By protecting the structure, prevent a user from adding or deleting worksheets or from displaying hidden worksheets. By protecting the windows in the workbook, you can control the size of the workbook, etc. +The Spreadsheet lets you protect the structure and windows of a workbook. Protecting the structure prevents a user from adding, deleting, or displaying hidden worksheets. Protecting the windows controls the size and position of the workbook window. {% tabs %} {% highlight c# %} @@ -122,7 +123,7 @@ spreadsheet.Unprotect("123"); ## Gridlines -Spreadsheet provides support to control the visibility and color of the Gridlines in a worksheet. +The Spreadsheet lets you control the visibility of gridlines in a worksheet. {% tabs %} {% highlight c# %} @@ -138,7 +139,7 @@ spreadsheet.SetGridLinesVisibility(false); ## Headings -Spreadsheet provides support to control the visibility of row and column headers in a worksheet +The Spreadsheet lets you show or hide the row and column headers in a worksheet. {% tabs %} {% highlight c# %} @@ -151,7 +152,7 @@ spreadsheet.SetRowColumnHeadersVisibility(false); ## Zooming -Spreadsheet provides support to zoom in and zoom out of a worksheet view. The property [AllowZooming](https://help.syncfusion.com/cr/windowsforms/Syncfusion.Windows.Forms.Spreadsheet.Spreadsheet.html#Syncfusion_Windows_Forms_Spreadsheet_Spreadsheet_AllowZooming) determines whether to allow zooming or not. +The Spreadsheet lets you zoom in and zoom out of a worksheet view. The [AllowZooming](https://help.syncfusion.com/cr/windowsforms/Syncfusion.Windows.Forms.Spreadsheet.Spreadsheet.html#Syncfusion_Windows_Forms_Spreadsheet_Spreadsheet_AllowZooming) property determines whether users are allowed to change the zoom level interactively. {% tabs %} {% highlight c# %} @@ -162,7 +163,7 @@ spreadsheet.SetZoomFactor("Sheet1", 200); {% endhighlight %} {% endtabs %} -The Events associated with the Zooming are +The events associated with zooming are: . [ZoomFactorChanged](https://help.syncfusion.com/cr/windowsforms/Syncfusion.Windows.Forms.Spreadsheet.Spreadsheet.html) @@ -170,6 +171,8 @@ The Events associated with the Zooming are ## Events +The following table lists the events raised by the Spreadsheet during worksheet management operations. + +Occurs when the workbook is to be created in the Spreadsheet. +Occurs when the workbook is loaded in the Spreadsheet. +Occurs when a worksheet is to be added in the Spreadsheet. +Occurs when a worksheet is added in the Spreadsheet. +Occurs when a worksheet is to be removed from the Spreadsheet. +Occurs when a worksheet is removed from the Spreadsheet. +Paste with all format options from the source range +Paste the formulas only +Paste the values only +Paste only the formats without pasting the values +Maintains the source range’s original format and paste only values
@@ -178,31 +181,31 @@ Description
{{ '[WorkbookCreating](https://help.syncfusion.com/cr/windowsforms/Syncfusion.Windows.Forms.Spreadsheet.Spreadsheet.html) ' | markdownify }} -Occurs when the workbook is to be created in Spreadsheet.
{{ '[WorkbookLoaded](https://help.syncfusion.com/cr/windowsforms/Syncfusion.Windows.Forms.Spreadsheet.Spreadsheet.html) ' | markdownify }} -Occur when the workbook is loaded in Spreadsheet.
{{ '[WorksheetAdding](https://help.syncfusion.com/cr/windowsforms/Syncfusion.Windows.Forms.Spreadsheet.Spreadsheet.html) ' | markdownify }} -Occurs when the worksheet is to be added in Spreadsheet.
{{ '[WorksheetAdded](https://help.syncfusion.com/cr/windowsforms/Syncfusion.Windows.Forms.Spreadsheet.Spreadsheet.html) ' | markdownify }} -Occurs when the worksheet is added in Spreadsheet.
{{ '[WorksheetRemoving](https://help.syncfusion.com/cr/windowsforms/Syncfusion.Windows.Forms.Spreadsheet.Spreadsheet.html) ' | markdownify }} -Occurs when the worksheet is to be removed from Spreadsheet.
{{ '[WorksheetRemoved](https://help.syncfusion.com/cr/windowsforms/Syncfusion.Windows.Forms.Spreadsheet.Spreadsheet.html) ' | markdownify }} -Occurs when the worksheet is removed from Spreadsheet.
{{ '[WorkbookUnloaded](https://help.syncfusion.com/cr/windowsforms/Syncfusion.Windows.Forms.Spreadsheet.Spreadsheet.html) ' | markdownify }} diff --git a/Document-Processing/Excel/Spreadsheet/Winforms/localization.md b/Document-Processing/Excel/Spreadsheet/Winforms/localization.md index 99b946168b..a911faf96a 100644 --- a/Document-Processing/Excel/Spreadsheet/Winforms/localization.md +++ b/Document-Processing/Excel/Spreadsheet/Winforms/localization.md @@ -9,15 +9,15 @@ documentation: ug # Localization in Windows Forms Spreadsheet -Localization is the process of configuring the application to a specific language. Spreadsheet provides support to localize all the static text in a Ribbon and all dialogs to any desired language. Localization can be done by adding resource file and setting the specific culture in the application. +Localization is the process of adapting the application for a specific language or locale. Spreadsheet supports localizing all the static text in the Ribbon and all its dialogs to any desired language. You can perform localization by adding a resource file and setting the specific culture in the application. -Spreadsheet allows you to set custom resource using Resx file. You can define your string values in resource file for a specific culture and set the culture in your application. +Spreadsheet allows you to set custom resources using a .resx file. You can define your string values in a resource file for a specific culture and then set that culture in your application. ## Set current UI culture to the application -To set the CultureInformation in the Application, set the `CurrentUICulture` before the InitializeComponent() method is called. +To set the culture in the application, set `CurrentUICulture` before the `InitializeComponent()` method is called. -Setting of the culture information, +Set the culture information as shown in the following code: {% tabs %} {% highlight c# %} @@ -31,34 +31,33 @@ public MainWindow() {% endhighlight %} {% endtabs %} -Now, the Application is set to the Japanese Culture info. +Now, the application is set to the Japanese culture. ## Localization using resource file -The following steps show how to implement the localization in Spreadsheet, +The following steps show how to implement localization in the Spreadsheet control: -* Create a folder and name it as ‘Resources’ in your application. -* Add the default resource[English("en-US")] file of `Spreadsheet` in the 'Resources' folder named as Syncfusion.Spreadsheet.Windows.resx. - You can download the Resx file [here](https://www.syncfusion.com/downloads/support/directtrac/general/ze/Syncfusion.SfSpreadsheet.Windows991194474) -* Create Resx(resource) file under the 'Resources' folder and name it as Syncfusion.Spreadsheet.Windows.[Culture name].resx. - For example, Syncfusion.Spreadsheet.Windows.ja.resx for Japanese culture. +1. Create a folder named `Resources` in your application. +2. Add the default English (en-US) resource file for `Spreadsheet` to the `Resources` folder and name it `Syncfusion.Spreadsheet.Windows.resx`. + You can download the .resx file [here](https://www.syncfusion.com/downloads/support/directtrac/general/ze/Syncfusion.SfSpreadsheet.Windows991194474). +3. Create a .resx file under the `Resources` folder and name it `Syncfusion.Spreadsheet.Windows.[Culture name].resx`. + For example, `Syncfusion.Spreadsheet.Windows.ja.resx` for the Japanese culture. -![Multiple resource files to change the default strings](localization_images/Loc_Image1.JPG) + ![Multiple resource files to change the default strings](localization_images/Loc_Image1.JPG) -* Add the resource key such as name and its corresponding localized value in Resource Designer of Syncfusion.Spreadsheet.Windows.ja.resx file. - For your reference, you can download the Japanese("ja-JP") Resx file [here](https://www.syncfusion.com/downloads/support/directtrac/general/ze/Syncfusion.SfSpreadsheet.Windows991194474) +4. Add the resource keys and their corresponding localized values using the Resource Designer of the `Syncfusion.Spreadsheet.Windows.ja.resx` file. + For your reference, you can download the Japanese (ja-JP) .resx file [here](https://www.syncfusion.com/downloads/support/directtrac/general/ze/Syncfusion.SfSpreadsheet.Windows991194474). ![Resource file for Japanese culture](localization_images/Loc_Image2.JPG) - -The following screenshot shows you the localization in Spreadsheet, +The following screenshot shows localization in the Spreadsheet: ![Localized strings with Japanese culture](localization_images/localization_img1.jpg) ## Modifying the localized strings in resource file -Users can modify the default localized strings in Resource file by adding the default [Resx](https://www.syncfusion.com/downloads/support/directtrac/general/ze/Syncfusion.SfSpreadsheet.Windows991194474) (resource) file of `Spreadsheet` in the 'Resources' folder of your application and name it as Syncfusion.Spreadsheet.Windows.resx. +You can modify the default localized strings by adding the default [.resx](https://www.syncfusion.com/downloads/support/directtrac/general/ze/Syncfusion.SfSpreadsheet.Windows991194474) (resource) file for `Spreadsheet` to the `Resources` folder of your application and naming it `Syncfusion.Spreadsheet.Windows.resx`. -Now, the default localized strings can be modified by changing the Name/Value pair in the Syncfusion.Spreadsheet.Windows.resx file. +Modify the default strings by changing the Name/Value pairs in the `Syncfusion.Spreadsheet.Windows.resx` file. ![Modified default strings of English culture](localization_images/Loc_Image3.jpg) diff --git a/Document-Processing/Excel/Spreadsheet/Winforms/ui-builder-skill.md b/Document-Processing/Excel/Spreadsheet/Winforms/ui-builder-skill.md index 325af3b0d0..e943beac24 100644 --- a/Document-Processing/Excel/Spreadsheet/Winforms/ui-builder-skill.md +++ b/Document-Processing/Excel/Spreadsheet/Winforms/ui-builder-skill.md @@ -12,7 +12,7 @@ keywords: WinForms UI Builder, Skills, AI Assistants, Spreadsheet SDK, Agent Ski **Syncfusion® WinForms UI Builder Skill** is an AI-powered agent skill that accelerates WinForms Spreadsheet development by transforming natural-language UI requirements into production-ready code using Syncfusion® WinForms components. -Integrated with your AI-powered IDE, it leverages deep knowledge of **Syncfusion® Spreadsheet** and other WinForms components to deliver accurate and ready-to-use code.By combining intelligent code generation with best practices, accessibility standards, and design-system consistency, WinForms UI Builder helps you rapidly build scalable spreadsheet applications and user interfaces without leaving your development workflow. +Integrated with your AI-powered IDE, it leverages deep knowledge of **Syncfusion® Spreadsheet** and other WinForms components to deliver accurate and ready-to-use code. By combining intelligent code generation with best practices, accessibility standards, and design-system consistency, WinForms UI Builder helps you rapidly build scalable spreadsheet applications and user interfaces without leaving your development workflow. ## Prerequisites @@ -31,8 +31,8 @@ Before installing WinForms UI Builder Skill with Spreadsheet, ensure the followi ### **AI-Driven UI Generation** - Transforms prompts into fully developed WinForms components rather than just partial code snippets. -- Automatically selects appropriate Syncfusion® components and features -- Produces structured, maintainable code +- Automatically selects appropriate Syncfusion® components and features. +- Produces structured, maintainable code. ### **Control Usage & API Accuracy** - Uses correct Syncfusion® control APIs and properties @@ -122,13 +122,13 @@ Refer to the [documentation](https://microsoft.github.io/apm/reference/cli/targe Key enforcement points: - Adds correct SkinManager configuration and theme settings for chosen Syncfusion® themes (loads required theme assemblies) -- Injects only the feature controls and behaviors required by generated controls +- Injects only the feature controls and behaviors required by the generated controls - Follows Windows Forms conventions for control naming, initialization, and event handling - Generates designer-compatible code with proper control hierarchy and parent-child relationships - Ensures all required Syncfusion® assemblies and theme NuGet packages are referenced and configured - Avoids unsupported or deprecated API usages for Syncfusion® Windows Forms controls -> The assistant handles most stages automatically and may request confirmation where required. +> The assistant handles most stages automatically and may request confirmation where required for file modifications. ## Using the AI Assistant @@ -146,9 +146,9 @@ To start using the skill: 3. Start prompting the agent with a clear description of your UI requirements. -> For Syncfusion® Code Studio, if the UI Builder agent is not shown, ensure that the agent location is configured to use it in the chat, and refer to the [documentation](https://help.syncfusion.com/code-studio/reference/configure-properties/usersettings#agent-file-locations) to configure the agent location properly. +> For Syncfusion® Code Studio, if the agent isn't listed, configure the agent location as shown in the [Code Studio agent file locations documentation](https://help.syncfusion.com/code-studio/reference/configure-properties/usersettings#agent-file-locations). -Examples Prompts: +Example Prompts: {% promptcards %} {% promptcard Spreadsheet with Multiple Sheets %} @@ -159,7 +159,7 @@ Create a WinForms application using Syncfusion Spreadsheet that initializes a wo {% endpromptcard %} {% endpromptcards %} -Generated code follows Windows Forms best practices with proper control layout, event handling, data bindings, strong C# typing, and built-in security measures such as input validation and avoidance of hardcore secrets. The code is fully compatible with Visual Studio designer and Windows Forms conventions. +Generated code follows Windows Forms best practices. It includes proper control layout, event handling, data bindings, strong C# typing, and built-in security measures such as input validation and the avoidance of hardcoded secrets. The code is fully compatible with Visual Studio designer and Windows Forms conventions. ## Best Practices @@ -173,7 +173,7 @@ Follow these guidelines to get the most out of UI Builder and ensure high-qualit ## Troubleshooting -- **APM installation failure**: Refer to this [documentation](https://microsoft.github.io/apm/getting-started/installation/#troubleshooting) +- **APM installation failure**: Refer to the [APM installation troubleshooting guide](https://microsoft.github.io/apm/getting-started/installation/#troubleshooting). - **Skills not loading**: Ensure the **.agent/** and **.github/agents/** folders exist in your project and that the skill was installed successfully using APM. Verify that the correct agent is selected from the Agent dropdown in your IDE. @@ -185,7 +185,7 @@ Follow these guidelines to get the most out of UI Builder and ensure high-qualit ## FAQ **Which agents/IDEs are supported?** -Any Skills-compatible agent that reads local skill files (Code Studio, VS Code, Cursor, etc.). +Any Skills-compatible agent that reads local skill files (Syncfusion® Code Studio, VS Code, Cursor, etc.). **Are skills loaded automatically?** Yes. Supported agents automatically load relevant skills based on your query. From b4ac18290a7cd4c7610911191f847f01214113f7 Mon Sep 17 00:00:00 2001 From: RajClinton26 Date: Thu, 23 Jul 2026 16:08:25 +0530 Subject: [PATCH 2/4] Resolve CI issue --- .../Excel/Spreadsheet/Winforms/ui-builder-skill.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Document-Processing/Excel/Spreadsheet/Winforms/ui-builder-skill.md b/Document-Processing/Excel/Spreadsheet/Winforms/ui-builder-skill.md index e943beac24..66c37ed659 100644 --- a/Document-Processing/Excel/Spreadsheet/Winforms/ui-builder-skill.md +++ b/Document-Processing/Excel/Spreadsheet/Winforms/ui-builder-skill.md @@ -159,7 +159,7 @@ Create a WinForms application using Syncfusion Spreadsheet that initializes a wo {% endpromptcard %} {% endpromptcards %} -Generated code follows Windows Forms best practices. It includes proper control layout, event handling, data bindings, strong C# typing, and built-in security measures such as input validation and the avoidance of hardcoded secrets. The code is fully compatible with Visual Studio designer and Windows Forms conventions. +Generated code follows Windows Forms best practices. It includes proper control layout, event handling, data bindings, strong C# typing, and built-in security measures such as input validation and the avoidance of hardcore secrets. The code is fully compatible with Visual Studio designer and Windows Forms conventions. ## Best Practices From 39b3f0e7c2606703df71f91459f72dff172f6eb1 Mon Sep 17 00:00:00 2001 From: RajClinton26 Date: Thu, 23 Jul 2026 18:13:42 +0530 Subject: [PATCH 3/4] Updated UG contents --- .../Winforms/Conditional-Formatting.md | 14 +++++++------- .../Excel/Spreadsheet/Winforms/Formatting.md | 4 ++-- .../Spreadsheet/Winforms/Interactive-Features.md | 10 +++++----- .../Excel/Spreadsheet/Winforms/Overview.md | 2 +- .../Excel/Spreadsheet/Winforms/Selection.md | 2 +- .../Excel/Spreadsheet/Winforms/Shapes.md | 4 ++-- .../Spreadsheet/Winforms/Workbook-Operations.md | 2 +- .../Spreadsheet/Winforms/Worksheet-Management.md | 16 ++++++++-------- .../Spreadsheet/Winforms/ui-builder-skill.md | 4 ++-- 9 files changed, 29 insertions(+), 29 deletions(-) diff --git a/Document-Processing/Excel/Spreadsheet/Winforms/Conditional-Formatting.md b/Document-Processing/Excel/Spreadsheet/Winforms/Conditional-Formatting.md index 2956d7ec38..d076310722 100644 --- a/Document-Processing/Excel/Spreadsheet/Winforms/Conditional-Formatting.md +++ b/Document-Processing/Excel/Spreadsheet/Winforms/Conditional-Formatting.md @@ -27,7 +27,7 @@ IConditionalFormat condition1 = condition.AddCondition(); ### Based on Cell Value -To format the cells based on a cell value, define the conditional format type as **CellValue** and set the operator, threshold (`FirstFormula`), and background color on the specified cell or range. +To format the cells based on a cell value, define the conditional format type as **CellValue** and other formatting options such as formula, operator, background color etc., to the specified cell or range. Finally, invalidate the cells to refresh the view. {% tabs %} {% highlight c# %} @@ -48,7 +48,7 @@ spreadsheet.ActiveGrid.InvalidateCell(GridRangeInfo.Col(1)); ### Based on Formula or Cell References -To format the cells based on a formula or cell references, define the conditional format type as **Formula** and set the `FirstFormula` and background color on the specified cell or range. +To format the cells based on a formula or cell references, define the conditional format type as **Formula** and other formatting options such as formula, background color etc., to the specified cell or range. Finally, invalidate the cells to refresh the view. {% tabs %} {% highlight c# %} @@ -68,7 +68,7 @@ spreadsheet.ActiveGrid.InvalidateCell(GridRangeInfo.Col(1)); ### Based on Specific Text -To format the cells based on a specified text, define the conditional format type as **SpecificText** and set the `Text`, `Operator`, and background color on the specified cell or range. +To format the cells based on a specified text, define the conditional format type as **SpecificText** and other formatting options such as the particular text, operator, background color etc., to the specified cell or range. Finally, invalidate the cells to refresh the view. {% tabs %} {% highlight c# %} @@ -89,7 +89,7 @@ spreadsheet.ActiveGrid.InvalidateCell(GridRangeInfo.Col(1)); ### Based on Time Period -To format the cells based on a time period, define the conditional format type as **TimePeriod** and set the `TimePeriodType` and background color on the specified cell or range. Common `CFTimePeriods` values include `Today`, `Yesterday`, `Last7Days`, `LastMonth`, `NextMonth`, and `ThisWeek`. +To format the cells based on a time period, define the conditional format type as **TimePeriod** and other formatting options such as the time periods for the date, operator, background color etc., to the specified cell or range. Finally, invalidate the cells to refresh the view. {% tabs %} {% highlight c# %} @@ -112,7 +112,7 @@ spreadsheet.ActiveGrid.InvalidateCell(GridRangeInfo.Col(1)); ## Data Bars -To apply the conditional format based on data bars, define the conditional format type as **DataBar** and set the `BarColor`, `MinPoint`, and `MaxPoint` on the specified cell or range. The `MinPoint` and `MaxPoint` accept a `ConditionValueType` such as `LowestValue`, `HighestValue`, `Number`, `Percent`, `Percentile`, or `Formula`. +To apply the conditional format based on data bars, define the conditional format type as **DataBar** and specify the properties associated with DataBars such as bar color, MinPoint, MaxPoint etc.,.to the specified cell or range. Finally, invalidate that cells to update the view. {% tabs %} {% highlight c# %} @@ -137,7 +137,7 @@ spreadsheet.ActiveGrid.InvalidateCell(GridRangeInfo.Col(2)); ## Color Scales -To apply the conditional format based on color scales, define the conditional format type as **ColorScale** and set the condition count (2 or 3) along with the color criteria on the specified cell or range. Each `Criteria[index]` defines a color stop; with three criteria you get a 2- or 3-color gradient between the stop colors. +To apply the conditional format based on color scales, define the conditional format type as **ColorScale** and specify the other properties associated with ColorScale such as condition count,color criteria etc.,to the specified cell or range. Finally,invalidate that cells to update the view. {% tabs %} {% highlight c# %} @@ -162,7 +162,7 @@ spreadsheet.ActiveGrid.InvalidateCell(GridRangeInfo.Col(3)); ## Icon Sets -To apply the conditional format based on icon sets, define the conditional format type as **IconSet** and set the `IconSet` property (from the `ExcelIconSetType` enum such as `ThreeArrows`, `ThreeSymbols`, `ThreeTrafficLights`, `ThreeFlags`, or `ThreeSigns`) on the specified cell or range. Optionally configure threshold criteria via `IconSet.Criteria`. +To apply the conditional format based on icon sets, define the conditional format type as **IconSet** and the properties associated with IconSet such as the type of the icon,criteria etc., to the specified cell or range. Finally, invalidate that cells to update the view. {% tabs %} {% highlight c# %} diff --git a/Document-Processing/Excel/Spreadsheet/Winforms/Formatting.md b/Document-Processing/Excel/Spreadsheet/Winforms/Formatting.md index fa34584287..c28372a35f 100644 --- a/Document-Processing/Excel/Spreadsheet/Winforms/Formatting.md +++ b/Document-Processing/Excel/Spreadsheet/Winforms/Formatting.md @@ -15,7 +15,7 @@ Styles and formats defined in an Excel file are automatically imported. You can * Cell font settings (font name, size, color, style, etc.) * Cell background -* Cell content alignment (vertical and horizontal alignment, indentation, and orientation) +* Cell content alignment (vertical and horizontal alignment, indentation, and text wrapping) * Cell borders * Number Format * Merge and Unmerge Cells @@ -311,7 +311,7 @@ N> You need to [refresh the view](https://help.syncfusion.com/document-processin ## Clear Formatting -Spreadsheet provides support to clear the contents of a cell along with its formatting, or to specify the required clear options using the [ExcelClearOptions](https://help.syncfusion.com/cr/file-formats/Syncfusion.XlsIO.ExcelClearOptions.html) enum, which specifies the options to clear cell formats, content, comments, conditional formats, data validation, or all of them. +Spreadsheet provides support to clear the contents of a cell along with its formatting, or to specify the required clear options using the [ExcelClearOptions](https://help.syncfusion.com/cr/file-formats/Syncfusion.XlsIO.ExcelClearOptions.html) enum, which specifies the options to clear cell formats, content, comments, conditional formats, data validation, or to clear all of them. {% tabs %} {% highlight c# %} diff --git a/Document-Processing/Excel/Spreadsheet/Winforms/Interactive-Features.md b/Document-Processing/Excel/Spreadsheet/Winforms/Interactive-Features.md index bb08ed558c..cd139765d9 100644 --- a/Document-Processing/Excel/Spreadsheet/Winforms/Interactive-Features.md +++ b/Document-Processing/Excel/Spreadsheet/Winforms/Interactive-Features.md @@ -45,11 +45,11 @@ Description
Paste -Pastes with all format options from the source range
Formula -Pastes the formulas only
Keep Source Formatting @@ -57,15 +57,15 @@ Maintains the source range’s formatting
Value -Pastes the values only
Format -Pastes only the formats without pasting the values
Value & Source Formatting -Maintains the source range’s original format and pastes only values
N> When the content is copied from external source, Spreadsheet does not support the format settings (paste options). diff --git a/Document-Processing/Excel/Spreadsheet/Winforms/Overview.md b/Document-Processing/Excel/Spreadsheet/Winforms/Overview.md index 07e573a8ff..975cd43416 100644 --- a/Document-Processing/Excel/Spreadsheet/Winforms/Overview.md +++ b/Document-Processing/Excel/Spreadsheet/Winforms/Overview.md @@ -63,7 +63,7 @@ Spreadsheet includes several advanced features like * **Supported file types** - Ability to import the following Excel file types: XLS, XLSX, XLSM, XLT, XLTX, and CSV (comma-delimited). ## Related Link -- [Getting Started](https://help.syncfusion.com/document-processing/excel/spreadsheet/winforms/getting-started) +- [Getting Started](Getting-Started) - [API Reference](https://help.syncfusion.com/cr/windowsforms/Syncfusion.Windows.Forms.Spreadsheet.html) - [Online Demos](https://github.com/syncfusion/spreadsheet-editor-sdk-winforms-demos) - [GitHub Samples](https://github.com/SyncfusionExamples/winforms-spreadsheet-examples) diff --git a/Document-Processing/Excel/Spreadsheet/Winforms/Selection.md b/Document-Processing/Excel/Spreadsheet/Winforms/Selection.md index a435fd916b..85ac307360 100644 --- a/Document-Processing/Excel/Spreadsheet/Winforms/Selection.md +++ b/Document-Processing/Excel/Spreadsheet/Winforms/Selection.md @@ -316,7 +316,7 @@ Moves the active current cell in one cell to the right of the selection. SHIFT+TAB -Moves the active current cell one cell to the left of the selection. +Moves the active current cell in one cell to the left of the selection. BACKSPACE diff --git a/Document-Processing/Excel/Spreadsheet/Winforms/Shapes.md b/Document-Processing/Excel/Spreadsheet/Winforms/Shapes.md index ad20bff06c..6faa33cc61 100644 --- a/Document-Processing/Excel/Spreadsheet/Winforms/Shapes.md +++ b/Document-Processing/Excel/Spreadsheet/Winforms/Shapes.md @@ -111,7 +111,7 @@ shape.Width = 200; ## Text Boxes -Spreadsheet supports importing rich text boxes in `SpreadsheetGrid`. To add a text box at runtime, use the [AddTextBox](https://help.syncfusion.com/cr/windowsforms/Syncfusion.Windows.Forms.Spreadsheet.GraphicCells.GraphicCellHelper.html#Syncfusion_Windows_Forms_Spreadsheet_GraphicCells_GraphicCellHelper_AddTextBox_Syncfusion_Windows_Forms_Spreadsheet_Spreadsheet_Syncfusion_XlsIO_IWorksheet_Syncfusion_Windows_Forms_CellGrid_ScrollAxis_RowColumnIndex_System_Drawing_Size_System_String_) method. +Spreadsheet supports importing RichText Box in `SpreadsheetGrid`. To add a text box at runtime, use the [AddTextBox](https://help.syncfusion.com/cr/windowsforms/Syncfusion.Windows.Forms.Spreadsheet.GraphicCells.GraphicCellHelper.html#Syncfusion_Windows_Forms_Spreadsheet_GraphicCells_GraphicCellHelper_AddTextBox_Syncfusion_Windows_Forms_Spreadsheet_Spreadsheet_Syncfusion_XlsIO_IWorksheet_Syncfusion_Windows_Forms_CellGrid_ScrollAxis_RowColumnIndex_System_Drawing_Size_System_String_) method. {% tabs %} {% highlight c# %} @@ -119,7 +119,7 @@ Spreadsheet supports importing rich text boxes in `SpreadsheetGrid`. To add a te var rtfText = "{\\rtf1\\ansi\\ansicpg1252\\deff0\\deflang1033{\\fonttbl{\\f0\\fnil\\fcharset1 Calibri;}{\\f1\\fnil\\fcharset1 Calibri;}}{\\colortbl;\\red0\\green0\\blue0;\\red255\\green0\\blue0;}{\\f0\\fs22\\b\\cf1\\u83*\\u121*\\u110*\\u99*\\u102*\\u117*\\u115*\\u105*\\u111*\\u110*\\u32*\\b0} {\\f1\\fs22\\cf2\\u83*\\u111*\\u102*\\u116*\\u119*\\u97*\\u114*\\u101*\\u32*}{\\f1\\fs22\\cf1\\u80*\\u118*\\u116*\\u46*\\u32*\\u76*\\u116*\\u100*}}"; var textBox = spreadsheet.AddTextBox(spreadsheet.ActiveSheet, new RowColumnIndex(5, 5), new Size(200, 200), rtfText) as TextBoxShapeImpl; -// Repositioning the text box +// Repositioning the RichTextBox textBox.Left = 200; textBox.Top = 200; diff --git a/Document-Processing/Excel/Spreadsheet/Winforms/Workbook-Operations.md b/Document-Processing/Excel/Spreadsheet/Winforms/Workbook-Operations.md index 2255804746..8f7f95a084 100644 --- a/Document-Processing/Excel/Spreadsheet/Winforms/Workbook-Operations.md +++ b/Document-Processing/Excel/Spreadsheet/Winforms/Workbook-Operations.md @@ -13,7 +13,7 @@ This section explains how to manage Excel workbooks in the Spreadsheet control, ## Creating a new Excel Workbook -A new workbook can be created by using the [Create](https://help.syncfusion.com/cr/windowsforms/Syncfusion.Windows.Forms.Spreadsheet.Spreadsheet.html#Syncfusion_Windows_Forms_Spreadsheet_Spreadsheet_Create_System_Int32_) method, which accepts an `int` parameter specifying the number of worksheets to include. By default, a workbook will be created with a single worksheet. +A new workbook can be created by using the [Create](https://help.syncfusion.com/cr/windowsforms/Syncfusion.Windows.Forms.Spreadsheet.Spreadsheet.html#Syncfusion_Windows_Forms_Spreadsheet_Spreadsheet_Create_System_Int32_) method with specified number of worksheets. By default, a workbook will be created with a single worksheet. {% tabs %} {% highlight c# tabtitle="Form1.cs" %} diff --git a/Document-Processing/Excel/Spreadsheet/Winforms/Worksheet-Management.md b/Document-Processing/Excel/Spreadsheet/Winforms/Worksheet-Management.md index 985336c988..9d9d901153 100644 --- a/Document-Processing/Excel/Spreadsheet/Winforms/Worksheet-Management.md +++ b/Document-Processing/Excel/Spreadsheet/Winforms/Worksheet-Management.md @@ -13,7 +13,7 @@ This section explains the operations you can perform on worksheets in a workbook ## Insert and Delete -The Spreadsheet lets you insert and delete worksheets in a workbook. +The Spreadsheet allows you to insert and delete worksheets in a workbook. {% tabs %} {% highlight c# %} @@ -32,7 +32,7 @@ spreadsheet.RemoveSheet("Sheet2"); ## Hide and Unhide -The Spreadsheet lets you hide and unhide worksheets in a workbook. Hidden sheets remain in the workbook and can be displayed again using `UnhideSheet`. +The Spreadsheet allows you to hide and unhide worksheets in a workbook. Hidden sheets remain in the workbook and can be displayed again using `UnhideSheet`. {% tabs %} {% highlight c# %} @@ -48,7 +48,7 @@ spreadsheet.UnhideSheet("Sheet2"); ## Rename a Sheet programmatically -The Spreadsheet lets you rename a worksheet in the workbook programmatically by using the [RenameSheet](https://help.syncfusion.com/cr/windowsforms/Syncfusion.Windows.Forms.Spreadsheet.Spreadsheet.html#Syncfusion_Windows_Forms_Spreadsheet_Spreadsheet_RenameSheet_System_String_System_String_) method. +The Spreadsheet allows you to rename a worksheet in the workbook programmatically by using the [RenameSheet](https://help.syncfusion.com/cr/windowsforms/Syncfusion.Windows.Forms.Spreadsheet.Spreadsheet.html#Syncfusion_Windows_Forms_Spreadsheet_Spreadsheet_RenameSheet_System_String_System_String_) method. {% tabs %} @@ -64,7 +64,7 @@ spreadsheet.RenameSheet("ExistingSheetName", "NewSheetName"); ### Protecting a Worksheet -The Spreadsheet lets you protect a worksheet with or without a password to prevent users from modifying its contents. Protection can be configured through the [ExcelSheetProtection](https://help.syncfusion.com/cr/windowsforms/Syncfusion.XlsIO.ExcelSheetProtection.html) options. +The Spreadsheet allows you to protect a worksheet with or without a password to prevent users from modifying its contents. Protection can be configured through the [ExcelSheetProtection](https://help.syncfusion.com/cr/windowsforms/Syncfusion.XlsIO.ExcelSheetProtection.html) options. The available protection options are: @@ -107,7 +107,7 @@ spreadsheet.UnProtectSheet(spreadsheet.ActiveSheet, "123"); ### Protecting a Workbook -The Spreadsheet lets you protect the structure and windows of a workbook. Protecting the structure prevents a user from adding, deleting, or displaying hidden worksheets. Protecting the windows controls the size and position of the workbook window. +The Spreadsheet allows you to protect the structure and windows of a workbook. Protecting the structure prevents a user from adding, deleting, or displaying hidden worksheets. Protecting the windows controls the size and position of the workbook window. {% tabs %} {% highlight c# %} @@ -123,7 +123,7 @@ spreadsheet.Unprotect("123"); ## Gridlines -The Spreadsheet lets you control the visibility of gridlines in a worksheet. +The Spreadsheet allows you to control the visibility of Gridlines in a worksheet. {% tabs %} {% highlight c# %} @@ -139,7 +139,7 @@ spreadsheet.SetGridLinesVisibility(false); ## Headings -The Spreadsheet lets you show or hide the row and column headers in a worksheet. +The Spreadsheet allows you to show or hide the row and column headers in a worksheet. {% tabs %} {% highlight c# %} @@ -152,7 +152,7 @@ spreadsheet.SetRowColumnHeadersVisibility(false); ## Zooming -The Spreadsheet lets you zoom in and zoom out of a worksheet view. The [AllowZooming](https://help.syncfusion.com/cr/windowsforms/Syncfusion.Windows.Forms.Spreadsheet.Spreadsheet.html#Syncfusion_Windows_Forms_Spreadsheet_Spreadsheet_AllowZooming) property determines whether users are allowed to change the zoom level interactively. +The Spreadsheet allows you to zoom in and zoom out of a worksheet view. The [AllowZooming](https://help.syncfusion.com/cr/windowsforms/Syncfusion.Windows.Forms.Spreadsheet.Spreadsheet.html#Syncfusion_Windows_Forms_Spreadsheet_Spreadsheet_AllowZooming) property determines whether users are allowed to change the zoom level interactively. {% tabs %} {% highlight c# %} diff --git a/Document-Processing/Excel/Spreadsheet/Winforms/ui-builder-skill.md b/Document-Processing/Excel/Spreadsheet/Winforms/ui-builder-skill.md index 66c37ed659..7baa7aab49 100644 --- a/Document-Processing/Excel/Spreadsheet/Winforms/ui-builder-skill.md +++ b/Document-Processing/Excel/Spreadsheet/Winforms/ui-builder-skill.md @@ -146,7 +146,7 @@ To start using the skill: 3. Start prompting the agent with a clear description of your UI requirements. -> For Syncfusion® Code Studio, if the agent isn't listed, configure the agent location as shown in the [Code Studio agent file locations documentation](https://help.syncfusion.com/code-studio/reference/configure-properties/usersettings#agent-file-locations). +> For Syncfusion® Code Studio, if the UI Builder agent is not shown, ensure that the agent location is configured to use it in the chat, and refer to the [documentation](https://help.syncfusion.com/code-studio/reference/configure-properties/usersettings#agent-file-locations) to configure the agent location properly. Example Prompts: @@ -173,7 +173,7 @@ Follow these guidelines to get the most out of UI Builder and ensure high-qualit ## Troubleshooting -- **APM installation failure**: Refer to the [APM installation troubleshooting guide](https://microsoft.github.io/apm/getting-started/installation/#troubleshooting). +- **APM installation failure**: Refer to the [documentation](https://microsoft.github.io/apm/getting-started/installation/#troubleshooting). - **Skills not loading**: Ensure the **.agent/** and **.github/agents/** folders exist in your project and that the skill was installed successfully using APM. Verify that the correct agent is selected from the Agent dropdown in your IDE. From cf702fc6f682d03d0a9468ce54dd0fc87be9d18c Mon Sep 17 00:00:00 2001 From: RajClinton26 Date: Thu, 23 Jul 2026 18:37:12 +0530 Subject: [PATCH 4/4] Updated the UG --- .../Excel/Spreadsheet/Winforms/Editing.md | 12 +++---- .../Winforms/Interactive-Features.md | 36 +++++++++---------- .../Winforms/Working-with-Spreadsheet.md | 2 +- .../Winforms/Worksheet-Management.md | 2 +- 4 files changed, 26 insertions(+), 26 deletions(-) diff --git a/Document-Processing/Excel/Spreadsheet/Winforms/Editing.md b/Document-Processing/Excel/Spreadsheet/Winforms/Editing.md index 64c2644e8f..d4d91b89e2 100644 --- a/Document-Processing/Excel/Spreadsheet/Winforms/Editing.md +++ b/Document-Processing/Excel/Spreadsheet/Winforms/Editing.md @@ -9,7 +9,7 @@ documentation: ug # Editing in Windows Forms Spreadsheet -This section explains the editing behavior, data validation, and hyperlinks in the Spreadsheet. +This section explains the Editing behavior, Data Validation, and Hyperlinks in the Spreadsheet. ## Cell Editing @@ -113,7 +113,7 @@ Occurs after the current cell value is validated. Occurs when the current cell leaves edit mode. -The table below lists the properties associated with editing. +The table below lists the properties associated with Editing. @@ -131,14 +131,14 @@ Gets or sets a value indicating whether the editor selects all the cell text or +Gets or sets the trigger options that cause cells to enter Edit Mode.
{{ '[EditTrigger](https://help.syncfusion.com/cr/windowsforms/Syncfusion.Windows.Forms.CellGrid.SfCellGrid.html#Syncfusion_Windows_Forms_CellGrid_SfCellGrid_EditTrigger)' | markdownify }} -Gets or sets the trigger options that cause cells to enter edit mode.
{{ '[IsEditing](https://help.syncfusion.com/cr/windowsforms/Syncfusion.Windows.Forms.CellGrid.GridCurrentCell.html#Syncfusion_Windows_Forms_CellGrid_GridCurrentCell_isEditing)' | markdownify }} Gets a value indicating whether the current cell is in edit mode.
-The table below lists the methods associated with editing. +The table below lists the methods associated with Editing. @@ -214,11 +214,11 @@ validation.ErrorBoxText = "Sum of the values in A1 and A2 should be greater than For more reference, please go through the [XlsIO](https://help.syncfusion.com/file-formats/xlsio/working-with-data-validation) UG. -T> If you want to display a ComboBox in a cell of the Spreadsheet, you can apply List validation to that cell. +T> If you want to display a ComboBox in a cell of the Spreadsheet, you can apply List Validation to that cell. ## Hyperlinks -A hyperlink is a convenient way to access web pages, files, and other data within a workbook. The Spreadsheet supports adding, editing, and removing hyperlinks in the workbook. +A hyperlink is a convenient way to access web pages, files, and other data within a workbook. The Spreadsheet supports adding, editing, and removing Hyperlinks in the workbook. ### Adding a hyperlink to a cell diff --git a/Document-Processing/Excel/Spreadsheet/Winforms/Interactive-Features.md b/Document-Processing/Excel/Spreadsheet/Winforms/Interactive-Features.md index cd139765d9..b910fe8283 100644 --- a/Document-Processing/Excel/Spreadsheet/Winforms/Interactive-Features.md +++ b/Document-Processing/Excel/Spreadsheet/Winforms/Interactive-Features.md @@ -118,11 +118,11 @@ copyPaste.Paste(range, PasteOptions.Paste); T> Users can also set their default [PasteOptions](https://help.syncfusion.com/cr/windowsforms/Syncfusion.Windows.Forms.Spreadsheet.PasteOptions.html) while pasting in Spreadsheet by using the [DefaultPasteOption](https://help.syncfusion.com/cr/windowsforms/Syncfusion.Windows.Forms.Spreadsheet.SpreadsheetCopyPaste.html#Syncfusion_Windows_Forms_Spreadsheet_SpreadsheetCopyPaste_DefaultPasteOption) property. -## Undo or redo +## Undo or Redo -Spreadsheet provides support for the undo/redo functionality like Microsoft Excel. +Spreadsheet provides support for the Undo/Redo functionality like Microsoft Excel. -The following shortcut keys are used for undo/redo operations: +The following shortcut keys are used for Undo/Redo operations:
@@ -141,7 +141,7 @@ Ctrl + Y Spreadsheet has a [History Manager](https://help.syncfusion.com/cr/windowsforms/Syncfusion.Windows.Forms.Spreadsheet.History.HistoryManager.html) class that supports the implementation of undo/redo operations. -By default, undo/redo operations in Spreadsheet are enabled. To disable the undo/redo operations, set the [Enabled](https://help.syncfusion.com/cr/windowsforms/Syncfusion.Windows.Forms.Spreadsheet.History.HistoryManager.html#Syncfusion_Windows_Forms_Spreadsheet_History_HistoryManager_Enabled) property of the [History Manager](https://help.syncfusion.com/cr/windowsforms/Syncfusion.Windows.Forms.Spreadsheet.History.HistoryManager.html) to false. +By default, Undo/Redo operations in Spreadsheet are enabled. To disable the undo/redo operations, set the [Enabled](https://help.syncfusion.com/cr/windowsforms/Syncfusion.Windows.Forms.Spreadsheet.History.HistoryManager.html#Syncfusion_Windows_Forms_Spreadsheet_History_HistoryManager_Enabled) property of the [History Manager](https://help.syncfusion.com/cr/windowsforms/Syncfusion.Windows.Forms.Spreadsheet.History.HistoryManager.html) to false. {% tabs %} {% highlight c# %} @@ -151,7 +151,7 @@ spreadsheet.HistoryManager.Enabled = false; {% endhighlight %} {% endtabs %} -To programmatically invoke the undo/redo operations: +To programmatically invoke the Undo/Redo operations: {% tabs %} {% highlight c# %} @@ -165,13 +165,13 @@ spreadsheet.HistoryManager.Redo(); ## Context menu -The context menu in Spreadsheet is customizable and can be used for various functionalities. +The Context menu in Spreadsheet is customizable and can be used for various functionalities. -### TabItem context menu +### TabItem Context menu -The TabItem context menu opens when the user right-clicks on the sheet tab and contains menus related to worksheet operations. +The TabItem Context menu opens when the user right-clicks on the sheet tab and contains menus related to worksheet operations. -By default, the TabItem context menu is enabled in Spreadsheet. To disable the TabItem context menu, set the [AllowTabItemContextMenu](https://help.syncfusion.com/cr/windowsforms/Syncfusion.Windows.Forms.Spreadsheet.Spreadsheet.html#Syncfusion_Windows_Forms_Spreadsheet_Spreadsheet_AllowTabItemContextMenu) property to false. +By default, the TabItem context menu is enabled in Spreadsheet. To disable the TabItem Context menu, set the [AllowTabItemContextMenu](https://help.syncfusion.com/cr/windowsforms/Syncfusion.Windows.Forms.Spreadsheet.Spreadsheet.html#Syncfusion_Windows_Forms_Spreadsheet_Spreadsheet_AllowTabItemContextMenu) property to false. {% tabs %} {% highlight c# %} @@ -181,7 +181,7 @@ spreadsheet.AllowTabItemContextMenu = false; {% endhighlight %} {% endtabs %} -The default TabItem context menu has options like Insert, Delete, Hide/Unhide, and Protect sheet. You can also customize the TabItem context menu by setting the [IsCustomTabItemContextMenuEnabled](https://help.syncfusion.com/cr/windowsforms/Syncfusion.Windows.Forms.Spreadsheet.Spreadsheet.html#Syncfusion_Windows_Forms_Spreadsheet_Spreadsheet_IsCustomTabItemContextMenuEnabled) property to true and adding your customized menu items. +The default TabItem context menu has options like Insert, Delete, Hide/Unhide, and Protect sheet. You can also customize the TabItem Context menu by setting the [IsCustomTabItemContextMenuEnabled](https://help.syncfusion.com/cr/windowsforms/Syncfusion.Windows.Forms.Spreadsheet.Spreadsheet.html#Syncfusion_Windows_Forms_Spreadsheet_Spreadsheet_IsCustomTabItemContextMenuEnabled) property to true and adding your customized menu items. {% tabs %} {% highlight c# %} @@ -189,7 +189,7 @@ The default TabItem context menu has options like Insert, Delete, Hide/Unhide, a spreadsheet.IsCustomTabItemContextMenuEnabled = true; spreadsheet.TabItemContextMenu = CustomTabItemContextMenu(); -//Custom TabItem context menus +//Custom TabItem ContextMenu public ContextMenu CustomTabItemContextMenu() { @@ -212,11 +212,11 @@ public ContextMenu CustomTabItemContextMenu() {% endhighlight %} {% endtabs %} -### Cell context menu +### Cell Context menu -The Cell context menu opens when the user right-clicks on a worksheet cell or a selection of cells in Spreadsheet. +The Cell Context menu opens when the user right-clicks on a worksheet cell or a selection of cells in Spreadsheet. -By default, the Cell context menu is enabled in Spreadsheet. To disable the Cell context menu, set the [AllowCellContextMenu](https://help.syncfusion.com/cr/windowsforms/Syncfusion.Windows.Forms.Spreadsheet.Spreadsheet.html#Syncfusion_Windows_Forms_Spreadsheet_Spreadsheet_AllowCellContextMenu) property to false. +By default, the Cell Context menu is enabled in Spreadsheet. To disable the Cell Context menu, set the [AllowCellContextMenu](https://help.syncfusion.com/cr/windowsforms/Syncfusion.Windows.Forms.Spreadsheet.Spreadsheet.html#Syncfusion_Windows_Forms_Spreadsheet_Spreadsheet_AllowCellContextMenu) property to false. {% tabs %} {% highlight c# %} @@ -226,7 +226,7 @@ spreadsheet.AllowCellContextMenu = false; {% endhighlight %} {% endtabs %} -Users can also customize the Cell context menu of Spreadsheet by using the [CellContextMenuOpening](https://help.syncfusion.com/cr/windowsforms/Syncfusion.Windows.Forms.CellGrid.SfCellGrid.html) event of `SpreadsheetGrid`. +Users can also customize the Cell Context menu of Spreadsheet by using the [CellContextMenuOpening](https://help.syncfusion.com/cr/windowsforms/Syncfusion.Windows.Forms.CellGrid.SfCellGrid.html) event of `SpreadsheetGrid`. Adding the customized menu items in the `CellContextMenuOpening` event: @@ -237,7 +237,7 @@ spreadsheet.ActiveGrid.CellContextMenuOpening += ActiveGrid_CellContextMenuOpeni void ActiveGrid_CellContextMenuOpening(object sender, CellContextMenuOpeningEventArgs e) { - //Adding customized menu item + //Adding Customized Menu item var PasteSpecial = new ToolStripMenuItem(){ BackColor = Color.White, Name = "PasteSpecial"}; PasteSpecial.Text = "PasteSpecial"; Image paste = new Image() { Source = new BitmapImage(new Uri(@"..\..\Icon\paste.png", UriKind.Relative)) }; @@ -245,14 +245,14 @@ void ActiveGrid_CellContextMenuOpening(object sender, CellContextMenuOpeningEven PasteSpecial.Click += PasteSpecial_Click; spreadsheet.ActiveGrid.CellContextMenu.Items.Add(PasteSpecial); - //Remove the existing context menu item + //Remove the existing Context Menu item spreadsheet.ActiveGrid.CellContextMenu.Items.RemoveAt(2); } {% endhighlight %} {% endtabs %} -## Cell comments +## Cell Comments Spreadsheet provides support for cell comments, like in Excel, to give the reader additional context for the data it contains. You can set the comment height and color for the particular comments at runtime by invoking the [CellCommentOpening](https://help.syncfusion.com/cr/windowsforms/Syncfusion.Windows.Forms.CellGrid.SfCellGrid.html) event of `SpreadsheetGrid`. diff --git a/Document-Processing/Excel/Spreadsheet/Winforms/Working-with-Spreadsheet.md b/Document-Processing/Excel/Spreadsheet/Winforms/Working-with-Spreadsheet.md index 3b4a45d242..d8109d2e46 100644 --- a/Document-Processing/Excel/Spreadsheet/Winforms/Working-with-Spreadsheet.md +++ b/Document-Processing/Excel/Spreadsheet/Winforms/Working-with-Spreadsheet.md @@ -9,7 +9,7 @@ documentation: ug --- # Working With Spreadsheet in Windows Forms Spreadsheet - This section explains how to access the worksheet, grid, and related events. + This section explains how to access the Worksheet, Grid, and related events. ## Accessing the worksheet diff --git a/Document-Processing/Excel/Spreadsheet/Winforms/Worksheet-Management.md b/Document-Processing/Excel/Spreadsheet/Winforms/Worksheet-Management.md index 9d9d901153..791d6e7237 100644 --- a/Document-Processing/Excel/Spreadsheet/Winforms/Worksheet-Management.md +++ b/Document-Processing/Excel/Spreadsheet/Winforms/Worksheet-Management.md @@ -163,7 +163,7 @@ spreadsheet.SetZoomFactor("Sheet1", 200); {% endhighlight %} {% endtabs %} -The events associated with zooming are: +The Events associated with zooming are: . [ZoomFactorChanged](https://help.syncfusion.com/cr/windowsforms/Syncfusion.Windows.Forms.Spreadsheet.Spreadsheet.html)