WorksheetImpl Class - C# Excel Library API Reference | Syncfusion

      Show / Hide Table of Contents

      WorksheetImpl Class

      Represents a worksheet in a workbook.

      Inheritance
      System.Object
      CommonObject
      WorksheetBaseImpl
      WorksheetImpl
      Implements
      System.IDisposable
      ISerializableNamedObject
      INamedObject
      IParseable
      ICloneParent
      IWorksheet
      ITabSheet
      IParentApplication
      Inherited Members
      CommonObject.AddReference()
      CommonObject.AppImplementation
      CommonObject.Application
      CommonObject.CheckDisposed()
      CommonObject.Finalize()
      CommonObject.FindParent(Object, Type)
      CommonObject.FindParent(Object, Type, Boolean)
      CommonObject.FindParent(Type)
      CommonObject.FindParent(Type, Boolean)
      CommonObject.FindParent(Type[])
      CommonObject.FindParents(Type[])
      CommonObject.m_bIsDisposed
      CommonObject.Parent
      CommonObject.ReferenceCount
      CommonObject.ReleaseReference()
      CommonObject.SetParent(Object)
      WorksheetBaseImpl.Activate()
      WorksheetBaseImpl.add_NameChanged(ValueChangedEventHandler)
      WorksheetBaseImpl.AlgorithmName
      WorksheetBaseImpl.Charts
      WorksheetBaseImpl.CheckBoxes
      WorksheetBaseImpl.Clone(Object)
      WorksheetBaseImpl.CloneShapes(WorksheetBaseImpl)
      WorksheetBaseImpl.CodeName
      WorksheetBaseImpl.CombineArrays(Int32, List<Byte[]>)
      WorksheetBaseImpl.ComboBoxes
      WorksheetBaseImpl.Comments
      WorksheetBaseImpl.CopyFrom(WorksheetBaseImpl, Dictionary<String, String>, Dictionary<String, String>, Dictionary<Int32, Int32>, ExcelWorksheetCopyFlags, Dictionary<Int32, Int32>)
      WorksheetBaseImpl.CopyHeaderFooterImages(WorksheetBaseImpl, Dictionary<String, String>, IDictionary)
      WorksheetBaseImpl.CopyShapes(WorksheetBaseImpl, Dictionary<String, String>, Dictionary<Int32, Int32>)
      WorksheetBaseImpl.CreateSalt(Int32)
      WorksheetBaseImpl.DEF_DEFAULT_TAB_COLOR
      WorksheetBaseImpl.DEF_MAX_COLUMN_ONE_INDEX
      WorksheetBaseImpl.DEF_MAX_PASSWORDLEN
      WorksheetBaseImpl.DEF_MAX_ROW_ONE_INDEX
      WorksheetBaseImpl.DEF_MIN_COLUMN_INDEX
      WorksheetBaseImpl.DEF_MIN_ROW_INDEX
      WorksheetBaseImpl.DefaultGridlineColor
      WorksheetBaseImpl.Dispose()
      WorksheetBaseImpl.ExtractMSODrawing(Int32, ExcelParseOptions)
      WorksheetBaseImpl.FindParents()
      WorksheetBaseImpl.FirstColumn
      WorksheetBaseImpl.FirstRow
      WorksheetBaseImpl.GetPasswordHash(String)
      WorksheetBaseImpl.GridLineColor
      WorksheetBaseImpl.HasCharts
      WorksheetBaseImpl.HashValue
      WorksheetBaseImpl.HasPictures
      WorksheetBaseImpl.HasVmlShapes
      WorksheetBaseImpl.HeaderFooterShapes
      WorksheetBaseImpl.Index
      WorksheetBaseImpl.InnerCharts
      WorksheetBaseImpl.InnerCheckBoxes
      WorksheetBaseImpl.InnerComments
      WorksheetBaseImpl.InnerHeaderFooterShapes
      WorksheetBaseImpl.InnerPictures
      WorksheetBaseImpl.InnerProtection
      WorksheetBaseImpl.InnerShapes
      WorksheetBaseImpl.InnerShapesBase
      WorksheetBaseImpl.IsParsed
      WorksheetBaseImpl.IsParsing
      WorksheetBaseImpl.IsPasswordProtected
      WorksheetBaseImpl.IsRightToLeft
      WorksheetBaseImpl.IsSaved
      WorksheetBaseImpl.IsSelected
      WorksheetBaseImpl.IsSkipParsing
      WorksheetBaseImpl.IsSupported
      WorksheetBaseImpl.IsTransitionEvaluation
      WorksheetBaseImpl.ITabSheet.TabIndex
      WorksheetBaseImpl.KeepRecord
      WorksheetBaseImpl.LastColumn
      WorksheetBaseImpl.LastRow
      WorksheetBaseImpl.LeftVisibleColumn
      WorksheetBaseImpl.m_arrRecords
      WorksheetBaseImpl.m_book
      WorksheetBaseImpl.m_dataHolder
      WorksheetBaseImpl.m_errorIndicators
      WorksheetBaseImpl.m_iFirstColumn
      WorksheetBaseImpl.m_iFirstRow
      WorksheetBaseImpl.m_iLastColumn
      WorksheetBaseImpl.m_iLastRow
      WorksheetBaseImpl.m_iMsoStartIndex
      WorksheetBaseImpl.m_isCustomHeight
      WorksheetBaseImpl.m_parseOptions
      WorksheetBaseImpl.m_rangeProtectionRecord
      WorksheetBaseImpl.m_strCodeName
      WorksheetBaseImpl.Name
      WorksheetBaseImpl.NameChanged
      WorksheetBaseImpl.OnNameChanged(ValueChangedEventArgs)
      WorksheetBaseImpl.OptionButtons
      WorksheetBaseImpl.ParentWorkbook
      WorksheetBaseImpl.Parse()
      WorksheetBaseImpl.ParseData()
      WorksheetBaseImpl.ParseOnDemand
      WorksheetBaseImpl.Pictures
      WorksheetBaseImpl.PrepareProtection()
      WorksheetBaseImpl.Protect(String)
      WorksheetBaseImpl.Protect(String, ExcelSheetProtection)
      WorksheetBaseImpl.ProtectDrawingObjects
      WorksheetBaseImpl.Protection
      WorksheetBaseImpl.ProtectScenarios
      WorksheetBaseImpl.RaiseNameChangedEvent(ValueChangedEventArgs)
      WorksheetBaseImpl.RealIndex
      WorksheetBaseImpl.remove_NameChanged(ValueChangedEventHandler)
      WorksheetBaseImpl.Round(Int32, Int32)
      WorksheetBaseImpl.SaltValue
      WorksheetBaseImpl.Select()
      WorksheetBaseImpl.SelectTab()
      WorksheetBaseImpl.SetChanged()
      WorksheetBaseImpl.Shapes
      WorksheetBaseImpl.SheetProtection
      WorksheetBaseImpl.SpinCount
      WorksheetBaseImpl.TabColor
      WorksheetBaseImpl.TabColorObject
      WorksheetBaseImpl.TabColorRGB
      WorksheetBaseImpl.TextBoxes
      WorksheetBaseImpl.TopVisibleRow
      WorksheetBaseImpl.TypedCheckBoxes
      WorksheetBaseImpl.TypedComboBoxes
      WorksheetBaseImpl.TypedOptionButtons
      WorksheetBaseImpl.TypedTextBoxes
      WorksheetBaseImpl.UnknownVmlShapes
      WorksheetBaseImpl.Unprotect()
      WorksheetBaseImpl.Unprotect(String)
      WorksheetBaseImpl.Unselect()
      WorksheetBaseImpl.Unselect(Boolean)
      WorksheetBaseImpl.Visibility
      WorksheetBaseImpl.VmlShapesCount
      WorksheetBaseImpl.WindowTwo
      WorksheetBaseImpl.Workbook
      WorksheetBaseImpl.Zoom
      Namespace: Syncfusion.XlsIO.Implementation
      Assembly: Syncfusion.XlsIO.Base.dll
      Syntax
      public class WorksheetImpl : WorksheetBaseImpl, IDisposable, ISerializableNamedObject, INamedObject, IParseable, ICloneParent, IInternalWorksheet, IWorksheet, ITabSheet, IParentApplication, ISheetData, ICalcData

      Constructors

      WorksheetImpl(IApplication, Object)

      Initializes a new instance of the Worksheet class with specified application and parent properties.

      Declaration
      public WorksheetImpl(IApplication application, object parent)
      Parameters
      TypeNameDescription
      IApplicationapplication

      Application object for the worksheet.

      System.Objectparent

      Parent object for the worksheet.

      Properties

      ActivePane

      Gets or sets index of the active pane.

      Declaration
      public int ActivePane { get; set; }
      Property Value
      Type
      System.Int32

      AutoFilters

      Gets the auto filters collection in the worksheet. Read-only.

      Declaration
      public IAutoFilters AutoFilters { get; }
      Property Value
      Type
      IAutoFilters

      CalcEngine

      Gets or sets the a CalcEngine object associated with Syncfusion.Calculate.ICalcData implementation.

      Declaration
      public CalcEngine CalcEngine { get; set; }
      Property Value
      Type
      Syncfusion.Calculate.CalcEngine

      CellRecords

      Returns collection of cell records. Read-only.

      Declaration
      public CellRecordCollection CellRecords { get; }
      Property Value
      Type
      Syncfusion.XlsIO.Implementation.Collections.CellRecordCollection

      Cells

      Gets the used cells in the worksheet. Read-only.

      Declaration
      public IRange[] Cells { get; }
      Property Value
      Type
      IRange[]

      ColumnInformation

      Read-only. Access to column info records.

      Declaration
      public ColumnInfoRecord[] ColumnInformation { get; }
      Property Value
      Type
      Syncfusion.XlsIO.Parser.Biff_Records.ColumnInfoRecord[]

      Columns

      Gets a Range object that represents all the columns in the specified worksheet. Read-only.

      Declaration
      public IRange[] Columns { get; }
      Property Value
      Type
      IRange[]

      ColumnsOutlineLevel

      Returns the columns outline level count

      Declaration
      public int ColumnsOutlineLevel { get; }
      Property Value
      Type
      System.Int32

      ConditionalFormats

      Returns collection with all conditional formats in the worksheet. Read-only.

      Declaration
      public WorksheetConditionalFormats ConditionalFormats { get; }
      Property Value
      Type
      Syncfusion.XlsIO.Implementation.Collections.WorksheetConditionalFormats

      ContainsProtection

      Returns if contains protection

      Declaration
      protected override bool ContainsProtection { get; }
      Property Value
      Type
      System.Boolean
      Overrides
      WorksheetBaseImpl.ContainsProtection

      CustomProperties

      Gets a collection of custom properties of the worksheet. Read-only.

      Declaration
      public IWorksheetCustomProperties CustomProperties { get; }
      Property Value
      Type
      IWorksheetCustomProperties

      DataSorter

      Gets the DataSorter.

      Declaration
      public IDataSort DataSorter { get; }
      Property Value
      TypeDescription
      IDataSort

      The DataSorter.

      Examples

      The following code illustrates how to get the DataSorter from the sheet.

      ExcelEngine excelEngine = new ExcelEngine();
      IApplication application = excelEngine.Excel;
      application.DefaultVersion = ExcelVersion.Excel2013;
      IWorkbook workbook = application.Workbooks.Open("Sorting.xlsx");
      
      //Create DataSorter for worksheet.
      IDataSort sheetSort = workbook.Worksheets[0].DataSorter;
      
      //Adding Sort range for worksheet
      sheetSort.SortRange = workbook.Worksheets[0].UsedRange;
      
      //Adding Sorting fields for DataSorter.
      sheetSort.SortFields.Add(1, SortOn.Values, OrderBy.Ascending);
      
      //Perform Sorting for worksheet range.
      sheetSort.Sort();
      
      workbook.SaveAs("SortedExcel.xlsx");
      workbook.Close();
      excelEngine.Dispose(); 

      DefaultProtectionOptions

      Gets default protection options for the worksheet.

      Declaration
      protected override ExcelSheetProtection DefaultProtectionOptions { get; }
      Property Value
      Type
      ExcelSheetProtection
      Overrides
      WorksheetBaseImpl.DefaultProtectionOptions

      DefaultRowHeight

      Return default row height in pixel.

      Declaration
      public int DefaultRowHeight { get; set; }
      Property Value
      Type
      System.Int32

      DisplayPageBreaks

      Gets or sets a value that indicates whether page breaks (both automatic and manual) on the worksheet are displayed.

      Declaration
      public bool DisplayPageBreaks { get; set; }
      Property Value
      Type
      System.Boolean

      DVTable

      Gets data validation collection.

      Declaration
      public DataValidationTable DVTable { get; }
      Property Value
      Type
      Syncfusion.XlsIO.Implementation.Collections.DataValidationTable

      ErrorIndicators

      Represents error indicators.

      Declaration
      public ErrorIndicatorsCollection ErrorIndicators { get; }
      Property Value
      Type
      Syncfusion.XlsIO.Implementation.Collections.ErrorIndicatorsCollection

      FirstVisibleColumn

      Gets or sets the first visible column index.

      Declaration
      public int FirstVisibleColumn { get; set; }
      Property Value
      Type
      System.Int32

      FirstVisibleRow

      Gets or sets the first visible row index.

      Declaration
      public int FirstVisibleRow { get; set; }
      Property Value
      Type
      System.Int32

      HasMergedCells

      Indicates whether worksheet has merged cells. Read-only.

      Declaration
      public bool HasMergedCells { get; }
      Property Value
      Type
      System.Boolean

      HasOleObject

      Gets whether the OLE object is present in the worksheet. Read-only.

      Declaration
      public bool HasOleObject { get; }
      Property Value
      TypeDescription
      System.Boolean

      True if this instance is OLE object; otherwise, False.

      Remarks

      This property is supported on Windows Forms, WPF, ASP.NET and ASP.NET MVC platforms only.

      HorizontalSplit

      Gets or sets the position of horizontal split in the worksheet.

      Declaration
      public int HorizontalSplit { get; set; }
      Property Value
      Type
      System.Int32
      Remarks

      Position of the horizontal split (by, 0 = No horizontal split): Unfrozen pane: Height of the top pane(s) (in twips = 1/20 of a point) Frozen pane: Number of visible rows in top pane(s)

      HPageBreaks

      Gets a Syncfusion.XlsIO.Implementation.Collections.HPageBreaksCollection that represents the horizontal page breaks in the worksheet. Read-only.

      Declaration
      public IHPageBreaks HPageBreaks { get; }
      Property Value
      Type
      IHPageBreaks

      HyperLinks

      Gets a hyperlink collections in the worksheet. Read-only.

      Declaration
      public IHyperLinks HyperLinks { get; }
      Property Value
      Type
      IHyperLinks

      InnerCustomProperties

      Returns collection of the custom properties. Read-only.

      Declaration
      public WorksheetCustomProperties InnerCustomProperties { get; }
      Property Value
      Type
      Syncfusion.XlsIO.Implementation.Collections.WorksheetCustomProperties

      InnerDVTable

      Returns inner data validation table. Read-only.

      Declaration
      public DataValidationTable InnerDVTable { get; }
      Property Value
      Type
      Syncfusion.XlsIO.Implementation.Collections.DataValidationTable

      InnerHyperLinks

      Collection of all hyperlinks in the current worksheet.

      Declaration
      public HyperLinksCollection InnerHyperLinks { get; }
      Property Value
      Type
      Syncfusion.XlsIO.Implementation.Collections.HyperLinksCollection

      InnerHyperLinksOrNull

      Collection of all hyperlinks in the current worksheet.

      Declaration
      public HyperLinksCollection InnerHyperLinksOrNull { get; }
      Property Value
      Type
      Syncfusion.XlsIO.Implementation.Collections.HyperLinksCollection

      InnerListObjects

      Gets collection of all list objects in the worksheet.

      Declaration
      public ListObjectCollection InnerListObjects { get; }
      Property Value
      Type
      ListObjectCollection

      InnerNames

      Returns inner names collection. Read-only.

      Declaration
      public WorksheetNamesCollection InnerNames { get; }
      Property Value
      Type
      Syncfusion.XlsIO.Implementation.Collections.WorksheetNamesCollection

      InnerPivotTables

      Retruns internal pivot table collection. Read-only.

      Declaration
      public PivotTableCollection InnerPivotTables { get; }
      Property Value
      Type
      PivotTableCollection

      IsDisplayZeros

      True if zero values to be displayed. otherwise, False.

      Declaration
      public bool IsDisplayZeros { get; set; }
      Property Value
      Type
      System.Boolean

      IsEmpty

      Indicates whether worksheet is empty. Read-only.

      Declaration
      public bool IsEmpty { get; }
      Property Value
      Type
      System.Boolean

      IsFreezePanes

      Defines whether freezed panes are applied.

      Declaration
      public bool IsFreezePanes { get; }
      Property Value
      Type
      System.Boolean

      IsGridLinesVisible

      True if grid lines are visible. otherwise, False.

      Declaration
      public bool IsGridLinesVisible { get; set; }
      Property Value
      Type
      System.Boolean

      IsRowColumnHeadersVisible

      True if row and column headers are visible. otherwise, False.

      Declaration
      public bool IsRowColumnHeadersVisible { get; set; }
      Property Value
      Type
      System.Boolean

      IsStringsPreserved

      True if all values in the worksheet are preserved as strings. otherwise, False.

      Declaration
      public bool IsStringsPreserved { get; set; }
      Property Value
      Type
      System.Boolean

      Item[Int32, Int32]

      Gets or sets cell range by row and column index. Row and column indexes are one-based.

      Declaration
      public IRange this[int row, int column] { get; }
      Parameters
      TypeNameDescription
      System.Int32row

      One-based row index.

      System.Int32column

      One-based column index.

      Property Value
      Type
      IRange

      Item[Int32, Int32, Int32, Int32]

      Get cell Range. Row and column indexes are one-based. Read-only.

      Declaration
      public IRange this[int row, int column, int lastRow, int lastColumn] { get; }
      Parameters
      TypeNameDescription
      System.Int32row

      First row index. One-based.

      System.Int32column

      First column index. One-based.

      System.Int32lastRow

      Last row index. One-based.

      System.Int32lastColumn

      Last column index. One-based.

      Property Value
      Type
      IRange

      Item[String]

      Gets cell Range. Read-only.

      Declaration
      public IRange this[string name] { get; }
      Parameters
      TypeNameDescription
      System.Stringname
      Property Value
      Type
      IRange

      Item[String, Boolean]

      Gets cell Range with R1C1Notation flag. Read-only.

      Declaration
      public IRange this[string name, bool IsR1C1Notation] { get; }
      Parameters
      TypeNameDescription
      System.Stringname
      System.BooleanIsR1C1Notation
      Property Value
      Type
      IRange

      ListObjects

      Gets a collection of list objects in the worksheet. Read-only.

      Declaration
      public IListObjects ListObjects { get; }
      Property Value
      Type
      IListObjects

      MergeCells

      Read-only. Access to merged cells.

      Declaration
      public MergeCellsImpl MergeCells { get; }
      Property Value
      Type
      MergeCellsImpl

      MergedCells

      Gets all the merged ranges in the worksheet. Read-only.

      Declaration
      public IRange[] MergedCells { get; }
      Property Value
      Type
      IRange[]

      MigrantRange

      Gets instance of migrant range. Read-only.

      Declaration
      public IMigrantRange MigrantRange { get; }
      Property Value
      Type
      IMigrantRange
      Remarks

      The IMigrantRange interface can also be used to access a single cell or group of cells and manipulate it. You can prefer IMigrantRange instead of IRange while writing large amount of data which is an optimal way. Row and Column index can be changed by using ResetRowColumn(Int32, Int32) method.

      Names

      Gets a Names collection that represents the worksheet-specific names (names defined with the "WorksheetName!" prefix) in the worksheet. Read-only.

      Declaration
      public INames Names { get; }
      Property Value
      Type
      INames

      OleObjects

      Gets a collection of OleObjects in the worksheet.

      Declaration
      public IOleObjects OleObjects { get; }
      Property Value
      TypeDescription
      IOleObjects

      The OLE objects.

      Remarks

      This property is supported on Windows Forms, WPF, ASP.NET and ASP.NET MVC platforms only.

      OutlineWrappers

      Returns or sets the list of outline wrapper collection

      Declaration
      public List<IOutlineWrapper> OutlineWrappers { get; set; }
      Property Value
      Type
      System.Collections.Generic.List<Syncfusion.XlsIO.Parser.Biff_Records.IOutlineWrapper>

      PageSetup

      Gets a PageSetup object that contains all the page setup settings for the specified object. Read-only.

      Declaration
      public IPageSetup PageSetup { get; }
      Property Value
      Type
      IPageSetup

      PageSetupBase

      Returns a PageSetup object that contains all the page setup settings for the specified object. Read-only.

      Declaration
      public override PageSetupBaseImpl PageSetupBase { get; }
      Property Value
      Type
      PageSetupBaseImpl
      Overrides
      WorksheetBaseImpl.PageSetupBase

      Pane

      Gets pain record or null. Read-only.

      Declaration
      public PaneRecord Pane { get; }
      Property Value
      Type
      Syncfusion.XlsIO.Parser.Biff_Records.PaneRecord

      PaneFirstVisible

      Gets or sets range indicating first visible row and column.

      Declaration
      public IRange PaneFirstVisible { get; set; }
      Property Value
      Type
      IRange

      PivotTables

      Gets a collection of pivot tables in the worksheet. Read-only.

      Declaration
      public IPivotTables PivotTables { get; }
      Property Value
      Type
      IPivotTables

      PrintArea

      Worksheet's print area.

      Declaration
      public IRange PrintArea { get; }
      Property Value
      Type
      IRange

      ProtectContents

      Indicates is current sheet is protected.

      Declaration
      public override bool ProtectContents { get; }
      Property Value
      Type
      System.Boolean
      Overrides
      WorksheetBaseImpl.ProtectContents

      QuotedName

      Returns quoted name of the worksheet.

      Declaration
      public string QuotedName { get; }
      Property Value
      Type
      System.String

      Range

      Gets a Range object that represents a cell or a range of cells in the worksheet.

      Declaration
      public IRange Range { get; }
      Property Value
      Type
      IRange

      RecordExtractor

      Returns object used for records creation/extraction from data provider. Read-only.

      Declaration
      public RecordExtractor RecordExtractor { get; }
      Property Value
      Type
      RecordExtractor

      Rows

      Gets a Range object that represents the rows in the specified worksheet. Read-only.

      Declaration
      public IRange[] Rows { get; }
      Property Value
      Type
      IRange[]

      RowsOutlineLevel

      Returns the rows outline level count

      Declaration
      public int RowsOutlineLevel { get; }
      Property Value
      Type
      System.Int32

      Scenarios

      Get the scenarios collection for the current worksheet.

      Declaration
      public IScenarios Scenarios { get; }
      Property Value
      Type
      IScenarios

      SelectionCount

      Gets a value indicating selection count of pane.

      Declaration
      public int SelectionCount { get; }
      Property Value
      Type
      System.Int32

      Selections

      Gets array with selection records or null. Read-only.

      Declaration
      public List<SelectionRecord> Selections { get; }
      Property Value
      Type
      System.Collections.Generic.List<Syncfusion.XlsIO.Parser.Biff_Records.SelectionRecord>

      Slicers

      Gets the Slicers.

      Declaration
      public ISlicers Slicers { get; }
      Property Value
      Type
      ISlicers

      SparklineGroups

      Gets the sparkline groups.

      Declaration
      public ISparklineGroups SparklineGroups { get; }
      Property Value
      TypeDescription
      ISparklineGroups

      The sparkline groups.

      SplitCell

      Gets split cell range.

      Declaration
      public IRange SplitCell { get; set; }
      Property Value
      Type
      IRange

      StandardHeight

      Gets or sets the standard (default) height of all the rows in the worksheet, in points.Standard Height sets the height for each row if the row contains data. So To improve performance, set standard height of the worksheet before set value in cells.

      Declaration
      public double StandardHeight { get; set; }
      Property Value
      Type
      System.Double

      StandardHeightFlag

      Gets or sets the standard (default) height option flag.

      Declaration
      public bool StandardHeightFlag { get; set; }
      Property Value
      Type
      System.Boolean
      Remarks

      Which defines that standard (default) row height and book default font height do not match.

      StandardWidth

      Gets or sets the standard (default) width of all the columns in the worksheet.

      Declaration
      public double StandardWidth { get; set; }
      Property Value
      Type
      System.Double

      ThreadedComments

      Gets the threaded comments collection for a current worksheet.

      Declaration
      public IThreadedComments ThreadedComments { get; }
      Property Value
      TypeDescription
      IThreadedComments

      The IThreadedComments collection.

      TopLeftCell

      Gets top left cell of the worksheet.

      Declaration
      public IRange TopLeftCell { get; set; }
      Property Value
      Type
      IRange

      Type

      Gets the worksheet type. Read-only ExcelSheetType.

      Declaration
      public ExcelSheetType Type { get; set; }
      Property Value
      Type
      ExcelSheetType

      UnprotectedOptions

      Returns un protected options

      Declaration
      protected override ExcelSheetProtection UnprotectedOptions { get; }
      Property Value
      Type
      ExcelSheetProtection
      Overrides
      WorksheetBaseImpl.UnprotectedOptions

      UsedCells

      Gets all not empty or accessed cells. Read-only.

      Declaration
      public IRange[] UsedCells { get; }
      Property Value
      Type
      IRange[]
      Remarks

      WARNING: This property creates Range object for each cell in the worksheet and creates new array each time user calls to it. It can cause huge memory usage especially if called frequently.

      UsedRange

      Gets a Range object that represents the used range on the specified worksheet. Read-only.

      Declaration
      public IRange UsedRange { get; }
      Property Value
      Type
      IRange

      UsedRangeIncludesFormatting

      Gets or sets whether used range should include cells with formatting.

      Declaration
      public bool UsedRangeIncludesFormatting { get; set; }
      Property Value
      Type
      System.Boolean
      Remarks

      There are two different algorithms to create UsedRange object:

      1. Default. This property = true. The cell is included into UsedRange, even data is empty (maybe some formatting changed, maynot be - cell was accessed and record was created).
      2. This property = false. In this case XlsIO tries to remove empty rows and columns from all sides to make UsedRange smaller.

      UseRangesCache

      Indicates whether all created range objects should be cached or not.

      Declaration
      public bool UseRangesCache { get; set; }
      Property Value
      Type
      System.Boolean

      Version

      Gets or sets excel version.

      Declaration
      public ExcelVersion Version { get; set; }
      Property Value
      Type
      ExcelVersion

      VerticalSplit

      Gets or sets the position of vertical split in the worksheet.

      Declaration
      public int VerticalSplit { get; set; }
      Property Value
      Type
      System.Int32
      Remarks

      Position of the vertical split (px, 0 = No vertical split): Unfrozen pane: Width of the left pane(s) (in twips = 1/20 of a point) Frozen pane: Number of visible columns in left pane(s)

      View

      Gets or sets the view setting of the worksheet.

      Declaration
      public SheetView View { get; set; }
      Property Value
      Type
      SheetView

      VPageBreaks

      Gets a Syncfusion.XlsIO.Implementation.Collections.VPageBreaksCollection that represents the vertical page breaks on the sheet. Read-only.

      Declaration
      public IVPageBreaks VPageBreaks { get; }
      Property Value
      Type
      IVPageBreaks

      Methods

      add_CellValueChanged(RangeImpl.CellValueChangedEventHandler)

      Declaration
      public void add_CellValueChanged(RangeImpl.CellValueChangedEventHandler value)
      Parameters
      TypeNameDescription
      RangeImpl.CellValueChangedEventHandlervalue

      add_ColumnWidthChanged(ValueChangedEventHandler)

      Declaration
      public void add_ColumnWidthChanged(ValueChangedEventHandler value)
      Parameters
      TypeNameDescription
      Syncfusion.XlsIO.Implementation.ValueChangedEventHandlervalue

      add_ExportDataTableEvent(WorksheetImpl.ExportDataTableEventHandler)

      Declaration
      public void add_ExportDataTableEvent(WorksheetImpl.ExportDataTableEventHandler value)
      Parameters
      TypeNameDescription
      WorksheetImpl.ExportDataTableEventHandlervalue

      add_MissingFunction(MissingFunctionEventHandler)

      Declaration
      public void add_MissingFunction(MissingFunctionEventHandler value)
      Parameters
      TypeNameDescription
      MissingFunctionEventHandlervalue

      add_RowHeightChanged(ValueChangedEventHandler)

      Declaration
      public void add_RowHeightChanged(ValueChangedEventHandler value)
      Parameters
      TypeNameDescription
      Syncfusion.XlsIO.Implementation.ValueChangedEventHandlervalue

      AdvancedFilter(ExcelFilterAction, IRange, IRange, IRange, Boolean)

      Filters or copies data from a list based on a criteria range..

      Declaration
      public void AdvancedFilter(ExcelFilterAction action, IRange filterRange, IRange criteriaRange, IRange copyToRange, bool isUnique)
      Parameters
      TypeNameDescription
      ExcelFilterActionaction

      Whether filter in the place or copy to another place.

      IRangefilterRange

      The filter range.

      IRangecriteriaRange

      The criteria range.

      IRangecopyToRange

      The destination range for the copied rows if ExcelFilterAction is FilterCopy. Otherwise, this argument is ignored.

      System.BooleanisUnique

      True to filter unique records; Otherwise filters all the records that meet the criteria. The default value is False.

      AttachEvents()

      Binds the specified function to an event, so that the function gets called whenever the event fires on the object.

      Declaration
      protected void AttachEvents()

      AutofitColumn(Int32)

      Changes the width of the specified column to achieve the best fit.

      Declaration
      public void AutofitColumn(int colIndex)
      Parameters
      TypeNameDescription
      System.Int32colIndex

      Column index.

      Remarks

      This method is supported on Windows Forms, WPF, ASP.NET, ASP.NET MVC, WinRT, Windows Phone, Universal, UWP, Xamarin and NetStandard platforms only.

      AutofitColumn(Int32, Int32, Int32)

      Autofits column by checking only the cells in the column that are specified by row range

      Declaration
      public void AutofitColumn(int colIndex, int firstRow, int lastRow)
      Parameters
      TypeNameDescription
      System.Int32colIndex

      Column index.

      System.Int32firstRow

      One-based index of the first row to be used for autofit operation.

      System.Int32lastRow

      One-based index of the last row to be used for autofit operation.

      Remarks

      This method is supported on Windows Forms, WPF, ASP.NET, ASP.NET MVC, WinRT, Windows Phone, Universal, UWP, Xamarin and NetStandard platforms only.

      AutofitRow(Int32)

      Changes the height of the specified row to achieve the best fit.

      Declaration
      public void AutofitRow(int rowIndex)
      Parameters
      TypeNameDescription
      System.Int32rowIndex

      Row Index

      Remarks

      This method is supported on Windows Forms, WPF, ASP.NET, ASP.NET MVC, WinRT, Windows Phone, Universal, UWP, Xamarin and NetStandard platforms only.

      AutofitRow(Int32, Int32, Int32, Boolean)

      Autofits row by checking only the cells in the row that are specified by column range

      Declaration
      public void AutofitRow(int rowIndex, int firstColumn, int lastColumn, bool bRaiseEvents)
      Parameters
      TypeNameDescription
      System.Int32rowIndex

      Row index.

      System.Int32firstColumn

      One-based index of the first column to be used for autofit operation.

      System.Int32lastColumn

      One-based index of the last column to be used for autofit operation.

      System.BooleanbRaiseEvents

      If true then raise events.

      Remarks

      This method is supported on Windows Forms, WPF, ASP.NET, ASP.NET MVC, WinRT, Windows Phone, Universal, UWP, Xamarin and NetStandard platforms only.

      Calculate()

      Calculate all the formulas in worksheet.

      Declaration
      public void Calculate()
      Examples

      The following code illustrates how to calculate all the formulas in the worksheet.

      ExcelEngine excelEngine = new ExcelEngine();
      IApplication application = excelEngine.Excel;
      application.DefaultVersion = ExcelVersion.Excel2013;
      IWorkbook workbook = application.Workbooks.Open("Formulas.xlsx");
      IWorksheet worksheet = workbook.Worksheets[0];
      
      // Calculate all the formulas in the worksheet.
      worksheet.Calculate();
      
      workbook.SaveAs("Calculation.xlsx");
      workbook.Close();
      excelEngine.Dispose();

      CanInsertColumn(Int32, Int32, ExcelInsertOptions)

      Checks whether it is possible to insert column into iRowIndex.

      Declaration
      public bool CanInsertColumn(int iColumnIndex, int iColumnCount, ExcelInsertOptions options)
      Parameters
      TypeNameDescription
      System.Int32iColumnIndex

      Index of column to insert.

      System.Int32iColumnCount

      Number of columns to insert.

      ExcelInsertOptionsoptions

      Insert options.

      Returns
      TypeDescription
      System.Boolean

      True if it is possible to insert column.

      CanInsertRow(Int32, Int32, ExcelInsertOptions)

      Checks whether it is possible insert row into iRowIndex.

      Declaration
      public bool CanInsertRow(int iRowIndex, int iRowCount, ExcelInsertOptions options)
      Parameters
      TypeNameDescription
      System.Int32iRowIndex

      Index of row to insert.

      System.Int32iRowCount

      Number of rows to insert.

      ExcelInsertOptionsoptions

      Insert options.

      Returns
      TypeDescription
      System.Boolean

      True if it is possible to insert row.

      CanMove(ref IRange, IRange)

      Indicates whether source range can be moved into new location.

      Declaration
      public bool CanMove(ref IRange destination, IRange source)
      Parameters
      TypeNameDescription
      IRangedestination

      Destination range.

      IRangesource

      Source range.

      Returns
      TypeDescription
      System.Boolean

      True if source range can be moved.

      CheckRangesSizes(IRange, IRange)

      Checks the source snd destination ranges

      Declaration
      protected void CheckRangesSizes(IRange destination, IRange source)
      Parameters
      TypeNameDescription
      IRangedestination

      Destination range.

      IRangesource

      Source Range.

      Clear()

      Clears the worksheet data, formats and merged cells.

      Declaration
      public void Clear()

      ClearAll()

      Clear all internal collections.

      Declaration
      protected void ClearAll()

      ClearAll(ExcelWorksheetCopyFlags)

      Clear all internal collections but excluding mentioned flags.

      Declaration
      protected override void ClearAll(ExcelWorksheetCopyFlags flags)
      Parameters
      TypeNameDescription
      ExcelWorksheetCopyFlagsflags

      Allows to avoid clearing of some properties.

      Overrides
      WorksheetBaseImpl.ClearAll(ExcelWorksheetCopyFlags)

      ClearData()

      Clears the worksheet data.

      Declaration
      public void ClearData()

      Clone(Object, Boolean)

      Creates copy of the current object and indicates whether we should copy the shapes or not.

      Declaration
      public override object Clone(object parent, bool cloneShapes)
      Parameters
      TypeNameDescription
      System.Objectparent

      Parent object for the new object.

      System.BooleancloneShapes

      Indicates whether we should clone shapes or not.

      Returns
      TypeDescription
      System.Object

      Copy of the current object.

      Overrides
      WorksheetBaseImpl.Clone(Object, Boolean)

      ColumnWidthToPixels(Double)

      Converts the specified column width from points to pixels.

      Declaration
      public int ColumnWidthToPixels(double widthInChars)
      Parameters
      TypeNameDescription
      System.DoublewidthInChars

      Width in points.

      Returns
      TypeDescription
      System.Int32

      Column width in pixels.

      Contains(Int32, Int32)

      Checks whether the specified cell is initialized or accessed.

      Declaration
      public bool Contains(int iRow, int iColumn)
      Parameters
      TypeNameDescription
      System.Int32iRow

      One-based row index of the cell.

      System.Int32iColumn

      One-based column index of the cell.

      Returns
      TypeDescription
      System.Boolean

      True if the cell was initialized or accessed by the user; otherwise False.

      ConvertToImage(Int32, Int32, Int32, Int32)

      Converts the specified range into image. Default image type is Bitmap.

      Declaration
      public Image ConvertToImage(int firstRow, int firstColumn, int lastRow, int lastColumn)
      Parameters
      TypeNameDescription
      System.Int32firstRow

      One-based index of the first row to convert.

      System.Int32firstColumn

      One-based index of the first column to convert.

      System.Int32lastRow

      One-based index of the last row to convert.

      System.Int32lastColumn

      One-based index of the last column to convert.

      Returns
      TypeDescription
      System.Drawing.Image

      Converted Image for the specified range.

      Remarks

      Subscript/Superscript,RTF,Shrink to fit,Shapes (except TextBox shape and Image),Charts and Chart Worksheet and Complex conditional formatting features are not supported in Worksheet to image conversion. Gradient fill is partially supported. This method is supported on Windows Forms, WPF, ASP.NET and ASP.NET MVC platforms only.

      ConvertToImage(Int32, Int32, Int32, Int32, ImageType, Stream)

      Converts the specified range into image with the specified type.

      Declaration
      public Image ConvertToImage(int firstRow, int firstColumn, int lastRow, int lastColumn, ImageType imageType, Stream outputStream)
      Parameters
      TypeNameDescription
      System.Int32firstRow

      One-based index of the first row to convert.

      System.Int32firstColumn

      One-based index of the first column to convert.

      System.Int32lastRow

      One-based index of the last row to convert.

      System.Int32lastColumn

      One-based index of the last column to convert.

      ImageTypeimageType

      Type of the image to create.

      System.IO.StreamoutputStream

      Stream to be converted to an image. It is ignored if null.

      Returns
      TypeDescription
      System.Drawing.Image

      Converted Image for the specified range.

      Remarks

      Subscript/Superscript,RTF,Shrink to fit,Shapes (except TextBox shape and Image),Charts and Chart Worksheet and Complex conditional formatting features are not supported in Worksheet to image conversion. Gradient fill is partially supported. This method is supported on Windows Forms, WPF, ASP.NET and ASP.NET MVC platforms only.

      ConvertToImage(Int32, Int32, Int32, Int32, ImageType, Stream, EmfType)

      Converts the specified range into image along with Metafile.

      Declaration
      public Image ConvertToImage(int firstRow, int firstColumn, int lastRow, int lastColumn, ImageType imageType, Stream outputStream, EmfType emfType)
      Parameters
      TypeNameDescription
      System.Int32firstRow

      One-based index of the first row.

      System.Int32firstColumn

      One-based index of the first column.

      System.Int32lastRow

      One-based index of the last row.

      System.Int32lastColumn

      One-based index of the last column.

      ImageTypeimageType

      Type of the image to create.

      System.IO.StreamoutputStream

      Stream to be converted to an image. It is ignored if null.

      System.Drawing.Imaging.EmfTypeemfType

      Enhanced MetaFile, to render the image in meta file format.

      Returns
      TypeDescription
      System.Drawing.Image

      Converted Image for the specified range.

      Remarks

      Subscript/Superscript,RTF,Shrink to fit,Shapes (except TextBox shape and Image),Charts and Chart Worksheet and Complex conditional formatting features are not supported in Worksheet to image conversion. Gradient fill is partially supported. This method is supported on Windows Forms, WPF, ASP.NET and ASP.NET MVC platforms only.

      ConvertToImage(Int32, Int32, Int32, Int32, EmfType, Stream)

      Converts the specified range into Metafile.

      Declaration
      public Image ConvertToImage(int firstRow, int firstColumn, int lastRow, int lastColumn, EmfType emfType, Stream outputStream)
      Parameters
      TypeNameDescription
      System.Int32firstRow

      One-based index of the first row to convert.

      System.Int32firstColumn

      One-based index of the first column to convert.

      System.Int32lastRow

      One-based index of the last row to convert.

      System.Int32lastColumn

      One-based index of the last column to convert.

      System.Drawing.Imaging.EmfTypeemfType

      Enhanced MetaFile, to render the image in meta file format.

      System.IO.StreamoutputStream

      Stream to be converted to an image. It is ignored if null.

      Returns
      TypeDescription
      System.Drawing.Image

      Converted Image for the specified range.

      Remarks

      Subscript/Superscript,RTF,Shrink to fit,Shapes (except TextBox shape and Image),Charts and Chart Worksheet and Complex conditional formatting features are not supported in Worksheet to image conversion. Gradient fill is partially supported. This method is supported on Windows Forms, WPF, ASP.NET and ASP.NET MVC platforms only.

      CopyAutoFilters(WorksheetImpl)

      Copies autofilters.

      Declaration
      protected void CopyAutoFilters(WorksheetImpl sourceSheet)
      Parameters
      TypeNameDescription
      WorksheetImplsourceSheet

      Base worksheet.

      CopyCell(IRange, IRange)

      Copies cell value from sourceCell into destCell. DOES NOT COPY FORMULAARRAYS (THIS SHOULD BE DONE IN DIFFERENT PLACE).

      Declaration
      protected void CopyCell(IRange destCell, IRange sourceCell)
      Parameters
      TypeNameDescription
      IRangedestCell

      Destination cell.

      IRangesourceCell

      Source cell.

      CopyCell(IRange, IRange, ExcelCopyRangeOptions)

      Copies cell value from sourceCell into destCell. DOES NOT COPY FORMULAARRAYS (THIS SHOULD BE DONE IN DIFFERENT PLACE).

      Declaration
      protected void CopyCell(IRange destCell, IRange sourceCell, ExcelCopyRangeOptions options)
      Parameters
      TypeNameDescription
      IRangedestCell

      Destination cell.

      IRangesourceCell

      Source cell.

      ExcelCopyRangeOptionsoptions

      Options for coping.

      CopyColumnWidth(WorksheetImpl, Dictionary<Int32, Int32>)

      Copies column width.

      Declaration
      protected void CopyColumnWidth(WorksheetImpl sourceSheet, Dictionary<int, int> hashExtFormatIndexes)
      Parameters
      TypeNameDescription
      WorksheetImplsourceSheet

      Source worksheet.

      System.Collections.Generic.Dictionary<System.Int32, System.Int32>hashExtFormatIndexes

      Array with new extended format indexes.

      CopyConditionalFormats(WorksheetImpl)

      Copies conditional formats.

      Declaration
      protected void CopyConditionalFormats(WorksheetImpl sourceSheet)
      Parameters
      TypeNameDescription
      WorksheetImplsourceSheet

      Base worksheet.

      CopyDataValidations(WorksheetImpl)

      Copies data validations.

      Declaration
      protected void CopyDataValidations(WorksheetImpl sourceSheet)
      Parameters
      TypeNameDescription
      WorksheetImplsourceSheet

      Base worksheet.

      CopyFrom(WorksheetImpl, Dictionary<String, String>, Dictionary<String, String>, Dictionary<Int32, Int32>, ExcelWorksheetCopyFlags)

      Copies all data from another worksheet.

      Declaration
      public void CopyFrom(WorksheetImpl worksheet, Dictionary<string, string> hashStyleNames, Dictionary<string, string> hashWorksheetNames, Dictionary<int, int> dicFontIndexes, ExcelWorksheetCopyFlags flags)
      Parameters
      TypeNameDescription
      WorksheetImplworksheet

      Parent worksheet.

      System.Collections.Generic.Dictionary<System.String, System.String>hashStyleNames

      Dictionary with style names.

      System.Collections.Generic.Dictionary<System.String, System.String>hashWorksheetNames

      Dictionary with new worksheet names.

      System.Collections.Generic.Dictionary<System.Int32, System.Int32>dicFontIndexes

      Dictionary with new font indexes.

      ExcelWorksheetCopyFlagsflags

      Copy flags.

      CopyFrom(WorksheetImpl, Dictionary<String, String>, Dictionary<String, String>, Dictionary<Int32, Int32>, ExcelWorksheetCopyFlags, Dictionary<Int32, Int32>, Dictionary<Int32, Int32>)

      Copies all data from another worksheet.

      Declaration
      public void CopyFrom(WorksheetImpl worksheet, Dictionary<string, string> hashStyleNames, Dictionary<string, string> hashWorksheetNames, Dictionary<int, int> dicFontIndexes, ExcelWorksheetCopyFlags flags, Dictionary<int, int> hashExtFormatIndexes, Dictionary<int, int> hashNameIndexes)
      Parameters
      TypeNameDescription
      WorksheetImplworksheet

      Parent worksheet.

      System.Collections.Generic.Dictionary<System.String, System.String>hashStyleNames

      Dictionary with style names.

      System.Collections.Generic.Dictionary<System.String, System.String>hashWorksheetNames

      Dictionary with new worksheet names.

      System.Collections.Generic.Dictionary<System.Int32, System.Int32>dicFontIndexes

      Dictionary with new font indexes.

      ExcelWorksheetCopyFlagsflags

      Copy flags.

      System.Collections.Generic.Dictionary<System.Int32, System.Int32>hashExtFormatIndexes

      Dictionary with new extended format indexes.

      System.Collections.Generic.Dictionary<System.Int32, System.Int32>hashNameIndexes

      Dictionary with new name indexes.

      CopyFrom(WorksheetImpl, Dictionary<String, String>, Dictionary<String, String>, Dictionary<Int32, Int32>, ExcelWorksheetCopyFlags, Dictionary<Int32, Int32>, Dictionary<Int32, Int32>, Dictionary<Int32, Int32>)

      Copies all data from another worksheet.

      Declaration
      public void CopyFrom(WorksheetImpl worksheet, Dictionary<string, string> hashStyleNames, Dictionary<string, string> hashWorksheetNames, Dictionary<int, int> dicFontIndexes, ExcelWorksheetCopyFlags flags, Dictionary<int, int> hashExtFormatIndexes, Dictionary<int, int> hashNameIndexes, Dictionary<int, int> hashExternSheets)
      Parameters
      TypeNameDescription
      WorksheetImplworksheet

      Parent worksheet.

      System.Collections.Generic.Dictionary<System.String, System.String>hashStyleNames

      Dictionary with style names.

      System.Collections.Generic.Dictionary<System.String, System.String>hashWorksheetNames

      Dictionary with new worksheet names.

      System.Collections.Generic.Dictionary<System.Int32, System.Int32>dicFontIndexes

      Dictionary with new font indexes.

      ExcelWorksheetCopyFlagsflags

      Copy flags.

      System.Collections.Generic.Dictionary<System.Int32, System.Int32>hashExtFormatIndexes

      Dictionary with new extended format indexes.

      System.Collections.Generic.Dictionary<System.Int32, System.Int32>hashNameIndexes

      Dictionary with new name indexes.

      System.Collections.Generic.Dictionary<System.Int32, System.Int32>hashExternSheets

      Represents collection with extern sheets indexes.

      CopyMerges(WorksheetImpl)

      Copies merged regions.

      Declaration
      protected void CopyMerges(WorksheetImpl sourceSheet)
      Parameters
      TypeNameDescription
      WorksheetImplsourceSheet

      Source worksheet.

      CopyNames(WorksheetImpl, Dictionary<String, String>, Dictionary<Int32, Int32>, Dictionary<Int32, Int32>)

      Copies names from another worksheet.

      Declaration
      protected void CopyNames(WorksheetImpl basedOn, Dictionary<string, string> hashNewSheetNames, Dictionary<int, int> hashNewNameIndexes, Dictionary<int, int> hashExternSheetIndexes)
      Parameters
      TypeNameDescription
      WorksheetImplbasedOn

      Worksheet to copy names from.

      System.Collections.Generic.Dictionary<System.String, System.String>hashNewSheetNames

      Dictionary with new worksheet names.

      System.Collections.Generic.Dictionary<System.Int32, System.Int32>hashNewNameIndexes

      Dictionary, key - old name index, value - new name index.

      System.Collections.Generic.Dictionary<System.Int32, System.Int32>hashExternSheetIndexes

      Represents hash table with new extern sheet indexes.

      CopyOptions(WorksheetBaseImpl)

      Copies different sheet options.

      Declaration
      protected override void CopyOptions(WorksheetBaseImpl sourceSheet)
      Parameters
      TypeNameDescription
      WorksheetBaseImplsourceSheet

      Source sheet.

      Overrides
      WorksheetBaseImpl.CopyOptions(WorksheetBaseImpl)

      CopyPageSetup(WorksheetImpl)

      Copies page setup from another worksheet.

      Declaration
      protected void CopyPageSetup(WorksheetImpl sourceSheet)
      Parameters
      TypeNameDescription
      WorksheetImplsourceSheet

      Worksheet to copy from.

      CopyRange(IRange, IRange)

      Copies range from one range into another with formulas update.

      Declaration
      public IRange CopyRange(IRange destination, IRange source)
      Parameters
      TypeNameDescription
      IRangedestination

      Destination range.

      IRangesource

      Source range.

      Returns
      TypeDescription
      IRange

      Range into which source was copied.

      CopyRange(IRange, IRange, ExcelCopyRangeOptions)

      Copies range from one range into another.

      Declaration
      public IRange CopyRange(IRange destination, IRange source, ExcelCopyRangeOptions options)
      Parameters
      TypeNameDescription
      IRangedestination

      Destination range.

      IRangesource

      Source range.

      ExcelCopyRangeOptionsoptions

      Copy options.

      Returns
      TypeDescription
      IRange

      Range into which source was copied.

      CopyRangeWithoutCheck(RangeImpl, RangeImpl, ExcelCopyRangeOptions)

      Copies range without checking range sizes.

      Declaration
      public void CopyRangeWithoutCheck(RangeImpl source, RangeImpl destination, ExcelCopyRangeOptions options)
      Parameters
      TypeNameDescription
      RangeImplsource

      Source range to copy.

      RangeImpldestination

      Destination range.

      ExcelCopyRangeOptionsoptions

      Copy options.

      CopyRowHeight(WorksheetImpl, Dictionary<Int32, Int32>)

      Copies row height.

      Declaration
      protected void CopyRowHeight(WorksheetImpl sourceSheet, Dictionary<int, int> hashExtFormatIndexes)
      Parameters
      TypeNameDescription
      WorksheetImplsourceSheet

      Source worksheet.

      System.Collections.Generic.Dictionary<System.Int32, System.Int32>hashExtFormatIndexes

      Dictionary with new extended format indexes.

      CreateEmptyPane()

      Creates default pane.

      Declaration
      protected void CreateEmptyPane()

      CreateLabelSSTRTFString(Int64)

      Creates Rtf string for LabelSST record.

      Declaration
      public RangeRichTextString CreateLabelSSTRTFString(long cellIndex)
      Parameters
      TypeNameDescription
      System.Int64cellIndex

      Cell index.

      Returns
      TypeDescription
      RangeRichTextString

      Created rtf string.

      CreateNamedRanges(String, String, Boolean)

      Creates a named ranges with the specified named range's value as a name for the specified range.

      Declaration
      public void CreateNamedRanges(string namedRange, string referRange, bool vertical)
      Parameters
      TypeNameDescription
      System.StringnamedRange

      Existing named ranged.

      System.StringreferRange

      Address of the named range to be created.

      System.Booleanvertical

      True if the named range values are vertically placed in the sheet.

      Remarks

      This method is used to create named ranges from the discontinuous ranges.

      CreateRangesCollection()

      Creates a new instance of the IRanges.

      Declaration
      public IRanges CreateRangesCollection()
      Returns
      TypeDescription
      IRanges

      New instance of ranges collection.

      CreateTemplateMarkersProcessor()

      Create an instance of ITemplateMarkersProcessor that can be used for template markers processing.

      Declaration
      public ITemplateMarkersProcessor CreateTemplateMarkersProcessor()
      Returns
      TypeDescription
      ITemplateMarkersProcessor

      Object that can be used for template markers processing.

      DeleteColumn(Int32)

      Removes the specified column.

      Declaration
      public void DeleteColumn(int index)
      Parameters
      TypeNameDescription
      System.Int32index

      One-based column index.

      DeleteColumn(Int32, Int32)

      Removes the specified number of columns from the given index.

      Declaration
      public void DeleteColumn(int index, int count)
      Parameters
      TypeNameDescription
      System.Int32index

      One-based column index.

      System.Int32count

      Number of columns to remove.

      DeleteRow(Int32)

      Removes specified row (with formula update).

      Declaration
      public void DeleteRow(int index)
      Parameters
      TypeNameDescription
      System.Int32index

      One-based row index to remove

      DeleteRow(Int32, Int32)

      Removes the specified number of rows from the given index(with formula update).

      Declaration
      public void DeleteRow(int index, int count)
      Parameters
      TypeNameDescription
      System.Int32index

      One-based row index to remove

      System.Int32count

      Number of rows to delete.

      DetachEvents()

      Unbinds the specified function from the event, so that the function stops receiving notifications when the event fires.

      Declaration
      protected void DetachEvents()

      DisableSheetCalculations()

      Disables the calculation support in this workbook and disposes of the associative CalcEngine objects.

      Declaration
      public void DisableSheetCalculations()

      EnableSheetCalculations()

      Enables the calculation support.

      Declaration
      public void EnableSheetCalculations()
      Remarks

      Enabling this method will initialize CalcEngine objects and retrieves calculated values of formulas in a worksheet.

      ExportData<T>(Int32, Int32, Int32, Int32)

      Declaration
      public List<T> ExportData<T>(int firstRow, int firstColumn, int lastRow, int lastColumn)
          where T : new()
      Parameters
      TypeNameDescription
      System.Int32firstRow
      System.Int32firstColumn
      System.Int32lastRow
      System.Int32lastColumn
      Returns
      Type
      System.Collections.Generic.List<T>
      Type Parameters
      Name
      T

      ExportData<T>(Int32, Int32, Int32, Int32, Dictionary<String, String>)

      Declaration
      public List<T> ExportData<T>(int firstRow, int firstColumn, int lastRow, int lastColumn, Dictionary<string, string> mappingProperties)
          where T : new()
      Parameters
      TypeNameDescription
      System.Int32firstRow
      System.Int32firstColumn
      System.Int32lastRow
      System.Int32lastColumn
      System.Collections.Generic.Dictionary<System.String, System.String>mappingProperties
      Returns
      Type
      System.Collections.Generic.List<T>
      Type Parameters
      Name
      T

      ExportDataTable(IRange, ExcelExportDataTableOptions)

      Exports worksheet data into a DataTable with the specified data range based on the exporting options.

      Declaration
      public DataTable ExportDataTable(IRange range, ExcelExportDataTableOptions options)
      Parameters
      TypeNameDescription
      IRangerange

      Range to export.

      ExcelExportDataTableOptionsoptions

      Export options.

      Returns
      TypeDescription
      System.Data.DataTable

      Data Table with worksheet data.

      Remarks

      This method is supported on Windows Forms, WPF, ASP.NET and ASP.NET MVC platforms only.

      ExportDataTable(IRange, ExcelExportDataTableOptions, ExcelExportDataOptions)

      Exports worksheet data into a DataTable with the specified data range based on the export options.

      Declaration
      public DataTable ExportDataTable(IRange range, ExcelExportDataTableOptions options, ExcelExportDataOptions exportDataOptions)
      Parameters
      TypeNameDescription
      IRangerange

      Range to export.

      ExcelExportDataTableOptionsoptions

      Export options.

      ExcelExportDataOptionsexportDataOptions

      Export Data options

      Returns
      TypeDescription
      System.Data.DataTable

      Data Table with worksheet Data.

      Remarks

      When exportDataOption is null or the value of the ColumnTypeDeductionRow property in a row is less than or equal to 0, then By default the second row from the export range is used for detecting the column types. And the default value will be exported in the data table if the cell value does not match with the column type.

      ExportDataTable(Int32, Int32, Int32, Int32, ExcelExportDataTableOptions)

      Exports worksheet data in the specified row and column into a DataTable.

      Declaration
      public DataTable ExportDataTable(int firstRow, int firstColumn, int maxRows, int maxColumns, ExcelExportDataTableOptions options)
      Parameters
      TypeNameDescription
      System.Int32firstRow

      Row of the first cell from where DataTable should be exported.

      System.Int32firstColumn

      Column of the first cell from where DataTable should be exported.

      System.Int32maxRows

      Maximum number of rows to export.

      System.Int32maxColumns

      Maximum number of columns to export.

      ExcelExportDataTableOptionsoptions

      Export options.

      Returns
      TypeDescription
      System.Data.DataTable

      DataTable with worksheet data.

      Remarks

      This method is supported on Windows Forms, WPF, ASP.NET and ASP.NET MVC platforms only.

      ExportDataTable(Int32, Int32, Int32, Int32, ExcelExportDataTableOptions, ExcelExportDataOptions)

      Exports worksheet data in the specified row and column into a DataTable based on the export options.

      Declaration
      public DataTable ExportDataTable(int firstRow, int firstColumn, int maxRows, int maxColumns, ExcelExportDataTableOptions options, ExcelExportDataOptions exportDataOptions)
      Parameters
      TypeNameDescription
      System.Int32firstRow

      Row of the first cell from where DataTable should be exported.

      System.Int32firstColumn

      Column of the first cell from where DataTable should be exported.

      System.Int32maxRows

      Maximum number of rows to export.

      System.Int32maxColumns

      Maximum number of columns to export.

      ExcelExportDataTableOptionsoptions

      Export options.

      ExcelExportDataOptionsexportDataOptions

      Export Data options.

      Returns
      TypeDescription
      System.Data.DataTable

      Data Table with worksheet Data.

      Remarks

      When exportDataOption is null or the value of the ColumnTypeDeductionRow property in a row is less than or equal to 0, then By default the second row from the export range is used for detecting the column types. And the default value will be exported in the data table if the cell value does not match with the column type.

      ExportDataTable(Int32, Int32, Int32, Int32, ExcelExportDataTableOptions, PivotTableImpl)

      Exports worksheet data into a DataTable.

      Declaration
      public DataTable ExportDataTable(int firstRow, int firstColumn, int maxRows, int maxColumns, ExcelExportDataTableOptions options, PivotTableImpl pivotTable)
      Parameters
      TypeNameDescription
      System.Int32firstRow

      Row of the first cell from where DataTable should be exported

      System.Int32firstColumn

      Column of the first cell from where DataTable should be exported

      System.Int32maxRows

      Maximum number of rows to export

      System.Int32maxColumns

      Maximum number of columns to export

      ExcelExportDataTableOptionsoptions

      Export options.

      PivotTableImplpivotTable
      Returns
      TypeDescription
      System.Data.DataTable

      Data Table with worksheet data

      Remarks

      This method is supported on Windows Forms, WPF, ASP.NET and ASP.NET MVC platforms only.

      ExtractCalculationOptions()

      Extracts calculation options.

      Declaration
      protected int ExtractCalculationOptions()
      Returns
      TypeDescription
      System.Int32

      Position in the records array after extraction.

      ExtractConditionalFormats(Int32)

      Extracts conditional formats from biff records array

      Declaration
      protected void ExtractConditionalFormats(int iCondFmtPos)
      Parameters
      TypeNameDescription
      System.Int32iCondFmtPos

      Position of the first conditional format

      ExtractCustomProperties(Int32)

      Extracts custom properties from the records array.

      Declaration
      protected void ExtractCustomProperties(int iCustomPropertyPos)
      Parameters
      TypeNameDescription
      System.Int32iCustomPropertyPos

      Position of the first custom property record.

      ExtractDataValidation(Int32)

      Extracts data validation data from internal records array.

      Declaration
      protected void ExtractDataValidation(int iDValPos)
      Parameters
      TypeNameDescription
      System.Int32iDValPos

      Position of the first data validation record.

      ExtractHyperLinks(Int32)

      Extracts hyperlinks from internal array of biff records.

      Declaration
      protected void ExtractHyperLinks(int iLinkIndex)
      Parameters
      TypeNameDescription
      System.Int32iLinkIndex

      Index to the first hyperlink in the array of biff records, less then zero if there are no hyperlinks.

      ExtractPageSetup(Int32)

      Extracts page setup from biff records array

      Declaration
      protected void ExtractPageSetup(int iStartIndex)
      Parameters
      TypeNameDescription
      System.Int32iStartIndex

      Start index of the first pagesetup record.

      ExtractPivotTables(Int32)

      Extracts pivot tables from records array.

      Declaration
      protected void ExtractPivotTables(int iStartIndex)
      Parameters
      TypeNameDescription
      System.Int32iStartIndex

      Index to the first pivot table record.

      Find(IRange, Byte, Boolean, Boolean)

      Returns found values or null.

      Declaration
      public IRange[] Find(IRange range, byte findValue, bool bIsError, bool bIsFindFirst)
      Parameters
      TypeNameDescription
      IRangerange

      Storage range.

      System.BytefindValue

      Value for finding.

      System.BooleanbIsError

      If true - finds as error; otherwise as bool value.

      System.BooleanbIsFindFirst

      If true - finds first value; otherwise - all values.

      Returns
      TypeDescription
      IRange[]

      If findfirst - true then returns range; otherwise - array with all found values.

      Find(IRange, Double, ExcelFindType, Boolean)

      Returns found values or null.

      Declaration
      public IRange[] Find(IRange range, double findValue, ExcelFindType flags, bool bIsFindFirst)
      Parameters
      TypeNameDescription
      IRangerange

      Storage range.

      System.DoublefindValue

      Value for finding.

      ExcelFindTypeflags

      Finding flags.

      System.BooleanbIsFindFirst

      If true - finds first value; otherwise - all values.

      Returns
      TypeDescription
      IRange[]

      If findfirst - true then returns range; otherwise - array with all found values.

      Find(IRange, String, ExcelFindType, ExcelFindOptions, Boolean)

      Returns found values or null.

      Declaration
      public IRange[] Find(IRange range, string findValue, ExcelFindType flags, ExcelFindOptions findOptions, bool bIsFindFirst)
      Parameters
      TypeNameDescription
      IRangerange

      Storage range.

      System.StringfindValue

      Value for finding.

      ExcelFindTypeflags

      If true - finds first value; otherwise - all values.

      ExcelFindOptionsfindOptions
      System.BooleanbIsFindFirst

      If findfirst - true then returns range; otherwise - array with all found values.

      Returns
      TypeDescription
      IRange[]

      Range array with found values.

      Find(IRange, String, ExcelFindType, Boolean)

      Returns found values or null.

      Declaration
      public IRange[] Find(IRange range, string findValue, ExcelFindType flags, bool bIsFindFirst)
      Parameters
      TypeNameDescription
      IRangerange

      Storage range.

      System.StringfindValue

      Value for finding.

      ExcelFindTypeflags

      If true - finds first value; otherwise - all values.

      System.BooleanbIsFindFirst

      If findfirst - true then returns range; otherwise - array with all found values.

      Returns
      TypeDescription
      IRange[]

      Range array with found values.

      FindAll(Boolean)

      Returns the cells of the specified bool value.

      Declaration
      public IRange[] FindAll(bool findValue)
      Parameters
      TypeNameDescription
      System.BooleanfindValue

      Value to search.

      Returns
      TypeDescription
      IRange[]

      Returns the cells with a specified bool value, or null if value was not found.

      FindAll(DateTime)

      Returns the cells of the specified DateTime value.

      Declaration
      public IRange[] FindAll(DateTime findValue)
      Parameters
      TypeNameDescription
      System.DateTimefindValue

      Value to search.

      Returns
      TypeDescription
      IRange[]

      Returns the cells with a specified DateTime value, or null if value was not found.

      FindAll(Double, ExcelFindType)

      Returns the cells of the specified double value with the specified ExcelFindType.

      Declaration
      public IRange[] FindAll(double findValue, ExcelFindType flags)
      Parameters
      TypeNameDescription
      System.DoublefindValue

      Value to search.

      ExcelFindTypeflags

      Type of value to search.

      Returns
      TypeDescription
      IRange[]

      All found cells, or Null if value was not found.

      FindAll(String, ExcelFindType)

      Returns the cells of the specified string value with the specified ExcelFindType.

      Declaration
      public IRange[] FindAll(string findValue, ExcelFindType flags)
      Parameters
      TypeNameDescription
      System.StringfindValue

      Value to search.

      ExcelFindTypeflags

      Type of value to search.

      Returns
      TypeDescription
      IRange[]

      Returns the cells with a specified string value, or null if value was not found.

      FindAll(String, ExcelFindType, ExcelFindOptions)

      Returns the cells of the specified string value with the specified ExcelFindType and ExcelFindOptions.

      Declaration
      public IRange[] FindAll(string findValue, ExcelFindType flags, ExcelFindOptions findOptions)
      Parameters
      TypeNameDescription
      System.StringfindValue

      Value to search.

      ExcelFindTypeflags

      Type of value to search.

      ExcelFindOptionsfindOptions

      Way to search.

      Returns
      TypeDescription
      IRange[]

      Returns the cells with a specified string value and specified find options , or null if value was not found.

      FindAll(TimeSpan)

      Returns the cells of the specified TimeSpan value.

      Declaration
      public IRange[] FindAll(TimeSpan findValue)
      Parameters
      TypeNameDescription
      System.TimeSpanfindValue

      Value to search.

      Returns
      TypeDescription
      IRange[]

      Returns the cells with a specified TimeSpan value, or null if value was not found.

      FindFirst(Boolean)

      Returns the first occurrence of the specified bool value.

      Declaration
      public IRange FindFirst(bool findValue)
      Parameters
      TypeNameDescription
      System.BooleanfindValue

      Value to search.

      Returns
      TypeDescription
      IRange

      Returns the first cell with a specified bool value, or null if value was not found.

      FindFirst(DateTime)

      Returns the first occurrence of the specified DateTime value.

      Declaration
      public IRange FindFirst(DateTime findValue)
      Parameters
      TypeNameDescription
      System.DateTimefindValue

      Value to search.

      Returns
      TypeDescription
      IRange

      Returns the first cell with a specified DateTime value, or null if value was not found.

      FindFirst(Double, ExcelFindType)

      Returns the first occurrence of the specified double value with the specified ExcelFindType.

      Declaration
      public IRange FindFirst(double findValue, ExcelFindType flags)
      Parameters
      TypeNameDescription
      System.DoublefindValue

      Value to search.

      ExcelFindTypeflags

      Type of value to search.

      Returns
      TypeDescription
      IRange

      Returns the first cell with a specified double value, or null if value was not found.

      FindFirst(String, ExcelFindType)

      Returns the first occurrence of the specified string value with the specified ExcelFindType.

      Declaration
      public IRange FindFirst(string findValue, ExcelFindType flags)
      Parameters
      TypeNameDescription
      System.StringfindValue

      Value to search.

      ExcelFindTypeflags

      Type of value to search.

      Returns
      TypeDescription
      IRange

      Returns the first cell with a specified string value, or null if value was not found.

      FindFirst(String, ExcelFindType, ExcelFindOptions)

      Returns the first occurrence of the specified string value with the specified ExcelFindType and ExcelFindOptions.

      Declaration
      public IRange FindFirst(string findValue, ExcelFindType flags, ExcelFindOptions findOptions)
      Parameters
      TypeNameDescription
      System.StringfindValue

      Value to search.

      ExcelFindTypeflags

      Type of value to search.

      ExcelFindOptionsfindOptions

      Way to search the value.

      Returns
      TypeDescription
      IRange

      Returns the first cell with a specified string value and specified find options , or null if value was not found.

      FindFirst(TimeSpan)

      Returns the first occurrence of the specified TimeSpan value.

      Declaration
      public IRange FindFirst(TimeSpan findValue)
      Parameters
      TypeNameDescription
      System.TimeSpanfindValue

      Value to search.

      Returns
      TypeDescription
      IRange

      Returns the first cell with a specified TimeSpan value, or null if value was not found.

      FindStringEndsWith(String, ExcelFindType)

      Returns the first occurrence that ends with the specified string value.

      Declaration
      public IRange FindStringEndsWith(string findValue, ExcelFindType flags)
      Parameters
      TypeNameDescription
      System.StringfindValue

      Value to search.

      ExcelFindTypeflags

      Type of value to search.

      Returns
      TypeDescription
      IRange

      Returns the first occurrence that ends with the specified string value, or null if value was not found.

      FindStringEndsWith(String, ExcelFindType, Boolean)

      Returns the first occurrence that ends with the specified string value which ignores the case.

      Declaration
      public IRange FindStringEndsWith(string findValue, ExcelFindType flags, bool ignoreCase)
      Parameters
      TypeNameDescription
      System.StringfindValue

      Value to search.

      ExcelFindTypeflags

      Type of value to search.

      System.BooleanignoreCase

      True to ignore case when comparing this string to the value; otherwise, False.

      Returns
      TypeDescription
      IRange

      Returns the first occurrence that ends with the specified string value, or null if value was not found.

      FindStringStartsWith(String, ExcelFindType)

      Returns the first occurrence that starts with the specified string value.

      Declaration
      public IRange FindStringStartsWith(string findValue, ExcelFindType flags)
      Parameters
      TypeNameDescription
      System.StringfindValue

      Value to search.

      ExcelFindTypeflags

      Type of value to search.

      Returns
      TypeDescription
      IRange

      Returns the first occurrence that starts with the specified string value, or null if value was not found.

      FindStringStartsWith(String, ExcelFindType, Boolean)

      Returns the first occurrence that starts with the specified string value which ignores the case.

      Declaration
      public IRange FindStringStartsWith(string findValue, ExcelFindType flags, bool ignoreCase)
      Parameters
      TypeNameDescription
      System.StringfindValue

      Value to search.

      ExcelFindTypeflags

      Type of value to search.

      System.BooleanignoreCase

      true to ignore case wen comparing this string to the value;otherwise,false

      Returns
      TypeDescription
      IRange

      Returns the first occurrence that starts with the specified string value, or null if value was not found.

      FreeRange(IRange)

      Frees range object.

      Declaration
      public void FreeRange(IRange range)
      Parameters
      TypeNameDescription
      IRangerange

      Range to remove from internal cache.

      FreeRange(Int32, Int32)

      Frees range object for the specified row and column.

      Declaration
      public void FreeRange(int iRow, int iColumn)
      Parameters
      TypeNameDescription
      System.Int32iRow

      One-based row index of the range object to remove from internal cache.

      System.Int32iColumn

      One-based column index of the range object to remove from internal cache.

      GetActiveCell()

      Returns active cell.

      Declaration
      public IRange GetActiveCell()
      Returns
      TypeDescription
      IRange

      Currently active cell.

      GetBoolean(Int32, Int32)

      Returns bool value from the specified row and column.

      Declaration
      public bool GetBoolean(int row, int column)
      Parameters
      TypeNameDescription
      System.Int32row

      One-based row index.

      System.Int32column

      One-based column index.

      Returns
      TypeDescription
      System.Boolean

      Returns found bool value. If cannot found returns false.

      GetCellType(Int32, Int32, Boolean)

      Gets cell type from current column.

      Declaration
      public WorksheetImpl.TRangeValueType GetCellType(int row, int column, bool bNeedFormulaSubType)
      Parameters
      TypeNameDescription
      System.Int32row

      Indicates row.

      System.Int32column

      Indicates column.

      System.BooleanbNeedFormulaSubType

      Indicates is need to indentify formula sub type.

      Returns
      TypeDescription
      WorksheetImpl.TRangeValueType

      Returns cell type.

      GetCellValue(Int32, Int32, Boolean)

      Get the cell value from the specific row and column index of the worksheet.

      Declaration
      public string GetCellValue(int rowIndex, int columnIndex, bool computeFormula)
      Parameters
      TypeNameDescription
      System.Int32rowIndex

      One based row index of the cell

      System.Int32columnIndex

      One based column index of the cell

      System.BooleancomputeFormula

      Indicates whether to return formula resultant value, by default false

      Returns
      TypeDescription
      System.String

      Return the cell value

      GetClonedObject(Dictionary<String, String>, WorkbookImpl)

      Gets object that is clone of current worksheet in the specified workbook.

      Declaration
      public IInternalWorksheet GetClonedObject(Dictionary<string, string> hashNewNames, WorkbookImpl book)
      Parameters
      TypeNameDescription
      System.Collections.Generic.Dictionary<System.String, System.String>hashNewNames

      Dictionary with update worksheet names.

      WorkbookImplbook

      New workbook object.

      Returns
      TypeDescription
      Syncfusion.XlsIO.Interfaces.IInternalWorksheet

      Object that is clone of the current worksheet.

      GetColumnCount()

      This API supports the .NET Framework infrastructure and is not intended to be used directly from your code

      Declaration
      public int GetColumnCount()
      Returns
      Type
      System.Int32

      GetColumnWidth(Int32)

      Returns the width of the specified column in pixels.

      Declaration
      public double GetColumnWidth(int iColumnIndex)
      Parameters
      TypeNameDescription
      System.Int32iColumnIndex

      One-based column index.

      Returns
      TypeDescription
      System.Double

      Width in pixels of the specified column.

      GetColumnWidthInPixels(Int32)

      Returns width of the specified column in pixels.

      Declaration
      public int GetColumnWidthInPixels(int iColumnIndex)
      Parameters
      TypeNameDescription
      System.Int32iColumnIndex

      One-based index of the column.

      Returns
      TypeDescription
      System.Int32

      Width in pixels of the specified column.

      Remarks

      Otherwise it returns the StandardHeight

      GetDefaultColumnStyle(Int32)

      Returns the default column style for the specified column.

      Declaration
      public IStyle GetDefaultColumnStyle(int iColumnIndex)
      Parameters
      TypeNameDescription
      System.Int32iColumnIndex

      One-based column index.

      Returns
      TypeDescription
      IStyle

      Default column style for the specified column or null if style wasn't set.

      GetDefaultRowStyle(Int32)

      Returns default row style for the specified row.

      Declaration
      public IStyle GetDefaultRowStyle(int iRowIndex)
      Parameters
      TypeNameDescription
      System.Int32iRowIndex

      One-based row index.

      Returns
      TypeDescription
      IStyle

      Default row style for the specified row or null if style wasn't set.

      GetError(Int32, Int32)

      Returns error value from the specified row and column.

      Declaration
      public string GetError(int row, int column)
      Parameters
      TypeNameDescription
      System.Int32row

      One-based row index.

      System.Int32column

      One-based column index.

      Returns
      TypeDescription
      System.String

      Returns error value or null.

      GetExtendedFormat(Int64)

      Returns extended format for specified cell.

      Declaration
      public ExtendedFormatImpl GetExtendedFormat(long cellIndex)
      Parameters
      TypeNameDescription
      System.Int64cellIndex

      Cell index.

      Returns
      TypeDescription
      ExtendedFormatImpl

      Extended format for specified cell.

      GetFirstColumn()

      Gets the first column index.

      Declaration
      public int GetFirstColumn()
      Returns
      TypeDescription
      System.Int32

      Index of first column

      GetFirstRow()

      Get the idex of the first row in UsedRange

      Declaration
      public int GetFirstRow()
      Returns
      TypeDescription
      System.Int32

      index of first row

      GetFormula(Int32, Int32, Boolean)

      Returns formula value from specified row and column.

      Declaration
      public string GetFormula(int row, int column, bool bR1C1)
      Parameters
      TypeNameDescription
      System.Int32row

      One-based row index.

      System.Int32column

      One-based column index.

      System.BooleanbR1C1

      Indicates whether R1C1 notation should be used.

      Returns
      TypeDescription
      System.String

      Returns formula string.

      GetFormula(Int32, Int32, Boolean, FormulaUtil, Boolean)

      Returns formula corresponding to the cell.

      Declaration
      public string GetFormula(int row, int column, bool bR1C1, FormulaUtil formulaUtil, bool isForSerialization)
      Parameters
      TypeNameDescription
      System.Int32row

      One-based row index of the cell to get value from.

      System.Int32column

      One-based column index of the cell to get value from.

      System.BooleanbR1C1

      Indicates whether R1C1 notation should be used.

      FormulaUtilformulaUtil

      Formula utilities to use for parsing.

      System.BooleanisForSerialization
      Returns
      TypeDescription
      System.String

      Formula contained by the cell.

      GetFormula(Int32, Int32, Boolean, Boolean)

      Returns formula corresponding to the cell.

      Declaration
      public string GetFormula(int row, int column, bool bR1C1, bool isForSerialization)
      Parameters
      TypeNameDescription
      System.Int32row

      One-based row index of the cell to get value from.

      System.Int32column

      One-based column index of the cell to get value from.

      System.BooleanbR1C1

      Indicates whether R1C1 notation should be used.

      System.BooleanisForSerialization
      Returns
      TypeDescription
      System.String

      Formula contained by the cell.

      GetFormulaBoolValue(Int32, Int32)

      Returns formula bool value from the specified row and column.

      Declaration
      public bool GetFormulaBoolValue(int row, int column)
      Parameters
      TypeNameDescription
      System.Int32row

      One-based row index.

      System.Int32column

      One-based column index.

      Returns
      TypeDescription
      System.Boolean

      True if bool value is found. otherwise False.

      GetFormulaErrorValue(Int32, Int32)

      Returns formula error value from the specified row and column.

      Declaration
      public string GetFormulaErrorValue(int row, int column)
      Parameters
      TypeNameDescription
      System.Int32row

      One-based row index.

      System.Int32column

      One-based column index.

      Returns
      TypeDescription
      System.String

      Returns error value or null.

      GetFormulaNumberValue(Int32, Int32)

      Returns formula number value from the specified row and column.

      Declaration
      public double GetFormulaNumberValue(int row, int column)
      Parameters
      TypeNameDescription
      System.Int32row

      One-based row index.

      System.Int32column

      One-based column index.

      Returns
      TypeDescription
      System.Double

      Number contained by the cell.

      GetFormulaStringValue(Int32, Int32)

      Returns formula string value from the specified row and column.

      Declaration
      public string GetFormulaStringValue(int row, int column)
      Parameters
      TypeNameDescription
      System.Int32row

      One-based row index.

      System.Int32column

      One-based column index.

      Returns
      TypeDescription
      System.String

      String contained by the cell.

      GetHiddenColumnWidthInPixels(Int32)

      Returns width of the specified hidden column in pixels.

      Declaration
      public int GetHiddenColumnWidthInPixels(int iColumnIndex)
      Parameters
      TypeNameDescription
      System.Int32iColumnIndex

      One-based index of the column.

      Returns
      TypeDescription
      System.Int32

      Width of the specified hidden column in pixels.

      GetHiddenRowHeightInPixels(Int32)

      Returns height of the specified hidden row in pixels.

      Declaration
      public int GetHiddenRowHeightInPixels(int iRowIndex)
      Parameters
      TypeNameDescription
      System.Int32iRowIndex

      One-based index of the row.

      Returns
      TypeDescription
      System.Int32

      Height of the specified hidden row in pixels.

      GetLastColumn()

      Gets the last column index / column count.

      Declaration
      public int GetLastColumn()
      Returns
      TypeDescription
      System.Int32

      Index of last column

      GetLastRow()

      get the index of the last row in UsedRange

      Declaration
      public int GetLastRow()
      Returns
      TypeDescription
      System.Int32

      index of last row

      GetNoteByObjectIndex(Int32)

      Returns note record by object index.

      Declaration
      protected NoteRecord GetNoteByObjectIndex(int index)
      Parameters
      TypeNameDescription
      System.Int32index

      Object index to find NoteRecord for.

      Returns
      TypeDescription
      Syncfusion.XlsIO.Parser.Biff_Records.NoteRecord

      Corresponding NoteRecord, or Null if not found.

      GetNumber(Int32, Int32)

      Returns number value from the specified row and column.

      Declaration
      public double GetNumber(int row, int column)
      Parameters
      TypeNameDescription
      System.Int32row

      One-based row index.

      System.Int32column

      One-based column index.

      Returns
      TypeDescription
      System.Double

      Number contained by the cell.

      GetRangeByString(String, Boolean)

      Gets range from string value.

      Declaration
      public IRange GetRangeByString(string strRangeValue, bool hasFormula)
      Parameters
      TypeNameDescription
      System.StringstrRangeValue

      Range value represented in string.

      System.BooleanhasFormula

      boolean value indicates whether the formula in the input

      Returns
      TypeDescription
      IRange

      Extracted Range.

      GetRecord(Int32, Int32)

      Returns record at specified cell index.

      Declaration
      protected ICellPositionFormat GetRecord(int iRow, int iColumn)
      Parameters
      TypeNameDescription
      System.Int32iRow

      One-based row index.

      System.Int32iColumn

      One-based column index.

      Returns
      TypeDescription
      Syncfusion.XlsIO.Parser.Biff_Records.ICellPositionFormat

      Record at specified cell index.

      GetRecord(Int64)

      Returns record at specified cell index.

      Declaration
      protected ICellPositionFormat GetRecord(long cellIndex)
      Parameters
      TypeNameDescription
      System.Int64cellIndex

      Record's cell index.

      Returns
      TypeDescription
      Syncfusion.XlsIO.Parser.Biff_Records.ICellPositionFormat

      Record at specified cell index.

      GetRowCount()

      This API supports the .NET Framework infrastructure and is not intended to be used directly from your code

      Declaration
      public int GetRowCount()
      Returns
      Type
      System.Int32

      GetRowHeight(Int32)

      Returns the height of the specified row.

      Declaration
      public double GetRowHeight(int iRow)
      Parameters
      TypeNameDescription
      System.Int32iRow

      One-based row index.

      Returns
      TypeDescription
      System.Double

      Returns height of the specified row. Otherwise returns StandardHeight.

      Remarks

      Otherwise it gets the StandardHeight

      GetRowHeightInPixels(Int32)

      Returns the height of the specified row in pixels.

      Declaration
      public int GetRowHeightInPixels(int iRowIndex)
      Parameters
      TypeNameDescription
      System.Int32iRowIndex

      One-based row index.

      Returns
      TypeDescription
      System.Int32

      Returns height of the specified row in pixels. Otherwise returns StandardHeight.

      Remarks

      Otherwise it gets the StandardHeight in pixels

      GetStringIndex(Int64)

      Returns string index of the specified cell.

      Declaration
      public int GetStringIndex(long cellIndex)
      Parameters
      TypeNameDescription
      System.Int64cellIndex

      Cell index to locate.

      Returns
      TypeDescription
      System.Int32

      String index of the specified cell.

      GetStringPreservedValue(ICombinedRange)

      Gets string preservation option for the range.

      Declaration
      public Nullable<bool> GetStringPreservedValue(ICombinedRange range)
      Parameters
      TypeNameDescription
      ICombinedRangerange

      Range to get value for.

      Returns
      TypeDescription
      System.Nullable<System.Boolean>

      True if strings are preserved for all cells of the range, false - if it is not preserved, null - undefined or different cells have different values.

      GetStringValue(Int64)

      Returns string value corresponding to the cell.

      Declaration
      public string GetStringValue(long cellIndex)
      Parameters
      TypeNameDescription
      System.Int64cellIndex

      Cell index to get value from.

      Returns
      TypeDescription
      System.String

      String contained by the cell.

      GetText(Int32, Int32)

      Returns string value from the specified row and column.

      Declaration
      public string GetText(int row, int column)
      Parameters
      TypeNameDescription
      System.Int32row

      One-based row index.

      System.Int32column

      One-based column index.

      Returns
      TypeDescription
      System.String

      String contained by the cell.

      GetTextObject(Int64)

      Returns TextWithFormat object corresponding to the specified cell.

      Declaration
      public object GetTextObject(long cellIndex)
      Parameters
      TypeNameDescription
      System.Int64cellIndex

      Cell index.

      Returns
      TypeDescription
      System.Object

      Object corresponding to the specified cell.

      GetTextWithFormat(Int64)

      Returns TextWithFormat object corresponding to the specified cell.

      Declaration
      public TextWithFormat GetTextWithFormat(long cellIndex)
      Parameters
      TypeNameDescription
      System.Int64cellIndex

      Cell index.

      Returns
      TypeDescription
      Syncfusion.XlsIO.Parser.Biff_Records.TextWithFormat

      TextWithFormat object corresponding to the specified cell.

      GetValueRowCol(Int32, Int32)

      Returns the formula string if the cell contains a formula, or the value if the cell cantains anything other than a formula.

      Declaration
      public object GetValueRowCol(int row, int col)
      Parameters
      TypeNameDescription
      System.Int32row

      The row of the cell.

      System.Int32col

      The column of the cell.

      Returns
      TypeDescription
      System.Object

      The formula string or value.

      HasArrayFormulaRecord(Int32, Int32)

      Indicates is has array formula.

      Declaration
      public bool HasArrayFormulaRecord(int row, int column)
      Parameters
      TypeNameDescription
      System.Int32row

      Represents row index.

      System.Int32column

      Represents column index.

      Returns
      TypeDescription
      System.Boolean

      Indicates is contain array formula record.

      HideColumn(Int32)

      Hides the specified column.

      Declaration
      public void HideColumn(int columnIndex)
      Parameters
      TypeNameDescription
      System.Int32columnIndex

      One-based column index.

      HideRow(Int32)

      Hides the specified row.

      Declaration
      public void HideRow(int rowIndex)
      Parameters
      TypeNameDescription
      System.Int32rowIndex

      One-based row index.

      ImportArray(DateTime[], Int32, Int32, Boolean)

      Imports an array of DateTime values into a worksheet.

      Declaration
      public int ImportArray(DateTime[] arrDateTime, int firstRow, int firstColumn, bool isVertical)
      Parameters
      TypeNameDescription
      System.DateTime[]arrDateTime

      Array of datetime value.

      System.Int32firstRow

      Row of the first cell where array should be imported.

      System.Int32firstColumn

      Column of the first cell where array should be imported.

      System.BooleanisVertical

      True if array should be imported vertically; False - horizontally.

      Returns
      TypeDescription
      System.Int32

      Number of imported elements.

      ImportArray(Double[], Int32, Int32, Boolean)

      Imports an array of double values into a worksheet.

      Declaration
      public int ImportArray(double[] arrDouble, int firstRow, int firstColumn, bool isVertical)
      Parameters
      TypeNameDescription
      System.Double[]arrDouble

      Array of double value.

      System.Int32firstRow

      Row of the first cell where array should be imported.

      System.Int32firstColumn

      Column of the first cell where array should be imported.

      System.BooleanisVertical

      True if array should be imported vertically; False - horizontally.

      Returns
      TypeDescription
      System.Int32

      Number of imported elements.

      ImportArray(Int32[], Int32, Int32, Boolean)

      Imports an array of integer values into a worksheet.

      Declaration
      public int ImportArray(int[] arrInt, int firstRow, int firstColumn, bool isVertical)
      Parameters
      TypeNameDescription
      System.Int32[]arrInt

      Array of int value.

      System.Int32firstRow

      Row of the first cell where array should be imported.

      System.Int32firstColumn

      Column of the first cell where array should be imported.

      System.BooleanisVertical

      True if array should be imported vertically; False - horizontally.

      Returns
      TypeDescription
      System.Int32

      Number of imported elements.

      ImportArray(Object[], Int32, Int32, Boolean)

      Imports an array of objects into a worksheet with specified alignment.

      Declaration
      public int ImportArray(object[] arrObject, int firstRow, int firstColumn, bool isVertical)
      Parameters
      TypeNameDescription
      System.Object[]arrObject

      Array of object.

      System.Int32firstRow

      Row of the first cell where array should be imported.

      System.Int32firstColumn

      Column of the first cell where array should be imported.

      System.BooleanisVertical

      True if array should be imported vertically; False - horizontally.

      Returns
      TypeDescription
      System.Int32

      Number of imported elements.

      ImportArray(Object[,], Int32, Int32)

      Imports an array of objects into a worksheet.

      Declaration
      public int ImportArray(object[, ] arrObject, int firstRow, int firstColumn)
      Parameters
      TypeNameDescription
      System.Object[,]arrObject

      Array of object.

      System.Int32firstRow

      Row of the first cell where array should be imported.

      System.Int32firstColumn

      Column of the first cell where array should be imported.

      Returns
      TypeDescription
      System.Int32

      Number of imported rows.

      ImportArray(String[], Int32, Int32, Boolean)

      Imports an array of string values into a worksheet.

      Declaration
      public int ImportArray(string[] arrString, int firstRow, int firstColumn, bool isVertical)
      Parameters
      TypeNameDescription
      System.String[]arrString

      Array of string value.

      System.Int32firstRow

      Row of the first cell where array should be imported.

      System.Int32firstColumn

      Column of the first cell where array should be imported.

      System.BooleanisVertical

      True if array should be imported vertically; False - horizontally.

      Returns
      TypeDescription
      System.Int32

      Number of imported elements.

      ImportData(IEnumerable, ExcelImportDataOptions)

      Imports data from class objects into a worksheet with specified row and column along with import data options.

      Declaration
      public int ImportData(IEnumerable arrObject, ExcelImportDataOptions importDataOptions)
      Parameters
      TypeNameDescription
      System.Collections.IEnumerablearrObject

      IEnumerable object with desired data.

      ExcelImportDataOptionsimportDataOptions

      Import data options.

      Returns
      TypeDescription
      System.Int32

      Number of imported rows.

      ImportData(IEnumerable, Int32, Int32, Boolean)

      Imports data from class objects into a worksheet with specified row and column.

      Declaration
      public int ImportData(IEnumerable arrObject, int firstRow, int firstColumn, bool includeHeader)
      Parameters
      TypeNameDescription
      System.Collections.IEnumerablearrObject

      IEnumerable object with desired data.

      System.Int32firstRow

      First row from where the data should be imported.

      System.Int32firstColumn

      First column from where the data should be imported.

      System.BooleanincludeHeader

      TRUE if class properties names must be imported.

      Returns
      TypeDescription
      System.Int32

      Number of imported rows.

      ImportDataColumn(DataColumn, Boolean, Int32, Int32)

      Imports data from a DataColumn into a worksheet.

      Declaration
      public int ImportDataColumn(DataColumn dataColumn, bool isFieldNameShown, int firstRow, int firstColumn)
      Parameters
      TypeNameDescription
      System.Data.DataColumndataColumn

      DataColumn with desired data.

      System.BooleanisFieldNameShown

      TRUE if column name must be imported.

      System.Int32firstRow

      First row from where the data should be imported.

      System.Int32firstColumn

      First column from where the data should be imported.

      Returns
      TypeDescription
      System.Int32

      Number of imported rows.

      Remarks

      This method is supported on Windows Forms, WPF, ASP.NET and ASP.NET MVC platforms only.

      ImportDataColumn(DataColumn, Boolean, Int32, Int32, Boolean)

      Imports data from a DataColumn into a worksheet.

      Declaration
      public int ImportDataColumn(DataColumn dataColumn, bool isFieldNameShown, int firstRow, int firstColumn, bool preserveTypes)
      Parameters
      TypeNameDescription
      System.Data.DataColumndataColumn

      DataColumn with desired data.

      System.BooleanisFieldNameShown

      TRUE if column name must be imported.

      System.Int32firstRow

      First row from where the data should be imported.

      System.Int32firstColumn

      First column from where the data should be imported.

      System.BooleanpreserveTypes

      Indicates whether XlsIO should preserve column types from DataTable. By default, preserve type is FALSE. i.e., Setting it to True will import data based on column type, otherwise will import based on value type.

      Returns
      TypeDescription
      System.Int32

      Number of imported rows.

      Remarks

      This method is supported on Windows Forms, WPF, ASP.NET and ASP.NET MVC platforms only.

      ImportDataColumns(DataColumn[], Boolean, Int32, Int32)

      Imports array of data columns.

      Declaration
      public int ImportDataColumns(DataColumn[] arrDataColumns, bool isFieldNameShown, int firstRow, int firstColumn)
      Parameters
      TypeNameDescription
      System.Data.DataColumn[]arrDataColumns

      Data columns to import.

      System.BooleanisFieldNameShown

      Indicates whether to import field names.

      System.Int32firstRow

      Index to the first row.

      System.Int32firstColumn

      Index to the first column.

      Returns
      TypeDescription
      System.Int32

      Number of imported rows.

      Remarks

      This method is supported on Windows Forms, WPF, ASP.NET and ASP.NET MVC platforms only.

      ImportDataReader(IDataReader, IName, Boolean)

      Imports data from DataReader into the specified NamedRange of current worksheet.

      Declaration
      public int ImportDataReader(IDataReader dataReader, IName namedRange, bool isFieldNameShown)
      Parameters
      TypeNameDescription
      System.Data.IDataReaderdataReader

      Theorobject which contains data.

      INamenamedRange

      Represents named range.

      System.BooleanisFieldNameShown

      TRUE if column names must be imported.

      Returns
      TypeDescription
      System.Int32

      Number of imported rows.

      Remarks

      This method is not supported in WinRT, Windows Phone, Portable, Universal and Silverlight platforms.

      ImportDataReader(IDataReader, Boolean, Int32, Int32)

      Imports data from DataReader into worksheet from the specified row and column.

      Declaration
      public int ImportDataReader(IDataReader dataReader, bool isFieldNameShown, int firstRow, int firstColumn)
      Parameters
      TypeNameDescription
      System.Data.IDataReaderdataReader

      Theorobject which contains data.

      System.BooleanisFieldNameShown

      TRUE if column names must be imported.

      System.Int32firstRow

      First row from where the data should be imported.

      System.Int32firstColumn

      First column from where the data should be imported.

      Returns
      TypeDescription
      System.Int32

      Number of imported rows.

      Remarks

      This method is not supported in WinRT, Windows Phone, Portable, Universal and Silverlight platforms.

      ImportDataReader(IDataReader, Boolean, Int32, Int32, Boolean)

      Imports data from DataReader into worksheet from the specified row and column along with the preserve type.

      Declaration
      public int ImportDataReader(IDataReader dataReader, bool isFieldNameShown, int firstRow, int firstColumn, bool preserveTypes)
      Parameters
      TypeNameDescription
      System.Data.IDataReaderdataReader

      Theorobject which contains data.

      System.BooleanisFieldNameShown

      TRUE if column names must be imported.

      System.Int32firstRow

      First row from where the data should be imported.

      System.Int32firstColumn

      First column from where the data should be imported.

      System.BooleanpreserveTypes

      Indicates whether XlsIO should preserve column types from DataReader. By default, preserve type is FALSE. i.e., Setting it to True will import data based on column type, otherwise will import based on value type.

      Returns
      TypeDescription
      System.Int32

      Number of imported rows.

      Remarks

      This method is not supported in WinRT, Windows Phone, Portable, Universal and Silverlight platforms.

      ImportDataReader(IDataReader, Int32, Int32, Boolean)

      Imports data from DataReader into worksheet from the specified row and column along with save option.

      Declaration
      public int ImportDataReader(IDataReader dataReader, int firstRow, int firstColumn, bool importOnSave)
      Parameters
      TypeNameDescription
      System.Data.IDataReaderdataReader

      Theorobject which contains data.

      System.Int32firstRow

      First row from where the data should be imported.

      System.Int32firstColumn

      First column from where the data should be imported.

      System.BooleanimportOnSave

      TRUE if data must be serialized directly on save.

      Returns
      TypeDescription
      System.Int32

      Number of imported rows.

      Remarks

      This method is not supported in WinRT, Windows Phone, Portable, Universal and Silverlight platforms.

      ImportDataTable(DataTable, IName, Boolean)

      Imports data from DataTable into the specified NamedRange of current worksheet.

      Declaration
      public int ImportDataTable(DataTable dataTable, IName namedRange, bool isFieldNameShown)
      Parameters
      TypeNameDescription
      System.Data.DataTabledataTable

      Data Table with desired data.

      INamenamedRange

      Represents named range.

      System.BooleanisFieldNameShown

      TRUE if column names must be imported.

      Returns
      TypeDescription
      System.Int32

      Number of imported rows.

      Remarks

      This method is supported on Windows Forms, WPF, ASP.NET and ASP.NET MVC platforms only.

      ImportDataTable(DataTable, IName, Boolean, Int32, Int32)

      Imports data from DataTable into the specified NamedRange of current worksheet with row and column offset.

      Declaration
      public int ImportDataTable(DataTable dataTable, IName namedRange, bool isFieldNameShown, int rowOffset, int columnOffset)
      Parameters
      TypeNameDescription
      System.Data.DataTabledataTable

      Data Table with desired data.

      INamenamedRange

      Represents named range.

      System.BooleanisFieldNameShown

      TRUE if column names must also be imported.

      System.Int32rowOffset

      Represents row offset into named range to import.

      System.Int32columnOffset

      Represents column offset into named range to import.

      Returns
      TypeDescription
      System.Int32

      Number of imported rows.

      Remarks

      This method is supported on Windows Forms, WPF, ASP.NET and ASP.NET MVC platforms only.

      ImportDataTable(DataTable, IName, Boolean, Int32, Int32, Int32, Int32)

      Imports data from DataTable into the specified NamedRange of current worksheet with row and column offset.

      Declaration
      public int ImportDataTable(DataTable dataTable, IName namedRange, bool isFieldNameShown, int rowOffset, int columnOffset, int iMaxRow, int iMaxCol)
      Parameters
      TypeNameDescription
      System.Data.DataTabledataTable

      DataTable with desired data.

      INamenamedRange

      Represents named range.

      System.BooleanisFieldNameShown

      TRUE if column names must be imported.

      System.Int32rowOffset

      Represents row offset into named range to import.

      System.Int32columnOffset

      Represents column offset into named range to import.

      System.Int32iMaxRow

      Maximum number of rows to import.

      System.Int32iMaxCol

      Maximum number of columns to import.

      Returns
      TypeDescription
      System.Int32

      Number of imported rows.

      Remarks

      This method is supported on Windows Forms, WPF, ASP.NET and ASP.NET MVC platforms only.

      ImportDataTable(DataTable, IName, Boolean, Int32, Int32, Int32, Int32, Boolean)

      Imports data from DataTable into the specified NamedRange of current worksheet with row and column offset.

      Declaration
      public int ImportDataTable(DataTable dataTable, IName namedRange, bool isFieldNameShown, int rowOffset, int columnOffset, int iMaxRow, int iMaxCol, bool bPreserveTypes)
      Parameters
      TypeNameDescription
      System.Data.DataTabledataTable

      DataTable with desired data.

      INamenamedRange

      Represents named range.

      System.BooleanisFieldNameShown

      TRUE if column names must be imported.

      System.Int32rowOffset

      Represents row offset into named range to import.

      System.Int32columnOffset

      Represents column offset into named range to import.

      System.Int32iMaxRow

      Maximum number of rows to import.

      System.Int32iMaxCol

      Maximum number of columns to import.

      System.BooleanbPreserveTypes

      Indicates whether to preserve column types.

      Returns
      TypeDescription
      System.Int32

      Number of imported rows.

      Remarks

      This method is supported on Windows Forms, WPF, ASP.NET and ASP.NET MVC platforms only.

      ImportDataTable(DataTable, Boolean, Int32, Int32)

      Imports data from a DataTable into a worksheet with specified row and column.

      Declaration
      public int ImportDataTable(DataTable dataTable, bool isFieldNameShown, int firstRow, int firstColumn)
      Parameters
      TypeNameDescription
      System.Data.DataTabledataTable

      DataTable with desired data.

      System.BooleanisFieldNameShown

      TRUE if column names must be imported.

      System.Int32firstRow

      First row from where the data should be imported.

      System.Int32firstColumn

      First column from where the data should be imported.

      Returns
      TypeDescription
      System.Int32

      Number of imported rows.

      Remarks

      This method is supported on Windows Forms, WPF, ASP.NET and ASP.NET MVC platforms only.

      ImportDataTable(DataTable, Boolean, Int32, Int32, Boolean)

      Imports data from a DataTable into a worksheet with specified row and column along with the preserve type.

      Declaration
      public int ImportDataTable(DataTable dataTable, bool isFieldNameShown, int firstRow, int firstColumn, bool preserveTypes)
      Parameters
      TypeNameDescription
      System.Data.DataTabledataTable

      DataTable with desired data.

      System.BooleanisFieldNameShown

      True if column names must be imported.

      System.Int32firstRow

      First row from where the data should be imported.

      System.Int32firstColumn

      First column from where the data should be imported.

      System.BooleanpreserveTypes

      Indicates whether XlsIO should preserve column types from DataTable. By default, preserve type is FALSE. i.e., Setting it to True will import data based on column type, otherwise will import based on value type.

      Returns
      TypeDescription
      System.Int32

      Number of imported rows.

      Remarks

      This method is supported on Windows Forms, WPF, ASP.NET and ASP.NET MVC platforms only.

      ImportDataTable(DataTable, Boolean, Int32, Int32, Int32, Int32)

      Imports data from a DataTable into a worksheet with the specified range.

      Declaration
      public int ImportDataTable(DataTable dataTable, bool isFieldNameShown, int firstRow, int firstColumn, int maxRows, int maxColumns)
      Parameters
      TypeNameDescription
      System.Data.DataTabledataTable

      DataTable with desired data.

      System.BooleanisFieldNameShown

      True if column names must be imported.

      System.Int32firstRow

      First row from where the data should be imported.

      System.Int32firstColumn

      First column from where the data should be imported.

      System.Int32maxRows

      Maximum number of rows to import.

      System.Int32maxColumns

      Maximum number of columns to import.

      Returns
      TypeDescription
      System.Int32

      Number of imported rows.

      Remarks

      This method is supported on Windows Forms, WPF, ASP.NET and ASP.NET MVC platforms only.

      ImportDataTable(DataTable, Boolean, Int32, Int32, Int32, Int32, Boolean)

      Imports data from a DataTable into a worksheet with specified range along with the specified preserve type.

      Declaration
      public int ImportDataTable(DataTable dataTable, bool isFieldNameShown, int firstRow, int firstColumn, int maxRows, int maxColumns, bool preserveTypes)
      Parameters
      TypeNameDescription
      System.Data.DataTabledataTable

      DataTable with desired data.

      System.BooleanisFieldNameShown

      True if column names must be imported.

      System.Int32firstRow

      First row from where the data should be imported.

      System.Int32firstColumn

      First column from where the data should be imported.

      System.Int32maxRows

      Maximum number of rows to import.

      System.Int32maxColumns

      Maximum number of columns to import.

      System.BooleanpreserveTypes

      Indicates whether XlsIO should preserve column types from DataTable. By default, preserve type is FALSE. i.e., Setting it to True will import data based on column type, otherwise will import based on value type.

      Returns
      TypeDescription
      System.Int32

      Number of imported rows.

      Remarks

      This method is supported on Windows Forms, WPF, ASP.NET and ASP.NET MVC platforms only.

      ImportDataTable(DataTable, Boolean, Int32, Int32, Int32, Int32, DataColumn[], Boolean)

      Imports data from a DataTable into worksheet

      Declaration
      public int ImportDataTable(DataTable dataTable, bool isFieldNameShown, int firstRow, int firstColumn, int maxRows, int maxColumns, DataColumn[] arrDataColumns, bool bPreserveTypes)
      Parameters
      TypeNameDescription
      System.Data.DataTabledataTable

      DataTable with desired data

      System.BooleanisFieldNameShown

      TRUE if column names must also be imported

      System.Int32firstRow

      First row from where the data should be imported.

      System.Int32firstColumn

      First column from where the data should be imported.

      System.Int32maxRows

      Maximum number of rows to import

      System.Int32maxColumns

      Maximum number of columns to import

      System.Data.DataColumn[]arrDataColumns

      Array of columns to import.

      System.BooleanbPreserveTypes

      Indicates whether XlsIO should preserve column types from DataTable. By default, preserve type is FALSE. i.e., Setting it to True will import data based on column type, otherwise will import based on value type.

      Returns
      TypeDescription
      System.Int32

      Number of imported rows

      Remarks

      This method is supported on Windows Forms, WPF, ASP.NET and ASP.NET MVC platforms only.

      ImportDataTable(DataTable, Boolean, Int32, Int32, Int32, Int32, DataColumn[], Boolean, Boolean)

      Imports data from a DataTable into worksheet

      Declaration
      public int ImportDataTable(DataTable dataTable, bool isFieldNameShown, int firstRow, int firstColumn, int maxRows, int maxColumns, DataColumn[] arrDataColumns, bool bPreserveTypes, bool bImportOnSave)
      Parameters
      TypeNameDescription
      System.Data.DataTabledataTable

      DataTable with desired data

      System.BooleanisFieldNameShown

      TRUE if column names must also be imported

      System.Int32firstRow

      First row from where the data should be imported.

      System.Int32firstColumn

      First column from where the data should be imported.

      System.Int32maxRows

      Maximum number of rows to import

      System.Int32maxColumns

      Maximum number of columns to import

      System.Data.DataColumn[]arrDataColumns

      Array of columns to import.

      System.BooleanbPreserveTypes

      Indicates whether XlsIO should preserve column types from DataTable. By default, preserve type is FALSE. i.e., Setting it to True will import data based on column type, otherwise will import based on value type.

      System.BooleanbImportOnSave

      Indicates whether to serialize the data table directly.

      Returns
      TypeDescription
      System.Int32

      Number of imported rows

      Remarks

      This method is supported on Windows Forms, WPF, ASP.NET and ASP.NET MVC platforms only.

      ImportDataTable(DataTable, Int32, Int32, Boolean)

      Imports data from a DataTable into a worksheet with the specified row and column along with save option.

      Declaration
      public int ImportDataTable(DataTable dataTable, int firstRow, int firstColumn, bool importOnSave)
      Parameters
      TypeNameDescription
      System.Data.DataTabledataTable

      Data Table with desired data.

      System.Int32firstRow

      First row from where the data should be imported.

      System.Int32firstColumn

      First column from where the data should be imported.

      System.BooleanimportOnSave

      TRUE if data table must be serialized directly on save.

      Returns
      TypeDescription
      System.Int32

      Number of imported rows.

      Remarks

      This method is supported on Windows Forms, WPF, ASP.NET and ASP.NET MVC platforms only.

      ImportDataTable(DataTable, Int32, Int32, Boolean, Boolean)

      Imports data from a DataTable into a worksheet with the specified row and column along with save option.

      Declaration
      public int ImportDataTable(DataTable dataTable, int firstRow, int firstColumn, bool importOnSave, bool includeheader)
      Parameters
      TypeNameDescription
      System.Data.DataTabledataTable

      Data Table with desired data.

      System.Int32firstRow

      First row from where the data should be imported.

      System.Int32firstColumn

      First column from where the data should be imported.

      System.BooleanimportOnSave

      TRUE if data table must be serialized directly on save.

      System.Booleanincludeheader

      TRUE if column names must be imported.

      Returns
      TypeDescription
      System.Int32

      Number of imported rows.

      Remarks

      This method is supported on Windows Forms, WPF, ASP.NET and ASP.NET MVC platforms only.

      ImportDataView(DataView, Boolean, Int32, Int32)

      Declaration
      public int ImportDataView(DataView dataView, bool isFieldNameShown, int firstRow, int firstColumn)
      Parameters
      TypeNameDescription
      System.Data.DataViewdataView
      System.BooleanisFieldNameShown
      System.Int32firstRow
      System.Int32firstColumn
      Returns
      Type
      System.Int32

      ImportDataView(DataView, Boolean, Int32, Int32, Boolean)

      Imports data from a DataView into a worksheet with the specified range and preserve type.

      Declaration
      public int ImportDataView(DataView dataView, bool isFieldNameShown, int firstRow, int firstColumn, bool bPreserveTypes)
      Parameters
      TypeNameDescription
      System.Data.DataViewdataView

      DataView with desired data.

      System.BooleanisFieldNameShown

      TRUE if column names must be imported.

      System.Int32firstRow

      Row of the first cell where DataView should be imported.

      System.Int32firstColumn

      Column of the first cell where DataView should be imported.

      System.BooleanbPreserveTypes

      Indicates whether to preserve column types.

      Returns
      TypeDescription
      System.Int32

      Number of imported rows.

      Remarks

      This method is supported on Windows Forms, WPF, ASP.NET and ASP.NET MVC platforms only.

      ImportDataView(DataView, Boolean, Int32, Int32, Int32, Int32)

      Imports data from a DataView into a worksheet with specified row, column and preserve type.

      Declaration
      public int ImportDataView(DataView dataView, bool isFieldNameShown, int firstRow, int firstColumn, int maxRows, int maxColumns)
      Parameters
      TypeNameDescription
      System.Data.DataViewdataView

      Data View with desired data.

      System.BooleanisFieldNameShown

      TRUE if column names must be imported.

      System.Int32firstRow

      Row of the first cell where DataView should be imported.

      System.Int32firstColumn

      Column of the first cell where DataView should be imported.

      System.Int32maxRows

      Maximum number of rows to import.

      System.Int32maxColumns

      Maximum number of columns to import.

      Returns
      TypeDescription
      System.Int32

      Number of imported rows.

      Remarks

      This method is supported on Windows Forms, WPF, ASP.NET and ASP.NET MVC platforms only.

      ImportDataView(DataView, Boolean, Int32, Int32, Int32, Int32, Boolean)

      Imports data from a DataView into a worksheet with specified range and preserve type.

      Declaration
      public int ImportDataView(DataView dataView, bool isFieldNameShown, int firstRow, int firstColumn, int maxRows, int maxColumns, bool bPreserveTypes)
      Parameters
      TypeNameDescription
      System.Data.DataViewdataView

      DataView with desired data.

      System.BooleanisFieldNameShown

      TRUE if column names must also be imported.

      System.Int32firstRow

      Row of the first cell where DataView should be imported.

      System.Int32firstColumn

      Column of the first cell where DataView should be imported.

      System.Int32maxRows

      Maximum number of rows to import.

      System.Int32maxColumns

      Maximum number of columns to import.

      System.BooleanbPreserveTypes

      Indicates whether XlsIO should try to preserve types in Data Table, i.e. if it is set to False (default) and in Data Table we have in string column value that contains only numbers, it would be converted to number.

      Returns
      TypeDescription
      System.Int32

      Number of imported rows.

      Remarks

      This method is supported on Windows Forms, WPF, ASP.NET and ASP.NET MVC platforms only.

      ImportExtendedFormat(Int32, WorkbookImpl, Dictionary<Int32, Int32>)

      Imports extended format from anther worksheet.

      Declaration
      protected int ImportExtendedFormat(int iXFIndex, WorkbookImpl basedOn, Dictionary<int, int> hashExtFormatIndexes)
      Parameters
      TypeNameDescription
      System.Int32iXFIndex

      Extended format to import.

      WorkbookImplbasedOn

      Source workbook.

      System.Collections.Generic.Dictionary<System.Int32, System.Int32>hashExtFormatIndexes

      Dictionary key - old xf index, value - new xf index.

      Returns
      TypeDescription
      System.Int32

      Index of the new format.

      ImportHtmlTable(Stream, Int32, Int32)

      Imports HTML table of a file stream into worksheet from the specified row and column.

      Declaration
      public void ImportHtmlTable(Stream fileStream, int row, int column)
      Parameters
      TypeNameDescription
      System.IO.StreamfileStream

      Specifies the HTML filestream.

      System.Int32row

      Specifies the starting row index.

      System.Int32column

      Specifies the starting column index.

      Examples

      The following code illustrates how to convert HTML table to Excel.

      ExcelEngine excelEngine = new ExcelEngine();
      IApplication application = excelEngine.Excel;
      application.DefaultVersion = ExcelVersion.Excel2013;
      IWorkbook workbook = application.Workbooks.Create(1);
      
      IWorksheet sheet = workbook.Worksheets[0];
      FileStream html = new FileStream("HTMLtable.html", FileMode.Open, FileAccess.ReadWrite);
      
      sheet.ImportHtmlTable(html, 1, 1);
      
      workbook.SaveAs("HTMLToExcel.xlsx");
      workbook.Close();
      excelEngine.Dispose();

      ImportHtmlTable(Stream, Int32, Int32, HtmlImportOptions)

      Imports HTML table of a file stream into worksheet from the specified row, column and html import options.

      Declaration
      public void ImportHtmlTable(Stream fileStream, int row, int column, HtmlImportOptions htmlImportOptions)
      Parameters
      TypeNameDescription
      System.IO.StreamfileStream

      Specifies the HTML filestream.

      System.Int32row

      Specifies the starting row index.

      System.Int32column

      Specifies the starting column index.

      HtmlImportOptionshtmlImportOptions

      Specifies the html import options.

      Examples

      The following code illustrates how to convert HTML table to Excel.

      ExcelEngine excelEngine = new ExcelEngine();
      IApplication application = excelEngine.Excel;
      application.DefaultVersion = ExcelVersion.Xlsx;
      IWorkbook workbook = application.Workbooks.Create(1);
      
      IWorksheet sheet = workbook.Worksheets[0];
      FileStream html = new FileStream("HTMLtable.html", FileMode.Open, FileAccess.ReadWrite);
      
      sheet.ImportHtmlTable(html, 1, 1, HtmlImportOptions.DetectFormulas);
      
      workbook.SaveAs("HTMLToExcel.xlsx");
      workbook.Close();
      excelEngine.Dispose();

      ImportHtmlTable(String, Int32, Int32)

      Imports HTML table of a HTML file into worksheet from the specified row and column.

      Declaration
      public void ImportHtmlTable(string fileName, int row, int column)
      Parameters
      TypeNameDescription
      System.StringfileName

      Specifies the HTML file.

      System.Int32row

      Specifies the starting row index.

      System.Int32column

      Specifies the starting column index.

      Examples

      The following code illustrates how to convert HTML table to Excel.

      ExcelEngine excelEngine = new ExcelEngine();
      IApplication application = excelEngine.Excel;
      application.DefaultVersion = ExcelVersion.Excel2013;
      IWorkbook workbook = application.Workbooks.Create(1);
      
      IWorksheet sheet = workbook.Worksheets[0];
      
      sheet.ImportHtmlTable("HTMLtable.html", 1, 1);
      
      workbook.SaveAs("HTMLToExcel.xlsx");
      workbook.Close();
      excelEngine.Dispose();

      ImportHtmlTable(String, Int32, Int32, HtmlImportOptions)

      Imports tables from HTML document into Excel worksheet from the specified row and column with HTML import options.

      Declaration
      public void ImportHtmlTable(string fileName, int row, int column, HtmlImportOptions htmlImportOptions)
      Parameters
      TypeNameDescription
      System.StringfileName

      Specifies the HTML file.

      System.Int32row

      Specifies the starting row index.

      System.Int32column

      Specifies the starting column index.

      HtmlImportOptionshtmlImportOptions

      Specifies the html import options.

      Examples

      The following code illustrates how to convert HTML table to Excel.

      ExcelEngine excelEngine = new ExcelEngine();
      IApplication application = excelEngine.Excel;
      application.DefaultVersion = ExcelVersion.Xlsx;
      IWorkbook workbook = application.Workbooks.Create(1);
      
      IWorksheet sheet = workbook.Worksheets[0];
      
      sheet.ImportHtmlTable("HTMLtable.html", 1, 1, HtmlImportOptions.DetectFormulas);
      
      workbook.SaveAs("HTMLToExcel.xlsx");
      workbook.Close();
      excelEngine.Dispose();

      ImportXml(Stream, Int32, Int32)

      Imports XML data into a worksheet at the specified row and column from a given XML data stream.

      Declaration
      public void ImportXml(Stream stream, int row, int column)
      Parameters
      TypeNameDescription
      System.IO.Streamstream

      Stream data of the xml file.

      System.Int32row

      Row where the data to be imported.

      System.Int32column

      Column where the data to be imported.

      Remarks

      The stream should be passed as file stream to bind the xml

      ImportXml(String, Int32, Int32)

      Import XML document with specified cell position to the worksheet using file path.

      Declaration
      public void ImportXml(string fileName, int row, int column)
      Parameters
      TypeNameDescription
      System.StringfileName
      System.Int32row

      Row where the data to be imported.

      System.Int32column

      Column where the data to be imported.

      InitializeCollections()

      Initializes all inner data such as Comments collection, Page setup, etc.

      Declaration
      protected override void InitializeCollections()
      Overrides
      WorksheetBaseImpl.InitializeCollections()

      InnerGetCell(Int32, Int32)

      Returns Range which represents specified cell.

      Declaration
      protected IRange InnerGetCell(int column, int row)
      Parameters
      TypeNameDescription
      System.Int32column

      Column index of the cell.

      System.Int32row

      Row index of the cell.

      Returns
      TypeDescription
      IRange

      Range which represents specified cell.

      InnerGetCell(Int32, Int32, Int32)

      Returns Range which represents specified cell.

      Declaration
      protected IRange InnerGetCell(int column, int row, int iXFIndex)
      Parameters
      TypeNameDescription
      System.Int32column

      Column index of the cell.

      System.Int32row

      Row index of the cell.

      System.Int32iXFIndex

      Index to extended format for new range.

      Returns
      TypeDescription
      IRange

      Range which represents specified cell.

      InnerGetCellStyle(Int32, Int32, Int32, RangeImpl)

      Returns Range which represents specified cell.

      Declaration
      protected IStyle InnerGetCellStyle(int column, int row, int iXFIndex, RangeImpl rangeImpl)
      Parameters
      TypeNameDescription
      System.Int32column

      Column index of the cell.

      System.Int32row

      Row index of the cell.

      System.Int32iXFIndex

      Index to extended format for new range.

      RangeImplrangeImpl
      Returns
      TypeDescription
      IStyle

      Range which represents specified cell.

      InnerGetColumnDimensions(Int32, out Int32, out Int32)

      Calculates dimensions of the specified column.

      Declaration
      protected void InnerGetColumnDimensions(int column, out int top, out int bottom)
      Parameters
      TypeNameDescription
      System.Int32column

      Column dimension of which will be calculated.

      System.Int32top

      Variable that will receive first used row in the specified column.

      System.Int32bottom

      Variable that will receive last used row in the specified column.

      InnerGetColumnWidth(Int32)

      Returns width from ColumnInfoRecord if there is corresponding ColumnInfoRecord or StandardWidth if not.

      Declaration
      public double InnerGetColumnWidth(int iColumn)
      Parameters
      TypeNameDescription
      System.Int32iColumn

      One-based index of the column.

      Returns
      TypeDescription
      System.Double

      Width of the specified column.

      InnerGetDimensions(out Int32, out Int32, out Int32, out Int32)

      Returns dimensions of the worksheet.

      Declaration
      protected void InnerGetDimensions(out int left, out int top, out int right, out int bottom)
      Parameters
      TypeNameDescription
      System.Int32left

      Variable that receives index of the first used column.

      System.Int32top

      Variable that receives index of the first used row.

      System.Int32right

      Variable that receives index of the last used column.

      System.Int32bottom

      Variable that receives index of the last used row.

      InnerGetRowHeight(Int32, Boolean)

      Returns height from RowRecord if there is a corresponding RowRecord. Otherwise returns StandardHeight.

      Declaration
      public double InnerGetRowHeight(int iRow, bool bRaiseEvents)
      Parameters
      TypeNameDescription
      System.Int32iRow

      One-based index of the row

      System.BooleanbRaiseEvents

      Indicates whether to raise events on row autofitting.

      Returns
      TypeDescription
      System.Double

      Height from RowRecord if there is corresponding RowRecord. Otherwise returns StandardHeight.

      InnerSetCell(Int32, Int32, RangeImpl)

      Sets Range which represents specified cell.

      Declaration
      protected void InnerSetCell(int column, int row, RangeImpl range)
      Parameters
      TypeNameDescription
      System.Int32column

      Column index of the cell.

      System.Int32row

      Row index of the cell.

      RangeImplrange

      Range which represents specified cell.

      InsertColumn(Int32)

      Inserts an empty column for the specified column index.

      Declaration
      public void InsertColumn(int iColumnIndex)
      Parameters
      TypeNameDescription
      System.Int32iColumnIndex

      Index at which new column should be inserted.

      InsertColumn(Int32, Int32)

      Inserts an empty column in the specified column index based on column count.

      Declaration
      public void InsertColumn(int iColumnIndex, int iColumnCount)
      Parameters
      TypeNameDescription
      System.Int32iColumnIndex

      Index at which new column should be inserted.

      System.Int32iColumnCount

      Number of columns to insert.

      InsertColumn(Int32, Int32, ExcelInsertOptions)

      Inserts an empty column with default formatting with specified Inserting options.

      Declaration
      public void InsertColumn(int iColumnIndex, int iColumnCount, ExcelInsertOptions insertOptions)
      Parameters
      TypeNameDescription
      System.Int32iColumnIndex

      Index at which new column should be inserted

      System.Int32iColumnCount

      Number of columns to insert.

      ExcelInsertOptionsinsertOptions

      Insert options.

      InsertRow(Int32)

      Inserts an empty row in the specified row index.

      Declaration
      public void InsertRow(int iRowIndex)
      Parameters
      TypeNameDescription
      System.Int32iRowIndex

      InsertRow(Int32, Int32)

      Inserts an empty rows in the specified row index based on row count.

      Declaration
      public void InsertRow(int iRowIndex, int iRowCount)
      Parameters
      TypeNameDescription
      System.Int32iRowIndex

      Index at which new row should be inserted.

      System.Int32iRowCount

      Number of rows to insert.

      InsertRow(Int32, Int32, ExcelInsertOptions)

      Inserts an empty row in the specified row index with specified ExcelInsertOptions based on row count.

      Declaration
      public void InsertRow(int iRowIndex, int iRowCount, ExcelInsertOptions insertOptions)
      Parameters
      TypeNameDescription
      System.Int32iRowIndex

      Index at which new row should be inserted.

      System.Int32iRowCount

      Number of rows to insert.

      ExcelInsertOptionsinsertOptions

      Insert options.

      IntersectRanges(IRange, IRange)

      Intersects two ranges.

      Declaration
      public IRange IntersectRanges(IRange range1, IRange range2)
      Parameters
      TypeNameDescription
      IRangerange1

      First range to intersect.

      IRangerange2

      Second range to intersect.

      Returns
      TypeDescription
      IRange

      Intersection of two ranges or NULL if there is no range intersection.

      Exceptions
      TypeCondition
      System.ArgumentNullException

      When range1 or range2 is NULL.

      IsArrayFormula(Int64)

      Indicates whether cell contains array-entered formula.

      Declaration
      public bool IsArrayFormula(long cellIndex)
      Parameters
      TypeNameDescription
      System.Int64cellIndex

      Cell index to check.

      Returns
      TypeDescription
      System.Boolean

      True if cell contains array-entered formula.

      IsColumnVisible(Int32)

      Returns True if the specified column is visible to end user.

      Declaration
      public bool IsColumnVisible(int columnIndex)
      Parameters
      TypeNameDescription
      System.Int32columnIndex

      One-based column index.

      Returns
      TypeDescription
      System.Boolean

      True if column is visible; otherwise, False.

      IsExternalFormula(Int32, Int32)

      Indicates is formula in cell is formula to external workbook.

      Declaration
      public bool IsExternalFormula(int row, int column)
      Parameters
      TypeNameDescription
      System.Int32row

      Represents row index.

      System.Int32column

      Represents column index.

      Returns
      TypeDescription
      System.Boolean

      If contain extern formula returns true; otherwise false.

      IsRowVisible(Int32)

      Returns True if the specified row is visible to end user.

      Declaration
      public bool IsRowVisible(int rowIndex)
      Parameters
      TypeNameDescription
      System.Int32rowIndex

      One-based row index.

      Returns
      TypeDescription
      System.Boolean

      True if row is visible; otherwise, False.

      MarkUsedReferences(Boolean[])

      Sets items with used reference indexes to true.

      Declaration
      public override void MarkUsedReferences(bool[] usedItems)
      Parameters
      TypeNameDescription
      System.Boolean[]usedItems

      Array to mark used references in.

      Overrides
      WorksheetBaseImpl.MarkUsedReferences(Boolean[])

      MergeRanges(IRange, IRange)

      Merges two ranges.

      Declaration
      public IRange MergeRanges(IRange range1, IRange range2)
      Parameters
      TypeNameDescription
      IRangerange1

      First range to merge.

      IRangerange2

      Second range to merge.

      Returns
      TypeDescription
      IRange

      Merged ranges or NULL if is not able to merge ranges.

      Exceptions
      TypeCondition
      System.ArgumentNullException

      When range1 or range2 is NULL.

      Move(Int32)

      Moves worksheet to the specified index.

      Declaration
      public void Move(int iNewIndex)
      Parameters
      TypeNameDescription
      System.Int32iNewIndex

      New index of the worksheet.

      MoveRange(IRange, IRange, ExcelCopyRangeOptions, Boolean)

      Moves range to new position.

      Declaration
      public void MoveRange(IRange destination, IRange source, ExcelCopyRangeOptions options, bool bUpdateRowRecords)
      Parameters
      TypeNameDescription
      IRangedestination

      Destination range.

      IRangesource

      Source range.

      ExcelCopyRangeOptionsoptions

      Move options.

      System.BooleanbUpdateRowRecords

      Indicates whether row information such as row height, default style, etc. must be copied from cache.

      Exceptions
      TypeCondition
      System.ArgumentException

      When source and destination ranges have different sizes.

      OnDispose()

      This method is called during dispose operation.

      Declaration
      protected override void OnDispose()
      Overrides
      CommonObject.OnDispose()

      OnRealIndexChanged(Int32)

      This method is called after RealIndex property change.

      Declaration
      protected override void OnRealIndexChanged(int iOldIndex)
      Parameters
      TypeNameDescription
      System.Int32iOldIndex

      Old value.

      Overrides
      WorksheetBaseImpl.OnRealIndexChanged(Int32)

      OnValueChanged(Int32, Int32, String)

      Raises the ValueChanged event.

      Declaration
      public void OnValueChanged(int row, int col, string value)
      Parameters
      TypeNameDescription
      System.Int32row

      The row of the change.

      System.Int32col

      The column of the change.

      System.Stringvalue

      The changed value.

      Parse(TextReader, String, Int32, Int32, Boolean)

      Method opens excel file using separator.

      Declaration
      public void Parse(TextReader streamToRead, string separator, int row, int column, bool isValid)
      Parameters
      TypeNameDescription
      System.IO.TextReaderstreamToRead

      Stream to reading.

      System.Stringseparator

      Denotes separator for the CSV file types.

      System.Int32row

      First row to write.

      System.Int32column

      First column to write.

      System.BooleanisValid

      boolen value for the valid document

      ParseAutoFilters()

      Parses autofilters.

      Declaration
      public void ParseAutoFilters()

      ParseData(Dictionary<Int32, Int32>)

      Parses worksheet's data.

      Declaration
      protected override void ParseData(Dictionary<int, int> dictUpdatedSSTIndexes)
      Parameters
      TypeNameDescription
      System.Collections.Generic.Dictionary<System.Int32, System.Int32>dictUpdatedSSTIndexes
      Overrides
      WorksheetBaseImpl.ParseData(Dictionary<Int32, Int32>)

      ParseSheetCF()

      Parses worksheet conditional formats in Excel2007 version.

      Declaration
      public void ParseSheetCF()

      PEExportDataTable(IRange, ExcelExportDataTableOptions, PivotTableImpl)

      Exports worksheet data into a Data Table.

      Declaration
      public DataTable PEExportDataTable(IRange range, ExcelExportDataTableOptions options, PivotTableImpl pivotTable)
      Parameters
      TypeNameDescription
      IRangerange

      Range to export.

      ExcelExportDataTableOptionsoptions

      Export options.

      PivotTableImplpivotTable
      Returns
      TypeDescription
      System.Data.DataTable

      Data Table with worksheet data.

      Remarks

      This method is supported on Windows Forms, WPF, ASP.NET and ASP.NET MVC platforms only.

      PixelsToColumnWidth(Int32)

      Converts the specified column width from pixels to points.

      Declaration
      public double PixelsToColumnWidth(int pixels)
      Parameters
      TypeNameDescription
      System.Int32pixels

      Width in pixels.

      Returns
      TypeDescription
      System.Double

      Width in points.

      PrepareProtectionOptions(ExcelSheetProtection)

      Prepares protection options before setting protection.

      Declaration
      protected override ExcelSheetProtection PrepareProtectionOptions(ExcelSheetProtection options)
      Parameters
      TypeNameDescription
      ExcelSheetProtectionoptions
      Returns
      Type
      ExcelSheetProtection
      Overrides
      WorksheetBaseImpl.PrepareProtectionOptions(ExcelSheetProtection)

      PrepareVariables(ExcelParseOptions, Boolean)

      Prepares variables to worksheet parsing.

      Declaration
      protected override void PrepareVariables(ExcelParseOptions options, bool bSkipParsing)
      Parameters
      TypeNameDescription
      ExcelParseOptionsoptions
      System.BooleanbSkipParsing
      Overrides
      WorksheetBaseImpl.PrepareVariables(ExcelParseOptions, Boolean)

      RaiseColumnWidthChangedEvent(Int32, Double)

      Raises ColumnWidthChanged event.

      Declaration
      protected void RaiseColumnWidthChangedEvent(int iColumn, double dNewValue)
      Parameters
      TypeNameDescription
      System.Int32iColumn

      Zero-based column index.

      System.DoubledNewValue

      New width value.

      RaiseRowHeightChangedEvent(Int32, Double)

      Raises RowHeightChanged event.

      Declaration
      protected void RaiseRowHeightChangedEvent(int iRow, double dNewValue)
      Parameters
      TypeNameDescription
      System.Int32iRow

      Zero-based row index.

      System.DoubledNewValue

      New height.

      ReAddAllStrings()

      Looks through all records and calls AddIncrease for each LabelSST record.

      Declaration
      public void ReAddAllStrings()

      Remove()

      Removes worksheet from parent worksheet collection.

      Declaration
      public void Remove()

      remove_CellValueChanged(RangeImpl.CellValueChangedEventHandler)

      Declaration
      public void remove_CellValueChanged(RangeImpl.CellValueChangedEventHandler value)
      Parameters
      TypeNameDescription
      RangeImpl.CellValueChangedEventHandlervalue

      remove_ColumnWidthChanged(ValueChangedEventHandler)

      Declaration
      public void remove_ColumnWidthChanged(ValueChangedEventHandler value)
      Parameters
      TypeNameDescription
      Syncfusion.XlsIO.Implementation.ValueChangedEventHandlervalue

      remove_ExportDataTableEvent(WorksheetImpl.ExportDataTableEventHandler)

      Declaration
      public void remove_ExportDataTableEvent(WorksheetImpl.ExportDataTableEventHandler value)
      Parameters
      TypeNameDescription
      WorksheetImpl.ExportDataTableEventHandlervalue

      remove_MissingFunction(MissingFunctionEventHandler)

      Declaration
      public void remove_MissingFunction(MissingFunctionEventHandler value)
      Parameters
      TypeNameDescription
      MissingFunctionEventHandlervalue

      remove_RowHeightChanged(ValueChangedEventHandler)

      Declaration
      public void remove_RowHeightChanged(ValueChangedEventHandler value)
      Parameters
      TypeNameDescription
      Syncfusion.XlsIO.Implementation.ValueChangedEventHandlervalue

      RemoveMergedCells(IRange)

      Removes merged cells.

      Declaration
      public void RemoveMergedCells(IRange range)
      Parameters
      TypeNameDescription
      IRangerange

      Represent range of merged cells.

      RemovePanes()

      Removes panes from a worksheet.

      Declaration
      public void RemovePanes()

      Replace(String, DataColumn, Boolean)

      Replaces string with the specified datacolumn value.

      Declaration
      public void Replace(string oldValue, DataColumn column, bool isFieldNamesShown)
      Parameters
      TypeNameDescription
      System.StringoldValue

      The string to be replaced.

      System.Data.DataColumncolumn
      System.BooleanisFieldNamesShown

      Indicates whether field name must be shown.

      Remarks

      This method is supported on Windows Forms, WPF, ASP.NET and ASP.NET MVC platforms only.

      Replace(String, DataTable, Boolean)

      Replaces string with the specified datatable value.

      Declaration
      public void Replace(string oldValue, DataTable newValues, bool isFieldNamesShown)
      Parameters
      TypeNameDescription
      System.StringoldValue

      The string to be replaced.

      System.Data.DataTablenewValues

      Data table with new data.

      System.BooleanisFieldNamesShown

      Indicates whether field name must be shown.

      Remarks

      This method is supported on Windows Forms, WPF, ASP.NET and ASP.NET MVC platforms only.

      Replace(String, DateTime)

      Replaces string with the specified DateTime value.

      Declaration
      public void Replace(string oldValue, DateTime newValue)
      Parameters
      TypeNameDescription
      System.StringoldValue

      The string to be replaced.

      System.DateTimenewValue

      The DateTime to replace all occurrences of oldValue.

      Replace(String, Double)

      Replaces string with the specified double value.

      Declaration
      public void Replace(string oldValue, double newValue)
      Parameters
      TypeNameDescription
      System.StringoldValue

      The string to be replaced.

      System.DoublenewValue

      The double value to replace all occurrences of oldValue.

      Replace(String, Double[], Boolean)

      Replaces specified string with the specified array of double values.

      Declaration
      public void Replace(string oldValue, double[] newValues, bool isVertical)
      Parameters
      TypeNameDescription
      System.StringoldValue

      The string to be replaced.

      System.Double[]newValues

      Array of new values.

      System.BooleanisVertical

      Indicates whether array should be inserted vertically.

      Replace(String, Int32[], Boolean)

      Replaces specified string with the specified array of int values.

      Declaration
      public void Replace(string oldValue, int[] newValues, bool isVertical)
      Parameters
      TypeNameDescription
      System.StringoldValue

      The string to be replaced.

      System.Int32[]newValues

      Array of new values.

      System.BooleanisVertical

      Indicates whether array should be inserted vertically.

      Replace(String, String)

      Replaces string with the specified another string value.

      Declaration
      public void Replace(string oldValue, string newValue)
      Parameters
      TypeNameDescription
      System.StringoldValue

      The string to be replaced.

      System.StringnewValue

      The string to replace all occurrences of oldValue.

      Replace(String, String, ExcelFindOptions)

      Replaces string with the specified another string value based on the ExcelFindOptions.

      Declaration
      public void Replace(string oldValue, string newValue, ExcelFindOptions findOptions)
      Parameters
      TypeNameDescription
      System.StringoldValue

      The string to be replaced.

      System.StringnewValue

      The string to replace all occurrences of oldValue.

      ExcelFindOptionsfindOptions

      Specifies the find options for the oldValue.

      Replace(String, String[], Boolean)

      Replaces specified string with the specified array of string values.

      Declaration
      public void Replace(string oldValue, string[] newValues, bool isVertical)
      Parameters
      TypeNameDescription
      System.StringoldValue

      The string to be replaced.

      System.String[]newValues

      Array of new values.

      System.BooleanisVertical

      Indicates whether array should be inserted vertically.

      SaveAs(Stream, String)

      Saves worksheet as stream using separator. Used only for CSV files.

      Declaration
      public void SaveAs(Stream stream, string separator)
      Parameters
      TypeNameDescription
      System.IO.Streamstream

      Stream to save.

      System.Stringseparator

      Denotes separator for the CSV file types.

      SaveAs(Stream, String, Encoding)

      Saves worksheet as stream using separator with specified encoding. Used only for CSV files.

      Declaration
      public void SaveAs(Stream stream, string separator, Encoding encoding)
      Parameters
      TypeNameDescription
      System.IO.Streamstream

      Stream to save.

      System.Stringseparator

      Denotes separator for the CSV file types.

      System.Text.Encodingencoding

      Encoding to use.

      SaveAs(String, String)

      Saves worksheet with specified file name using separator. Used only for CSV files.

      Declaration
      public void SaveAs(string fileName, string separator)
      Parameters
      TypeNameDescription
      System.StringfileName

      File to save.

      System.Stringseparator

      Denotes separator for the CSV file types.

      Remarks

      This method is supported on Windows Forms, WPF, ASP.NET and ASP.NET MVC platforms only.

      SaveAs(String, String, Encoding)

      Saves worksheet using separator with specified file name and encoding. Used only for CSV files.

      Declaration
      public void SaveAs(string fileName, string separator, Encoding encoding)
      Parameters
      TypeNameDescription
      System.StringfileName

      File to save.

      System.Stringseparator

      Denotes separator for the CSV file types.

      System.Text.Encodingencoding

      Encoding to use.

      Remarks

      This method is supported on Windows Forms, WPF, ASP.NET and ASP.NET MVC platforms only.

      SaveAsHtml(Stream)

      Saves worksheet as stream.

      Declaration
      public void SaveAsHtml(Stream stream)
      Parameters
      TypeNameDescription
      System.IO.Streamstream

      Stream to save.

      Remarks

      This method is supported on Windows Forms, WPF, ASP.NET and ASP.NET MVC platforms only.

      SaveAsHtml(Stream, HtmlSaveOptions)

      Saves worksheet as stream with the specified HtmlSaveOptions.

      Declaration
      public void SaveAsHtml(Stream stream, HtmlSaveOptions saveOption)
      Parameters
      TypeNameDescription
      System.IO.Streamstream

      Stream to save.

      HtmlSaveOptionssaveOption
      Remarks

      This method is supported on Windows Forms, WPF, ASP.NET and ASP.NET MVC platforms only.

      SaveAsHtml(String)

      Saves worksheet with specified filename.

      Declaration
      public void SaveAsHtml(string filename)
      Parameters
      TypeNameDescription
      System.Stringfilename
      Remarks

      This method is supported on Windows Forms, WPF, ASP.NET and ASP.NET MVC platforms only.

      SaveAsHtml(String, HtmlSaveOptions)

      Saves worksheet with specified filename and HtmlSaveOptions.

      Declaration
      public void SaveAsHtml(string fileName, HtmlSaveOptions saveOption)
      Parameters
      TypeNameDescription
      System.StringfileName
      HtmlSaveOptionssaveOption
      Remarks

      This method is supported on Windows Forms, WPF, ASP.NET and ASP.NET MVC platforms only.

      SetActiveCell(IRange)

      Sets active cell

      Declaration
      public void SetActiveCell(IRange range)
      Parameters
      TypeNameDescription
      IRangerange

      Cell to activate.

      SetActiveCell(IRange, Boolean)

      Sets active cell

      Declaration
      public void SetActiveCell(IRange range, bool updateApplication)
      Parameters
      TypeNameDescription
      IRangerange

      Cell to activate.

      System.BooleanupdateApplication

      SetBlank(Int32, Int32)

      Blanks the specified cell.

      Declaration
      public void SetBlank(int iRow, int iColumn)
      Parameters
      TypeNameDescription
      System.Int32iRow

      One-based row index.

      System.Int32iColumn

      One-based column index.

      SetBoolean(Int32, Int32, Boolean)

      Sets boolean value for the specified cell.

      Declaration
      public void SetBoolean(int iRow, int iColumn, bool value)
      Parameters
      TypeNameDescription
      System.Int32iRow

      One-based row index.

      System.Int32iColumn

      One-based column index.

      System.Booleanvalue

      Value to set.

      SetColumnWidth(Int32, Double)

      Sets column width for the specified column.

      Declaration
      public void SetColumnWidth(int iColumn, double value)
      Parameters
      TypeNameDescription
      System.Int32iColumn
      System.Doublevalue

      Width to set.

      SetColumnWidthInPixels(Int32, Int32)

      Sets column width in pixels for the specified column.

      Declaration
      public void SetColumnWidthInPixels(int iColumn, int value)
      Parameters
      TypeNameDescription
      System.Int32iColumn

      One-based column index.

      System.Int32value

      Width in pixels to set.

      SetColumnWidthInPixels(Int32, Int32, Int32)

      Sets column width in pixels to the given number of columns from the specified column index.

      Declaration
      public void SetColumnWidthInPixels(int iStartColumnIndex, int iCount, int value)
      Parameters
      TypeNameDescription
      System.Int32iStartColumnIndex

      Start Column index

      System.Int32iCount

      No of Column to be set width

      System.Int32value

      Value in pixel to set

      SetDefaultColumnStyle(Int32, IStyle)

      Sets the default column style for the specified column.

      Declaration
      public void SetDefaultColumnStyle(int iColumnIndex, IStyle defaultStyle)
      Parameters
      TypeNameDescription
      System.Int32iColumnIndex

      One-based column index.

      IStyledefaultStyle

      Default style.

      SetDefaultColumnStyle(Int32, Int32, IStyle)

      Sets the default column style for the specified starting and ending column.

      Declaration
      public void SetDefaultColumnStyle(int iStartColumnIndex, int iEndColumnIndex, IStyle defaultStyle)
      Parameters
      TypeNameDescription
      System.Int32iStartColumnIndex

      Starting column index.

      System.Int32iEndColumnIndex

      Ending column index.

      IStyledefaultStyle

      Default style.

      SetDefaultRowStyle(Int32, IStyle)

      Sets the default row style for the specified row.

      Declaration
      public void SetDefaultRowStyle(int iRowIndex, IStyle defaultStyle)
      Parameters
      TypeNameDescription
      System.Int32iRowIndex

      One-based row index.

      IStyledefaultStyle

      Default style.

      SetDefaultRowStyle(Int32, Int32, IStyle)

      Sets the default row style for the specified starting and ending row.

      Declaration
      public void SetDefaultRowStyle(int iStartRowIndex, int iEndRowIndex, IStyle defaultStyle)
      Parameters
      TypeNameDescription
      System.Int32iStartRowIndex

      Starting row index.

      System.Int32iEndRowIndex

      Ending row index.

      IStyledefaultStyle

      Default style.

      SetError(Int32, Int32, String)

      Sets error for the specified cell.

      Declaration
      public void SetError(int iRow, int iColumn, string value)
      Parameters
      TypeNameDescription
      System.Int32iRow

      One-based row index.

      System.Int32iColumn

      One-based column index.

      System.Stringvalue

      Error to set.

      SetError(Int32, Int32, String, Boolean)

      Sets error value.

      Declaration
      public void SetError(int iRow, int iColumn, string value, bool isSetText)
      Parameters
      TypeNameDescription
      System.Int32iRow

      Row index.

      System.Int32iColumn

      Column index.

      System.Stringvalue

      Value representing error name.

      System.BooleanisSetText

      Indicates whether to set text.

      SetFormula(Int32, Int32, String)

      Sets formula for the specified cell.

      Declaration
      public void SetFormula(int iRow, int iColumn, string value)
      Parameters
      TypeNameDescription
      System.Int32iRow

      One-based row index.

      System.Int32iColumn

      One-based column index.

      System.Stringvalue

      Formula to set.

      SetFormula(Int32, Int32, String, Boolean)

      Sets formula in the specified cell.

      Declaration
      public void SetFormula(int iRow, int iColumn, string value, bool bIsR1C1)
      Parameters
      TypeNameDescription
      System.Int32iRow

      One-based row index of the cell to set value.

      System.Int32iColumn

      One-based column index of the cell to set value.

      System.Stringvalue

      Formula to set.

      System.BooleanbIsR1C1

      Indicates is formula in R1C1 notation.

      SetFormulaBoolValue(Int32, Int32, Boolean)

      Sets formula bool value for the specified cell.

      Declaration
      public void SetFormulaBoolValue(int iRow, int iColumn, bool value)
      Parameters
      TypeNameDescription
      System.Int32iRow

      One-based row index.

      System.Int32iColumn

      One-based column index.

      System.Booleanvalue

      Represents formula bool value.

      SetFormulaErrorValue(Int32, Int32, String)

      Sets formula error value for the specified cell.

      Declaration
      public void SetFormulaErrorValue(int iRow, int iColumn, string value)
      Parameters
      TypeNameDescription
      System.Int32iRow

      One-based row index.

      System.Int32iColumn

      One-based column index.

      System.Stringvalue

      Represents formula error value.

      SetFormulaNumberValue(Int32, Int32, Double)

      Sets formula number value for the specified cell.

      Declaration
      public void SetFormulaNumberValue(int iRow, int iColumn, double value)
      Parameters
      TypeNameDescription
      System.Int32iRow

      One-based row index.

      System.Int32iColumn

      One-based column index.

      System.Doublevalue

      Represents formula number value.

      SetFormulaStringValue(Int32, Int32, String)

      Sets formula string value for the specified cell.

      Declaration
      public void SetFormulaStringValue(int iRow, int iColumn, string value)
      Parameters
      TypeNameDescription
      System.Int32iRow

      One-based row index.

      System.Int32iColumn

      One-based column index.

      System.Stringvalue

      Represents formula string value.

      SetFormulaValue(Int32, Int32, String)

      Sets formula value in the specified cell.

      Declaration
      public void SetFormulaValue(int iRow, int iColumn, string value)
      Parameters
      TypeNameDescription
      System.Int32iRow

      One-based row index of the cell to set value.

      System.Int32iColumn

      One-based column index of the cell to set value.

      System.Stringvalue

      Value to set.

      SetLabelSSTIndex(Int64, Int32)

      Sets string index in the specified cell.

      Declaration
      public void SetLabelSSTIndex(long cellIndex, int iSSTIndex)
      Parameters
      TypeNameDescription
      System.Int64cellIndex

      Cell index to set sst index in.

      System.Int32iSSTIndex

      SST index to set.

      SetNumber(Int32, Int32, Double)

      Sets number for the specified cell.

      Declaration
      public void SetNumber(int iRow, int iColumn, double value)
      Parameters
      TypeNameDescription
      System.Int32iRow

      One-based row index.

      System.Int32iColumn

      One-based column index.

      System.Doublevalue

      Value to set.

      SetPaneCell(IRange)

      Sets cell at which panes are frozen.

      Declaration
      public void SetPaneCell(IRange range)
      Parameters
      TypeNameDescription
      IRangerange

      SetRowHeight(Int32, Double)

      Sets row height for the specified row.

      Declaration
      public void SetRowHeight(int iRow, double value)
      Parameters
      TypeNameDescription
      System.Int32iRow

      One-based row index.

      System.Doublevalue

      Height to set.

      SetRowHeightInPixels(Int32, Double)

      Sets row height in pixels for the specified row.

      Declaration
      public void SetRowHeightInPixels(int iRowIndex, double value)
      Parameters
      TypeNameDescription
      System.Int32iRowIndex

      One-based row index.

      System.Doublevalue

      Value in pixels to set.

      SetRowHeightInPixels(Int32, Int32, Double)

      Sets row height in pixels to the given number of rows from the specified row index.

      Declaration
      public void SetRowHeightInPixels(int iStartRowIndex, int iCount, double value)
      Parameters
      TypeNameDescription
      System.Int32iStartRowIndex

      Starting row index.

      System.Int32iCount

      No of Row to be set width.

      System.Doublevalue

      Value in pixels to set.

      SetStringPreservedValue(ICombinedRange, Nullable<Boolean>)

      Sets value indicating whether string should be preserved for range.

      Declaration
      public void SetStringPreservedValue(ICombinedRange range, Nullable<bool> value)
      Parameters
      TypeNameDescription
      ICombinedRangerange

      Range to set value for.

      System.Nullable<System.Boolean>value

      Value to set.

      SetText(Int32, Int32, String)

      Sets text for the specified cell.

      Declaration
      public void SetText(int iRow, int iColumn, string value)
      Parameters
      TypeNameDescription
      System.Int32iRow

      One-based row index.

      System.Int32iColumn

      One-based column index.

      System.Stringvalue

      Text to set.

      SetValue(Int32, Int32, String)

      Sets value for the specified cell.

      Declaration
      public void SetValue(int iRow, int iColumn, string value)
      Parameters
      TypeNameDescription
      System.Int32iRow

      One-based row index.

      System.Int32iColumn

      One-based column index.

      System.Stringvalue

      Value to set.

      SetValue(Int32, Int32, String, String)

      Sets the cell value along with the number format based on the specified row and column.

      Declaration
      public void SetValue(int iRow, int iColumn, string value, string numberFormat)
      Parameters
      TypeNameDescription
      System.Int32iRow

      One-based row index.

      System.Int32iColumn

      One-based column index.

      System.Stringvalue

      Value to set.

      System.StringnumberFormat

      The number format to apply if the value is numeric.

      SetValueRowCol(Object, Int32, Int32)

      Sets the value of a cell.

      Declaration
      public void SetValueRowCol(object value, int row, int col)
      Parameters
      TypeNameDescription
      System.Objectvalue

      The value to be set.

      System.Int32row

      The row of the cell.

      System.Int32col

      The column of the cell.

      ShowColumn(Int32, Boolean)

      Shows the specified column.

      Declaration
      public void ShowColumn(int columnIndex, bool isVisible)
      Parameters
      TypeNameDescription
      System.Int32columnIndex

      Index at which the column should be hidden.

      System.BooleanisVisible

      True - Column is visible; False - hidden.

      ShowRange(IRange, Boolean)

      Shows or Hides the specified range.

      Declaration
      public void ShowRange(IRange range, bool isVisible)
      Parameters
      TypeNameDescription
      IRangerange

      Range specifies the particular range to show / hide.

      System.BooleanisVisible

      True - Row is visible; False - hidden.

      ShowRange(IRange[], Boolean)

      Shows or Hides an array of range.

      Declaration
      public void ShowRange(IRange[] ranges, bool isVisible)
      Parameters
      TypeNameDescription
      IRange[]ranges

      Ranges specifies the range array.

      System.BooleanisVisible

      True - Row is visible; False - hidden.

      ShowRow(Int32, Boolean)

      Shows or Hides the specified row.

      Declaration
      public void ShowRow(int rowIndex, bool isVisible)
      Parameters
      TypeNameDescription
      System.Int32rowIndex

      Index at which the row should be hidden.

      System.BooleanisVisible

      True - Row is visible; False - hidden.

      TryCreateRkRecord(Int32, Int32, Double)

      Tries to create Rk record from double value.

      Declaration
      protected RKRecord TryCreateRkRecord(int iRow, int iColumn, double value)
      Parameters
      TypeNameDescription
      System.Int32iRow

      Row index.

      System.Int32iColumn

      Column index.

      System.Doublevalue

      Double that should be converted to RkRecord.

      Returns
      TypeDescription
      Syncfusion.XlsIO.Parser.Biff_Records.RKRecord

      Created RkRecord if succeeded, null otherwise.

      TryCreateRkRecord(Int32, Int32, Double, Int32)

      Tries to create Rk record from double value.

      Declaration
      protected RKRecord TryCreateRkRecord(int iRow, int iColumn, double value, int iXFIndex)
      Parameters
      TypeNameDescription
      System.Int32iRow

      Row index.

      System.Int32iColumn

      Column index.

      System.Doublevalue

      Double that should be converted to RkRecord.

      System.Int32iXFIndex

      Represents xf index.

      Returns
      TypeDescription
      Syncfusion.XlsIO.Parser.Biff_Records.RKRecord

      Created RkRecord if succeeded, null otherwise.

      UpdateExtendedFormatIndex(Dictionary<Int32, Int32>)

      This method should be called immediately after extended format removal.

      Declaration
      public override void UpdateExtendedFormatIndex(Dictionary<int, int> dictFormats)
      Parameters
      TypeNameDescription
      System.Collections.Generic.Dictionary<System.Int32, System.Int32>dictFormats

      Dictionary with updated extended formats.

      Overrides
      WorksheetBaseImpl.UpdateExtendedFormatIndex(Dictionary<Int32, Int32>)

      UpdateExtendedFormatIndex(Int32)

      This method updates indexes to the extended formats after version change.

      Declaration
      public void UpdateExtendedFormatIndex(int maxCount)
      Parameters
      TypeNameDescription
      System.Int32maxCount

      New restriction for maximum possible XF index.

      UpdateFirstLast(Int32, Int32)

      Updates first cell and last cell if necessary.

      Declaration
      protected void UpdateFirstLast(int iRowIndex, int iColumnIndex)
      Parameters
      TypeNameDescription
      System.Int32iRowIndex

      Row index.

      System.Int32iColumnIndex

      Column index.

      UpdateFormula(Int32, Int32, Rectangle, Int32, Rectangle)

      Updates formulas after copy operation.

      Declaration
      public override void UpdateFormula(int iCurIndex, int iSourceIndex, Rectangle sourceRect, int iDestIndex, Rectangle destRect)
      Parameters
      TypeNameDescription
      System.Int32iCurIndex

      Current worksheet index.

      System.Int32iSourceIndex

      Source worksheet index.

      System.Drawing.RectanglesourceRect

      Source rectangle.

      System.Int32iDestIndex

      Destination worksheet index.

      System.Drawing.RectangledestRect

      Destination rectangle.

      Overrides
      WorksheetBaseImpl.UpdateFormula(Int32, Int32, Rectangle, Int32, Rectangle)

      UpdateNamedRangeIndexes(IDictionary<Int32, Int32>)

      Updates indexes to named ranges.

      Declaration
      public void UpdateNamedRangeIndexes(IDictionary<int, int> dicNewIndex)
      Parameters
      TypeNameDescription
      System.Collections.Generic.IDictionary<System.Int32, System.Int32>dicNewIndex

      New indexes.

      UpdateNamedRangeIndexes(Int32[])

      Updates indexes to named ranges.

      Declaration
      public void UpdateNamedRangeIndexes(int[] arrNewIndex)
      Parameters
      TypeNameDescription
      System.Int32[]arrNewIndex

      New indexes.

      UpdateReferenceIndexes(Int32[])

      Updates reference indexes.

      Declaration
      public override void UpdateReferenceIndexes(int[] arrUpdatedIndexes)
      Parameters
      TypeNameDescription
      System.Int32[]arrUpdatedIndexes

      Array with updated indexes.

      Overrides
      WorksheetBaseImpl.UpdateReferenceIndexes(Int32[])

      UpdateStringIndexes(List<Int32>)

      Updates string indexes.

      Declaration
      public void UpdateStringIndexes(List<int> arrNewIndexes)
      Parameters
      TypeNameDescription
      System.Collections.Generic.List<System.Int32>arrNewIndexes

      List with new indexes.

      UpdateStyleIndexes(Int32[])

      Updates style indexes.

      Declaration
      protected override void UpdateStyleIndexes(int[] styleIndexes)
      Parameters
      TypeNameDescription
      System.Int32[]styleIndexes

      Array with changed style indexes.

      Overrides
      WorksheetBaseImpl.UpdateStyleIndexes(Int32[])

      WireParentObject()

      Not implemented.

      Declaration
      public void WireParentObject()

      Events

      CellValueChanged

      Occurs when the value of a cell changes.

      Declaration
      public event RangeImpl.CellValueChangedEventHandler CellValueChanged
      Event Type
      Type
      RangeImpl.CellValueChangedEventHandler

      ColumnWidthChanged

      This event is raised after column width changed.

      Declaration
      public event ValueChangedEventHandler ColumnWidthChanged
      Event Type
      Type
      Syncfusion.XlsIO.Implementation.ValueChangedEventHandler

      ExportDataTableEvent

      Event to choose an action while exporting data from Excel to data table.

      Declaration
      public event WorksheetImpl.ExportDataTableEventHandler ExportDataTableEvent
      Event Type
      Type
      WorksheetImpl.ExportDataTableEventHandler

      MissingFunction

      Event raised when an unknown function is encountered.

      Declaration
      public event MissingFunctionEventHandler MissingFunction
      Event Type
      Type
      MissingFunctionEventHandler

      RowHeightChanged

      This event is raised after column height changed.

      Declaration
      public event ValueChangedEventHandler RowHeightChanged
      Event Type
      Type
      Syncfusion.XlsIO.Implementation.ValueChangedEventHandler

      ValueChanged

      An event raised on the IWorksheet whenever a value changes.

      Declaration
      public event ValueChangedEventHandler ValueChanged
      Event Type
      Type
      Syncfusion.Calculate.ValueChangedEventHandler

      Implements

      System.IDisposable
      ISerializableNamedObject
      INamedObject
      IParseable
      ICloneParent
      IWorksheet
      ITabSheet
      IParentApplication
        Back to top Generated by DocFX
        Copyright © 2001 - 2025 Syncfusion Inc. All Rights Reserved