Aspose.Cells Represents autofiltering for the specified worksheet. [C#] //Creating a file stream containing the Excel file to be opened FileStream fstream = new FileStream("C:\\book1.xls", FileMode.Open); //Instantiating a Workbook object and open a stream. Workbook workbook = new Workbook(fstream); //Accessing the first worksheet in the Excel file Worksheet worksheet = workbook.Worksheets[0]; //Creating AutoFilter by giving the cells range of the heading row worksheet.AutoFilter.Range = "A1:B1"; //Filtering columns with specified values worksheet.AutoFilter.Filter(1, "Bananas"); //Saving the modified Excel file. workbook.Save("C:\\output.xls"); //Closing the file stream to free all resources fstream.Close(); [Visual Basic] 'Creating a file stream containing the Excel file to be opened Dim fstream As FileStream = New FileStream("C:\\book1.xls", FileMode.Open) 'Instantiating a Workbook object Dim workbook As Workbook = New Workbook(fstream) 'Accessing the first worksheet in the Excel file Dim worksheet As Worksheet = workbook.Worksheets(0) 'Creating AutoFilter by giving the cells range of the heading row worksheet.AutoFilter.Range = "A1:B1" 'Filtering columns with specified values Worksheet.AutoFilter.Filter(1, "Bananas") 'Saving the modified Excel file workbook.Save("C:\\output.xls") 'Closing the file stream to free all resources fstream.Close() Sets the range to which the specified AutoFilter applies. Row index. Start column index. End column Index. Adds a filter for a filter column. The integer offset of the field on which you want to base the filter (from the left of the list; the leftmost field is field 0). The specified criteria (a string; for example, "101"). It only can be null or be one of the cells' value in this column. MS Excel 2007 supports multiple selection in a filter column. Adds a date filter. The integer offset of the field on which you want to base the filter (from the left of the list; the leftmost field is field 0). The year. The month. The day. The hour. The minute. The second. If DateTimeGroupingType is Year, only the param year effects. If DateTiemGroupingType is Month, only the param year and month effect. Removes a date filter. The integer offset of the field on which you want to base the filter (from the left of the list; the leftmost field is field 0). The year. The month. The day. The hour. The minute. The second. If DateTimeGroupingType is Year, only the param year effects. If DateTiemGroupingType is Month, only the param year and month effect. Removes a filter for a filter column. The integer offset of the field on which you want to base the filter (from the left of the list; the leftmost field is field 0). The specified criteria (a string; for example, "101"). It only can be null or be one of the cells' value in this column. Filters a list with specified criteria. The integer offset of the field on which you want to base the filter (from the left of the list; the leftmost field is field 0). The specified criteria (a string; for example, "101"). Aspose.Cells will remove all other filter setting on this field as Ms Excel 97-2003. Filter the top 10 item in the list The integer offset of the field on which you want to base the filter (from the left of the list; the leftmost field is field 0). Indicates whether filter from top or bottom Indicates whether the items is percent or count The item count Adds a dynamic filter. The integer offset of the field on which you want to base the filter (from the left of the list; the leftmost field is field 0). Dynamic filter type. Adds a font color filter. The integer offset of the field on which you want to base the filter (from the left of the list; the leftmost field is field 0). The object. Adds a fill color filter. The integer offset of the field on which you want to base the filter (from the left of the list; the leftmost field is field 0). The background pattern type. The foreground color. The background color. Adds an icon filter. The integer offset of the field on which you want to base the filter (from the left of the list; the leftmost field is field 0). The icon set type. The icon id. Only supports to add the icon filter. Not supports checking which row is visible if the filter is icon filter. Match all blank cell in the list. The integer offset of the field on which you want to base the filter (from the left of the list; the leftmost field is field 0). Match all not blank cell in the list. The integer offset of the field on which you want to base the filter (from the left of the list; the leftmost field is field 0). Filters a list with a custom criteria. The integer offset of the field on which you want to base the filter (from the left of the list; the leftmost field is field 0). The filter operator type The custom criteria Filters a list with custom criteria. The integer offset of the field on which you want to base the filter (from the left of the list; the leftmost field is field 0). The filter operator type The custom criteria The filter operator type The custom criteria Unhide all rows. Remove the specific filter. The specific filter index Refresh auto filters to hide or unhide the rows. Returns all hidden rows' indexes. Gets all hidden rows' indexes. If true, hide the filtered rows. Returns all hidden rows indexes. Gets the data sorter. Represents the range to which the specified AutoFilter applies. Gets the collection of the filter columns. Represents the type of auto fitting merged cells. Ignore merged cells. Default. Only expands the height of the first row. Only expands the height of the last row. Only expands the height of each row. Represents the type of auto fitting wrapped text. Works as MS Excel. Auto fit width with the longest paragraph. Utility for instantiating classes of Cells model. Creates a new style. Returns a style object. Represents the text direction type of the chart. Horizontal direction type. Vertical direction type. Rotate 90 angle. Rotate 270 angle. Stacked text. Represents the separator type of DataLabels. NOTE: This member is now obsolete. Instead, please use DataLabelsSeparatorType enum. This property will be removed 12 months later since September 2020. Aspose apologizes for any inconvenience you may have experienced. Represents automatic separator Represents space(" ") Represents comma(",") Represents semicolon(";") Represents period(".") Represents newline("\n") Represents custom separator Represents the type of data plot by row or column. By row. By column. Represents the default edit language. Represents auto detecting edit language according to the text itself. Represents English language. Represents Chinese, Japanese, Korean language. Setting for rendering Emf metafile. Only rendering Emf records. Prefer rendering EmfPlus records. Represents the exported stream provider. Gets the stream. Closes the stream. Callback interface of warning. Our callback only needs to implement the "Warning" method. warning info Type of XML Advanced Electronic Signature (XAdES). XAdES is off. Basic XAdES. Represents a range of characters within the cell text. [C#] //Instantiating a Workbook object Workbook workbook = new Workbook(); //Adding a new worksheet to the Excel object workbook.Worksheets.Add(); //Obtaining the reference of the newly added worksheet by passing its sheet index Worksheet worksheet = workbook.Worksheets[0]; //Accessing the "A1" cell from the worksheet Aspose.Cells.Cell cell = worksheet.Cells["A1"]; //Adding some value to the "A1" cell cell.PutValue("Visit Aspose!"); //getting charactor FontSetting charactor = cell.Characters(6, 7); //Setting the font of selected characters to bold charactor.Font.IsBold = true; //Setting the font color of selected characters to blue charactor.Font.Color = Color.Blue; //Saving the Excel file workbook.Save("D:\\book1.xls"); [VB.NET] 'Instantiating a Workbook object Dim workbook As New Workbook() 'Adding a new worksheet to the Excel object workbook.Worksheets.Add() 'Obtaining the reference of the newly added worksheet by passing its sheet index Dim worksheet As Worksheet = workbook.Worksheets(0) 'Accessing the "A1" cell from the worksheet Dim cell As Aspose.Cells.Cell = worksheet.Cells("A1") 'Adding some value to the "A1" cell cell.PutValue("Visit Aspose!") 'getting charactor Dim charactor As FontSetting = cell.Characters(6, 7) 'Setting the font of selected characters to bold charactor.Font.IsBold = True 'Setting the font color of selected characters to blue charactor.Font.Color = Color.Blue 'Saving the Excel file workbook.Save("D:\book1.xls") Sets the preset WordArt style. The preset WordArt style. Only for the text of shape/chart. Gets the type of text node. Gets the start index of the characters. Gets the length of the characters. Returns the font of this object. Returns the text options. Represents options when parsing formula. Whether the formula is locale formatted. Default is false. Whether the formula is R1C1 reference style. Default is false. Whether check addins in existing external links of current workbook for user defined function without external link. Default is true(if user defined function matches one addin in existing external links, then take it as the addin). Whether parse given formula. Default is true. If it is false, then given formula string will be kept as it is for the cell until user call other methods to parse them or parsed formula data is required by other operations such as calculating formulas. Represents cells data handler for reading large spreadsheet files in light weight mode. When reading a workbook by this mode, will be checked when reading every worksheet in the workbook. For one sheet, if gives true, then all data and properties of rows/cells of this sheet will be checked and processed by the implementation of this interface. For every row, will be called to check whether it need to be processed. If a row needs to be processed, properties of this row will be read firstly and user can access its properties by . if row's cells need to be processed too, then should returns true and then will be called for every existing cell in this row to check whether one cell need to be processed. If one cell needs to be processed, then will be called to process the cell by the implementation of this interface. Starts to process a worksheet. It will be called before reading cells data of a worksheet. the worksheet to read cells data. whether this sheet's cells data needs to be processed. false to ignore this sheet. Prepares to process a row. the index of next row to be processed whether this row(properties or cells data) needs to be processed. false to ignore this row and its cells and check the next row. Starts to process one row. It will be called after row's properties such as height, style, ...etc. have been read. However, cells in this row has not been read yet. Row object which is being processed currently. whether this row's cells need to be processed. false to ignore all cells in this row. Prepares to process a cell. It will be called when reaching an existing cell in current row. Current row is the row of last call of . column index of the cell to be processed whether this cell needs to be processed. false to ignore the cell and check the next one until reach the end of cells data of current row Starts to process one cell. It will be called after one cell's data has been read. Cell object which is being processed currently whether this cell needs to be kept in cells model of current sheet. Commonly it should be false so that all cells will not be kept in memory after being processed and then memory be saved. For some special purpose such as user needs to access some cells later after the whole workbook having been processed, user can make this method return true to keep those special cells in Cells model and access them later by APIs such as Cells[row, column]. However, keeping cells data in Cells model will requires more memory and if all cells are kept then reading template file in LightCells mode will become same with reading it in normal way. Represents Data provider for saving large spreadsheet files in light weight mode. When saving a workbook by this mode, will be checked when saving every worksheet in the workbook. For one sheet, if gives true, then all data and properties of rows/cells of this sheet to be saved will be provided by the implementation of this interface. In the first place, will be called to get the next row index to be saved. If a valid row index is returned(the row index must be in ascending order for the rows to be saved), then a Row object representing this row will be provided for implementation to set its properties by . For one row, will be checked firstly. If a valid column index be returned(the column index must be in ascending order for all cells of one row to be saved), then a Cell object representing this cell will be provided for implementation to set its data and properties by . After data of this cell is set, this cell will be saved directly to the generated spreadsheet file and the next cell will be checked and processed. Starts to save a worksheet. It will be called at the beginning of saving a worksheet during saving a workbook. If the provider needs to refer to sheetIndex later in startRow(Row) or startCell(Cell) method, that is, if the process needs to know which worksheet is being processed, the implementation should retain the sheetIndex value here. index of current sheet to be saved. true if this provider will provide data for the given sheet; false if given sheet should use its normal data model(Cells). Gets the next row to be saved. It will be called at the beginning of saving a row and its cells data(before ). the next row index to be saved. -1 means the end of current sheet data has been reached and no further row of current sheet to be saved. Starts to save data of one row. It will be called at the beginning of saving a row and its cells data. If current row has some custom properties such as height, style, ...etc., implementation should set those properties to given Row object here. Row object for implementation to fill data. Its row index is the returned value of latest call of . If the row has been initialized in the inner cells model, the existing row object will be used. Otherwise a temporary Row object will be used for implementation to fill data. Gets next cell to be saved. It will be called at the beginning of saving one cell. column index of the next cell to be saved. -1 means the end of current row data has been reached and no further cell of current row to be saved. Starts to save data of one cell. Cell object for implementation to fill data. Its column index is the returned value of latest call of . If the cell has been initialized in the inner cells model, the existed cell object will be used. Otherwise a temporary Cell object will be used for implementation to fill data. Checks whether the current string value of cell needs to be gathered into a global pool. Gathering string values will take advantage only when there are many duplicated string values for the cells provided by this implementation. In this situation gathering string will save much memory and generate smaller resultant file. If there are many string values for the cells provided by LightCellsDataProvider but few of them are same, gathering string will cost more memory and time and has no advantage for the resultant file. true if string value need to be gathered into a global pool for the resultant file. Represents the filter that provides options for loading data when loading workbook from template. User may specify the filter options or implement their own LoadFilter to specify how to load data. The following example shows how to determine the filter options according to worksheet's properties. [C#] Workbook wb = new Workbook(template, new LoadOptions() { LoadFilter = new LoadFilterSheet() }); //Custom LoadFilter implementation class LoadFilterSheet : LoadFilter { public override void StartSheet(Worksheet sheet) { if (sheet.Name == "Sheet1") { LoadDataFilterOptions = Aspose.Cells.LoadDataFilterOptions.All; } else { LoadDataFilterOptions = Aspose.Cells.LoadDataFilterOptions.None; } } } Constructs one LoadFilter with default filter options LoadDataFilterOptions.All. Constructs one LoadFilter with given filter options. the default filter options Prepares filter options before loading given worksheet. User's implementation of LoadFilter can change the LoadDataFilterOptions here to denote how to load data for this worksheet. The worksheet to be loaded. There are only few properties can be used for the given worksheet object here because most data and properties have not been loaded. The available properties are: Name, Index, VisibilityType The filter options to denote what data should be loaded. Specifies the sheets(indices) and order to be loaded. Default is null, that denotes to load all sheets in the default order in template file. If not null and some sheet's index is not in the returned array, then the sheet will not be loaded. Represents options when importing a html file. Common options for loading text values Represents the options of loading the file. Creates an options of loading the file. Creates an options of loading the file. The loading format. Sets the default print paper size from default printer's setting. The default paper size. If there is no setting about paper size,MS Excel will use default printer's setting. Gets the load format. Gets and set the password of the workbook. Indicates whether parsing the formula when reading the file. Only applies for Excel Xlsx, Xltx, Xltm and Xlsm file because the formulas in the files are stored with a string formula. Indicates whether parsing pivot cached records when loading the file. The default value is false. Only applies for Excel Xlsx, Xltx, Xltm , Xlsm and xlsb file Gets or sets the user interface language of the Workbook version based on CountryCode that has saved the file. Gets or sets the system regional settings based on CountryCode at the time the file was loaded. If you do not want to use the region saved in the file, please reset it after reading the file. Gets or sets the system culture info at the time the file was loaded. Sets the default standard font name Sets the default standard font size. Gets and sets the interrupt monitor. Ignore the data which are not printed if directly printing the file Only for xlsx file. Check whether data is valid in the template file. Whether check restriction of excel file when user modify cells related objects. For example, excel does not allow inputting string value longer than 32K. When you input a value longer than 32K such as by Cell.PutValue(string), if this property is true, you will get an Exception. If this property is false, we will accept your input string value as the cell's value so that later you can output the complete string value for other file formats such as CSV. However, if you have set such kind of value that is invalid for excel file format, you should not save the workbook as excel file format later. Otherwise there may be unexpected error for the generated excel file. Whether keep the unparsed data in memory for the Workbook when it is loaded from template file. Default is true. For scenarios that user only needs to read some contents from template file and does not need to save the workbook back, set this property as false may improve performance, especially when using it together with some kind of LoadFilter, The filter to denote how to load data. The data handler for processing cells data when reading template file. Gets or sets the memory usage options. Gets or sets warning callback. Gets and sets the auto fitter options Only for xlsx file now. Gets and sets individual font configs. Only works for the which uses this to load.> Gets and sets the default encoding. Only applies for csv file. Indicates the strategy to apply style for parsed values when converting string value to number or datetime. Gets or sets a value that indicates whether the string in text file is converted to numeric data. Gets or sets a value that indicates whether the string in text file is converted to date data. Indicates whether not parsing a string value if the length is 15. Creates an options of loading the file. Creates an options of loading the file. The loading format. The directory that the attached files will be saved to. NOTE: This member is now obsolete. Instead, please use HtmlLoadOptions.StreamProvider property. This property will be removed 12 months later since December 2014. Aspose apologizes for any inconvenience you may have experienced. Indicates whether importing formulas if the original html file contains formulas Indicates whether support the layout of <div> tag when the html file contains <div> tags. The default value is false. Indicates whether delete redundant spaces when the text wraps lines using <br>tag.The default value is false. Indicates whether auto-fit columns and rows. The default value is false. if true, convert string to formula when string value starts with character '=',the default value is false. Gets or sets the StreamProviderImportHtmlFile for importing objects. Gets the program id of creating the file. Only for MHT files. Specifies the way are exported to PDF file. No custom properties are exported. Custom properties are exported as entries in Info dictionary. Custom properties with the following names are not exported: "Title", "Author", "Subject", "Keywords", "Creator", "Producer", "CreationDate", "ModDate", "Trapped". Represents the regex type for searching string. Not regex, take the searched value as plain string. Windows wildcards. Same with wildcards('*','?','~') in ms excel. Common regular expression. Represents type of copying format when inserting rows. Formats same as above row. Formats same as below row. Clears formatting. Represents the person who creates the threaded comments; Gets and sets the name. Gets and sets the id of the user. Gets the id of the provider. Represents all persons who . Adds one thread comment person. The name of the person. The id of the provider Gets and sets the current user. Gets the person who create threaded comments. The index Gets the person who create threaded comments. The index Represents Custom xml shape ,such as Ink. Represents the msodrawing object. Converting smart art to grouped shapes. Brings the shape to the front or sends the shape to back. If it's less than zero, sets the shape to back. If it's greater than zero, brings the shape to front. Gets the value of locked property. The type of the shape locked property. Returns the value of locked property. Set the locked property. The locked type. The value of the property. Adds a hyperlink to the shape. Address of the hyperlink. Return the new hyperlink object. Remove the hyperlink of the shape. Moves the shape to a specified range. Upper left row index. Upper left column index. Lower right row index Lower right column index Moves the picture to the top-right corner. the row index. the column index. Creates the shape image and saves it to a stream in the specified format. The output stream. The format in which to save the image.

The following formats are supported: .bmp, .gif, .jpg, .jpeg, .tiff, .emf.

Saves the shape to a file. Saves the shape to a stream. Returns the bitmap object of the shape . Gets the range linked to the control's value. Whether the formula needs to be formatted as R1C1. Whether the formula needs to be formatted by locale. The range linked to the control's value. Sets the range linked to the control's value. The range linked to the control's value. Whether the formula needs to be formatted as R1C1. Whether the formula needs to be formatted by locale. Gets the range used to fill the control. Whether the formula needs to be formatted as R1C1. Whether the formula needs to be formatted by locale. The range used to fill the control. Sets the range used to fill the control. The range used to fill the control. Whether the formula needs to be formatted as R1C1. Whether the formula needs to be formatted by locale. Update the selected value by the value of the linked cell. Recalculate the text area Text's Size in an array(width and height). Formats some characters with the font setting. The start index. The length. The font setting. The flag of the font setting. Formats some characters with the font setting. The start index. The length. The font setting. NOTE: This member is now obsolete. Instead, please use Shape.FormatCharacters(int startIndex, int length, Font font, StyleFlag flag) method. This property will be removed 12 months later since March 2016. Aspose apologizes for any inconvenience you may have experienced. Returns a Characters object that represents a range of characters within the text. The index of the start of the character. The number of characters. Characters object. This method only works on shape with title. Returns all Characters objects that represents a range of characters within the text . All Characters objects Remove activeX control. Gets and sets the name of macro. Indicates whether the shape only contains an equation. Indicates whether the shape is smart art. Only for ooxml file. Returns the position of a shape in the z-order. Gets and sets the name of the shape. Returns or sets the descriptive (alternative) text string of the object. Specifies the title (caption) of the current shape object. Returns a MsoLineFormat object that contains line formatting properties for the specified shape. NOTE: This member is now obsolete. Instead, please use Shape.Line property. This property will be removed 12 months later since July 2016. Aspose apologizes for any inconvenience you may have experienced. Returns a MsoFillFormat object that contains fill formatting properties for the specified shape. NOTE: This member is now obsolete. Instead, please use Shape.Fill property. This property will be removed 12 months later since July 2016. Aspose apologizes for any inconvenience you may have experienced. Represents the setting of the shape's formatting. NOTE: This member is now obsolete. Instead, please use Shape.Fill and Shape.Line properties. This property will be removed 6 months later since August 2016. Aspose apologizes for any inconvenience you may have experienced. Gets line style Returns a object that contains fill formatting properties for the specified shape. Represents a object that specifies shadow effect for the chart element or shape. Represents a object that specifies reflection effect for the chart element or shape. Represents a object that specifies glow effect for the chart element or shape. Gets and sets the radius of blur to apply to the edges, in unit of points. Gets and sets 3d format of the shape. Returns a TextFrame object that contains the alignment and anchoring properties for the specified shape. NOTE: This member is now obsolete. Instead, please use Shape.TextBody.TextAlignment property. This property will be removed 12 months later since May 2016. Aspose apologizes for any inconvenience you may have experienced. Gets and sets the options of the picture format. Indicates whether the object is visible. True means that don't allow changes in aspect ratio. Gets and sets the rotation of the shape. Gets the hyperlink of the shape. Gets the identifier of this shape. Specifies an optional string that an application can use to Identify the particular shape. Specifies an optional number that an application can use to associate the particular shape with a defined shape type. Indicates whether the shape is a group. Indicates whether this shape is a word art. Only for the Legacy Shape of xls file. Returns a TextEffectFormat object that contains text-effect formatting properties for the specified shape. Applies to Shape objects that represent WordArt. True if the object is locked, False if the object can be modified when the sheet is protected. True if the object is printable Gets and sets mso drawing type. Gets the auto shape type. Represents the way the drawing object is attached to the cells below it. The property controls the placement of an object on a worksheet. Represents upper left corner row index. If the shape is in the shape or in the group , UpperLeftRow will be ignored. Gets or sets the shape's vertical offset from its upper left corner row. The range of value is 0 to 256. Represents upper left corner column index. Gets or sets the shape's horizontal offset from its upper left corner column. The range of value is 0 to 1024. Represents lower right corner row index. Gets or sets the shape's vertical offset from its lower right corner row. The range of value is 0 to 256. Represents lower right corner column index. Gets or sets the shape's horizontal offset from its lower right corner column. The range of value is 0 to 1024. Represents the width of the shape's horizontal offset from its lower right corner column, in unit of pixels. Represents the width of the shape's vertical offset from its lower bottom corner row, in unit of pixels. Represents the width of shape, in unit of pixels. Represents the width of the shape, in unit of inch. Represents the width of the shape, in unit of point. Represents the width of the shape, in unit of centimeters. Represents the height of shape, in unit of pixel. Represents the height of the shape, in unit of inches. Represents the height of the shape, in unit of points. Represents the height of the shape, in unit of inches. Represents the horizontal offset of shape from its left column, in unit of pixels. Represents the horizontal offset of shape from its left column, in unit of inches. Represents the horizontal offset of shape from its left column, in unit of centimeters. Represents the vertical offset of shape from its top row, in unit of pixels. If the shape is in the chart, represents the vertical offset of shape from its top border. Represents the vertical offset of shape from its top row, in unit of inches. Represents the vertical offset of shape from its top row, in unit of centimeters. Gets and sets the vertical offset of shape from worksheet top border, in unit of pixels. Gets and sets the horizonal offset of shape from worksheet left border. Gets and sets the horizontal offset of shape from worksheet left border,in unit of pixels. Gets and sets the vertical offset of shape from worksheet top border,in unit of pixels. Gets and sets the width scale, in unit of percent of the original picture width. If the shape is not picture ,the WidthScale property only returns 100; Gets and sets the height scale,in unit of percent of the original picture height. If the shape is not picture ,the HeightScale property only returns 100; Represents the vertical offset of shape from the top border of the parent shape, in unit of 1/4000 of height of the parent shape. Only Applies when this shape in the group or chart. Represents the horizontal offset of shape from the left border of the parent shape, in unit of 1/4000 of width of the parent shape. Only Applies when this shape in the group or chart. Represents the width of the shape, in unit of 1/4000 of the parent shape. Only Applies when this shape in the group or chart. Represents the vertical offset of shape from the top border of the parent shape, in unit of 1/4000 of height of the parent shape.. Only Applies when this shape in the group or chart. Gets the group shape which contains this shape. Gets the auto shape type. Gets and sets the line border of the shape is visible. Indicates whether the fill format is visible. Gets and sets whether shape is horizontally flipped . Gets and sets whether shape is vertically flipped . Get the actual bottom row. Get the connection points Indicates whether shape is relative to original picture size. Gets or sets the worksheet range linked to the control's value. Gets or sets the worksheet range used to fill the specified combo box. Gets and sets the preset text shape type. Gets and sets the setting of the shape's text. Represents the font of shape. Represents the text options of the shape. Represents the string in this TextBox object. Whether or not the text is rich text. Gets and sets the html string which contains data and some formats in this textbox. Gets and sets the text vertical overflow type of the shape which contains text. Gets and sets the text horizontal overflow type of the shape which contains text. Gets and sets the text wrapped type of the shape which contains text. Gets and sets the text orientation type of the shape. Gets and sets the text horizontal alignment type of the shape. Gets and sets the text vertical alignment type of the shape. Gets/Sets the direction of the text flow for this object. Gets the data of control. Gets the ActiveX control. Gets the paths of a custom geometric shape. Gets the geometry Represents the threaded comment. Gets the row index of the comment. Gets the column index of the comment. Gets and sets the text of the comment. Gets the author of the comment. Gets and sets the created time of this threaded comment. Represents the list of threaded comments. Adds a threaded comment; The text of the threaded comment. The author of the threaded comment Gets the threaded comment by the specific index. The index Represents the calculation relevant data about one cell which is being calculated. All objects provided by this class are for "read" purpose only. User should not change any data in the Workbook during the formula calculation process, Otherwise unexpected result or Exception may be caused. Sets the calculated value for the cell. User can set the calculated result by this method to ignore the automatic calculation for the cell. Gets the Workbook object. Gets the Worksheet object where the cell is in. Gets the row index of the cell. Gets the column index of the cell. Gets the Cell object which is being calculated. Represents Cell Watch Item in the 'watch window'. Gets and sets the row of the cell. Gets and sets the column of the cell. Gets and sets the name of the cell. Represents the collection of cells on this worksheet being watched in the 'watch window'. Adds with row and column. The row index. The column index. Returns the position of this item in the collection. Adds Gets and sets by index. The index. Gets and sets by the name of the cell. The name of the cell. Represents data table. Move the cursor to the front of this object, just before the first row. Moves the cursor down one row from its current position. if the new current row is valid; false if there are no more rows Gets the columns' name. Gets the count of the records. -1 for unknown records count. Gets the data stored in the column specified by index. The zero-based index of the column. Gets the data stored in the column specified by column name. The column name. Encapsulates the object that represents the frame object which contains text. Encapsulates the object that represents the frame object in a chart. Set position of the frame to automatic Indicates whether the size of the plot area size includes the tick marks, and the axis labels. False specifies that the size shall determine the size of the plot area, the tick marks, and the axis labels. Only for Xlsx file. Gets the border. Gets the area. Gets a object of the specified ChartFrame object. NOTE: This member is now obsolete. Instead, please use ChartFrame.Font property. This property will be removed 12 months later since JANUARY 2012. Aspose apologizes for any inconvenience you may have experienced. Gets a object of the specified ChartFrame object. True if the text in the object changes font size when the object size changes. The default value is True. Gets and sets the display mode of the background Gets and sets the display mode of the background NOTE: This member is now obsolete. Instead, please use ChartFrame.BackgroundMode property. This property will be removed 12 months later since JANUARY 2012. Aspose apologizes for any inconvenience you may have experienced. Indicates whether the chart frame is automatic sized. Gets or sets the x coordinate of the upper left corner in units of 1/4000 of the chart area. How to convert units of 1/4000 to pixels? X In Pixels = X * Chart.ChartObject.Width / 4000; Gets or sets the y coordinate of the upper left corner in units of 1/4000 of the chart area. How to convert units of 1/4000 to pixels? Y In Pixels = Y * Chart.ChartObject.Height / 4000; Gets or sets the height of frame in units of 1/4000 of the chart area. How to convert units of 1/4000 to pixels? Height In Pixels = Y * Chart.ChartObject.Height / 4000; Gets or sets the width of frame in units of 1/4000 of the chart area. How to convert units of 1/4000 to pixels? Width In Pixels = Width * Chart.ChartObject.Height / 4000; True if the frame has a shadow. Gets the object. Indicates whether default position(DefaultX, DefaultY, DefaultWidth and DefaultHeight) are set. Represents x of default position Represents y of default position Represents width of default position Represents height of default position Returns a Characters object that represents a range of characters within the text. The index of the start of the character. The number of characters. Characters object. Indicates the text is auto generated. Indicates whether this data labels is deleted. Gets and sets the text horizontal alignment. Gets or sets the text vertical alignment of text. Represents text rotation angle.
0: Not rotated.

255: Top to Bottom.

-90: Downward.

90: Upward.
Gets or sets the text of a frame's title. Gets and sets a reference to the worksheet. Represents text reading order. NOTE: This member is now obsolete. Instead, please use ChartTextFrame.ReadingOrder property. This property will be removed 12 months later since March 2020. Aspose apologizes for any inconvenience you may have experienced. Represents text reading order. Gets and sets the direction of text. Gets or sets a value indicating whether the text is wrapped. Gets or sets whether a shape should be auto-fit to fully contain the text described within it. Auto-fitting is when text within a shape is scaled in order to contain all the text inside. Memory usage options. Default option for cells model. This option is applied for all versions. Memory performance preferrable. With this option the data will be held in compact format so for common scenarios it may give lower memory cost. However, this option also may degrade R/W performance a bit in some special cases. This option is available since v 8.0.0. Specifies the preset shape geometry that is to be used for a chart. Represents the rectangle shape. Represents the round rectangle shape. Represents the ellipse shape. Represents the right arrow callout shape. Represents the down arrow callout shape. Represents the left arrow callout shape. Represents the up arrow callout shape. Represents the wedge rectangle callout shape. Represents the wedge round rectangle callout shape. Represents the wedge ellipse callout shape. Represents the line callout shape. Represents the bent line callout shape. Represents the line with accent bar callout shape. Represents the bent line with accent bar callout shape. Represents the region type of the map chart. Automatic Only Data. Country region list. World. Represents projection type of the map chart. Automatic Mercator Miller Albers Represents the layout of map chart's labels. Only best fit. Shows all labels. No labels. Represents quartile calculation methods. The quartile calculation includes the median when splitting the dataset into quartiles. The quartile calculation excludes the median when splitting the dataset into quartiles. Indicates whether showing connector lines between data points. Indicates whether showing the line connecting all mean points. Indicates whether showing outlier data points. Indicates whether showing markers denoting the mean. Indicates whether showing non-outlier data points. Represents the index of a subtotal data point. Represents the statistical properties for the series. Gets and sets the layout of map labels. Gets and sets the region type of the map. Gets and sets the projection type of the map. Represents conditional formatting condition. [C#] //Instantiating a Workbook object Workbook workbook = new Workbook(); Worksheet sheet = workbook.Worksheets[0]; //Adds an empty conditional formatting int index = sheet.ConditionalFormattings.Add(); FormatConditionCollection fcs = sheet.ConditionalFormattings[index]; //Sets the conditional format range. CellArea ca = new CellArea(); ca.StartRow = 0; ca.EndRow = 0; ca.StartColumn = 0; ca.EndColumn = 0; fcs.AddArea(ca); ca = new CellArea(); ca.StartRow = 1; ca.EndRow = 1; ca.StartColumn = 1; ca.EndColumn = 1; fcs.AddArea(ca); //Adds condition. int conditionIndex = fcs.AddCondition(FormatConditionType.CellValue, OperatorType.Between, "=A2", "100"); //Adds condition. int conditionIndex2 = fcs.AddCondition(FormatConditionType.CellValue, OperatorType.Between, "50", "100"); //Sets the background color. FormatCondition fc = fcs[conditionIndex]; fc.Style.BackgroundColor = Color.Red; //Saving the Excel file workbook.Save("C:\\output.xls"); [VB.NET] 'Instantiating a Workbook object Dim workbook As Workbook = New Workbook() Dim sheet As Worksheet = workbook.Worksheets(0) ' Adds an empty conditional formatting Dim index As Integer = sheet.ConditionalFormattings.Add() Dim fcs As FormatConditionCollection = sheet.ConditionalFormattings(index) 'Sets the conditional format range. Dim ca As CellArea = New CellArea() ca.StartRow = 0 ca.EndRow = 0 ca.StartColumn = 0 ca.EndColumn = 0 fcs.AddArea(ca) ca = New CellArea() ca.StartRow = 1 ca.EndRow = 1 ca.StartColumn = 1 ca.EndColumn = 1 fcs.AddArea(ca) 'Adds condition. Dim conditionIndex As Integer = fcs.AddCondition(FormatConditionType.CellValue, OperatorType.Between, "=A2", "100") 'Adds condition. Dim conditionIndex2 As Integer = fcs.AddCondition(FormatConditionType.CellValue, OperatorType.Between, "50", "100") 'Sets the background color. Dim fc As FormatCondition = fcs(conditionIndex) fc.Style.BackgroundColor = Color.Red 'Saving the Excel file workbook.Save("C:\output.xls") Gets the value or expression associated with this format condition. Whether the formula needs to be formatted as R1C1. Whether the formula needs to be formatted by locale. The value or expression associated with this format condition. Gets the value or expression associated with this format condition. Whether the formula needs to be formatted as R1C1. Whether the formula needs to be formatted by locale. The value or expression associated with this format condition. Gets the value or expression of the conditional formatting of the cell. Whether the formula needs to be formatted as R1C1. Whether the formula needs to be formatted by locale. The row index. The column index. The value or expression associated with the conditional formatting of the cell. The given cell must be contained by this conditional formatting, otherwise null will be returned. Gets the value or expression of the conditional formatting of the cell. Whether the formula needs to be formatted as R1C1. Whether the formula needs to be formatted by locale. The row index. The column index. The value or expression associated with the conditional formatting of the cell. The given cell must be contained by this conditional formatting, otherwise null will be returned. Sets the value or expression associated with this format condition. The value or expression associated with this format condition. If the input value starts with '=', then it will be taken as formula. Otherwise it will be taken as plain value(text, number, bool). For text value that starts with '=', user may input it as formula in format: "=\"=...\"". The value or expression associated with this format condition. The input format is same with formula1 Whether the formula is R1C1 formula. Whether the formula is locale formatted. Sets the value or expression associated with this format condition. The value or expression associated with this format condition. If the input value starts with '=', then it will be taken as formula. Otherwise it will be taken as plain value(text, number, bool). For text value that starts with '=', user may input it as formula in format: "=\"=...\"". Whether the formula is R1C1 formula. Whether the formula is locale formatted. Sets the value or expression associated with this format condition. The value or expression associated with this format condition. If the input value starts with '=', then it will be taken as formula. Otherwise it will be taken as plain value(text, number, bool). For text value that starts with '=', user may input it as formula in format: "=\"=...\"". Whether the formula is R1C1 formula. Whether the formula is locale formatted. Gets the formula of the conditional formatting of the cell. The row index. The column index. The formula. Gets the formula of the conditional formatting of the cell. The row index. The column index. The formula. Gets and sets the value or expression associated with conditional formatting. Please add all areas before setting formula. For setting formula for this condition, if the input value starts with '=', then it will be taken as formula. Otherwise it will be taken as plain value(text, number, bool). For text value that starts with '=', user may input it as formula in format: "=\"=...\"". Gets and sets the value or expression associated with conditional formatting. Please add all areas before setting formula. For setting formula for this condition, if the input value starts with '=', then it will be taken as formula. Otherwise it will be taken as plain value(text, number, bool). For text value that starts with '=', user may input it as formula in format: "=\"=...\"". Gets and sets the conditional format operator type. True, no rules with lower priority may be applied over this rule, when this rule evaluates to true. Only applies for Excel 2007; The priority of this conditional formatting rule. This value is used to determine which format should be evaluated and rendered. Lower numeric values are higher priority than higher numeric values, where '1' is the highest priority. Gets or setts style of conditional formatted cell ranges. Gets and sets whether the conditional format Type. Get the conditional formatting's "IconSet" instance. The default instance's IconSetType is TrafficLights31. Valid only for type = IconSet. Get the conditional formatting's "DataBar" instance. The default instance's color is blue. Valid only for type is DataBar. Get the conditional formatting's "ColorScale" instance. The default instance is a "green-yellow-red" 3ColorScale . Valid only for type = ColorScale. Get the conditional formatting's "Top10" instance. The default instance's rule highlights cells whose values fall in the top 10 bracket. Valid only for type is Top10. Get the conditional formatting's "AboveAverage" instance. The default instance's rule highlights cells that are above the average for all values in the range. Valid only for type = AboveAverage. The text value in a "text contains" conditional formatting rule. Valid only for type = containsText, notContainsText, beginsWith and endsWith. The default value is null. The applicable time period in a "date occurring¡­" conditional formatting rule. Valid only for type = timePeriod. The default value is TimePeriodType.Today. PdfBookmarkEntry is an entry in pdf bookmark. if Text property of current instance is null or "", current instance will be hidden and children will be inserted on current level. [C#] Workbook workbook = new Workbook(); workbook.Worksheets.Add(); workbook.Worksheets.Add(); Cell cellInPage1 = workbook.Worksheets[0].Cells["A0"]; Cell cellInPage2 = workbook.Worksheets[1].Cells["A0"]; Cell cellInPage3 = workbook.Worksheets[2].Cells["A0"]; cellInPage1.PutValue("page1"); cellInPage2.PutValue("page2"); cellInPage3.PutValue("page3"); PdfBookmarkEntry pbeRoot = new PdfBookmarkEntry(); pbeRoot.Text = "root"; // if pbeRoot.Text = null, all children of pbeRoot will be inserted on the top level in the bookmark. pbeRoot.Destination = cellInPage1; pbeRoot.SubEntry = new ArrayList(); pbeRoot.IsOpen = false; PdfBookmarkEntry subPbe1 = new PdfBookmarkEntry(); subPbe1.Text = "section1"; subPbe1.Destination = cellInPage2; PdfBookmarkEntry subPbe2 = new PdfBookmarkEntry(); subPbe2.Text = "section2"; subPbe2.Destination = cellInPage3; pbeRoot.SubEntry.Add(subPbe1); pbeRoot.SubEntry.Add(subPbe2); workbook.SaveOptions.PdfBookmark = pbeRoot; workbook.Save("c:\\Test.pdf"); [VB] Dim workbook As Workbook = New Workbook workbook.Worksheets.Add("sheet2") workbook.Worksheets.Add("sheet3") Dim cells As Cells = workbook.Worksheets(0).Cells Dim cellInPage1 As Cell = cells("A0") cellInPage1.PutValue("Page1") cells = workbook.Worksheets(1).Cells Dim cellInPage2 As Cell = cells("A0") cellInPage2.PutValue("Page2") cells = workbook.Worksheets(2).Cells Dim cellInPage3 As Cell = cells("A0") cellInPage3.PutValue("Page3") Dim pbeRoot As PdfBookmarkEntry = New PdfBookmarkEntry() pbeRoot.Text = "root" pbeRoot.Destination = cellInPage1 pbeRoot.SubEntry = New ArrayList pbeRoot.IsOpen = False Dim subPbe1 As PdfBookmarkEntry = New PdfBookmarkEntry() subPbe1.Text = "section1" subPbe1.Destination = cellInPage2 Dim subPbe2 As PdfBookmarkEntry = New PdfBookmarkEntry() subPbe2.Text = "section2" subPbe2.Destination = cellInPage3 pbeRoot.SubEntry.Add(subPbe1) pbeRoot.SubEntry.Add(subPbe2) workbook.SaveOptions.PdfBookmark = pbeRoot workbook.Save("c:\\Test.pdf") Title of a bookmark. The cell to which the bookmark link. Gets or sets name of destination. If destination name is set, the destination will be defined as a named destination with this name. SubEntry of a bookmark. When this property is true, the bookmarkentry will expand, otherwise it will collapse. When this property is true, the bookmarkentry will collapse, otherwise it will expand. Represents user's custom calculation engine to extend the default calculation engine of Aspose.Cells. [C#] public class MyEngine : AbstractCalculationEngine { public override void Calculate(CalculationData data) { string funcName = data.FunctionName.ToUpper(); if ("MYFUNC".Equals(funcName)) { //do calculation for MYFUNC here int count = data.ParamCount; object res = null; for (int i = 0; i < count; i++) { object pv = data.GetParamValue(i); if (pv is ReferredArea) { ReferredArea ra = (ReferredArea)pv; pv = ra.GetValue(0, 0); } //process the parameter here //res = ...; } data.CalculatedValue = res; } } } User should not modify any part of the Workbook directly in this implementation(except the calculated result of the custom function, which can be set by CalculationData.CalculatedValue property). Otherwise unexpected result or Exception may be caused. If user needs to change other data than calculated result in the implementation for some custom functions, for example, change cell's formula, style, ...etc., user should gather those data in this implementation and change them out of the scope of formula calculation. Calculates one function with given data. the required data to calculate function such as function name, parameters, ...etc. User should set the calculated value for given data for all functions(including excel native functions) that he wants to calculate by himself in this implementation. Indicates whether this engine needs the literal text of parameter while doing calculation. Default value is false. If this custom calculation engine requires the parameter's literal text, more stacks will be required to cache the literal text for parameters and Calculate() method may be called recursively to calculate the parameter's value. Commonly the literal text is not needed for calculating formulas and this method should return false for most implementations to get better performance. Whether built-in functions that have been supported by the built-in engine should be checked and processed by this implementation. Default is false. If user needs to change the calculation logic of some built-in functions, this property should be set as true. Factory to create some instances which may be re-implemented by user for special purpose. Create one instance of MemoryStream or custom implementation of MemoryStream. The MemoryStream instance. Create one instance of MemoryStream or custom implementation of MemoryStream. Initial capacity for the MemoryStream The MemoryStream instance. Create one CultureInfo by given id. The CultureInfo instance. This implementation is useful for situations: 1. Some cultures may not be supported by user's environment and creating the required CultureInfo with given identifier may cause Exception. To avoid the exception, user may override this method to provide a valid CultureInfo instance for the unsupported one. 2. User may want to specify some custom properties for some cultures to get expected result for formatting. For this purpose user may override this method to provide the CultureInfo instance with user specified properties. Please note UseUserOverride property of the returned CultureInfo instance may influence the formatted result. If it is false, some properties of the returned CultureInfo instance may be overridden by our built-in formatting engine according to the formatting requirements of different scenarios. If it is true, we will not change any properties of it and use it to format values directly. So, if user has specified custom properties for the returned CultureInfo instance, please make sure its UseUserOverride is true. No reflection effect. Custom reflection effect. Tight reflection, touching. Half reflection, touching. Full reflection, touching. Tight reflection, 4 pt offset. Half reflection, 4 pt offset. Full reflection, 4 pt offset. Tight reflection, 8 pt offset. Half reflection, 8 pt offset. Full reflection, 8 pt offset. Represents a preset for a type of bevel which can be applied to a shape in 3D. No bevel Angle Art deco Circle Convex Cool slant Cross Divot Hard edge Relaxed inset Riblet Slope Soft round Represents a shape's three-dimensional formatting. Gets hashcode. Gets and sets the width of the bottom bevel, or how far into the shape it is applied. In unit of Points. Gets and sets the height of the bottom bevel, or how far into the shape it is applied. In unit of Points. Gets and sets the type of the bottom bevel, or how far into the shape it is applied. In unit of Points. Gets and sets the width of the top bevel, or how far into the shape it is applied. In unit of Points. Gets and sets the height of the top bevel, or how far into the shape it is applied. In unit of Points. Gets and sets the type of the top bevel, or how far into the shape it is applied. In unit of Points. Represents the preset material which is combined with the lighting properties to give the final look and feel of a shape. Gets and sets the contour color on a shape. Gets and sets the contour width on the shape, in unit of points. Gets the extrusion color on a shape. Gets and sets the extrusion height of the applied to the shape, in unit of points. Defines the distance from ground for the 3D shape. Gets and sets the angle of the extrusion lights. Gets and sets type of light rig. Gets and sets the direction from which the light rig is oriented in relation to the scene. Gets and sets the angle at which a ThreeDFormat object can be viewed. Gets and sets the rotation of the extruded shape around the x-axis in degrees. Gets and sets the rotation of the extruded shape around the y-axis in degrees. Gets and sets the rotation of the extruded shape around the z-axis in degrees. Gets and sets the extrusion preset camera type. Represents the dialog box. Represents line and arrowhead formatting. Indicates whether the object is visible. Returns a Style object that represents the style of the specified range. Gets and sets the border line fore color. Gets and sets the border line back color. Gets or sets the dash style for the specified line. Returns or sets the degree of transparency of the specified fill as a value from 0.0 (opaque) through 1.0 (clear). Returns or sets the weight of the line ,in units of pt. Represents all setting of the line. Encapsulates the object that represents fill formatting for a shape. [C#] //Filling the area of the 2nd NSeries with a gradient chart.NSeries[1].Area.FillFormat.SetOneColorGradient(Color.Lime, 1, GradientStyleType.Horizontal, 1); [Visual Basic] 'Filling the area of the 2nd NSeries with a gradient chart.NSeries(1).Area.FillFormat.SetOneColorGradient(Color.Lime, 1, GradientStyleType.Horizontal, 1) Sets the specified fill to a one-color gradient. Only applies for Excel 2007. One gradient color. The gradient degree. Can be a value from 0.0 (dark) through 1.0 (light). Gradient shading style. The gradient variant. Can be a value from 1 through 4, corresponding to one of the four variants on the Gradient tab in the Fill Effects dialog box. If style is GradientStyle.FromCenter, the Variant argument can only be 1 or 2. Sets the specified fill to a two-color gradient. Only applies for Excel 2007. One gradient color. Two gradient color. Gradient shading style. The gradient variant. Can be a value from 1 through 4, corresponding to one of the four variants on the Gradient tab in the Fill Effects dialog box. If style is GradientStyle.FromCenter, the Variant argument can only be 1 or 2. Sets the specified fill to a two-color gradient. Only applies for Excel 2007. One gradient color. The degree of transparency of the color1 as a value from 0.0 (opaque) through 1.0 (clear). Two gradient color. The degree of transparency of the color2 as a value from 0.0 (opaque) through 1.0 (clear). Gradient shading style. The gradient variant. Can be a value from 1 through 4, corresponding to one of the four variants on the Gradient tab in the Fill Effects dialog box. If style is GradientStyle.FromCenter, the Variant argument can only be 1 or 2. Sets the specified fill to a preset-color gradient. Only applies for Excel 2007. Preset color type Gradient shading style. The gradient variant. Can be a value from 1 through 4, corresponding to one of the four variants on the Gradient tab in the Fill Effects dialog box. If style is GradientStyle.FromCenter, the Variant argument can only be 1 or 2. Gets and sets the fill type. NOTE: This member is now obsolete. Instead, please use FillFormat.FillType property instead. This property will be removed 12 months later since July 2016. Aspose apologizes for any inconvenience you may have experienced. Gets and sets fill type Returns or sets the degree of transparency of the area as a value from 0.0 (opaque) through 1.0 (clear). Gets the fill format set type. NOTE: This member is now obsolete. Instead, please use FillFormat.FillType property instead. This property will be removed 12 months later since July 2016. Aspose apologizes for any inconvenience you may have experienced. Gets object. Gets object. Gets object. Gets object. Returns the gradient color type for the specified fill. Returns the gradient style for the specified fill. Returns the gradient color 1 for the specified fill. Returns the gradient color 2 for the specified fill. Only when the gradient color type is GradientColorType.TwoColors, this property is meaningful. Returns the gradient degree for the specified fill. Only applies for Excel 2007. Can only be a value from 0.0 (dark) through 1.0 (light). Returns the gradient variant for the specified fill. Only applies for Excel 2007. Can only be a value from 1 through 4, corresponding to one of the four variants on the Gradient tab in the Fill Effects dialog box. If style is GradientStyle.FromCenter, the Variant argument can only be 1 or 2. Returns the gradient preset color for the specified fill. Represents the texture type for the specified fill. Represents an area's display pattern. Gets and sets the picture format type. Gets and sets the picture format scale. Gets and sets the picture image data. If the fill format is not custom texture format, returns null. Specifies the line compound type. Specifies the line dash type. Specifies the ending caps. Specifies the line join type. Gets and sets the begin arrow type of the line. Gets and sets the begin arrow width type of the line. Gets and sets the begin arrow length type of the line. Gets and sets the end arrow type of the line. Gets and sets the end arrow width type of the line. Gets and sets the end arrow length type of the line. Gets or sets the weight of the line in unit of points. Represents the exported file path provider. Gets the full path of the file by Worksheet name when exporting Worksheet to html separately. So the references among the Worksheets can be exported correctly. Worksheet name the full path of the file Represents the smart art. Converting smart art to grouped shapes. Represents the shape of web extension. Gets and set the web extension. Represents the preset WordArt styles. Fill - Black, Text 1, Shadow Fill - Blue, Accent 1, Shadow Fill - Orange, Accent 2, Outline - Accent 2 Fill - White, Outline - Accent 1, Shadow Fill - Gold, Accent 4, Soft Bevel Gradient Fill - Gray Gradient Fill - Blue, Accent 1, Reflection Gradient Fill - Gold, Accent 4, Outline - Accent 4 Fill - White, Outline - Accent 1, Glow - Accent 1 Fill - Gray-50%, Accent 3, Sharp Bevel Fill - Black, Text 1, Outline - Background 1, Hard Shadow - Background 1 Fill - Black, Text 1, Outline - Background 1, Hard Shadow - Accent 1 Fill - Blue, Accent 1, Outline - Background 1, Hard Shadow - Accent 1 Fill - White, Outline - Accent 2, Hard Shadow - Accent 2 Fill - Gray-25%, Background 2, Inner Shadow Pattern Fill - White, Text 2, Dark Upward Diagonal, Shadow Pattern Fill - Gray-50%, Accent 3, Narrow Horizontal, Inner Shadow Fill - Blue, Accent 1, 50%, Hard Shadow - Accent 1 Pattern Fill - Blue, Accent 1, Light Downward Diagonal, Outline - Accent 1 Pattern Fill - Blue-Gray, Text 2, Dark Upward Diagonal, Hard Shadow - Text 2 Represents all text paragraph. Gets the enumerator of the paragraphs. Gets the count of text paragraphs. Gets the object at specific index. The index. Specifies an external data connection Gets the id of the connection. Gets the definition of power query formula. Gets or Sets the external connection DataSource type. Used when the external data source is file-based. When a connection to such a data source fails, the spreadsheet application attempts to connect directly to this file. May be expressed in URI or system-specific file path notation. Identifier for Single Sign On (SSO) used for authentication between an intermediate spreadsheetML server and the external data source. True if the password is to be saved as part of the connection string; otherwise, False. True if the external data fetched over the connection to populate a table is to be saved with the workbook; otherwise, false. True if this connection should be refreshed when opening the file; otherwise, false. Specifies what the spreadsheet application should do when a connection fails. The default value is ReConnectionMethodType.Required. Specifies what the spreadsheet application should do when a connection fails. The default value is ReConnectionMethodType.Required. NOTE: This property is now obsolete. Instead, please use ExternalConnection.ReconnectionMethodType property. This property will be removed 12 months later since October 2017. Aspose apologizes for any inconvenience you may have experienced. Indicates whether the spreadsheet application should always and only use the connection information in the external connection file indicated by the odcFile attribute when the connection is refreshed. If false, then the spreadsheet application should follow the procedure indicated by the reconnectionMethod attribute Specifies the full path to external connection file from which this connection was created. If a connection fails during an attempt to refresh data, and reconnectionMethod=1, then the spreadsheet application will try again using information from the external connection file instead of the connection object embedded within the workbook. True if the connection has not been refreshed for the first time; otherwise, false. This state can happen when the user saves the file before a query has finished returning. Specifies the name of the connection. Each connection must have a unique name. True when the spreadsheet application should make efforts to keep the connection open. When false, the application should close the connection after retrieving the information. Specifies the number of minutes between automatic refreshes of the connection. Specifies The unique identifier of this connection. Specifies the user description for this connection Indicates whether the associated workbook connection has been deleted. true if the connection has been deleted; otherwise, false. Specifies the authentication method to be used when establishing (or re-establishing) the connection. Specifies the authentication method to be used when establishing (or re-establishing) the connection. NOTE: This property is now obsolete. Instead, please use ExternalConnection.CredentialsMethodType property. This property will be removed 12 months later since October 2017. Aspose apologizes for any inconvenience you may have experienced. Indicates whether the connection can be refreshed in the background (asynchronously). true if preferred usage of the connection is to refresh asynchronously in the background; false if preferred usage of the connection is to refresh synchronously in the foreground. Gets for an ODBC or web query. Represents the type of external link. Represents the DDE link. Represents external link. Represents the single TrueType font file stored in the file system. This is an abstract base class for the classes that allow the user to specify various font sources Returns the type of the font source. Ctor. path to font file Path to font file. Returns the type of the font source. Represents the folder that contains TrueType font files. Ctor. path to fonts folder Determines whether or not to scan subfolders. Path to fonts folder. Determines whether or not to scan the subfolders. Returns the type of the font source. Specifies font settings Font substitute names for given original font name. Original font name. List of font substitute names to be used if original font is not presented. Returns array containing font substitute names to be used if original font is not presented. originalFontName An array containing font substitute names to be used if original font is not presented. Sets the fonts folder The folder that contains TrueType fonts. Determines whether or not to scan subfolders. Sets the fonts folders The folders that contains TrueType fonts. Determines whether or not to scan subfolders. Sets the fonts sources. An array of sources that contain TrueType fonts. Gets a copy of the array that contains the list of sources Gets or sets the default font name. Indicate whether to use system font substitutes first or not when a font is not presented and the substitute of this font is not set. e.g. On Ubuntu, "Arial" font is generally substituted by "Liberation Sans". Default value is false. Specifies the type of a font source. represents single font file. represents folder with font files. represents single font in memory. Font configs for each object. Ctor. Font substitute names for given original font name. Original font name. List of font substitute names to be used if original font is not presented. Returns array containing font substitute names to be used if original font is not presented. originalFontName An array containing font substitute names to be used if original font is not presented. Sets the fonts folder The folder that contains TrueType fonts. Determines whether or not to scan subfolders. Sets the fonts folders The folders that contains TrueType fonts. Determines whether or not to scan subfolders. Sets the fonts sources. An array of sources that contain TrueType fonts. Gets a copy of the array that contains the list of sources Represents the single TrueType font file stored in memory. Ctor. Binary font data. Binary font data. Returns the type of the font source. Monitor for user to track the progress of formula calculation. [C#] //Custom monitor to check possibility of StackOverflowException public class MyCalculationMonitor : AbstractCalculationMonitor { public override void BeforeCalculate(int sheetIndex, int rowIndex, int colIndex) { if(new StackTrace(false).FrameCount > 1000) { throw new Exception("Stop the formula calculation because risk of StackOverflowException"); } } } Implement this method to do business before calculating one cell. Index of the sheet that the cell belongs to. Row index of the cell Column index of the cell Implement this method to do business after one cell has been calculated. Index of the sheet that the cell belongs to. Row index of the cell Column index of the cell Implement this method to do business when calculating one cell and circular references being encountered IEnumerator to enumerate cells(represented by CalculationCell object) in the circular chain Whether the formula engine needs to calculate those cells in circular after this call. True to let the formula engine continue to do calculation for them. False to let the formula engine just mark those cells in circular as Calculated. At the meantime, user may set the expected value as calculated result for the cell in this implementation. To process circular references, please make sure the value of property WorkbookSettings.Iteration is true and WorkbookSettings.MaxIteration is greater than 0. Gets the old value of the calculated cell. Should be used only in and . Whether the cell's value has been changed after the calculation. Should be used only in . Gets the newly calculated value of the cell. Should be used only in . Represents the required data when calculating one function, such as function name, parameters, ...etc. All objects provided by this class are for "read" purpose only. User should not change any data in the Workbook during the formula calculation process, Otherwise unexpected result or Exception may be caused. Gets the represented value object of the parameter at given index. index of the parameter(0 based) If the parameter is plain value, then returns the plain value. If the parameter is reference, then returns ReferredArea object. If the parameter references to multiple datasets, then returns array of objects. Gets the literal text of the parameter at given index. index of the parameter(0 based) literal text of the parameter Gets or sets the calculated value for this function. User should set this property in his custom calculation engine for those functions the engine supports, and the set value will be returned when getting this property later. The set value can be any value of those objects that can be set to a Cell(Cell.Value). And it can also be array of such kind of values, or a Range, Name, ReferredArea. Getting this property before setting will make the function be calculated by the default calculation engine of Aspose.Cells and the calculated value will be returned. Gets the Workbook object where the function is in. Gets the Worksheet object where the function is in. Gets the row index of the cell where the function is in. Gets the column index of the cell where the function is in. Gets the Cell object where the function is in. Gets the function name to be calculated. Gets the count of parameters Represents the globalization settings. Gets the name of "Total" label in the PivotTable. You need to override this method when the PivotTable contains two or more PivotFields in the data area. The name of "Total" label Gets the name of "Grand Total" label in the PivotTable. The name of "Grand Total" label Gets the name of "(Multiple Items)" label in the PivotTable. The name of "(Multiple Items)" label Gets the name of "(All)" label in the PivotTable. The name of "(All)" label Gets the name of "Column Labels" label in the PivotTable. The name of column labels NOTE: This member is now obsolete. Instead, please use GlobalizationSettings.GetColumnLabelsOfPivotTable() method. This property will be removed 12 months later since September 2020. Aspose apologizes for any inconvenience you may have experienced. Gets the name of "Row Labels" label in the PivotTable. The name of row labels NOTE: This member is now obsolete. Instead, please use GlobalizationSettings.GetRowLabelsOfPivotTable() method. This property will be removed 12 months later since September 2020. Aspose apologizes for any inconvenience you may have experienced. Gets the name of "Column Labels" label in the PivotTable. The name of column labels Gets the name of "Row Labels" label in the PivotTable. The name of row labels Gets the name of "(blank)" label in the PivotTable. The name of empty data Gets the name of type in the PivotTable. The type The name of type Gets the total name of the function. The function type. The total name of the function. Gets the grand total name of the function. The function type. The grand total name of the function. Gets the name of "Other" labels for Pie charts. Gets the type name of table rows that consists of the table header. Default is "Headers": "#Headers" denotes the table header. the type name of table rows Gets the type name of table rows that consists of data region of referenced table. Default is "Data": "#Data" denotes the data region of the table. the type name of table rows Gets the type name of table rows that consists of all rows in referenced table. Default is "All": "#All" denotes all rows in referenced table. the type name of table rows Gets the type name of table rows that consists of the total row of referenced table. Default is "Totals": "#Totals" denotes the total row of referenced table. the type name of table rows Gets the type name of table rows that consists of the current row in referenced table. Default is "This Row": "#This Row" denotes the current row in referenced table. the type name of table rows Gets the display string value for cell's error value error values such as #VALUE!,#NAME? Default returns the error value itself Gets the display string value for cell's boolean value boolean value Default returns "TRUE" for true value and "FALSE" for false value. Gets the locale dependent function name according to given standard function name. Standard(en-US locale) function name. Locale dependent function name. The locale was specified by the Workbook for which this settings is used. Gets the standard function name according to given locale dependent function name. Locale dependent function name. The locale was specified by the Workbook for which this settings is used. Standard(en-US locale) function name. Gets the locale dependent text for built-in Name according to given standard text. Standard(en-US locale) text of built-in Name. Locale dependent text. The locale was specified by the Workbook for which this settings is used. Gets the standard text of built-in Name according to given locale dependent text. Locale dependent text of built-in Name. The locale was specified by the Workbook for which this settings is used. Standard(en-US locale) text. Gets standard English font style name(Regular, Bold, Italic) for Header/Footer according to given locale font style name. Locale font style name for Header/Footer. Standard English font style name(Regular, Bold, Italic) Gets the separator for list, parameters of function, ...etc. Gets the separator for rows in array data in formula. Gets the separator for the items in array's row data in formula. Encapsulates the object that represents a single Workbook cell. [C#] Workbook excel = new Workbook(); Cells cells = excel.Worksheets[0].Cells; //Put a string into a cell Cell cell = cells[0, 0]; cell.PutValue("Hello"); string first = cell.StringValue; //Put an integer into a cell cell = cells["B1"]; cell.PutValue(12); int second = cell.IntValue; //Put a double into a cell cell = cells[0, 2]; cell.PutValue(-1.234); double third = cell.DoubleValue; //Put a formula into a cell cell = cells["D1"]; cell.Formula = "=B1 + C1"; //Put a combined formula: "sum(average(b1,c1), b1)" to cell at b2 cell = cells["b2"]; cell.Formula = "=sum(average(b1,c1), b1)"; //Set style of a cell Style style = cell.GetStyle(); //Set background color style.BackgroundColor = Color.Yellow; //Set format of a cell style.Font.Name = "Courier New"; style.VerticalAlignment = TextAlignmentType.Top; cell.SetStyle(style); [Visual Basic] Dim excel as Workbook = new Workbook() Dim cells as Cells = exce.Worksheets(0).Cells 'Put a string into a cell Dim cell as Cell = cells(0, 0) cell.PutValue("Hello") Dim first as String = cell.StringValue //Put an integer into a cell cell = cells("B1") cell.PutValue(12) Dim second as Integer = cell.IntValue //Put a double into a cell cell = cells(0, 2) cell.PutValue(-1.234) Dim third as Double = cell.DoubleValue //Put a formula into a cell cell = cells("D1") cell.Formula = "=B1 + C1" //Put a combined formula: "sum(average(b1,c1), b1)" to cell at b2 cell = cells("b2") cell.Formula = "=sum(average(b1,c1), b1)" //Set style of a cell Dim style as Style = cell.GetStyle() //Set background color style.BackgroundColor = Color.Yellow //Set font of a cell style.Font.Name = "Courier New" style.VerticalAlignment = TextAlignmentType.Top cell.SetStyle(style) Calculates the formula of the cell. Options for calculation Calculates the formula of the cell. Indicates if hide the error in calculating formulas. The error may be unsupported function, external links, etc. The custom formula calculation functions to extend the calculation engine. NOTE: This member is now obsolete. Instead, please use Calculate(CalculationOptions) method. This method will be removed 12 months later since August 2020. Aspose apologizes for any inconvenience you may have experienced. Puts an boolean value into the cell. Puts an integer value into the cell. Input value Puts a double value into the cell. Input value Puts a value into the cell, if appropriate the value will be converted to other data type and cell's number format will be reset. Input value True: converted to other data type if appropriate. True: set the number format to cell's style when converting to other data type Puts a string value into the cell and converts the value to other data type if appropriate. Input value True: converted to other data type if appropriate. Puts a string value into the cell. Input value Puts a DateTime value into the cell. Input value Puts an object value into the cell. input value Gets the string value by specific formatted strategy. The formatted strategy. Gets the width of the value in unit of pixels. Gets the height of the value in unit of pixels. Gets the display style of the cell. If the cell is conditional formatted, the display style is not same as the cell.GetStyle(). Gets the display style of the cell. If the cell is conditional formatted, the display style is not same as the cell.GetStyle(). Indicates whether checking borders of the merged cells. Gets format conditions which applies to this cell. Returns object Gets the cell style. Style object. To change the style of the cell, please call Cell.SetStyle() method after changing the style. If checkBorders is true, check whether other cells' borders will effect the style of this cell. Check other cells' borders Style object. Sets the cell style. The cell style. If the border settings are changed, the border of adjust cells will be updated too. Apply the cell style. The cell style. True, only overwriting formatting which is explicitly set. Apply the cell style. The cell style. The style flag. Set the formula and the value of the formula. The formula. The value of the formula. Get the formula of this cell. Whether the formula needs to be formatted as R1C1. Whether the formula needs to be formatted by locale. the formula of this cell. Set the formula and the value of the formula. The formula. Whether the formula is R1C1 formula. Whether the formula is locale formatted. The value of the formula. NOTE: This class is now obsolete. Instead, please use Cell.SetFormula(string,FormulaParseOptions,object). This property will be removed 12 months later since December 2019. Aspose apologizes for any inconvenience you may have experienced. Set the formula and the value of the formula. The formula. Options for parsing the formula. The value of the formula. Sets an array formula to a range of cells. Array formula. Number of rows to populate result of the array formula. Number of columns to populate result of the array formula. whether the formula is R1C1 formula whether the formula is locale formatted NOTE: This class is now obsolete. Instead, please use Cell.SetArrayFormula(string,int,int,FormulaParseOptions). This property will be removed 12 months later since December 2019. Aspose apologizes for any inconvenience you may have experienced. Sets an array formula to a range of cells. Array formula. Number of rows to populate result of the array formula. Number of columns to populate result of the array formula. Options for parsing the formula. Sets a formula to a range of cells. Shared formula. Number of rows to populate the formula. Number of columns to populate the formula. whether the formula is R1C1 formula whether the formula is locale formatted NOTE: This class is now obsolete. Instead, please use Cell.SetSharedFormula(string,int,int,FormulaParseOptions). This property will be removed 12 months later since December 2019. Aspose apologizes for any inconvenience you may have experienced. Sets a formula to a range of cells. Shared formula. Number of rows to populate the formula. Number of columns to populate the formula. Options for parsing the formula. Gets all cells or ranges which this cell's formula depends on. Returns all cells or ranges. Returns null if this is not a formula cell. [C#] Workbook workbook = new Workbook(); Cells cells = workbook.Worksheets[0].Cells; cells["A1"].Formula = "= B1 + SUM(B1:B10) + [Book1.xls]Sheet1!A1"; ReferredAreas areas = cells["A1"].GetPrecedents(); for (int i = 0; i < areas.Count; i++) { ReferredArea area = areas[i]; StringBuilder stringBuilder = new StringBuilder(); if (area.IsExternalLink) { stringBuilder.Append("["); stringBuilder.Append(area.ExternalFileName); stringBuilder.Append("]"); } stringBuilder.Append(area.SheetName); stringBuilder.Append("!"); stringBuilder.Append(CellsHelper.CellIndexToName(area.StartRow, area.StartColumn)); if (area.IsArea) { stringBuilder.Append(":"); stringBuilder.Append(CellsHelper.CellIndexToName(area.EndRow, area.EndColumn)); } Console.WriteLine(stringBuilder.ToString()); } workbook.Save(@"C:\Book2.xls"); [Visual Basic] Dim workbook As Workbook = New Workbook() Dim cells As Cells = workbook.Worksheets(0).Cells cells("A1").Formula = "= B1 + SUM(B1:B10) + [Book1.xls]Sheet1!A1" Dim areas As ReferredAreas = cells("A1").GetPrecedents() For i As Integer = 0 To areas.Count - 1 Dim area As ReferredArea = areas(i) Dim stringBuilder As StringBuilder = New StringBuilder() If (area.IsExternalLink) Then stringBuilder.Append("[") stringBuilder.Append(area.ExternalFileName) stringBuilder.Append("]") End If stringBuilder.Append(area.SheetName) stringBuilder.Append("!") stringBuilder.Append(CellsHelper.CellIndexToName(area.StartRow, area.StartColumn)) If (area.IsArea) Then stringBuilder.Append(":") stringBuilder.Append(CellsHelper.CellIndexToName(area.EndRow, area.EndColumn)) End If Console.WriteLine(stringBuilder.ToString()) Next workbook.Save("C:\Book2.xls") Get all cells which refer to the specific cell. Indicates whether check other worksheets Get all cells which will be updated when this cell is modified. This method can only work after calling Workbook.CalculateFormula. Gets the array range if the cell's formula is an array formula. The array range. Only applies when the cell's formula is an array formula Sets an array formula to a range of cells. Array formula. Number of rows to populate result of the array formula. Number of columns to populate result of the array formula. Sets a formula to a range of cells. Shared formula. Number of rows to populate the formula. Number of columns to populate the formula. Remove array formula. True represents converting the array formula to normal formula. Sets an Add-In formula to the cell. Add-In file name. Add-In function name. [C#] cells["h11"].SetAddInFormula("HRVSTTRK.xla", "=pct_overcut(F3:G3)"); cells["h12"].SetAddInFormula("HRVSTTRK.xla", "=pct_overcut()"); [Visual Basic] cells("h11").SetAddInFormula("HRVSTTRK.xla", "=pct_overcut(F3:G3)") cells("h12").SetAddInFormula("HRVSTTRK.xla", "=pct_overcut()") Add-In file should be placed in the directory or sub-directory of Workbook Add-In library. For example, file name can be "Eurotool.xla" or "solver\solver.xla". NOTE: This class is now obsolete. Instead, please use Cell.Formula/Cell.SetFormula() to set cell formula with the Add-In functions after registering it by WorksheetCollection.RegisterAddInFunction(). This property will be removed 12 months later since January 2019. Aspose apologizes for any inconvenience you may have experienced. Copies data from a source cell. Source object. Returns a Characters object that represents a range of characters within the cell text. The index of the start of the character. The number of characters. Characters object. This method only works on cell with string value. [C#] excel.Worksheets[0].Cells["A1"].PutValue("Helloworld"); excel.Worksheets[0].Cells["A1"].Characters(5, 5).Font.IsBold = true; excel.Worksheets[0].Cells["A1"].Characters(5, 5).Font.Color = Color.Blue; [Visual Basic] excel.Worksheets(0).Cells("A1").PutValue("Helloworld") excel.Worksheets(0).Cells("A1").Characters(5, 5).Font.IsBold = True excel.Worksheets(0).Cells("A1").Characters(5, 5).Font.Color = Color.Blue Indicates whether the cell string value is a rich text. Returns all Characters objects that represents a range of characters within the cell text. All Characters objects Returns all Characters objects that represents a range of characters within the cell text. Indicates whether applying table style to the cell if the cell is in the table. All Characters objects Sets rich text format of the cell. All Characters objects. Returns a object which represents a merged range. object. Null if this cell is not merged. Gets the html string which contains data and some formats in this cell. Indicates whether the value is compatible for html5 Returns a string represents the current Cell object. Checks whether this object refers to the same cell with another. another object true if two objects refers to the same cell. Serves as a hash function for a particular type. A hash code for current Cell object. Checks whether this object refers to the same cell with another cell object. another cell object true if two cell objects refers to the same cell. Get the result of the conditional formatting. Returns null if no conditional formatting is applied to this cell, Gets the validation applied to this cell. Gets the value of validation which applied to this cell. Gets the table which contains this cell. Gets the parent worksheet. Gets the DateTime value contained in the cell. Gets row number (zero based) of the cell. Cell row number Gets column number (zero based) of the cell. Represents if the specified cell contains formula. Represents cell value type. Gets the name of the cell. A cell name includes its column letter and row number. For example, the name of a cell in row 0 and column 0 is A1. Checks if a formula can properly evaluate a result. Only applies to formula cell. Gets the string value contained in the cell. If the type of this cell is string, then return the string value itself. For other cell types, the formatted string value (formatted with the specified style of this cell) will be returned. The formatted cell value is same with what you can get from excel when copying a cell as text(such as copying cell to text editor or exporting to csv). Gets cell's value as string without any format. Represents the category type of this cell's number formatting. Gets the formatted string value of this cell. Gets the integer value contained in the cell. Gets the double value contained in the cell. Gets the float value contained in the cell. Gets the boolean value contained in the cell. Gets cell's shared style index in the style pool. Gets or sets a formula of the . A formula string always begins with an equal sign (=). And please always use comma(,) as parameters delimiter, such as "=SUM(A1, E1, H2)". [C#] Workbook excel = new Workbook(); Cells cells = excel.Worksheets[0]; cells["B6"].Formula = "=SUM(B2:B5, E1) + sheet1!A1"; [Visual Basic] Dim excel As Workbook = New Workbook() Dim cells As Cells = excel.Worksheets(0) cells("B6").Formula = "=SUM(B2:B5, E1) + sheet1!A1" Get the locale formatted formula of the cell. Gets or sets a R1C1 formula of the . Indicates whether this cell contains an external link. Only applies when the cell is a formula cell. Indicates the cell's formula is and array formula and it is the first cell of the array. Indicates whether the cell formula is an array formula. Indicates whether the cell formula is an array formula. NOTE: This class is now obsolete. Instead, please use Cell.IsArrayFormula to check whether the cell formula is an array formula. This property will be removed 12 months later since May 2018. Aspose apologizes for any inconvenience you may have experienced. Indicates whether the cell formula is part of shared formula. Indicates whether this cell is part of table formula. Indicates whether this cell is part of table formula. NOTE: This class is now obsolete. Instead, please use Cell.IsTableFormula to check whether the cell formula is part of table formula. This property will be removed 12 months later since May 2018. Aspose apologizes for any inconvenience you may have experienced. Gets the value contained in this cell. Possible type:

null,

Boolean,

DateTime,

Double,

Integer

String.

For int value, it may be returned as an Integer object or a Double object. And there is no guarantee that the returned value will be kept as the same type of object always.
Indicates if the cell's style is set. If return false, it means this cell has a default cell format. Checks if a cell is part of a merged range or not. Gets and sets the html string which contains data and some formats in this cell. Encapsulates a collection of cell relevant objects, such as , , ...etc. [C#] Workbook excel = new Workbook(); Cells cells = excel.Worksheets[0].Cells; //Set default row height cells.StandardHeight = 20; //Set row height cells.SetRowHeight(2, 20.5); //Set default colum width cells.StandardWidth = 15; //Set column width cells.SetColumnWidth(3, 12.57); //Merge cells cells.Merge(5, 4, 2, 2); //Import data DataTable dt = new DataTable("Products"); dt.Columns.Add("Product_ID",typeof(Int32)); dt.Columns.Add("Product_Name",typeof(string)); dt.Columns.Add("Units_In_Stock",typeof(Int32)); DataRow dr = dt.NewRow(); dr[0] = 1; dr[1] = "Aniseed Syrup"; dr[2] = 15; dt.Rows.Add(dr); dr = dt.NewRow(); dr[0] = 2; dr[1] = "Boston Crab Meat"; dr[2] = 123; dt.Rows.Add(dr); cells.ImportDataTable(dt, true, 12, 12, 10, 10); //Export data DataTable outDataTable = cells.ExportDataTable(12, 12, 10, 10); [Visual Basic] Dim excel as Workbook = new Workbook() Dim cells as Cells = excel.Worksheets(0).Cells 'Set default row height cells.StandardHeight = 20 'Set row height cells.SetRowHeight(2, 20.5) 'Set default colum width cells.StandardWidth = 15 'Set column width cells.SetColumnWidth(3, 12.57) 'Merge cells cells.Merge(5, 4, 2, 2) 'Import data Dim dt as DataTable = new DataTable("Employee") dt.Columns.Add("Employee_ID",typeof(Int32)) dt.Columns.Add("Employee_Name",typeof(string)) dt.Columns.Add("Gender",typeof(string)) Dim dr as DataRow = dt.NewRow() dr(0) = 1 dr(1) = "John Smith" dr(2) = "Male" dt.Rows.Add(dr) dr = dt.NewRow() dr(0) = 2 dr(1) = "Mary Miller" dr(2) = "Female" dt.Rows.Add(dr) cells.ImportDataTable(dt, true, 12, 12, 10, 10) 'Export data Dim outDataTable as DataTable = cells.ExportDataTable(12, 12, 10, 10) Performs application-defined tasks associated with freeing, releasing, or resetting unmanaged resources. Gets the cells enumerator. The cells enumerator When traversing elements by the returned Enumerator, the cells collection should not be modified(such as operations that will cause new Cell/Row be instantiated or existing Cell/Row be deleted). Otherwise the enumerator may not be able to traverse all cells correctly(some elements may be traversed repeatedly or skipped). Gets the rows enumerator. The rows enumerator. Gets the element or null at the specified cell row index and column index. Row index Column index Return Cell object if a Cell object exists. Return null if the cell does not exist. Gets the element at the specified cell row index. Row index If the row object does exist return Row object, otherwise return null. Gets the element or null at the specified cell row index and column index. Row index Column index Return Cell object if a Cell object exists. Return null if the cell does not exist. Gets the element or at the specified cell row index. Row index If the row object does exist return Row object, otherwise return null. Gets the element or null at the specified column index. The column index. The Column object. Checks whether a row at given index is hidden. row index true if the row is hidden Checks whether a column at given index is hidden. column index true if the column is hidden. Adds a range object reference to cells The range object will be contained in the cells Creates a object from a range of cells. Upper left cell name. Lower right cell name. A object Creates a object from a range of cells. First row of this range First column of this range Number of rows Number of columns A object Creates a object from an address of the range. The address of the range. A object Creates a object from rows of cells or columns of cells. First row index or first column index, zero based. Total number of rows or columns, one based. True - Range created from columns of cells. False - Range created from rows of cells. A object. Clears all cell and row objects. Exports data in the collection to a object. [C#] string designerFile = MapPath("Designer") + "\\List.xls"; Workbook excel = new Workbook(designerFile); Worksheet sheet = excel.Worksheets[0]; DataTable dt = sheet.Cells.ExportDataTable(6, 1, 69, 4); this.DataGrid1.DataSource = dt; this.DataGrid1.DataBind(); [Visual Basic] Dim designerFile As String = MapPath("Designer") + "\List.xls" Dim excel As excel = New excel(designerFile) Dim sheet As Worksheet = excel.Worksheets(0) Dim dt As DataTable = sheet.Cells.ExportDataTable(6, 1, 69, 4) Me.DataGrid1.DataSource = dt Me.DataGrid1.DataBind() The row number of the first cell to export out. The column number of the first cell to export out. Number of rows to be imported. Number of columns to be imported. Exported object. If you use this method to export a block of data, please be sure that the data in a column should be the same data type. Otherwise, use the method instead. Exports data in the collection to a object. The row number of the first cell to export out. The column number of the first cell to export out. Number of rows to be imported. Number of columns to be imported. Indicates whether the data in the first row are exported to the column name of the DataTable. Exported object. Exports data in the collection to a object. The row number of the first cell to export out. The column number of the first cell to export out. Number of rows to be imported. Number of columns to be imported. Exported object. All data in the collection are converted to strings. Exports data in the collection to a object. The row number of the first cell to export out. The column number of the first cell to export out. Number of rows to be imported. Number of columns to be imported. Indicates whether the data in the first row are exported to the column name of the DataTable. Exported object. All data in the collection are converted to strings. Exports data in the collection to a object. The row number of the first cell to export out. The column number of the first cell to export out. Number of rows to be imported. Number of columns to be imported. All export table options Exported object. Import data from custom data table. The custom data table. First row index. First column index. The import options Import data from custom data table. The object to be imported. First row index. First column index. The import options Total number of rows imported. Import data from data view. The object to be imported. First row index. First column index. The import options Total number of rows imported. Import data from data view. The object to be imported. First row index. First column index. The import options Total number of rows imported. NOTE: This member is now obsolete. Instead, please use Cells.ImportData(IDataReader,int,int,ImportTableOptions) method, instead. This property will be removed 12 months later since December 2018. Aspose apologizes for any inconvenience you may have experienced. Imports a object into a worksheet. The object to be imported. Indicates whether the field name of the datatable will be imported to the first row. The name of start cell to insert the DataTable, such as "A2". Total number of rows imported NOTE: This member is now obsolete. Instead, please use Cells.ImportData(DataTable,int,int,ImportTableOptions) method, instead. This property will be removed 12 months later since December 2018. Aspose apologizes for any inconvenience you may have experienced. Imports a object into a worksheet. The object to be imported. Indicates whether the field name of the datatable will be imported to the first row. Default is true. The row number of the first cell to import. The column number of the first cell to import. Indicates whether extra rows are added to fit data. Indicates if this method will try to convert string to number. Total number of rows imported NOTE: This member is now obsolete. Instead, please use Cells.ImportData(DataTable,int,int,ImportTableOptions) method, instead. This property will be removed 12 months later since December 2018. Aspose apologizes for any inconvenience you may have experienced. Imports a object into a worksheet. The object to be imported. Indicates whether the field name of the datatable will be imported to the first row. Default is true. The row number of the first cell to import. The column number of the first cell to import. Total number of rows imported NOTE: This member is now obsolete. Instead, please use Cells.ImportData(DataTable,int,int,ImportTableOptions) method, instead. This property will be removed 12 months later since December 2018. Aspose apologizes for any inconvenience you may have experienced. Imports a object into a worksheet. The object to be imported. Indicates whether the field name of the datatable will be imported to the first row. Default is true. The row number of the first cell to import. The column number of the first cell to import. Indicates whether extra rows are added to fit data. Total number of rows imported NOTE: This member is now obsolete. Instead, please use Cells.ImportData(DataTable,int,int,ImportTableOptions) method, instead. This property will be removed 12 months later since December 2018. Aspose apologizes for any inconvenience you may have experienced. Imports a into a worksheet. [C#] DataTable dt = new DataTable("Employee"); dt.Columns.Add("Employee_ID",typeof(Int32)); dt.Columns.Add("Employee_Name",typeof(string)); dt.Columns.Add("Gender",typeof(string)); DataRow dr = dt.NewRow(); dr[0] = 1; dr[1] = "John Smith"; dr[2] = "Male"; dt.Rows.Add(dr); dr = dt.NewRow(); dr[0] = 2; dr[1] = "Mary Miller"; dr[2] = "Female"; dt.Rows.Add(dr); cells.ImportDataTable(dt, true, 12, 12, 10, 10); [Visual Basic] Dim dt As DataTable = New DataTable("Employee") dt.Columns.Add("Employee_ID",Type.GetType(Int32)) dt.Columns.Add("Employee_Name",Type.GetType(String)) dt.Columns.Add("Gender",Type.GetType(String)) Dim dr As DataRow = dt.NewRow() dr(0) = 1 dr(1) = "John Smith" dr(2) = "Male" dt.Rows.Add(dr) dr = dt.NewRow() dr(0) = 2 dr(1) = "Mary Miller" dr(2) = "Female" dt.Rows.Add(dr) cells.ImportDataTable(dt, True, 12, 12, 10, 10) The object to be imported. Indicates whether the field name of the datatable will be imported to the first row. Default is true. The row number of the first cell to import in. The column number of the first cell to import in. Number of rows to be imported. Number of columns to be imported. Total number of rows imported NOTE: This member is now obsolete. Instead, please use Cells.ImportData(DataTable,int,int,ImportTableOptions) method, instead. This property will be removed 12 months later since December 2018. Aspose apologizes for any inconvenience you may have experienced. Imports data from a object. The object which contains data. The row number of the first cell to import in. The column number of the first cell to import in. Indicates whether extra rows are added to fit data. Total number of rows imported. NOTE: This member is now obsolete. Instead, please use Cells.ImportData(IDataReader, int, int,ImportTableOptions) method. This property will be removed 12 months later since December 2018. Aspose apologizes for any inconvenience you may have experienced. Imports data from a object. The object which contains data. The row number of the first cell to import in. The column number of the first cell to import in. Indicates whether extra rows are added to fit data. Total number of rows imported. NOTE: This member is now obsolete. Instead, please use Cells.ImportData(IDataReader, int, int,ImportTableOptions) method. This property will be removed 12 months later since December 2018. Aspose apologizes for any inconvenience you may have experienced. Imports data from a object. The object which contains data. Indicates whether the field name of the data reader will be imported to the first row. The row number of the first cell to import in. The column number of the first cell to import in. Indicates whether extra rows are added to fit data. Total number of rows imported. NOTE: This member is now obsolete. Instead, please use Cells.ImportData(IDataReader, int, int,ImportTableOptions) method. This property will be removed 12 months later since December 2018. Aspose apologizes for any inconvenience you may have experienced. Imports data from a object. The object which contains data. Indicates whether the field name of the data reader will be imported to the first row. The row number of the first cell to import in. The column number of the first cell to import in. Indicates whether extra rows are added to fit data. Total number of rows imported. NOTE: This member is now obsolete. Instead, please use Cells.ImportData(IDataReader, int, int,ImportTableOptions) method. This property will be removed 12 months later since December 2018. Aspose apologizes for any inconvenience you may have experienced. Imports data from a object. The object which contains data. Indicates whether the field name of the data reader will be imported to the first row. The row number of the first cell to import in. The column number of the first cell to import in. Indicates whether extra rows are added to fit data. Date format string for cells. Indicates if this method will try to convert string to number. Total number of rows imported. NOTE: This member is now obsolete. Instead, please use Cells.ImportData(IDataReader, int, int,ImportTableOptions) method. This property will be removed 12 months later since December 2018. Aspose apologizes for any inconvenience you may have experienced. Imports data from a object. The object which contains data. Indicates whether the field name of the data reader will be imported to the first row. The row number of the first cell to import in. The column number of the first cell to import in. Indicates whether extra rows are added to fit data. Date format string for cells. Indicates if this method will try to convert string to number. Total number of rows imported. NOTE: This member is now obsolete. Instead, please use Cells.ImportData(IDataReader, int, int,ImportTableOptions) method. This property will be removed 12 months later since December 2018. Aspose apologizes for any inconvenience you may have experienced. Imports data from a object. The object which contains data. Indicates whether the field name of the data reader will be imported to the first row. The row number of the first cell to import in. The column number of the first cell to import in. Indicates whether extra rows are added to fit data. Date format string for cells. Indicates if this method will try to convert string to number. Total number of rows imported. NOTE: This member is now obsolete. Instead, please use Cells.ImportData(IDataReader, int, int,ImportTableOptions) method. This property will be removed 12 months later since December 2018. Aspose apologizes for any inconvenience you may have experienced. Imports data from a object. The object which contains data. Indicates whether the field name of the data reader will be imported to the first row. The row number of the first cell to import in. The column number of the first cell to import in. Indicates whether extra rows are added to fit data. Date format string for cells. Indicates if this method will try to convert string to number. Total number of rows imported. NOTE: This member is now obsolete. Instead, please use Cells.ImportData(IDataReader, int, int,ImportTableOptions) method. This property will be removed 12 months later since December 2018. Aspose apologizes for any inconvenience you may have experienced. Imports data from a object. The object which contains data. Indicates whether the field name of the data reader will be imported to the first row. The row number of the first cell to import in. The column number of the first cell to import in. Indicates whether extra rows are added to fit data. Total number of rows imported. NOTE: This member is now obsolete. Instead, please use Cells.ImportData(IDataReader, int, int,ImportTableOptions) method. This property will be removed 12 months later since December 2018. Aspose apologizes for any inconvenience you may have experienced. Imports data from a object. The object which contains data. Indicates whether the field name of the data reader will be imported to the first row. The row number of the first cell to import in. The column number of the first cell to import in. Indicates whether extra rows are added to fit data. Total number of rows imported. NOTE: This member is now obsolete. Instead, please use Cells.ImportData(IDataReader, int, int,ImportTableOptions) method. This property will be removed 12 months later since December 2018. Aspose apologizes for any inconvenience you may have experienced. Imports data from a object. The object which contains data. The row number of the first cell to import in. The column number of the first cell to import in. Indicates whether extra rows are added to fit data. Total number of rows imported. NOTE: This member is now obsolete. Instead, please use Cells.ImportData(IDataReader, int, int,ImportTableOptions) method. This property will be removed 12 months later since December 2018. Aspose apologizes for any inconvenience you may have experienced. Imports data from a object. The object which contains data. The row number of the first cell to import in. The column number of the first cell to import in. Indicates whether extra rows are added to fit data. Total number of rows imported. NOTE: This member is now obsolete. Instead, please use Cells.ImportData(IDataReader, int, int,ImportTableOptions) method. This property will be removed 12 months later since December 2018. Aspose apologizes for any inconvenience you may have experienced. Imports data from a object. The object which contains data. The row number of the first cell to import in. The column number of the first cell to import in. Total number of rows imported. Imports data from a object. The object which contains data. The row number of the first cell to import in. The column number of the first cell to import in. The options of importing table. Total number of rows imported. Imports data from a object. The object which contains data. Indicates whether the field name of the data reader will be imported to the first row. The row number of the first cell to import in. The column number of the first cell to import in. Indicates whether extra rows are added to fit data. Date format string for cells. Indicates if this method will try to convert string to number. Total number of rows imported. NOTE: This member is now obsolete. Instead, please use Cells.ImportData(IDataReader, int, int,ImportTableOptions) method. This property will be removed 12 months later since December 2018. Aspose apologizes for any inconvenience you may have experienced. Imports a into a worksheet. The object to be imported. Indicates whether the field name of the datatable will be imported to the first row. Default is true. The row number of the first cell to import in. The column number of the first cell to import in. Number of rows to be imported. Number of columns to be imported. Indicates whether extra rows are added to fit data. Date format string for cells. Total number of rows imported. This method automatically format date time values. However, if the DateTable is very huge, this method may slow down the program. In this case, you'd better format the cell manually. NOTE: This member is now obsolete. Instead, please use Cells.ImportData(DataTable,int,int,ImportTableOptions) method, instead. This property will be removed 12 months later since December 2018. Aspose apologizes for any inconvenience you may have experienced. Imports a into a worksheet. The object to be imported. Indicates whether the field name of the datatable will be imported to the first row. Default is true. The row number of the first cell to import in. The column number of the first cell to import in. Number of rows to be imported. Number of columns to be imported. Indicates whether extra rows are added to fit data. Date format string for cells. Indicates if this method will try to convert string to number. Total number of rows imported. This method automatically format date time values. However, if the DateTable is very huge, this method may slow down the program. In this case, you'd better format the cell manually. NOTE: This member is now obsolete. Instead, please use Cells.ImportData(DataTable,int,int,ImportTableOptions) method, instead. This property will be removed 12 months later since December 2018. Aspose apologizes for any inconvenience you may have experienced. Imports a DataRow into the Excel file. DataRow object. Row index. First column index. Imports a into a worksheet. The object to be imported. Indicates whether the field name of the datatable will be imported to the first row. Default is true. The row number of the first cell to import in. The column number of the first cell to import in. Number of rows to be imported. Number of columns to be imported. Indicates whether extra rows are added to fit data. Total number of rows imported. NOTE: This member is now obsolete. Instead, please use Cells.ImportData(DataTable,int,int,ImportTableOptions) method, instead. This property will be removed 12 months later since December 2018. Aspose apologizes for any inconvenience you may have experienced. Imports a two-dimension array of data into a worksheet. Two-dimension data array. The row number of the first cell to import in. The column number of the first cell to import in. Imports a two-dimension array of data into a worksheet. Two-dimension data array. The row number of the first cell to import in. The column number of the first cell to import in. Indicates if this method will try to convert string to number. Imports a two-dimension array of data into a worksheet. Two-dimension data array. Two-dimension data style. The row number of the first cell to import in. The column number of the first cell to import in. Indicates if this method will try to convert string to number. Imports a two-dimension array of data into a worksheet. Two-dimension data array. Two-dimension data style. The row number of the first cell to import in. The column number of the first cell to import in. Options for converting string values Imports an array of data into a worksheet. Data array. The row number of the first cell to import in. The column number of the first cell to import in. Specifies to import data vertically or horizontally. Imports an arraylist of data into a worksheet. Data arraylist. The row number of the first cell to import in. The column number of the first cell to import in. Specifies to import data vertically or horizontally. Imports an array of data into a worksheet. Data array. The row number of the first cell to import in. The column number of the first cell to import in. Specifies to import data vertically or horizontally. Skipped number of rows or columns. Imports a two-dimension array of string into a worksheet. Two-dimension string array. The row number of the first cell to import in. The column number of the first cell to import in. Imports an array of formula into a worksheet. Formula array. The row number of the first cell to import in. The column number of the first cell to import in. Specifies to import data vertically or horizontally. Imports an array of string into a worksheet. String array. The row number of the first cell to import in. The column number of the first cell to import in. Specifies to import data vertically or horizontally. Imports a two-dimension array of integer into a worksheet. Two-dimension integer array. The row number of the first cell to import in. The column number of the first cell to import in. Imports an array of integer into a worksheet. Integer array. The row number of the first cell to import in. The column number of the first cell to import in. Specifies to import data vertically or horizontally. Imports a two-dimension array of double into a worksheet. Two-dimension double array. The row number of the first cell to import in. The column number of the first cell to import in. Imports an array of double into a worksheet. Double array. The row number of the first cell to import in. The column number of the first cell to import in. Specifies to import data vertically or horizontally. Splits the text in the column to columns. The row index. The column index. The number of rows. The split options. Import a CSV file to the cells. The CSV file name. The splitter Whether the string in text file is converted to numeric data. The row number of the first cell to import in. The column number of the first cell to import in. Import a CSV file to the cells. The CSV file stream. The splitter Whether the string in text file is converted to numeric data. The row number of the first cell to import in. The column number of the first cell to import in. Import a CSV file to the cells. The CSV file name. The load options for reading text file The row number of the first cell to import in. The column number of the first cell to import in. Import a CSV file to the cells. The CSV file stream. The load options for reading text file The row number of the first cell to import in. The column number of the first cell to import in. Merges a specified range of cells into a single cell. First row of this range(zero based) First column of this range(zero based) Number of rows(one based) Number of columns(one based) Reference the merged cell via the address of the upper-left cell in the range. Merges a specified range of cells into a single cell. First row of this range(zero based) First column of this range(zero based) Number of rows(one based) Number of columns(one based) Merge conflict merged ranges. Reference the merged cell via the address of the upper-left cell in the range. If mergeConflict is true and the merged range conflicts with other merged cells, other merged cells will be automatically removed. Merges a specified range of cells into a single cell. First row of this range(zero based) First column of this range(zero based) Number of rows(one based) Number of columns(one based) Indicates whether check the merged cells intersects other merged cells Merge conflict merged ranges. Reference the merged cell via the address of the upper-left cell in the range. If mergeConflict is true and the merged range conflicts with other merged cells, other merged cells will be automatically removed. Unmerges a specified range of merged cells. First row of this range(zero based) First column of this range(zero based) Number of rows(one based) Number of columns(one based) Hides a row. Row index. Unhides a row. Row index. Row height. The row's height will be changed only when the row is hidden and given height value is positive. Hides multiple rows. The row index. The row number. Unhides the hidden rows. The row index. The row number. Row height. The row's height will be changed only when the row is hidden and given height value is positive. Sets row height in unit of pixels. Row index. Number of pixels. Sets row height in unit of inches. Row index. Number of inches. It should be between 0 and 409.5/72. Sets the height of the specified row. Row index. Height of row.In unit of point It should be between 0 and 409.5. Hides a column. Column index. Unhides a column Column index. Column width. Hide multiple columns. Column index. Column number. Unhide multiple columns. Column index. Column number Column width. Only applies the column width to the hidden columns. Gets the height of a specified row. Row index Height of row Gets the height of a specified row. Row index Height of row Gets the height of a specified row in unit of pixel. Row index Height of row Gets the height of a specified row in unit of inches. Row index Height of row Gets the height of a specified row in unit of inches. Row index Height of row Sets column width in unit of pixels in normal view. Column index. Number of pixels. Sets column width in unit of inches in normal view. Column index. Number of inches. Sets the width of the specified column in normal view. Column index. Width of column.Column width must be between 0 and 255. To hide a column, sets column width to zero. Gets the width of the specified column in normal view, in units of pixel. Column index Width of column in normal view. Gets the width of the specified column in normal view, in units of inches. Column index Width of column Gets the width of the specified column in normal view Column index Width of column Get the width in different view type. The column index. the column width in unit of pixels Sets the width of the column in different view. The column index. The width in unit of pixels. Gets the last row index of cell which contains data in the specified column. Column index. last row index. Applies formats for a whole column. The column index. The style object which will be applied. Flags which indicates applied formatting properties. Applies formats for a whole row. The row index. The style object which will be applied. Flags which indicates applied formatting properties. Applies formats for a whole worksheet. The style object which will be applied. Flags which indicates applied formatting properties. Copies data and formats of a whole column. Source Cells object contains data and formats to copy. Source column index. Destination column index. The copied column number. the options of pasting. Copies data and formats of a whole column. Source Cells object contains data and formats to copy. Source column index. Destination column index. Copies data and formats of a whole column. Source Cells object contains data and formats to copy. Source column index. Destination column index. The copied column number. Copies data and formats of the whole columns. Source Cells object contains data and formats to copy. Source column index. The number of the source columns. Destination column index. The number of the destination columns. Copies data and formats of a whole row. Source Cells object contains data and formats to copy. Source row index. Destination row index. Copies data and formats of some whole rows. Source Cells object contains data and formats to copy. Source row index. Destination row index. The copied row number. Copies data and formats of some whole rows. Source Cells object contains data and formats to copy. Source row index. Destination row index. The copied row number. The copy options. Copies data and formats of some whole rows. Source Cells object contains data and formats to copy. Source row index. Destination row index. The copied row number. The copy options. the options of pasting. Gets the outline level (zero-based) of the row. The row index. The outline level (zero-based) of the row. If the row is not grouped, returns zero. Gets the outline level (zero-based) of the column. The column index The outline level of the column If the column is not grouped, returns zero. Gets the max grouped column outline level (zero-based). The max grouped column outline level (zero-based) Gets the max grouped row outline level (zero-based). The max grouped row outline level (zero-based) Uncollapses the grouped rows/columns. True, uncollapses the grouped rows. The row/column index Collapses the grouped rows/columns. True, collapse the grouped rows. The row/column index Ungroups columns. The first column index to be ungrouped. The last column index to be ungrouped. Groups columns. The first column index to be grouped. The last column index to be grouped. Groups columns. The first column index to be grouped. The last column index to be grouped. Specifies if the grouped columns are hidden. Ungroups rows. The first row index to be ungrouped. The last row index to be ungrouped. True, removes all grouped info.Otherwise, remove the outer group info. Ungroups rows. The first row index to be ungrouped. The last row index to be ungrouped. Only removes outer group info. Groups rows. The first row index to be grouped. The last row index to be grouped. Specifies if the grouped columns are hidden. Groups rows. The first row index to be grouped. The last row index to be grouped. Deletes a column. Column index. Indicates if update references in other worksheets. Deletes a column. Column index. Deletes several columns. Column index. Number of columns to be deleted. Indicates if update references in other worksheets. Check whether the range could be deleted. The start row index of the range. The start column index of the range. The number of the rows in the range. The number of the columns in the range. Deletes several rows. The first row index to be deleted. Number of rows to be deleted. If the deleted range contains the top part(not whole) of the table(ListObject), the ranged could not be deleted and nothing will be done.It works as MS Excel. Deletes a row. Row index. Deletes multiple rows in the worksheet. Row index. Number of rows to be deleted. Indicates if update references in other worksheets. Delete all blank columns which do not contain any data. Delete all blank columns which do not contain any data. The options of deleting range. Checks whether given column is blank(does not contain any data). the column index true if given column does not contain any data Delete all blank rows which do not contain any data. Delete all blank rows which do not contain any data. The options of deleting range. Inserts some columns into the worksheet. Column index. The number of columns. Inserts some columns into the worksheet. Column index. The number of columns. Indicates if references in other worksheets will be updated. Inserts a new column into the worksheet. Column index. Indicates if references in other worksheets will be updated. Inserts a new column into the worksheet. Column index. Inserts multiple rows into the worksheet. Row index. Number of rows to be inserted. Indicates if references in other worksheets will be updated. Inserts multiple rows into the worksheet. Row index. Number of rows to be inserted. Indicates if references in other worksheets will be updated. Inserts multiple rows into the worksheet. Row index. Number of rows to be inserted. Inserts a new row into the worksheet. Row index. Clears contents and formatting of a range. Range to be cleared. Clears contents and formatting of a range. Start row index. Start column index. End row index. End column index. Clears contents of a range. Range to be cleared. Clears contents of a range. Start row index. Start column index. End row index. End column index. Clears formatting of a range. Range to be cleared. Clears formatting of a range. Start row index. Start column index. End row index. End column index. Link to a xml map. name of xml map row of the destination cell column of the destination cell path of xml element in xml map e.g. A xml map element structure: -RootElement |-Attribute1 |-SubElement |-Attribute2 |-Attribute3 To link "Attribute1", path is "/RootElement/Attribute1" To link "Attribute2", path is "/RootElement/SubElement/Attribute2" To link whole "SubElement", path is "/RootElement/SubElement" Imports a into a worksheet. The object to be imported. The row number of the first cell to import in. The column number of the first cell to import in. Total number of rows imported NOTE: This member is now obsolete. Instead, please use Cells.ImportData(DataView,int,int,ImportTableOptions) method. This property will be removed 12 months later since November 2018. Aspose apologizes for any inconvenience you may have experienced. Imports a into a worksheet. The object to be imported. The row number of the first cell to import in. The column number of the first cell to import in. Number of rows to be imported. Number of columns to be imported. Total number of rows imported NOTE: This member is now obsolete. Instead, please use Cells.ImportData(DataView,int,int,ImportTableOptions) method. This property will be removed 12 months later since November 2018. Aspose apologizes for any inconvenience you may have experienced. Imports a into a worksheet. The object to be imported. The row number of the first cell to import in. The column number of the first cell to import in. Number of rows to be imported. Number of columns to be imported. Indicates whether extra rows are added to fit data. Total number of rows imported NOTE: This member is now obsolete. Instead, please use Cells.ImportData(DataView,int,int,ImportTableOptions) method. This property will be removed 12 months later since November 2018. Aspose apologizes for any inconvenience you may have experienced. Imports a into a worksheet. The object to be imported. Indicates whether the field name of the data view will be imported to the first row. The row number of the first cell to import in. The column number of the first cell to import in. Number of rows to be imported. Number of columns to be imported. Indicates whether extra rows are added to fit data. Total number of rows imported NOTE: This member is now obsolete. Instead, please use Cells.ImportData(DataView,int,int,ImportTableOptions) method. This property will be removed 12 months later since November 2018. Aspose apologizes for any inconvenience you may have experienced. Imports a into a worksheet. The object to be imported. Indicates whether the field name of the data view will be imported to the first row. The row number of the first cell to import in. The column number of the first cell to import in. Number of rows to be imported. Number of columns to be imported. Indicates whether extra rows are added to fit data. Number format string for cells. Total number of rows imported NOTE: This member is now obsolete. Instead, please use Cells.ImportData(DataView,int,int,ImportTableOptions) method. This property will be removed 12 months later since November 2018. Aspose apologizes for any inconvenience you may have experienced. Imports a into a worksheet. The object to be imported. Indicates whether the field name of the data view will be imported to the first row. The row number of the first cell to import in. The column number of the first cell to import in. Indicates whether extra rows are added to fit data. Total number of rows imported NOTE: This member is now obsolete. Instead, please use Cells.ImportData(DataView,int,int,ImportTableOptions) method. This property will be removed 12 months later since November 2018. Aspose apologizes for any inconvenience you may have experienced. Imports a into a worksheet. This method doesn't try to convert text into numeric values. The object to be imported. The row number of the first cell to import in. The column number of the first cell to import in. Indicates whether extra rows are added to fit data. Total number of rows imported Imports a grid view to this cells. The grid view object. The row number of the first cell to import in. The column number of the first cell to import in. import options. The row number. Imports a into a worksheet. The object to be imported. The row number of the first cell to import in. The column number of the first cell to import in. Indicates whether extra rows are added to fit data. Total number of rows imported Imports a into a worksheet. The object to be imported. The row number of the first cell to import in. The column number of the first cell to import in. Number of rows to be imported. Number of columns to be imported. Indicates whether extra rows are added to fit data. Total number of rows imported Imports a into a worksheet. The object to be imported. The row number of the first cell to import in. The column number of the first cell to import in. Number of rows to be imported. Number of columns to be imported. Indicates whether extra rows are added to fit data. Indicates whether importing the cell style. Total number of rows imported Finds the cell with the input string. The formula to search for. Previous cell with the same formula. This parameter can be set to null if searching from the start. Cell object. Returns null (Nothing) if no cell is found. NOTE: This member is now obsolete. Instead, please use Cells.Find(object,Cell,FindOptions) method with LookInType as LookInType.OnlyFormulas and LookAtType as LookAtType.EntireContent. This member will be removed 12 months later since November 2018. Aspose apologizes for any inconvenience you may have experienced. Finds the cell with formula which contains the input string. The formula to search for. Previous cell with the same formula. This parameter can be set to null if searching from the start. Cell object. Returns null (Nothing) if no cell is found. NOTE: This member is now obsolete. Instead, please use Cells.Find(object,Cell,FindOptions) method with LookInType as LookInType.OnlyFormulas and LookAtType as LookAtType.Contains. This member will be removed 12 months later since November 2018. Aspose apologizes for any inconvenience you may have experienced. Finds the cell containing with the input object. The object to search for. The type should be int,double,DateTime,string,bool. Previous cell with the same object. This parameter can be set to null if searching from the start. Cell object. Returns null (Nothing) if no cell is found. Finds the cell containing with the input object. The object to search for. The type should be int,double,DateTime,string,bool. Previous cell with the same object. This parameter can be set to null if searching from the start. Find options Cell object. Returns null (Nothing) if no cell is found. Gets the last cell in this row. Row index. Cell object. Gets the last cell in this column. Column index. Cell object. Gets the last cell with maximum column index in this range. Start row index. End row index. Start column index. End column index. Cell object. Gets the last cell with maximum row index in this range. Start row index. End row index. Start column index. End column index. Cell object. Moves the range. The range which should be moved. The dest row. The dest column. Insert cut range. The cut range. The row. The column. The shift type . Inserts a range of cells and shift cells according to the shift option. Shift area. Number of rows or columns to be inserted. Shift cells option. Indicates if update references in other worksheets. Inserts a range of cells and shift cells according to the shift option. Shift area. Shift cells option. Inserts a range of cells and shift cells according to the shift option. Shift area. Number of rows or columns to be inserted. Shift cells option. Deletes a range of cells and shift cells according to the shift option. Start row index. Start column index. End row index. End column index. Shift cells option. Exports data in the collection to a two-dimension array object. The row number of the first cell to export out. The column number of the first cell to export out. Number of rows to be exported Number of columns to be exported Exported cell value array object. Exports cell value type in the collection to a two-dimension array object. The row number of the first cell to export out. The column number of the first cell to export out. Number of rows to be exported. Number of columns to be exported. Exported array object. Imports custom objects. The custom object The property names.If it is null,we will import all properties of the object. Indicates whether the property name will be imported to the first row. The row number of the first cell to import in. The column number of the first cell to import in. Number of rows to be imported. Indicates whether extra rows are added to fit data. Date format string for cells. Indicates if this method will try to convert string to number. Total number of rows imported. The custom objects should be the same type. Imports custom objects. The custom object The row number of the first cell to import in. The column number of the first cell to import in. The import options. Total number of rows imported. The custom objects should be the same type. Retrieves subtotals setting of the range. The range Creates subtotals for the range. The range The field to group by, as a zero-based integer offset The subtotal function. An array of zero-based field offsets, indicating the fields to which the subtotals are added. Creates subtotals for the range. The range The field to group by, as a zero-based integer offset The subtotal function. An array of zero-based field offsets, indicating the fields to which the subtotals are added. Indicates whether replace the current subtotals Indicates whether add page break between groups Indicates whether add summary below data. Removes all formula and replaces with the value of the formula. Removes duplicate rows in the sheet. Removes duplicate values in the range. The start row. The start column The end row index. The end column index. Removes duplicate data of the range. The start row. The start column The end row index. The end column index. Indicates whether the range contains headers. The column offsets. Converts string data in cells to numeric value if possible. Get all cells which refer to the specific cell. Indicates whether check other worksheets The row index. The column index. Get the style of given cell. row index column the style of given cell. Gets the list of fields of ods. Gets the total count of instantiated Cell objects. Gets the total count of instantiated Cell objects. Gets item within the worksheet The zero based index of the element. The element at the specified index. NOTE: This member is now obsolete. Instead, please use Cells.GetEnumerator() method to iterate all cells in this worksheet. This property will be removed 12 months later since February 2015. Aspose apologizes for any inconvenience you may have experienced. Gets the collection of objects that represents the individual rows in this worksheet. Gets the collection of merged cells. In this collection, each item is a structure which represents an area of merged cells. Gets the element at the specified cell row index and column index. Row index. Column index. The object. [C#] Cells cells = excel.Worksheets[0].Cells; Cell cell = cells[0, 0]; //Gets the cell at "A1" [Visual Basic] Dim cells As Cells = excel.Worksheets(0).Cells Dim cell As Cell = cells(0,0) 'Gets the cell at "A1" Gets the element at the specified cell name. Cell name,including its column letter and row number, for example A5. A object [C#] Cells cells = excel.Worksheets[0].Cells; Cell cell = cells["A1"]; //Gets the cell at "A1" [Visual Basic] Dim cells As Cells = excel.Worksheets(0).Cells Dim cell As Cell = cells("A1") 'Gets the cell at "A1" Gets or sets whether the cells data model should support Multi-Thread reading. Default value of this property is false. If there are multiple threads to read Row/Cell objects in this collection concurrently, this property should be set as true, otherwise unexpected result may be produced. Supporting Multi-Thread reading may degrade the performance for accessing Row/Cell objects from this collection. Gets or sets the memory usage option for this cells. Gets and sets the default style. Gets or sets the default column width in the worksheet, in unit of inches. Gets or sets the default column width in the worksheet, in unit of pixels. Gets or sets the default column width in the worksheet, in unit of characters. Gets or sets the default row height in this worksheet, in unit of points. Gets or sets the default row height in this worksheet, in unit of pixels. Gets or sets a value indicating whether all worksheet values are preserved as strings. Default is false. Minimum row index of cell which contains data or style. Maximum row index of cell which contains data or style. Return -1 if there is no cell which contains data or style in the worksheet. Minimum column index of cell which contains data or style. Maximum column index of cell which contains data or style. Return -1 if there is no cell. Minimum row index of cell which contains data. Maximum row index of cell which contains data. Return -1 if there is no cell which contains data. Minimum column index of cell which contains data. Maximum column index of cell which contains data. Return -1 if there is not cell which contains data. Don't call this property repeatedly. This property will iterate all cells in a worksheet. Indicates that row height and default font height matches Indicates whether the row is default hidden. Gets the collection of objects that represents the individual columns in this worksheet. Gets the collection of objects created at run time. Gets the last cell in this worksheet. Gets the max range which includes data, merged cells and shapes. Gets the first cell in this worksheet. Collects the objects that represent the individual columns in a worksheet. [C#] //Instantiating a Workbook object Workbook workbook = new Workbook(); //Obtaining the reference of the first worksheet Worksheet worksheet = workbook.Worksheets[0]; //Add new Style to Workbook Style style = workbook.CreateStyle(); //Setting the background color to Blue style.ForegroundColor = Color.Blue; //setting Background Pattern style.Pattern = BackgroundType.Solid; //New Style Flag StyleFlag styleFlag = new StyleFlag(); //Set All Styles styleFlag.All = true; //Change the default width of first ten columns for (int i = 0; i < 10; i++) { worksheet.Cells.Columns[i].Width = 20; } //Get the Column with non default formatting ColumnCollection columns = worksheet.Cells.Columns; foreach (Column column in columns) { //Apply Style to first ten Columns column.ApplyStyle(style, styleFlag); } //Saving the Excel file workbook.Save("D:\\book1.xls"); [VB.NET] 'Instantiating a Workbook object Dim workbook As New Workbook() 'Obtaining the reference of the first worksheet Dim worksheet As Worksheet = workbook.Worksheets(0) 'Add new Style to Workbook Dim style As Style = workbook.CreateStyles() 'Setting the background color to Blue style.ForegroundColor = Color.Blue 'setting Background Pattern style.Pattern = BackgroundType.Solid 'New Style Flag Dim styleFlag As New StyleFlag() 'Set All Styles styleFlag.All = True 'Change the default width of first ten columns For i As Integer = 0 To 9 worksheet.Cells.Columns(i).Width = 20 Next i 'Get the Column with non default formatting Dim columns As ColumnCollection = worksheet.Cells.Columns For Each column As Column In columns 'Apply Style to first ten Columns column.ApplyStyle(style, styleFlag) Next column 'Saving the Excel file workbook.Save("D:\book1.xls") Gets the column object by the index. Returns the column object. NOTE: This member is now obsolete. Instead, please use Columns.GetColumnByIndex() method. This property will be removed 12 months later since June 2010. Aspose apologizes for any inconvenience you may have experienced. Gets the object by the position in the list. The position in the list. Returns the column object. Gets a object by column index. The Column object of given column index will be instantiated if it does not exist before. Represents a single column in a worksheet. [C#] //Instantiating a Workbook object Workbook workbook = new Workbook(); //Obtaining the reference of the first worksheet Worksheet worksheet = workbook.Worksheets[0]; Style style = workbook.CreateStyle(); //Setting the background color to Blue style.BackgroundColor = Color.Blue; //Setting the foreground color to Red style.ForegroundColor= Color.Red; //setting Background Pattern style.Pattern = BackgroundType.DiagonalStripe; //New Style Flag StyleFlag styleFlag = new StyleFlag(); //Set All Styles styleFlag.All = true; //Get first Column Column column = worksheet.Cells.Columns[0]; //Apply Style to first Column column.ApplyStyle(style, styleFlag); //Saving the Excel file workbook.Save("D:\\book1.xls"); [VB.NET] 'Instantiating a Workbook object Dim workbook As New Workbook() 'Obtaining the reference of the first worksheet Dim worksheet As Worksheet = workbook.Worksheets(0) Dim style As Style = workbook.CreateStyle() 'Setting the background color to Blue style.BackgroundColor = Color.Blue 'Setting the foreground color to Red style.ForegroundColor = Color.Red 'setting Background Pattern style.Pattern = BackgroundType.DiagonalStripe 'New Style Flag Dim styleFlag As New StyleFlag() 'Set All Styles styleFlag.All = True 'Get first Column Dim column As Column = worksheet.Cells.Columns(0) 'Apply Style to first Column column.ApplyStyle(style, styleFlag) 'Saving the Excel file workbook.Save("D:\book1.xls") Applies formats for a whole column. The style object which will be applied. Flags which indicates applied formatting properties. Gets the index of this column. Gets and sets the column width in unit of characters. Gets the group level of the column. Indicates whether the column is hidden. Gets the style of this column. You have to call Column.ApplyStyle() method to save your changing with the row style, otherwise it will not effect. Represents the setting of the subtotal . The field to group by, as a zero-based integer offset The subtotal function. An array of zero-based field offsets, indicating the fields to which the subtotals are added. Indicates whether add summary below data. Represents the options of loading ods file. Represents the options of loading ods file. Represents the options of loading ods file. The load format type. Indicates whether applying the default style of the Excel to hyperlink. Indicates whether refresh pivot tables when loading file. Represents the cell field of ods. Represents the custom format of the field's value. Gets and sets the type of the field. Get and sets the row index of the cell. Get and sets the column index of the cell. Represents the fields of ODS. Adds a field. The row index. The column index. The type of the field. The number format of the field. Update fields value to the cells. Gets the field by the index. The index. Gets the field by row and column index. The row index. The column index. Represents the cell field type of ods. Current date. The name of the sheet. The name of the file. Represents the type of ODS generator. Libre Office Open Office Represents the page background of ods. Gets and sets the page background type. Gets and sets the color of background. Gets and sets the page background graphic type. Gets and set the background graphic position. Indicates whether it's a linked graphic. Gets and sets the linked graphic path. Gets and sets the graphic data. Represents the position. Top left. Top center. Top right. Center left. Center. Center right. Bottom left. Bottom center. Bottom right. Represents the type of formatting page background with image. Set the image at specific position. Stretch the image. Repeat and repeat the image. Represents the page background type of ods. No background. Formats the background with color. Formats the background with image. Enumerates page layout alignment types. Represents bottom page layout alignment. Represents center page layout alignment. Represents left page layout alignment. Represents right page layout alignment. Represents top page layout alignment. Represents state of the sheet's pane. Panes are frozen, but were not before being frozen. Panes are frozen and were split before being frozen. Panes are split, but not frozen. Panes are not frozen and not split. Represents mashup data. Gets all power query formulas. Gets all parameters of power query formulas. Represents the definition of power query formula. Gets the definition of the power query formula. Gets and sets the name of the power query formula. Gets all items of power query formula. Represents all power query formulas in the mashup data. Gets by the index in the list. The index. Gets by the name of the power query formula. The name of the item. Represents the function of power query. Gets and sets the definition of function. Represents the item of the power query formula. Gets the name of the item. Gets the value of the item. Represents all item of the power query formula. Gets by the index in the list. The index. Gets by the name of the item. The name of the item. Represents the parameter of power query formula. Gets the name of parameter. Gets the value of parameter. Gets the definition of the parameter. Represents the Gets by the index in the list. The index. Gets by the name of the item. The name of the item. Encapsulates the object that represents a range of cells within a spreadsheet. Gets the enumerator for cells in this Range. The cells enumerator When traversing elements by the returned Enumerator, the cells collection should not be modified(such as operations that will cause new Cell/Row be instantiated or existing Cell/Row be deleted). Otherwise the enumerator may not be able to traverse all cells correctly(some elements may be traversed repeatedly or skipped). Indicates whether the range is intersect. The range. Whether the range is intersect. If the two ranges area not in the same worksheet ,return false. Returns a Range object that represents the rectangular intersection of two ranges. The intersecting range. a Range object If the two ranges are not intersected, returns null. Returns the union of two ranges. The range The union of two ranges. Combines a range of cells into a single cell. Reference the merged cell via the address of the upper-left cell in the range. Unmerges merged cells of this range. Puts a value into the range, if appropriate the value will be converted to other data type and cell's number format will be reset. Input value True: converted to other data type if appropriate. True: set the number format to cell's style when converting to other data type Applies formats for a whole range. The style object which will be applied. Flags which indicates applied formatting properties. Each cell in this range will contains a object. So this is a memory-consuming method. Please use it carefully. Sets the style of the range. The Style object. Sets the outline borders around a range of cells with same border style and color. Border style. Border color. Sets out line borders around a range of cells. Border styles. Border colors. Both the length of borderStyles and borderStyles must be 4. The order of borderStyles and borderStyles must be top,bottom,left,right Sets outline border around a range of cells. Border edge. Border style. Border color. Move the current range to the dest range. The start row of the dest range. The start column of the dest range. Copies cell data (including formulas) from a source range. Source object. Copies cell value from a source range. Source object. Copies style settings from a source range. Source object. Copying the range with paste special options. The source range. The paste special options. Copies data (including formulas), formatting, drawing objects etc. from a source range. Source object. Gets object or null in this range. Row offset in this range, zero based. Column offset in this range, zero based. object. Gets range by offset. Row offset in this range, zero based. Column offset in this range, zero based. Returns a string represents the current Range object. Exports data in this range to a object. Exported object. Exports data in this range to a object. The options of exporting range to datatable. Exported object. Exports data in this range to a object. Exported object. All data in the collection are converted to strings. Gets all hyperlink in the range. Gets the count of rows in the range. Gets the count of columns in the range. Gets all cell count in the range. Gets or sets the name of the range. Named range is supported. For example,

range.Name = "Sheet1!MyRange";

Gets the range's refers to. Gets address of the range. Gets the index of the first row of the range. Gets the index of the first column of the range. Gets and sets the value of the range. If the range contains multiple cells, return a two-dimension object. If applies object array to the range, it should be a two-dimension object. Sets or gets the column width of this range Sets or gets the height of rows in this range Gets object in this range. Row offset in this range, zero based. Column offset in this range, zero based. object. Gets a Range object that represents the entire column (or columns) that contains the specified range. Gets a Range object that represents the entire row (or rows) that contains the specified range. Gets the object which contains this range. Represents how to loading the linked resource. Loads this resource as usual. Skips loading of this resource. Use stream provided by user Collects the objects that represent the individual rows in a worksheet. Gets an enumerator that iterates through this collection enumerator Gets the row object by the position in the list. The position. The Row object at given position. Clear all rows and cells. Remove the row at the specified index zero-based row index Gets the number of rows in this collection. Gets a object by given row index. The Row object of given row index will be instantiated if it does not exist before. Represents a single row in a worksheet. Get the cell by specific index in the list. The position. The Cell object. NOTE: This member is now obsolete. Instead, please use Row.GetEnumerator() method to iterate all cells in this row. This property will be removed 12 months later since February 2015. Aspose apologizes for any inconvenience you may have experienced. Gets the cells enumerator The cells enumerator Gets the cell or null in the specific index. The column index Returns the cell object if the cell exists. Or returns null if the cell object does not exist. Copy settings of row, such as style, height, visibility, ...etc. the source row whose settings will be copied to this one whether check and gather style. Only takes effect and be needed when two row objects belong to different workbook and the styles of two workbooks are different. Applies formats for a whole row. The style object which will be applied. Flags which indicates applied formatting properties. Checks whether this object refers to the same row with another. another object true if two objects refers to the same row. Checks whether this object refers to the same row with another row object. another row object true if two row objects refers to the same row. Indicates whether the row contains any data Gets the cell. The column index Gets and sets the row height in unit of Points. Indicates whether the row is hidden. Gets the index of this row. Gets the group level of the row. Indicates that row height and default font height matches Represents the style of this row. You have to call Row.ApplyStyle() method to save your changing with the row style, otherwise it will not effect. Gets the first cell object in the row. Gets the first non-blank cell in the row. Gets the last cell object in the row. Gets the last non-blank cell in the row. Represents options of saving docx file. Represents all save options Gets the save file format. Make the workbook empty after saving the file. The cached file folder is used to store some large data. Indicates whether validate merged cells before saving the file. The default value is false. Indicates whether merge the areas of conditional formatting and validation before saving the file. The default value is false. If true and the directory does not exist, the directory will be automatically created before saving the file. The default value is false. Indicates whether sorting defined names before saving file. Indicates whether refreshing chart cache data The physical folder where images will be saved when exporting a workbook to Aspose.Pdf XML format. Default is an empty string. Indicates if http compression is to be used in user's IIS. Please specify this property to true if http compression is used. Gets or sets warning callback. Indicates whether updating smart art setting. The default value is false. Only effects after calling Shape.GetResultOfSmartArt() method and the cached shapes exist in the template file. Represents the pptx save options. Represents the save options for markdown. Creates options for saving markdown document Gets and sets the default encoding. Gets and sets the format strategy when exporting the cell value as string. The Data provider to provide cells data for saving workbook in light mode. Gets and sets the line separator. Allows to specify which OOXML specification will be used when saving in the Xlsx format. ECMA-376 1st Edition, 2006. ISO/IEC 29500:2008 Strict compliance level. The Ooxml compression type The fastest but least effective compression. A little slower, but better, than level 1. A little slower, but better, than level 2. A little slower, but better, than level 3. A little slower than level 4, but with better compression. A good balance of speed and compression efficiency. Pretty good compression! Better compression than Level7! The "best" compression, where best means greatest reduction in size of the input data stream. This is also the slowest compression. Represents the pptx save options. Represents the pptx save options. Represents the key list of data sorter. Gets and sets by index. The index. Represents the options when converting table to range. Gets and sets the last row index of the table. Represents the type of target mode. External link Local and full paths to files\folders. Email. Link on cell or named range. Represents union range. Combines a range of cells into a single cell. Reference the merged cell via the address of the upper-left cell in the range. Unmerges merged cells of this range. Puts a value into the range, if appropriate the value will be converted to other data type and cell's number format will be reset. Input value True: converted to other data type if appropriate. True: set the number format to cell's style when converting to other data type Sets the style of the range. The Style object. Applies formats for a whole range. The style object which will be applied. Flags which indicates applied formatting properties. Each cell in this range will contains a object. So this is a memory-consuming method. Please use it carefully. Copying the range with paste special options. The source range. The paste special options. Gets the enumerator for cells in this Range. The cells enumerator When traversing elements by the returned Enumerator, the cells collection should not be modified(such as operations that will cause new Cell/Row be instantiated or existing Cell/Row be deleted). Otherwise the enumerator may not be able to traverse all cells correctly(some elements may be traversed repeatedly or skipped). Sets out line borders around a range of cells. Border styles. Border colors. Both the length of borderStyles and borderStyles must be 4. The order of borderStyles and borderStyles must be top,bottom,left,right Sets the outline borders around a range of cells with same border style and color. Border style. Border color. Intersects another range. The range. If the two union ranges are not intersected, returns null. Intersects another range. The range. If the two union ranges are not intersected, returns null. Intersects another range. The range. If the two union ranges are not intersected, returns null. Union another range. The range. Union another range. The range. Union the ranges. The ranges. Gets the index of the first row of the range. Only effects when it only contains one range. Gets the index of the first column of the range. Only effects when it only contains one range. Gets the count of rows in the range. Only effects when it only contains one range. Gets the count of rows in the range. Only effects when it only contains one range. Gets and sets the values of the range. Gets or sets the name of the range. Named range is supported. For example,

range.Name = "Sheet1!MyRange";

Gets the range's refers to. Indicates whether this has range. Gets all hyperlink in the range. Gets all cell count in the range. Gets the count of the ranges. Gets all union ranges. Indicates the options that exporting range to json. Indicates whether the range contains header row. Exports the string value of the cells to json. Indicates the indent. If the indent is null or empty, the exported json is not formatted. Represents the options of json layout type. Processes Array as table. Indicates whether ignoring null value. Indicates whether ignore title if array is a property of object. Indicates whether ignore title if object is a property of object. Gets or sets a value that indicates whether the string in json is converted to numeric or date. Gets and sets the format of numeric value. Gets and sets the format of date value. Gets and sets the style of the title. Represents the utility class of processing json. Import the json string. The json string. The Cells. The row index. The column index. The options of import json string. Exporting the range to json file. The range. The options of exporting. The json string value. Represents a persisted taskpane object. Gets and sets the web extension part associated with the taskpane instance Gets and sets the last-docked location of this taskpane object. Indicates whether the Task Pane shows as visible by default when the document opens. Indicates whether the taskpane is locked to the document in the UI and cannot be closed by the user. Gets and sets the default width value for this taskpane instance. Gets and sets the index, enumerating from the outside to the inside, of this taskpane among other persisted taskpanes docked in the same default location. Represents the list of task pane. Adds task pane. The index. Gets task pane by the specific index. The index. The task pane. Represents an Office Add-in instance. Gets and sets the uniquely identifies the Office Add-in instance in the current document. Indicates whether the user can interact with the Office Add-in or not. Get the primary reference to an Office Add-in. Gets a list of alter references. Gets all properties of web extension. Gets all bindings relationship between an Office Add-in and the data in the document. Represents a binding relationship between an Office Add-in and the data in the document. Gets and sets the binding identifier. Gets and sets the binding type. Gets and sets the binding key used to map the binding entry in this list with the bound data in the document. Represents the list of binding relationships between an Office Add-in and the data in the document. Adds an a binding relationship between an Office Add-in and the data in the document. Gets web extension binding relationship by the specific index. The index. The web extension binding relationship Represents the list of web extension. Adds a web extension. The index. Remove web extension by the index. The index. Gets web extension by the specific index. The index. The web extension. Represents an Office Add-in custom property. Gets and set a custom property name. Gets and sets a custom property value. Represents the list of web extension properties. Adds web extension property. The name of property. The value of property. The index of added property. Remove the property by the name. The name of the property. Gets the property of web extension by the index. The index. The property of web extension. Gets the property of web extension. The name of property. The property of web extension. Represents identify the provider location and version of the extension. Gets and sets the identifier associated with the Office Add-in within a catalog provider. The identifier MUST be unique within a catalog provider. Gets and sets the version. Gets and sets the instance of the marketplace where the Office Add-in is stored. . Gets and sets the type of marketplace that the store attribute identifies. Represents the list of web extension reference. Adds an empty reference of web extension. Gets web extension by the specific index. The index. The web extension Represents the store type of web extension. Specifies that the store type is Office.com. Specifies that the store type is SharePoint corporate catalog. Specifies that the store type is a SharePoint web application. Specifies that the store type is an Exchange server. Specifies that the store type is a file system share. Specifies that the store type is the system registry. Specifies that the store type is Centralized Deployment via Exchange. Represents a root object to create an Excel spreadsheet. The Workbook class denotes an Excel spreadsheet. Each spreadsheet can contain multiple worksheets. The basic feature of the class is to open and save native excel files. The class has some advanced features like copying data from other Workbooks, combining two Workbooks and protecting the Excel spreadsheet. The following example creates a Workbook, opens a file named designer.xls in it and makes the horizontal and vertical scroll bars invisible for the Workbook. It then replaces two string values with an Integer value and string value respectively within the spreadsheet and finally sends the updated file to the client browser. [C#] //Open a designer file string designerFile = MapPath("Designer") + "\\designer.xls"; Workbook workbook = new Workbook(designerFile); //Set scroll bars workbook.Settings.IsHScrollBarVisible = false; workbook.Settings.IsVScrollBarVisible = false; //Replace the placeholder string with new values int newInt = 100; workbook.Replace("OldInt", newInt); string newString = "Hello!"; workbook.Replace("OldString", newString); XlsSaveOptions saveOptions = new XlsSaveOptions(); workbook.Save(Response, "result.xls", ContentDisposition.Inline, saveOptions); [Visual Basic] 'Open a designer file Dim designerFile as String = MapPath("Designer") + "\designer.xls" Dim workbook as Workbook = new Workbook(designerFile) 'Set scroll bars workbook.IsHScrollBarVisible = False workbook.IsVScrollBarVisible = False 'Replace the placeholder string with new values Dim newInt as Integer = 100 workbook.Replace("OldInt", newInt) Dim newString as String = "Hello!" workbook.Replace("OldString", newString) Dim saveOptions as XlsSaveOptions = new XlsSaveOptions() workbook.Save(Response, "result.xls", ContentDisposition.Inline, saveOptions) Initializes a new instance of the class. The following code shows how to use the Workbook constructor to create and initialize a new instance of the class. [C#] Workbook workbook = new Workbook(); [Visual Basic] Dim workbook as Workbook = new Workbook() The default file format type is Excel97To2003.If want create other format file type, please call Workbook(FileFormatType fileFormatType). Initializes a new instance of the class. The new file format. The following code shows how to use the Workbook constructor to create and initialize a new instance of the class. [C#] Workbook workbook = new Workbook(FileFormatType.Excel2007Xlsx); [Visual Basic] Dim workbook as Workbook = new Workbook(FileFormatType.Excel2007Xlsx) The default file format type is Excel97To2003. Initializes a new instance of the class and open a file. The file name. Initializes a new instance of the class and open a stream. The stream. Initializes a new instance of the class and open a file. The file name. The load options Initializes a new instance of the class and open stream. The stream. The load options Parses all formulas which have not been parsed when they were loaded from template file or set to a cell. whether ignore error for invalid formula. For one invalid formula, if ignore error then this formula will be ignored and the process will continue to parse other formulas, otherwise exception will be thrown. Saves the workbook to the disk. The file name. The save format type. Save the workbook to the disk. Saves the workbook to the disk. The file name. The save options. Saves the workbook to the stream. The file stream. The save file format type. Saves the workbook to the stream. The file stream. The save options. Saves Excel file to a MemoryStream object and returns it. MemoryStream object which contains an Excel file. This method provides same function as Save method and only save the workbook as Excel97-2003 xls file. It's mainly for calling from COM clients. Creates the result spreadsheet and transfer it to the client then open it in the browser or MS Workbook. Response object to return the spreadsheet to client. The name of created file. The content disposition type. The save options. Creates the result spreadsheet and transfer it to the client then open it in the browser or MS Workbook. Response object to return the spreadsheet to client. The name of created file. The content disposition type. The save options. whether http compression is to be used Remove all unused styles. Creates a new style. Returns a style object. Creates built-in style by given type. style object Creates a object. Returns a object. Replaces a cell's value with a new string. [C#] Workbook workbook = new Workbook(); ...... workbook.Replace("AnOldValue", "NewValue"); [Visual Basic] Dim workbook As Workbook = New Workbook() ........ workbook.Replace("AnOldValue", "NewValue") Cell placeholder String value to replace Replaces a cell's value with a new integer. [C#] Workbook workbook = new Workbook(); ...... int newValue = 100; workbook.Replace("AnOldValue", newValue); [Visual Basic] Dim workbook As Workbook = New Workbook() ......... Dim NewValue As Integer = 100 workbook.Replace("AnOldValue", NewValue) Cell placeholder Integer value to replace Replaces a cell's value with a new double. [C#] Workbook workbook = new Workbook(); ...... double newValue = 100.0; workbook.Replace("AnOldValue", newValue); [Visual Basic] Dim workbook As Workbook = New Workbook() ......... Dim NewValue As Double = 100.0 workbook.Replace("AnOldValue", NewValue) Cell placeholder Double value to replace Replaces a cell's value with a new string array. [C#] Workbook workbook = new Workbook(); ...... string[] newValues = new string[]{"Tom", "Alice", "Jerry"}; workbook.Replace("AnOldValue", newValues, true); [Visual Basic] Dim workbook As Workbook = New Workbook() ............. Dim NewValues() As String = New String() {"Tom", "Alice", "Jerry"} workbook.Replace("AnOldValue", NewValues, True) Cell placeholder String array to replace True - Vertical, False - Horizontal Replaces cells' values with an integer array. [C#] Workbook workbook = new Workbook(); ...... int[] newValues = new int[]{1, 2, 3}; workbook.Replace("AnOldValue", newValues, true); [Visual Basic] Dim workbook As Workbook = New Workbook() ........... Dim NewValues() As Integer = New Integer() {1, 2, 3} workbook.Replace("AnOldValue", NewValues, True) Cell placeholder Integer array to replace True - Vertical, False - Horizontal Replaces cells' values with a double array. [C#] Workbook workbook = new Workbook(); ...... double[] newValues = new double[]{1.23, 2.56, 3.14159}; workbook.Replace("AnOldValue", newValues, true); [Visual Basic] Dim workbook As Workbook = New Workbook() ........... Dim NewValues() As Double = New Double() {1.23, 2.56, 3.14159} workbook.Replace("AnOldValue", NewValues, True) Cell placeholder Double array to replace True - Vertical, False - Horizontal Replaces cells' values with data from a . [C#] Workbook workbook = new Workbook(); DataTable myDataTable = new DataTable("Customers"); // Adds data to myDataTable ........ workbook.Replace("AnOldValue", myDataTable); [Visual Basic] Dim workbook As Workbook = New Workbook() Dim myDataTable As DataTable = New DataTable("Customers") ' Adds data to myDataTable ............. workbook.Replace("AnOldValue", myDataTable) Cell placeholder DataTable to replace Replaces cells' values with new data. The boolean value to be replaced. New value. Can be string, integer, double or DateTime value. Replaces cells' values with new data. The integer value to be replaced. New value. Can be string, integer, double or DateTime value. Replaces a cell's value with a new string. Cell placeholder String value to replace The replace options Copies data from a source Workbook object. Source Workbook object. Copies data from a source Workbook object. Source Workbook object. Combines another Workbook object. Another Workbook object. Currently, only cell data and cell style of the second Workbook object can be combined. Images, charts and other drawing objects are not supported. Gets the style in the style pool. All styles in the workbook will be gathered into a pool. There is only a simple reference index in the cells. The index. The style in the pool corresponds to given index, may be null. If the returned style is changed, the style of all cells(which refers to this style) will be changed. Gets all fonts in the style pool. Gets the named style in the style pool. name of the style named style, maybe null. Changes the palette for the spreadsheet in the specified index. Color structure. Palette index, 0 - 55. The palette has 56 entries, each represented by an RGB value. If you set a color which is not in the palette, it will not take effect. So if you want to set a custom color, please change the palette at first.

The following is the standard color palette.

Color¡¡Red¡¡Green¡¡Blue¡¡
Black¡¡0¡¡0¡¡0¡¡
White¡¡255¡¡255¡¡255¡¡
Red¡¡255¡¡0¡¡0¡¡
Lime¡¡0¡¡255¡¡0¡¡
Blue¡¡0¡¡0¡¡255¡¡
Yellow¡¡255¡¡255¡¡0¡¡
Magenta¡¡255¡¡0¡¡255¡¡
Cyan¡¡0¡¡255¡¡255¡¡
Maroon¡¡128¡¡0¡¡0¡¡
Green¡¡0¡¡128¡¡0¡¡
Navy¡¡0¡¡0¡¡128¡¡
Olive¡¡128¡¡128¡¡0¡¡
Purple¡¡128¡¡0¡¡128¡¡
Teal¡¡0¡¡128¡¡128¡¡
Silver¡¡192¡¡192¡¡192¡¡
Gray¡¡128¡¡128¡¡128¡¡
Color17¡¡153¡¡153¡¡255¡¡
Color18¡¡153¡¡51¡¡102¡¡
Color19¡¡255¡¡255¡¡204¡¡
Color20¡¡204¡¡255¡¡255¡¡
Color21¡¡102¡¡0¡¡102¡¡
Color22¡¡255¡¡128¡¡128¡¡
Color23¡¡0¡¡102¡¡204¡¡
Color24¡¡204¡¡204¡¡255¡¡
Color25¡¡0¡¡0¡¡128¡¡
Color26¡¡255¡¡0¡¡255¡¡
Color27¡¡255¡¡255¡¡0¡¡
Color28¡¡0¡¡255¡¡255¡¡
Color29¡¡128¡¡0¡¡128¡¡
Color30¡¡128¡¡0¡¡0¡¡
Color31¡¡0¡¡128¡¡128¡¡
Color32¡¡0¡¡0¡¡255¡¡
Color33¡¡0¡¡204¡¡255¡¡
Color34¡¡204¡¡255¡¡255¡¡
Color35¡¡204¡¡255¡¡204¡¡
Color36¡¡255¡¡255¡¡153¡¡
Color37¡¡153¡¡204¡¡255¡¡
Color38¡¡255¡¡153¡¡204¡¡
Color39¡¡204¡¡153¡¡255¡¡
Color40¡¡255¡¡204¡¡153¡¡
Color41¡¡51¡¡102¡¡255¡¡
Color42¡¡51¡¡204¡¡204¡¡
Color43¡¡153¡¡204¡¡0¡¡
Color44¡¡255¡¡204¡¡0¡¡
Color45¡¡255¡¡153¡¡0¡¡
Color46¡¡255¡¡102¡¡0¡¡
Color47¡¡102¡¡102¡¡153¡¡
Color48¡¡150¡¡150¡¡150¡¡
Color49¡¡0¡¡51¡¡102¡¡
Color50¡¡51¡¡153¡¡102¡¡
Color51¡¡0¡¡51¡¡0¡¡
Color52¡¡51¡¡51¡¡0¡¡
Color53¡¡153¡¡51¡¡0¡¡
Color54¡¡153¡¡51¡¡102¡¡
Color55¡¡51¡¡51¡¡153¡¡
Color56¡¡51¡¡51¡¡51¡¡
Checks if a color is in the palette for the spreadsheet. Color structure. Returns true if this color is in the palette. Otherwise, returns false Calculates the result of formulas. For all supported formulas, please see the list at https://docs.aspose.com/display/cellsnet/Supported+Formula+Functions Calculates the result of formulas. Indicates if hide the error in calculating formulas. The error may be unsupported function, external links, etc. Calculates the result of formulas. Indicates if hide the error in calculating formulas. The error may be unsupported function, external links, etc. The custom formula calculation functions to extend the calculation engine. NOTE: This member is now obsolete. Instead, please use CalculateFormula(CalculationOptions) method. This method will be removed 12 months later since August 2020. Aspose apologizes for any inconvenience you may have experienced. Calculating formulas in this workbook. Options for calculation Find best matching Color in current palette. Raw color. Best matching color. Set Encryption Options. The encryption type. The key length. Protects a workbook. Protection type. Password to protect the workbook. Protects a shared workbook. Password to protect the workbook. Unprotects a workbook. Password to unprotect the workbook. Unprotects a shared workbook. Password to unprotect the workbook. Removes VBA/macro from this spreadsheet. Removes digital signature from this spreadsheet. Accepts all tracked changes in the workbook. Removes all external links in the workbook. Gets theme color. The theme color type. The theme color. Sets the theme color The theme color type. the theme color Customs the theme. The theme name The theme colors The length of colors should be 12.
Array index¡¡Theme type¡¡
0¡¡Backgournd1¡¡
1¡¡Text1¡¡
2¡¡Backgournd2¡¡
3¡¡Text2¡¡
4¡¡Accent1¡¡
5¡¡Accent2¡¡
6¡¡Accent3¡¡
7¡¡Accent4¡¡
8¡¡Accent5¡¡
9¡¡Accent6¡¡
10¡¡Hyperlink¡¡
11¡¡Followed Hyperlink¡¡
Copies the theme from another workbook. Source workbook. Indicates whether this workbook contains external links to other data sources. Whether this workbook contains external links to other data sources. If this workbook contains external links to other data source, Aspose.Cells will attempt to retrieve the latest data. External workbooks are referenced by this workbook. If it's null, we will directly open the external linked files.. If it's not null, we will check whether the external link in the array first; if not, we will open the external linked files again. If the method is not called before calculating formulas, Aspose.Cells will use the previous information(cached in the file); Please set CellsHelper.StartupPath,CellsHelper.AltStartPath,CellsHelper.LibraryPath. And please set Workbook.FilePath if this workbook is from a stream, otherwise Aspose.Cells could not get the external link full path sometimes. Imports an xml file into the workbook. the path of the xml file. the destination sheet name . the destination row of the xml. the destination column of the xml. Imports an xml file into the workbook. the xml file stream. the destination sheet name . the destination row of the xml. the destination column of the xml. Export XML data. name of the XML map that need to be exported the export path Export XML data. name of the XML map that need to be exported the export stream Sets digital signature to an spreadsheet file (Excel2007 and later). Only support adding Xmldsig Digital Signature Adds digital signature to an OOXML spreadsheet file (Excel2007 and later). Only support adding Xmldsig Digital Signature to an OOXML spreadsheet file Gets digital signature from file. Performs application-defined tasks associated with freeing, releasing, or resetting unmanaged resources. Represents the workbook settings. Gets the collection in the spreadsheet. collection Indicates whether license is set. Returns colors in the palette for the spreadsheet. The palette has 56 entries, each represented by an RGB value. Gets number of the styles in the style pool. Gets or sets the default object of the workbook. The DefaultStyle property is useful to implement a Style for the whole Workbook. The following code creates and instantiates a new Workbook and sets a default to it. [C#] Workbook workbook = new Workbook(); Style defaultStyle = workbook.DefaultStyle; defaultStyle.Font.Name = "Tahoma"; workbook.DefaultStyle = defaultStyle; [Visual Basic] Dim workbook as Workbook = new Workbook() Dim defaultStyle as Style = workbook.DefaultStyle defaultStyle.Font.Name = "Tahoma" workbook.DefaultStyle = defaultStyle Indicates if this spreadsheet is digitally signed. Indicates whether structure or window is protected with password. Gets the in a spreadsheet. Indicates if this spreadsheet contains macro/VBA. Gets if the workbook has any tracked changes Gets and sets the current file name. If the file is opened by stream and there are some external formula references, please set the file name. Gets a DataSorter object to sort data. Gets the theme name. Returns a DocumentProperties collection that represents all the built-in document properties of the spreadsheet. A new property cannot be added to built-in document properties list. You can only get a built-in property and change its value. The following is the built-in properties name list:

Title

Subject

Author

Keywords

Comments

Template

Last Author

Revision Number

Application Name

Last Print Date

Creation Date

Last Save Time

Total Editing Time

Number of Pages

Number of Words

Number of Characters

Security

Category

Format

Manager

Company

Number of Bytes

Number of Lines

Number of Paragraphs

Number of Slides

Number of Notes

Number of Hidden Slides

Number of Multimedia Clips

[C#] DocumentProperty doc = workbook.BuiltInDocumentProperties["Author"]; doc.Value = "John Smith"; [Visual Basic] Dim doc as DocumentProperty = workbook.BuiltInDocumentProperties("Author") doc.Value = "John Smith"
Returns a DocumentProperties collection that represents all the custom document properties of the spreadsheet. [C#] excel.CustomDocumentProperties.Add("Checked by", "Jane"); [Visual Basic] excel.CustomDocumentProperties.Add("Checked by", "Jane") Gets and sets the file format. Gets and sets the interrupt monitor. Gets the list of objects in the workbook. Represents a Custom XML Data Storage Part (custom XML data within a package). Gets mashup data. Gets and sets the XML file that defines the Ribbon UI. Gets and sets the absolute path of the file. Only used for external links. Gets the collection. Represents all settings of the workbook. Releases resources. Gets the default theme font name. The scheme type of the font. Gets and sets the stream provider for external resource. Indicates whether checking custom number format when setting Style.Custom. Enable macros; Now it only works when copying a worksheet to other worksheet in a workbook. Gets or sets a value which represents if the workbook uses the 1904 date system. Gets the protection type of the workbook. True if calculations in this workbook will be done using only the precision of the numbers as they're displayed Indicates whether re-calculate all formulas on opening file. Indicates whether create calculated formulas chain. Default is false. Indicates whether and how to show objects in the workbook. Indicates if Aspose.Cells will use iteration to resolve circular references. Returns or sets the maximum number of iterations that Aspose.Cells can use to resolve a circular reference. Returns or sets the maximum number of change that Microsoft Excel can use to resolve a circular reference. It specifies whether to calculate formulas manually, automatically or automatically except for multiple table operations. Specifies the version of the calculation engine used to calculate values in the workbook. Specifies the stack size for calculating cells recursively. The large value for this size will give better performance when there are lots of cells need to be calculated recursively. On the other hand, larger value will raise the risk of StackOverflowException. If user gets StackOverflowException when calculating formulas, this value should be decreased. Indicates whether to recalculate before saving the document. Width of worksheet tab bar (in 1/1000 of window width). Get or sets a value whether the Workbook tabs are displayed. The default value is true. The following code hides the Sheet Tabs and Tab Scrolling Buttons for the spreadsheet. [C#] // Hide the spreadsheet tabs. workbook.ShowTabs = false; [Visual Basic] ' Hide the spreadsheet tabs. workbook.ShowTabs = False Gets or sets the first visible worksheet tab. Gets or sets a value indicating whether the generated spreadsheet will contain a horizontal scroll bar. The default value is true. The following code makes the horizontal scroll bar invisible for the spreadsheet. [C#] // Hide the horizontal scroll bar of the Excel file. workbook.IsHScrollBarVisible = false; [Visual Basic] ' Hide the horizontal scroll bar of the Excel file. workbook.IsHScrollBarVisible = False Gets or sets a value indicating whether the generated spreadsheet will contain a vertical scroll bar. The default value is true. The following code makes the vertical scroll bar invisible for the spreadsheet. [C#] // Hide the vertical scroll bar of the Excel file. workbook.IsVScrollBarVisible = false; [Visual Basic] ' Hide the vertical scroll bar of the Excel file. workbook.IsVScrollBarVisible = False Gets or sets a value that indicates whether the Workbook is shared. The default value is false. Gets or sets the user interface language of the Workbook version based on CountryCode that has saved the file. Gets or sets the regional settings for workbook. 1. Regional settings used by Aspose.Cells component for a workbook loaded from template file: i). For an XLS file, there are fields defined for regional settings and MS Excel does save regional settings data into the file when saving the XLS file. So, we use the saved region in the template file for the workbook. If you do not want to use the region saved in the XLS file, please reset it to the expected one (such as, CountryCode.Default) after loading the template file. And, we save the user specified value (by this method) into the file too when saving an XLS file. ii). For other file formats, such as, XLSX, XLSB...etc., there is no field defined for regional settings in the file format specification. So, we use the regional settings of application's environment for the workbook. And, the user specified value (by this method) cannot be kept for the generated files with those file formats. 2. For the view effect in MS Excel: The applied regional settings here can take effect only at runtime with Aspose.Cells component and not when viewing the generated file with MS Excel. Even for the generated XLS file in which the specified regional settings data has been saved, when viewing/editing it with MS Excel, the used region to perform formatting by MS Excel is always the default regional settings of the environment where MS Excel is running, not the one saved in the file. It is MS Excel's behavior and cannot be changed by code. Gets or sets the system culture info. Returns null if culture info is not set and is not set. Gets and sets the globalization settings. Gets or sets the decimal separator for formatting/parsing numeric values. Default is the decimal separator of current Region. Gets or sets the character that separates groups of digits to the left of the decimal in numeric values. Default is the group separator of current Region. Represents Workbook file encryption password. Provides access to the workbook write protection options. Indicates if the Read Only Recommended option is selected. NOTE: This member is now obsolete. Instead, please use WorkbookSettings.WriteProtection.RecommendReadOnly property. This property will be removed 12 months later since October 2015. Aspose apologizes for any inconvenience you may have experienced. Indicates whether this workbook is write protected. NOTE: This member is now obsolete. Instead, please use WorkbookSettings.WriteProtection.IsWriteProtected property. This property will be removed 12 months later since October 2015. Aspose apologizes for any inconvenience you may have experienced. Sets the protected password to modify the file. NOTE: This member is now obsolete. Instead, please use WorkbookSettings.WriteProtection.Password property. This property will be removed 12 months later since October 2015. Aspose apologizes for any inconvenience you may have experienced. Gets a value that indicates whether a password is required to open this workbook. Gets a value that indicates whether the structure or window of the Workbook is protected. Indicates whether encrypting the workbook with default password if Structure and Windows of the workbook are locked. The default value is false now. It's same as MS Excel 2013. Represents whether the generated spreadsheet will be opened Minimized. Indicates whether this workbook is hidden. Specifies a boolean value that indicates the application automatically compressed pictures in the workbook. True if personal information can be removed from the specified workbook. Gets and sets whether hide the field list for the PivotTable. Gets and sets how updates external links when the workbook is opened. Gets the max row index, zero-based. Returns 65535 if the file format is Excel97-2003; Gets the max column index, zero-based. Returns 255 if the file format is Excel97-2003; Indicates whether parsing the formula when reading the file. Only applies for Excel Xlsx, Xltx, Xltm and Xlsm file because the formulas in the files are stored with a string formula. NOTE: This member is now obsolete. Instead, please use LoadOptions.ParsingFormulaOnOpen. This property will be removed 12 months later since January 2020. Aspose apologizes for any inconvenience you may have experienced. The distance from the left edge of the client area to the left edge of the window, in unit of point. The distance from the left edge of the client area to the left edge of the window. In unit of inch. The distance from the left edge of the client area to the left edge of the window. In unit of centimeter. The distance from the top edge of the client area to the top edge of the window, in unit of point. The distance from the top edge of the client area to the top edge of the window, in unit of inch. The distance from the top edge of the client area to the top edge of the window, in unit of centimeter. The width of the window, in unit of point. The width of the window, in unit of inch. The width of the window, in unit of centimeter. The height of the window, in unit of point. The height of the window, in unit of inch. The height of the window, in unit of centimeter. Indicates whether update adjacent cells' border. The default value is false. For example: the bottom border of the cell A1 is update, the top border of the cell A2 should be changed too. Gets and sets the number of significant digits. The default value is . Only could be 15 or 17 now. Indicates whether check compatibility when saving workbook. The default value is true. Whether check restriction of excel file when user modify cells related objects. For example, excel does not allow inputting string value longer than 32K. When you input a value longer than 32K such as by Cell.PutValue(string), if this property is true, you will get an Exception. If this property is false, we will accept your input string value as the cell's value so that later you can output the complete string value for other file formats such as CSV. However, if you have set such kind of value that is invalid for excel file format, you should not save the workbook as excel file format later. Otherwise there may be unexpected error for the generated excel file. Indicates whether the file is mark for auto-recovery. indicates whether the application last saved the workbook file after a crash. indicates whether the application last opened the workbook for data recovery. Indicates whether the application last opened the workbook in safe or repair mode. Specifies the incremental public release of the application. Gets or sets the memory usage options. The new option will be taken as the default option for newly created worksheets but does not take effect for existing worksheets. Gets and sets the default print paper size. If there is no setting about paper size,MS Excel will use default printer's setting. Gets or sets warning callback. Gets and sets the max row number of shared formula. If the number is too large, the autofilter works very slow in MS Excel 2013. Specifies the OOXML version for the output document. The default value is Ecma376_2006. Only for .xlsx files. Indicates whether setting property when entering the string value(which starts with single quote mark ) to the cell Encapsulates a collection of objects. [C#] Workbook workbook = new Workbook(); WorksheetCollection sheets = workbook.Worksheets; //Add a worksheet sheets.Add(); //Change the name of a worksheet sheets[0].Name = "First Sheet"; //Set the active sheet to the second worksheet sheets.SetActiveSheet(1); [Visual Basic] Dim excel as Workbook = new Workbook() Dim sheets as WorksheetCollection = excel.Worksheets 'Add a worksheet sheets.Add() 'Change the name of a worksheet sheets(0).Name = "First Sheet" 'Set the active sheet to the second worksheet sheets.SetActiveSheet(1) Creates a object from an address of the range. The address of the range. The sheet index. A object Creates a object from an address of the range. The address of the range. The sheet index. A object Gets the worksheet by the code name. Worksheet code name. The element with the specified code name. Sorts the defined names. If you create a large amount of named ranges in the Excel file, please call this method after all named ranges are created and before saving Insert a worksheet. The sheet index The sheet type. Returns an inserted worksheet. Insert a worksheet. The sheet index The sheet type. The sheet name. Returns an inserted worksheet. Adds a worksheet to the collection. Worksheet type. object index. [C#] Workbook workbook = new Workbook(); workbook.Worksheets.Add(SheetType.Chart); Cells cells = workbook.Worksheets[0].Cells; cells["c2"].PutValue(5000); cells["c3"].PutValue(3000); cells["c4"].PutValue(4000); cells["c5"].PutValue(5000); cells["c6"].PutValue(6000); Charts charts = workbook.Worksheets[1].Charts; int chartIndex = charts.Add(ChartType.Column, 10,10,20,20); Chart chart = charts[chartIndex]; chart.NSeries.Add("Sheet1!C2:C6", true); [Visual Basic] Dim workbook As Workbook = New Workbook() workbook.Worksheets.Add(SheetType.Chart) Dim cells As Cells = workbook.Worksheets(0).Cells cells("c2").PutValue(5000) cells("c3").PutValue(3000) cells("c4").PutValue(4000) cells("c5").PutValue(5000) cells("c6").PutValue(6000) Dim charts As Charts = workbook.Worksheets(1).Charts Dim chartIndex As Integer = charts.Add(ChartType.Column,10,10,20,20) Dim chart As Chart = charts(chartIndex) chart.NSeries.Add("Sheet1!C2:C6", True) Swaps the two sheets. The first worksheet. The second worksheet. Adds a worksheet to the collection. object index. Adds a worksheet to the collection. Worksheet name object. Adds addin function into the workbook the file contains the addin functions the addin function name whether the given addin file is in the directory or sub-directory of Workbook Add-In library. This flag takes effect and makes difference when given addInFile is of relative path: true denotes the path is relative to Add-In library and false denotes the path is relative to this Workbook. ID of the data which contains given addin function Adds addin function into the workbook ID of the data which contains addin functions, can be got by the first call of for the same addin file. the addin function name URL of the addin file which contains addin functions Removes the element at a specified name. The name of the element to remove. Removes the element at a specified index. The index value of the element to remove. Clear all worksheets. A workbook must contains a worksheet. Adds a worksheet to the collection and copies data from an existed worksheet. Name of source worksheet. object index. Specifies an invalid worksheet name. Adds a worksheet to the collection and copies data from an existed worksheet. Index of source worksheet. object index. Gets Range object by pre-defined name. Name of range. Range object.

Returns null if the named range does not exist.
Gets all pre-defined named ranges in the spreadsheet. An array of Range objects. If the defined Name's reference is external or has multiple ranges, no Range object will be returned for this Name.

Returns null if the named range does not exist.
Gets all pre-defined named ranges in the spreadsheet. An array of Range objects.

Returns null if the named range does not exist.
Sets displayed size when Workbook file is used as an Ole object. Start row index. End row index. Start column index. End column index. This method is generally used to adjust display size in ppt file or doc file. Clears pivot tables from the spreadsheet. Refreshes all the PivotTables in the WorksheetCollection. Gets the list of task panes. Gets the list of task panes. Gets the list of threaded comment authors. Indicates whether refresh all connections on opening file in MS Excel. Gets the collection of all the Name objects in the spreadsheet. Gets the element at the specified index. The zero based index of the element. The element at the specified index. Gets the element with the specified name. Worksheet name The element with the specified name. Represents the index of active worksheet when the spreadsheet is opened. Sheet index is zero based. Gets the master differential formatting records. Gets and sets the XML maps in the workbook. Returns a DocumentProperties collection that represents all the built-in document properties of the spreadsheet. A new property cannot be added to built-in document properties list. You can only get a built-in property and change its value. The following is the built-in properties name list:

Title

Subject

Author

Keywords

Comments

Template

Last Author

Revision Number

Application Name

Last Print Date

Creation Date

Last Save Time

Total Editing Time

Number of Pages

Number of Words

Number of Characters

Security

Category

Format

Manager

Company

Number of Bytes

Number of Lines

Number of Paragraphs

Number of Slides

Number of Notes

Number of Hidden Slides

Number of Multimedia Clips

[C#] DocumentProperty doc = workbook.Worksheets.BuiltInDocumentProperties["Author"]; doc.Value = "John Smith"; [Visual Basic] Dim doc as DocumentProperty = workbook.Worksheets.BuiltInDocumentProperties("Author") doc.Value = "John Smith"
Returns a DocumentProperties collection that represents all the custom document properties of the spreadsheet. [C#] excel.Worksheets.CustomDocumentProperties.Add("Checked by", "Jane"); [Visual Basic] excel.Worksheets.CustomDocumentProperties.Add("Checked by", "Jane") Gets and Sets displayed size when Workbook file is used as an Ole object. Null means no ole size setting. Represents external links in a workbook. Gets object. Represents revision logs. Encapsulates the object that represents a single worksheet. [C#] Workbook workbook = new Workbook(); Worksheet sheet = workbook.Worksheets[0]; //Freeze panes at "AS40" with 10 rows and 10 columns sheet.FreezePanes("AS40", 10, 10); //Add a hyperlink in Cell A1 sheet.Hyperlinks.Add("A1", 1, 1, "http://www.aspose.com"); [Visual Basic] Dim workbook as Workbook = new Workbook() Dim sheet as Worksheet = workbook.Worksheets(0) 'Freeze panes at "AS40" with 10 rows and 10 columns sheet.FreezePanes("AS40", 10, 10) 'Add a hyperlink in Cell A1 sheet.Hyperlinks.Add("A1", 1, 1, "http://www.aspose.com") Performs application-defined tasks associated with freeing, releasing, or resetting unmanaged resources. Gets the window panes. If the window is not split or frozen. Freezes panes at the specified cell in the worksheet. Row index. Column index. Number of visible rows in top pane, no more than row index. Number of visible columns in left pane, no more than column index.

Row index and column index cannot all be zero. Number of rows and number of columns also cannot all be zero.

The first two parameters specify the froze position and the last two parameters specify the area frozen on the left top pane.

Gets the freeze panes. Row index. Column index. Number of visible rows in top pane, no more than row index. Number of visible columns in left pane, no more than column index. Return whether the worksheet is frozen Splits window. Freezes panes at the specified cell in the worksheet. Cell name. Number of visible rows in top pane, no more than row index. Number of visible columns in left pane, no more than column index. Row index and column index cannot all be zero. Number of rows and number of columns also cannot all be zero. Unfreezes panes in the worksheet. Removes split window. Adds page break. Copies contents and formats from another worksheet. Source worksheet. Copies contents and formats from another worksheet. Source worksheet. You can copy data from another worksheet in the same file or another file. However, this method does not support to copy drawing objects, such as comments, images and charts. Autofits the column width. Column index. First row index. Last row index. This method autofits a row based on content in a range of cells within the row. Autofits all columns in this worksheet. Autofits all columns in this worksheet. The auto fitting options Autofits the column width. Column index. AutoFitColumn is an imprecise function. Autofits the columns width. First column index. Last column index. AutoFitColumn is an imprecise function. Autofits the columns width. First column index. Last column index. The auto fitting options AutoFitColumn is an imprecise function. Autofits the columns width. First row index. First column index. Last row index. Last column index. AutoFitColumn is an imprecise function. Autofits the columns width. First row index. First column index. Last row index. Last column index. The auto fitting options AutoFitColumn is an imprecise function. Autofits the row height. Row index. First column index. Last column index. This method autofits a row based on content in a range of cells within the row. Autofits the row height. Row index. First column index. Last column index. The auto fitter options This method autofits a row based on content in a range of cells within the row. Autofits all rows in this worksheet. Autofits all rows in this worksheet. True,only autofits the row height when row height is not customed. Autofits all rows in this worksheet. The auto fitter options Autofits row height in a range. Start row index. End row index. Autofits row height in a range. Start row index. End row index. The options of auto fitter. Autofits row height in a rectangle range. Start row index. End row index. Start column index. End column index. Autofits the row height. Row index. AutoFitRow is an imprecise function. Filters data using complex criteria. Indicates whether filtering the list in place. The list range. The criteria range. The range where copying data to. Only displaying or copying unique rows. Removes the auto filter of the worksheet. Sets the visible options. Whether the worksheet is visible Whether to ignore error if this option is not valid. Selects a range. The start row. The start column The number of rows. The number of columns True means removing other selected range and only select this range. Removes all drawing objects in this worksheet. Clears all comments in designer spreadsheet. Protects worksheet. Protection type. This method protects worksheet without password. It can protect worksheet in all versions of Excel file. Protects worksheet. Protection type. Password. If the worksheet is already protected by a password, please supply the old password. Otherwise, you can set a null value or blank string to this parameter. This method can protect worksheet in all versions of Excel file. [C#] //Creating a file stream containing the Excel file to be opened FileStream fstream = new FileStream("C:\\book1.xls", FileMode.Open); //Instantiating a Workbook object and Opening the Excel file through the file stream Workbook excel = new Workbook(fstream); //Accessing the first worksheet in the Excel file Worksheet worksheet = excel.Worksheets[0]; //Protecting the worksheet with a password worksheet.Protect(ProtectionType.All, "aspose", null); //Saving the modified Excel file in default (that is Excel 20003) format excel.Save("C:\\output.xls"); //Closing the file stream to free all resources fstream.Close(); [Visual Basic] 'Creating a file stream containing the Excel file to be opened Dim fstream As FileStream = New FileStream("C:\\book1.xls", FileMode.Open) 'Instantiating a Workbook object and Opening the Excel file through the file stream Dim excel As Workbook = New Workbook(fstream) 'Accessing the first worksheet in the Excel file Dim worksheet As Worksheet = excel.Worksheets(0) 'Protecting the worksheet with a password worksheet.Protect(ProtectionType.All, "aspose", DBNull.Value.ToString()) 'Saving the modified Excel file in default (that is Excel 20003) format excel.Save("C:\\output.xls") 'Closing the file stream to free all resources fstream.Close() Unprotects worksheet. This method unprotects worksheet which is protected without password. Unprotects worksheet. Password If the worksheet is protected without a password, you can set a null value or blank string to password parameter. Moves the sheet to another location in the spreadsheet. Destination sheet index. Replaces all cells' text with a new string. Old string value. New string value. Gets selected ranges of cells in the designer spreadsheet. An which contains selected ranges. Sets worksheet background image. Picture data. NOTE: This member is now obsolete. Instead, please use Worksheet.BackgroundImage property. This property will be removed 12 months later since August 2016. Aspose apologizes for any inconvenience you may have experienced. Gets automatic page breaks. The print options The automatic page breaks areas. Each cell area represents a paper. Returns a string represents the current Worksheet object. Calculates a formula. Formula to be calculated. Calculated formula result. Calculates a formula. Formula to be calculated. Options for calculating formula Calculated formula result. Calculates all formulas in this worksheet. True means if the worksheet' cells depend on the cells of other worksheets, the dependent cells in other worksheets will be calculated too. False means all the formulas in the worksheet have been calculated and the values are right. Indicates if hide the error in calculating formulas. The error may be unsupported function, external links, etc. The custom formula calculation functions to extend the calculation engine. NOTE: This member is now obsolete. Instead, please use CalculateFormula(CalculationOptions, bool) method. This method will be removed 12 months later since August 2020. Aspose apologizes for any inconvenience you may have experienced. Calculates all formulas in this worksheet. Options for calculation True means if the worksheet' cells depend on the cells of other worksheets, the dependent cells in other worksheets will be calculated too. False means all the formulas in the worksheet have been calculated and the values are right. Query cell areas that mapped/linked to the specific path of xml map. xml element path e.g. A xml map element structure: -RootElement |-Attribute1 |-SubElement |-Attribute2 |-Attribute3 To query "Attribute1", path is "/RootElement/@Attribute1" To query "Attribute2", path is "/RootElement/SubElement/@Attribute2" To query whole "SubElement", path is "/RootElement/SubElement" Specify an xml map if you want to query for the specific path within a specific map list that mapped/linked to the specific path of xml map, an empty list is returned if nothing is mapped/linked. Refreshes all the PivotTables in this Worksheet. Represents the various types of protection options available for a worksheet. Supports advanced protection options in ExcelXP and above version. This property can protect worksheet in all versions of Excel file and support advanced protection options in ExcelXP and above version. Gets and sets the unique id, it is same as {15DB5C3C-A5A1-48AF-8F25-3D86AC232D4F}. Gets the workbook object which contains this sheet. Gets the collection. Gets the queryTables in the worksheet. Gets all pivot tables in this worksheet. Represents worksheet type. Gets or sets the name of the worksheet. The max length of sheet name is 31. And you cannot assign same name(case insensitive) to two worksheets. For example, you cannot set "SheetName1" to the first worksheet and set "SHEETNAME1" to the second worksheet. Indicates whether to show formulas or their results. Gets or sets a value indicating whether the gridlines are visible.Default is true. Gets or sets a value indicating whether the worksheet will display row and column headers. Default is true. Indicates whether the pane has horizontal or vertical splits, and whether those splits are frozen. True if zero values are displayed. Indicates if the specified worksheet is displayed from right to left instead of from left to right. Default is false. Indicates whether to show outline. Indicates whether this worksheet is selected when the workbook is opened. Gets all ListObjects in this worksheet. Specifies the internal identifier for the sheet. Gets the collection. Gets the collection. Gets the collection. Represents the page setup description in this sheet. Represents auto filter for the specified worksheet. Indicates whether this worksheet has auto filter. Indicates whether the Transition Formula Evaluation (Lotus compatibility) option is enabled. Indicates whether the Transition Formula Entry (Lotus compatibility) option is enabled. Indicates the visible state for this sheet. Represents if the worksheet is visible. Gets the sparkline group collection in the worksheet. Gets a collection Gets the collection. Gets a collection. Gets a collection. Gets a collection. Represents a collection of in a worksheet. Returns all drawing shapes in this worksheet. Get the Slicer collection in the worksheet Gets the index of sheet in the worksheet collection. Indicates if the worksheet is protected. Gets the data validation setting collection in the worksheet. Gets the allow edit range collection in the worksheet. Gets error check setting applied on certain ranges. Gets the outline on this worksheet. Represents first visible row index. Represents first visible column index. Represents the scaling factor in percentage. It should be between 10 and 400. Please set the view type first. Gets and sets the view type. Indicates whether the specified worksheet is shown in normal view or page break preview. Indicates whether the ruler is visible. This property is only applied for page break preview. Represents worksheet tab color. This feature is only supported in ExcelXP(Excel2002) and later versions. If you save file as Excel97 or Excel2000 format, it will be omitted. Gets worksheet code name. Gets and sets worksheet background image. Gets the ConditionalFormattings in the worksheet. Gets or sets the active cell in the worksheet. Gets an object representing the identifier information associated with a worksheet. Worksheet.CustomProperties provide a preferred mechanism for storing arbitrary data. It supports legacy third-party document components, as well as those situations that have a stringent need for binary parts. Gets all objects of the worksheet. Gets the collection of . Gets collection of cells on this worksheet being watched in the 'watch window'. Provides methods to set metered key. In this example, an attempt will be made to set metered public and private key [C#] Metered matered = new Metered(); matered.SetMeteredKey("PublicKey", "PrivateKey"); [Visual Basic] Dim matered As Metered = New Metered matered.SetMeteredKey("PublicKey", "PrivateKey") Initializes a new instance of this class. Sets metered public and private key public key private key Gets consumption file size consumption quantity Gets consumption credit consumption quantity Encapsulates the object that represents the page setup description. The PageSetup object contains all page setup options. [C#] sheet.PageSetup.PrintArea = "D1:K13"; sheet.PageSetup.PrintTitleRows = "$5:$7"; sheet.PageSetup.PrintTitleColumns = "$A:$B"; [Visual Basic] sheet.PageSetup.PrintArea = "D1:K13" sheet.PageSetup.PrintTitleRows = "$5:$7" sheet.PageSetup.PrintTitleColumns = "$A:$B" Copies the setting of the page setup. The source. The copy options. Sets the number of pages the worksheet will be scaled to when it's printed. Pages wide. Pages tall. Sets the custom paper size, in unit of inches. The width of the paper. The height of the paper. Clears header and footer setting. Gets a script formatting the header of an Excel file.

0:Left Section.

1:Center Section

2:Right Section

Gets all commands of header or footer. The header/footer script Returns all commands of header or footer. Gets a script formatting the footer of an Excel file.

0:Left Section.

1:Center Section

2:Right Section

Sets a script formatting the header of an Excel file.

0:Left Section.

1:Center Section

2:Right Section

Header format script.

Script commands:

Command ¡¡ Description ¡¡
&P Current page number¡¡
&N Page count¡¡
&D Current date¡¡
&T Current time
&A Sheet name
&F File name without path
&"<FontName>" Font name, for example: &"Arial"
&"<FontName>, <FontStyle>" Font name and font style, for example: &"Arial,Bold"
&<FontSize> Font size. If this command is followed by a plain number to be printed in the header, it will be separated from the font height with a space character.
&"<K" Font color, for example(RED): &FF0000
&G Image script
For example: "&Arial,Bold&8Header Note"
Sets a script formatting the footer of an Excel file.

0:Left Section.

1:Center Section

2:Right Section

dddd Footer format script.

Script commands:

Command¡¡Description¡¡
&PCurrent page number¡¡
&NPage count¡¡
&DCurrent date¡¡
&TCurrent time
&ASheet name
&FFile name without path
&"<FontName>"Font name, for example: &"Arial"
&"<FontName>, <FontStyle>"Font name and font style, for example: &"Arial,Bold"
&<FontSize>Font size. If this command is followed by a plain number to be printed in the header, it will be separated from the font height with a space character.
&GImage script
For example: "&Arial,Bold&8Footer Note"
Sets a script formatting the even page header of an Excel file. Only effect in Excel 2007 when IsHFDiffOddEven is true.

0:Left Section.

1:Center Section

2:Right Section

Header format script.
Gets a script formatting the even header of an Excel file.

0:Left Section.

1:Center Section

2:Right Section

Sets a script formatting the even page footer of an Excel file. Only effect in Excel 2007 when IsHFDiffOddEven is true.

0:Left Section.

1:Center Section

2:Right Section

Footer format script.
Gets a script formatting the even footer of an Excel file.

0:Left Section.

1:Center Section

2:Right Section

Sets a script formatting the first page header of an Excel file. Only effect in Excel 2007 when IsHFDiffFirst is true.

0:Left Section.

1:Center Section

2:Right Section

Header format script.
Gets a script formatting the first page header of an Excel file.

0:Left Section.

1:Center Section

2:Right Section

Sets a script formatting the first page footer of an Excel file.

0:Left Section.

1:Center Section

2:Right Section

Footer format script.
Gets a script formatting the first page footer of an Excel file.

0:Left Section.

1:Center Section

2:Right Section

Sets an image in the header of a worksheet.

0:Left Section.

1:Center Section

2:Right Section

Image data. Returns object.
Sets an image in the footer of a worksheet.

0:Left Section.

1:Center Section

2:Right Section

Image data. Returns object.
Sets an image in the header/footer of a worksheet. Indicates whether setting the picture of first page header/footer. Indicates whether setting the picture of even page header/footer. Indicates whether setting the picture of header/footer.

0:Left Section.

1:Center Section

2:Right Section

Image data. Returns object.
Gets the object of the header / footer. Indicates whether it is in the header or footer.

0:Left Section.

1:Center Section

2:Right Section

Returns object. Returns null if there is no picture.
Gets the object of the header / footer. Indicates whether getting the picture of first page header/footer. Indicates whether getting the picture of even page header/footer. Indicates whether getting the picture of header/footer.

0:Left Section.

1:Center Section

2:Right Section

Returns object.
Gets the background of ODS. Represents the range to be printed. Represents the columns that contain the cells to be repeated on the left side of each page. [C#] cells.PageSetup.PrintTitleColumns = "$A:$A"; [Visula Basic] cells.PageSetup.PrintTitleColumns = "$A:$A" Represents the rows that contain the cells to be repeated at the top of each page. [C#] cells.PageSetup.PrintTitleRows = "$1:$1"; [Visula Basic] cells.PageSetup.PrintTitleRows = "$1:$1" Represents if elements of the document will be printed in black and white. Represent if the sheet is printed centered horizontally. Represent if the sheet is printed centered vertically. Represents if the sheet will be printed without graphics. Represents the distance from the bottom of the page to the footer, in unit of centimeters. Represents the distance from the bottom of the page to the footer, in unit of inches. Represents the distance from the top of the page to the header, in unit of centimeters. Represents the distance from the top of the page to the header, in unit of inches. Gets and sets the settings of the default printer. Represents the size of the left margin, in unit of centimeters. Represents the size of the left margin, in unit of inches. Represents the size of the right margin, in unit of centimeters. Represents the size of the right margin, in unit of inches. Represents the size of the top margin, in unit of centimeters. Represents the size of the top margin, in unit of inches. Represents the size of the bottom margin, in unit of centimeters. Represents the size of the bottom margin, in unit of inches. Represents the first page number that will be used when this sheet is printed. Represents the number of pages tall the worksheet will be scaled to when it's printed. The default value is 1. You have to set FitToPagesWide as zero if you want to fit all rows on one page. Represents the number of pages wide the worksheet will be scaled to when it's printed. The default value is 1. You have to set FitToPagesTall as zero if you want to fit all columns on one page. If this property is False, the FitToPagesWide and FitToPagesTall properties control how the worksheet is scaled. Represents the order that Microsoft Excel uses to number pages when printing a large worksheet. Indicates whether the paper size is automatic. Represents the size of the paper. Gets the width of the paper in unit of inches, considered page orientation. Gets the height of the paper in unit of inches , considered page orientation. Represents page print orientation. Represents the way comments are printed with the sheet. Specifies the type of print error displayed. Represents if row and column headings are printed with this page. Represents if cell gridlines are printed on the page. Represents the scaling factor in percent. It should be between 10 and 400. Indicates whether the first the page number is automatically assigned. Represents the print quality. Get and sets number of copies to print. True means that the header/footer of the odd pages is different with odd pages. True means that the header/footer of the first page is different with other pages. Indicates whether header and footer are scaled with document scaling. Only applies for Excel 2007. Indicates whether header and footer margins are aligned with the page margins. If this property is true, the left header and footer will be aligned with the left margin, and the right header and footer will be aligned with the right margin. This option is enabled by default. Represents the text options. Encapsulates the font object used in a spreadsheet. [C#] //Instantiating a Workbook object Workbook workbook = new Workbook(); //Obtaining the reference of the newly added worksheet by passing its sheet index Worksheet worksheet = workbook.Worksheets[0]; //Accessing the "A1" cell from the worksheet Aspose.Cells.Cell cell = worksheet.Cells["A1"]; //Adding some value to the "A1" cell cell.PutValue("Hello Aspose!"); Aspose.Cells.Font font = cell.Style.Font; //Setting the font name to "Times New Roman" font.Name = "Times New Roman"; //Setting font size to 14 font.Size = 14; //setting font color as Red font.Color = System.Drawing.Color.Red; //Saving the Excel file workbook.Save(@"d:\dest.xls"); [VB.NET] 'Instantiating a Workbook object Dim workbook As New Workbook() 'Obtaining the reference of the newly added worksheet by passing its sheet index Dim worksheet As Worksheet = workbook.Worksheets(0) 'Accessing the "A1" cell from the worksheet Dim cell As Aspose.Cells.Cell = worksheet.Cells("A1") 'Adding some value to the "A1" cell cell.PutValue("Hello Aspose!") Dim font As Aspose.Cells.Font = cell.Style.Font 'Setting the font name to "Times New Roman" font.Name = "Times New Roman" 'Setting font size to 14 font.Size = 14 'setting font color as Red font.Color = System.Drawing.Color.Red 'Saving the Excel file workbook.Save("d:\dest.xls") Checks if two fonts are equals. Compared font object. True if equal to the compared font object. Returns a string represents the current Cell object. Represent the character set. Gets or sets a value indicating whether the font is italic. Gets or sets a value indicating whether the font is bold. Gets and sets the text caps type. Gets the strike type of the text. Gets or sets a value indicating whether the font is single strikeout. Gets and sets the script offset,in unit of percentage Gets or sets a value indicating whether the font is super script. Gets or sets a value indicating whether the font is subscript. Gets or sets the font underline type. Gets or sets the name of the . [C#] Style style; .......... Font font = style.Font; font.Name = "Times New Roman"; [Visual Basic] Dim style As Style .......... Dim font As Font = style.Font font.Name = "Times New Roman" Gets and sets the double size of the font. Gets or sets the size of the font. Gets and sets the theme color. If the font color is not a theme color, NULL will be returned. Gets or sets the of the font. Gets and sets the color with a 32-bit ARGB value. Indicates whether the normalization of height that is to be applied to the text run. Gets and sets the scheme type of the font. Gets and sets the name of the shape. Gets and sets the latin name. Gets and sets the FarEast name. Represents the fill format of the text. Represents the outline format of the text. Represents a object that specifies shadow effect for the chart element or shape. Gets or sets the color of underline. Specifies the minimum font size at which character kerning will occur for this text run. Specifies the spacing between characters within a text run. Represents a field in a PivotTable report. Gets the pivot filter of the pivot field by type Gets the pivot filters of the pivot field Init the pivot items of the pivot field Get the formula string of the specified calculated field . Sets whether the specified field shows that subtotals. subtotals type. whether the specified field shows that subtotals. Gets whether the specified field shows that subtotals. subtotals type. whether the specified field shows that subtotals. Indicates whether the specific PivotItem is hidden. the index of the pivotItem in the pivotField. whether the specific PivotItem is hidden Sets whether the specific PivotItem in a data field is hidden. the index of the pivotItem in the pivotField. whether the specific PivotItem is hidden Indicates whether the specific PivotItem is hidden detail. the index of the pivotItem in the pivotField. whether the specific PivotItem is hidden detail Sets whether the specific PivotItem in a pivot field is hidden detail. the index of the pivotItem in the pivotField. whether the specific PivotItem is hidden Sets whether the PivotItems in a pivot field is hidden detail.That is collapse/expand this field. whether the PivotItems is hidden Sets whether the specific PivotItem in a data field is hidden. the value of the pivotItem in the pivotField. whether the specific PivotItem is hidden Add a calculated item to the pivot field. The item's name. The item's formula Only supports to add calculated item to Row/Column field. Gets the pivot items of the pivot field Gets the group range of the pivot field Indicates whether the specified PivotTable field is calculated field. Represents the PivotField index in the base PivotFields. Represents the PivotField index in the PivotFields. Represents the PivotField name. Represents the PivotField display name. Indicates whether the specified field shows automatic subtotals. Default is true. Indicates whether the specified field can be dragged to the column position. The default value is true. Indicates whether the specified field can be dragged to the hide position. The default value is true. Indicates whether the specified field can be dragged to the row position. The default value is true. Indicates whether the specified field can be dragged to the page position. The default value is true. Indicates whether the specified field can be dragged to the data position. The default value is true. indicates whether the field can have multiple items selected in the page field The default value is false. indicates whether the field can repeat items labels The default value is false. indicates whether the field can include new items in manual filter The default value is false. indicates whether the field can insert page breaks between items insert page break after each item The default value is false. Indicates whether all items in the PivotTable report are displayed, even if they don't contain summary data. show items with no data The default value is false. Indicates whether the specified PivotTable field is automatically sorted. Indicates whether the specified PivotTable field is autosorted ascending. Represents auto sort field index. -1 means PivotField itself,others means the position of the data fields. Indicates whether the specified PivotTable field is automatically shown,only valid for excel 2003. Indicates whether the specified PivotTable field is autoshown ascending. Represent the number of top or bottom items that are automatically shown in the specified PivotTable field. Represents auto show field index. -1 means PivotField itself. It should be the index of the data fields. Represents the function used to summarize the PivotTable data field. Represents how to display the values contained in a data field. Represents the base field for a custom calculation. Represents the item in the base field for a custom calculation. Valid only for data fields. Because PivotItemPosition.Custom is only for read,if you need to set PivotItemPosition.Custom, please set PivotField.BaseItemIndex attribute. Represents the item in the base field for a custom calculation. Valid only for data fields. Represents the current page item showing for the page field (valid only for page fields). Represents the built-in display format of numbers and dates. Indicates whether inserting blank line after each item. when ShowInOutlineForm is true, then display subtotals at the top of the list of items instead of at the bottom Indicates whether layout this field in outline form on the Pivot Table view Represents the custom display format of numbers and dates. Get all base items; Get the original base items; Gets the base item count of this pivot field. Summary description for PivotTable. Performs application-defined tasks associated with freeing, releasing, or resetting unmanaged resources. Copies named style from another pivot table. Source pivot table. Show all the report filter pages according to PivotField, the PivotField must be located in the PageFields. The PivotField object Show all the report filter pages according to PivotField's name, the PivotField must be located in the PageFields. The name of PivotField Show all the report filter pages according to the position index in the PageFields The position index in the PageFields Removes a field from specific field area The fields area type. The name in the base fields. Removes a field from specific field area The fields area type. The field index in the base fields. Remove field from specific field area the fields area type.It could be one of the following values:
PivotFieldType.Row
PivotFieldType.Column
PivotFieldType.Data
PivotFieldType.Page
the field in the base fields.
Adds the field to the specific area. The fields area type. The name in the base fields. The field position in the specific fields.If there is no field named as it, return -1. Adds the field to the specific area. The fields area type. The field index in the base fields. The field position in the specific fields. Adds the field to the specific area. the fields area type.It could be one of the following values:
PivotFieldType.Row
PivotFieldType.Column
PivotFieldType.Data
PivotFieldType.Page
the field in the base fields. the field position in the specific fields.
Adds a calculated field to pivot field. The name of the calculated field The formula of the calculated field. True,drag this field to data area immediately Adds a calculated field to pivot field and drag it to data area. The name of the calculated field The formula of the calculated field. Gets the specific fields by the field type. the field type. the specific fields Moves the PivotTable to a different location in the worksheet. row index. column index. Moves the PivotTable to a different location in the worksheet. the dest cell name. Set pivottable's source data. Sheet1!$A$1:$C$3 Get pivottable's source data. Refreshes pivottable's data and setting from it's data source. We will gather data from data source to a pivot cache ,then calculate the data in the cache to the cells. This method is only used to gather all data to a pivot cache. Calculates pivottable's data to cells. Cell.Value in the pivot range could not return the correct result if the method is not been called. This method calculates data with an inner pivot cache,not original data source. So if the data source is changed, please call RefreshData() method first. Clear PivotTable's data and formatting If this method is not called before you add or delete PivotField, Maybe the PivotTable data is not corrected Calculates pivottable's range. If this method is not been called,maybe the pivottable range is not corrected. Format all the cell in the pivottable area Style which is to format Format the cell in the pivottable area RowIndex of the cell Column index of the cell Style which is to format the cell Sets auto field group by the PivotTable. The row or column field index in the base fields Sets auto field group by the PivotTable. The row or column field in the specific fields Sets manual field group by the PivotTable. The row or column field index in the base fields Specifies the starting value for numeric grouping. Specifies the ending value for numeric grouping. Specifies the grouping type list. Specified by PivotTableGroupType Specifies the interval number group by numeric grouping. Sets manual field group by the PivotTable. The row or column field in the base fields Specifies the starting value for numeric grouping. Specifies the ending value for numeric grouping. Specifies the grouping type list. Specified by PivotTableGroupType Specifies the interval number group by numeric grouping. Sets manual field group by the PivotTable. The row or column field index in the base fields Specifies the starting value for date grouping. Specifies the ending value for date grouping. Specifies the grouping type list. Specified by PivotTableGroupType Specifies the interval number group by in days grouping.The number of days must be positive integer of nonzero Sets manual field group by the PivotTable. The row or column field in the base fields Specifies the starting value for date grouping. Specifies the ending value for date grouping. Specifies the grouping type list. Specified by PivotTableGroupType Specifies the interval number group by in days grouping.The number of days must be positive integer of nonzero Sets ungroup by the PivotTable The row or column field index in the base fields Sets ungroup by the PivotTable The row or column field in the base fields get pivot table row index list of horizontal pagebreaks Layouts the PivotTable in compact form. Layouts the PivotTable in outline form. Layouts the PivotTable in tabular form. Gets the Cell object by the DisplayName of PivotField the DisplayName of PivotField the Cell object Gets the Children Pivot Tables which use this PivotTable data as data source. the PivotTable array object Specifies whether the PivotTable is compatible for Excel2003 when refreshing PivotTable, if true, a string must be less than or equal to 255 characters, so if the string is greater than 255 characters, it will be truncated. if false, a string will not have the aforementioned restriction. The default value is true. Gets the name of the user who last refreshed the PivotTable Gets the date when the PivotTable was last refreshed. Gets and sets the pivottable style name. Gets and sets the built-in pivot table style. Returns a PivotFields object that are currently shown as column fields. Returns a PivotFields object that are currently shown as row fields. Returns a PivotFields object that are currently shown as page fields. Gets a PivotField object that represents all the data fields in a PivotTable. Read-only.It would be init only when there are two or more data fields in the DataPiovtFiels. It only use to add DataPivotField to the PivotTable row/column area . Default is in row area. Gets a PivotField object that represents all the data fields in a PivotTable. Read-only.It would be init only when there are two or more data fields in the DataPiovtFiels. It only use to add DataPivotField to the PivotTable row/column area . Default is in row area. Returns a PivotFields object that includes all fields in the PivotTable report Returns a PivotFilterCollection object. Returns a CellArea object that represents the range that contains the column area in the PivotTable report. Read-only. Returns a CellArea object that represents the range that contains the row area in the PivotTable report. Read-only. Returns a CellArea object that represents the range that contains the data area in the list between the header row and the insert row. Read-only. Returns a CellArea object that represents the range containing the entire PivotTable report, but doesn't include page fields. Read-only. Returns a CellArea object that represents the range containing the entire PivotTable report, includes page fields. Read-only. Indicates whether the PivotTable report shows grand totals for columns. Indicates whether the PivotTable report displays classic pivottable layout. (enables dragging fields in the grid) Indicates whether the PivotTable report shows grand totals for rows. Indicates whether the PivotTable report displays a custom string in cells that contain null values. Gets the string displayed in cells that contain null values when the DisplayNullString property is true.The default value is an empty string. Indicates whether the PivotTable report displays a custom string in cells that contain errors. Gets the string displayed in cells that contain errors when the DisplayErrorString property is true.The default value is an empty string. Indicates whether the PivotTable report is automatically formatted. Checkbox "autoformat table " which is in pivottable option for Excel 2003 Checkbox "autofit column width on update" which is in pivot table Options :Layout Format for Excel 2007 Gets the PivotTable auto format type. Indicates whether to add blank rows. This property only applies for the PivotTable auto format types which needs to add blank rows. Indicates whether the specified PivotTable report's outer-row item, column item, subtotal, and grand total labels use merged cells. Indicates whether formatting is preserved when the PivotTable is refreshed or recalculated. Gets whether expand/collapse buttons is shown. Gets whether drilldown is enabled. Indicates whether the PivotTable Field dialog box is available when the user double-clicks the PivotTable field. Gets whether enable the field list for the PivotTable. Indicates whether the PivotTable Wizard is available. Indicates whether hidden page field items in the PivotTable report are included in row and column subtotals, block totals, and grand totals. The default value is False. Returns the text string label that is displayed in the grand total column or row heading. The default value is the string "Grand Total". Indicates whether the PivotTable report is recalculated only at the user's request. Specifies a boolean value that indicates whether the fields of a PivotTable can have multiple filters set on them. Specifies a boolean value that indicates whether the fields of a PivotTable can have multiple filters set on them. Specifies a boolean value that indicates whether the user is allowed to edit the cells in the data area of the pivottable. Enable cell editing in the values area Specifies a boolean value that indicates whether tooltips should be displayed for PivotTable data cells. Specifies a boolean value that indicates whether member property information should be omitted from PivotTable tooltips. Specifies a boolean value that indicates whether show values row. show the values row Specifies a boolean value that indicates whether to include empty columns in the table Specifies a boolean value that indicates whether to include empty rows in the table. Specifies a boolean value that indicates whether fields in the PivotTable are sorted in non-default order in the field list. Specifies a boolean value that indicates whether drill indicators should be printed. print expand/collapse buttons when displayed on pivottable. Gets the title of the altertext Gets the description of the alt text Gets the name of the PivotTable Gets the Column Header Caption of the PivotTable. Specifies the indentation increment for compact axis and can be used to set the Report Layout to Compact Form. Gets the Row Header Caption of the PivotTable. Indicates whether row header caption is shown in the PivotTable report Indicates whether Display field captions and filter drop downs Indicates whether consider built-in custom list when sort data Gets the Format Conditions of the pivot table. Gets the order in which page fields are added to the PivotTable report's layout. Gets the number of page fields in each column or row in the PivotTable report. Gets a string saved with the PivotTable report. Indicates whether data for the PivotTable report is saved with the workbook. Indicates whether Refresh Data when Opening File. Indicates whether Refresh Data or not. Gets the external connection data source. Gets and sets the data source of the pivot table. A bit that specifies whether pivot item captions on the row axis are repeated on each printed page for pivot fields in tabular form. Indicates whether the print titles for the worksheet are set based on the PivotTable report. The default value is false. Indicates whether items in the row and column areas are visible when the data area of the PivotTable is empty. The default value is true. Indicates whether the PivotTable is selected. Indicates whether the row header in the pivot table should have the style applied. Indicates whether the column header in the pivot table should have the style applied. Indicates whether row stripe formatting is applied. Indicates whether column stripe formatting is applied. Indicates whether column stripe formatting is applied. Renames strategy when columns contains the duplicate names. Throws exception. Named with digit. Named with letter. Specifies how to handle formatting from the HTML source Transfer all HTML formatting into the worksheet along with data. Bring data in as unformatted text (setting data types still occurs). Translate HTML formatting to rich text formatting on the data brought into the worksheet. Specifies a type of optimization. High print quality File size is more important than print quality Represents the options of loading metadata of the file. Creates an options of loading the metadata. The type of metadata. Gets and sets the type of the metadata which is loading. Represents Workbook file encryption password. The key length. Represents the type of metadata. Encrypts the file. Decrypts the file. Load the properties of the file. Represents the meta data. The following example creates a WorkbookMetadata. [C#] MetadataOptions options = new MetadataOptions(MetadataType.DocumentProperties); WorkbookMetadata meta = new WorkbookMetadata(path + "book1.xlsx", options); meta.CustomDocumentProperties.Add("test", "test"); meta.Save(path + "book2.xlsx"); Create the meta data object. Create the meta data object. Save the modified metadata to the file. The file name. Save the modified metadata to the stream. The stream. Gets the options of the metadata. Returns a DocumentProperties collection that represents all the built-in document properties of the spreadsheet. Returns a DocumentProperties collection that represents all the custom document properties of the spreadsheet. Specifies how to apply style for the value of the cell. Not formatted. Only formatted with the cell's original style. Formatted with the cell's displayed style. Represents a complex type that specifies the pivot controls that appear on the chart Specifies whether a control for each PivotTable field on the PivotTable page axis of the source PivotTable appears on the chart when dropZonesVisible is set to true. Specifies whether a control for each PivotTable field on the PivotTable row axis of the source PivotTable appears on the chart when dropZonesVisible is set to true. Specifies whether a control for each PivotTable field on the PivotTable data axis of the source PivotTable appears on the chart when dropZonesVisible is set to true. Specifies whether a control for each PivotTable field on the PivotTable column axis of the source PivotTable appears on the chart when dropZonesVisible is set to true. Specifies whether any pivot controls can appear on the pivot chart. Represents the persistence method to persist an ActiveX control. The data is stored as xml data. The data is stored as a storage binary data. The data is stored as a stream binary data. The data is stored as a streaminit binary data. Represents the symbol displayed on the drop button. Displays a button with no symbol. Displays a button with a down arrow. Displays a button with an ellipsis (...). Displays a button with a horizontal line like an underscore character. Specifies when to show the drop button Never show the drop button. Show the drop button when the control has the focus. Always show the drop button. Represents the ActiveX control. Represents the ActiveX control. Gets the object. Gets the type of the ActiveX control. Gets and sets the width of the control in unit of points. Gets and sets the height of the control in unit of points. Gets and sets a custom icon to display as the mouse pointer for the control. Gets and sets the type of icon displayed as the mouse pointer for the control. Gets and sets the ole color of the foreground. Not applies to Image control. Gets and sets the ole color of the background. Indicates whether this control is visible. Indicates whether to show a shadow. Gets and sets the linked cell. Gets and sets the list fill range. Gets and sets the binary data of the control. Indicates whether the control can receive the focus and respond to user-generated events. Indicates whether data in the control is locked for editing. Indicates whether the control is transparent. Indicates whether the control will automatically resize to display its entire contents. Gets and sets the default run-time mode of the Input Method Editor for the control as it receives focus. Represents the font of the control. Represents how to align the text used by the control. Gets and sets the binary data of the control. Represents the border type of the ActiveX control. No border. The single line. Represents the default run-time mode of the Input Method Editor. Does not control IME. IME on. IME off. English mode. IME off.User can't turn on IME by keyboard. IME on with Full-width hiragana mode. IME on with Full-width katakana mode. IME on with Half-width katakana mode. IME on with Full-width Alphanumeric mode. IME on with Half-width Alphanumeric mode. IME on with Full-width hangul mode. IME on with Half-width hangul mode. IME on with Full-width hanzi mode. IME on with Half-width hanzi mode. Represents the position of the Caption relative to the control. The left of the control. The right of the control. Represents a CheckBox ActiveX control. Gets the type of the ActiveX control. Gets and sets the group's name. Gets and set the position of the Caption relative to the control. Indicates whether the contents of the control automatically wrap at the end of a line. Gets and set the descriptive text that appears on a control. Gets and set the location of the control's picture relative to its caption. Gets and sets the special effect of the control. Gets and sets the data of the picture. Gets and sets the accelerator key for the control. Indicates if the control is checked or not. Indicates how the specified control will display Null values. ///
Setting Description 
TrueThe control will cycle through states for Yes, No, and Null values. The control appears dimmed (grayed) when its Value property is set to Null.
False(Default) The control will cycle through states for Yes and No values. Null values display as if they were No values.
Represents a ComboBox ActiveX control. Gets the type of the ActiveX control. Gets and sets the maximum number of characters Gets and set the width in unit of points. Represents how the Value property is determined for a ComboBox or ListBox when the MultiSelect properties value (fmMultiSelectSingle). Represents the column in a ComboBox or ListBox to display to the user. Represents the number of columns to display in a ComboBox or ListBox. Represents the maximum number of rows to display in the list. Indicates how a ListBox or ComboBox searches its list as the user types. Specifies the symbol displayed on the drop button Specifies the symbol displayed on the drop button Gets and sets the visual appearance. Gets and set the type of border used by the control. Gets and sets the ole color of the background. Gets and sets the special effect of the control. Indicates whether the user can type into the control. Indicates whether column headings are displayed. Indicates whether dragging and dropping is enabled for the control. Specifies selection behavior when entering the control. True specifies that the selection remains unchanged from last time the control was active. False specifies that all the text in the control will be selected when entering the control. Specifies the basic unit used to extend a selection. True specifies that the basic unit is a single character. false specifies that the basic unit is a whole word. Indicates whether the user can select a line of text by clicking in the region to the left of the text. Gets and sets the value of the control. Indicates whether selected text in the control appears highlighted when the control does not have focus. Gets and sets the width of the column. Represents all type of ActiveX control. Button ComboBox CheckBox ListBox TextBox Spinner RadioButton Label Image ToggleButton ScrollBar Unknown Represents a command button. Gets the type of the ActiveX control. Gets and set the descriptive text that appears on a control. Gets and set the location of the control's picture relative to its caption. Gets and sets the data of the picture. Gets and sets the accelerator key for the control. Indicates whether the control takes the focus when clicked. Indicates whether the contents of the control automatically wrap at the end of a line. Represents the image control. Gets the type of the ActiveX control. Indicates whether the control will automatically resize to display its entire contents. Gets and sets the ole color of the background. Gets and set the type of border used by the control. Gets and sets how to display the picture. Gets and sets the special effect of the control. Gets and sets the data of the picture. Gets and sets the alignment of the picture inside the Form or Image. Indicates whether the picture is tiled across the background. Represents the label ActiveX control. Gets the type of the ActiveX control. Gets and set the descriptive text that appears on a control. Gets and set the location of the control's picture relative to its caption. Gets and sets the ole color of the background. Gets and set the type of border used by the control. Gets and sets the special effect of the control. Gets and sets the data of the picture. Gets and sets the accelerator key for the control. Indicates whether the contents of the control automatically wrap at the end of a line. Represents a ListBox ActiveX control. Gets the type of the ActiveX control. Indicates specifies whether the control has vertical scroll bars, horizontal scroll bars, both, or neither. Gets and set the width in unit of points. Represents how the Value property is determined for a ComboBox or ListBox when the MultiSelect properties value (fmMultiSelectSingle). Represents the column in a ComboBox or ListBox to display to the user. Represents the number of columns to display in a ComboBox or ListBox. Indicates how a ListBox or ComboBox searches its list as the user types. Gets and sets the visual appearance. Indicates whether the control permits multiple selections. Gets and sets the value of the control. Only effects when is SelectionType.Single; Gets and set the type of border used by the control. Gets and sets the ole color of the background. Gets and sets the special effect of the control. Indicates whether column headings are displayed. Indicates whether the control will only show complete lines of text without showing any partial lines. Gets and sets the width of the column. Represents the visual appearance of the list in a ListBox or ComboBox. Displays a list in which the background of an item is highlighted when it is selected. Displays a list in which an option button or a checkbox next to each entry displays the selection state of that item. Represents how a ListBox or ComboBox searches its list as the user types. The control searches for the next entry that starts with the character entered. Repeatedly typing the same letter cycles through all entries beginning with that letter. As each character is typed, the control searches for an entry matching all characters entered. The list will not be searched when characters are typed. Represents the type of icon displayed as the mouse pointer for the control. Standard pointer. Arrow. Cross-hair pointer. I-beam. Double arrow pointing northeast and southwest. Double arrow pointing north and south. Double arrow pointing northwest and southeast. Double arrow pointing west and east. Up arrow. Hourglass. "Not” symbol (circle with a diagonal line) on top of the object being dragged. Arrow with an hourglass. Arrow with a question mark. "Size-all” cursor (arrows pointing north, south, east, and west). Uses the icon specified by the MouseIcon property. Represents the alignment of the picture inside the Form or Image. The top left corner. The top right corner. The center. The bottom left corner. The bottom right corner. Represents the location of the control's picture relative to its caption. The picture appears to the left of the caption. The caption is aligned with the top of the picture. The picture appears to the left of the caption. The caption is centered relative to the picture. The picture appears to the left of the caption. The caption is aligned with the bottom of the picture. The picture appears to the right of the caption. The caption is aligned with the top of the picture. The picture appears to the right of the caption. The caption is centered relative to the picture. The picture appears to the right of the caption. The caption is aligned with the bottom of the picture. The picture appears above the caption. The caption is aligned with the left edge of the picture. The picture appears above the caption. The caption is centered below the picture. The picture appears above the caption. The caption is aligned with the right edge of the picture. The picture appears below the caption. The caption is aligned with the left edge of the picture. The picture appears below the caption. The caption is centered above the picture. The picture appears below the caption. The caption is aligned with the right edge of the picture. The picture appears in the center of the control. The caption is centered horizontally and vertically on top of the picture. Represents how to display the picture. Crops any part of the picture that is larger than the control's boundaries. Stretches the picture to fill the control's area. This setting distorts the picture in either the horizontal or vertical direction. Enlarges the picture, but does not distort the picture in either the horizontal or vertical direction. Represents a RadioButton ActiveX control. Represents a ToggleButton ActiveX control. Gets the type of the ActiveX control. Gets and set the descriptive text that appears on a control. Gets and set the location of the control's picture relative to its caption. Gets and sets the special effect of the control. Gets and sets the data of the picture. Gets and sets the accelerator key for the control. Indicates if the control is checked or not. Indicates how the specified control will display Null values. ///
Setting Description 
TrueThe control will cycle through states for Yes, No, and Null values. The control appears dimmed (grayed) when its Value property is set to Null.
False(Default) The control will cycle through states for Yes and No values. Null values display as if they were No values.
Gets the type of the ActiveX control. Gets and sets the group's name. Gets and set the position of the Caption relative to the control. Indicates whether the contents of the control automatically wrap at the end of a line. Represents the ScrollBar control. Represents the SpinButton control. Gets the type of the ActiveX control. Gets and sets the minimum acceptable value. Gets and sets the maximum acceptable value. Gets and sets the value. Gets and sets the amount by which the Position property changes Gets and sets whether the SpinButton or ScrollBar is oriented vertically or horizontally. Gets the type of the ActiveX control. Gets and sets the amount by which the Position property changes Represents the type of scroll bar. Displays no scroll bars. Displays a horizontal scroll bar. Displays a vertical scroll bar. Displays both a horizontal and a vertical scroll bar. Represents type of scroll orientation Control is rendered horizontally when the control's width is greater than its height. Control is rendered vertically otherwise. Control is rendered vertically. Control is rendered horizontally. Represents the type of special effect. Flat Raised Sunken Etched Bump Represents a text box ActiveX control. Gets the type of the ActiveX control. Gets and set the type of border used by the control. Gets and sets the ole color of the background. Gets and sets the special effect of the control. Gets and sets the maximum number of characters Indicates specifies whether the control has vertical scroll bars, horizontal scroll bars, both, or neither. Gets and sets a character to be displayed in place of the characters entered. Indicates whether the user can type into the control. Indicates whether the control will only show complete lines of text without showing any partial lines. Indicates whether dragging and dropping is enabled for the control. Specifies the behavior of the ENTER key. True specifies that pressing ENTER will create a new line. False specifies that pressing ENTER will move the focus to the next object in the tab order. Specifies selection behavior when entering the control. True specifies that the selection remains unchanged from last time the control was active. False specifies that all the text in the control will be selected when entering the control. Indicates whether tab characters are allowed in the text of the control. Indicates whether selected text in the control appears highlighted when the control does not have focus. Indicates whether the focus will automatically move to the next control when the user enters the maximum number of characters. Indicates whether the control can display more than one line of text. Specifies the basic unit used to extend a selection. True specifies that the basic unit is a single character. false specifies that the basic unit is a whole word. Indicates whether the contents of the control automatically wrap at the end of a line. Gets and set text of the control. Specifies the symbol displayed on the drop button Specifies the symbol displayed on the drop button Unknow control. Gets the related data. The relationship id. Returns the related data. Gets the persistence method to persist an ActiveX control. Gets and sets the binary data of the control. Gets the type of the ActiveX control. Provides helper functions about color. Convert OLE_COLOR. The value of OLE_COLOR. The object. Convert color to OLE_COLOR The object. The value of OLE_COLOR Enumerates strategies for handling calculation precision. Because of the precision issue of IEEE 754 Floating-Point Arithmetic, some "seemingly simple" formulas may not be calculated as the expected result. Such as formula "=-0.45+0.43+0.02", when calculating operands by '+' operator directly, the result is not zero. For such kind of precision issue, some special strategies may give the expected result. No strategy applied on calculation. When calculating just use the original double value as operand and return the result directly. Most efficient for performance and applicable for most cases. Rounds the calculation result according with significant digits. Uses decimal as operands when possible. Most inefficient for performance. Represents options for calculation. Indicates if you need to hide the error in calculating formulas. The error may be unsupported function, external links, etc. The custom formula calculation functions to extend the calculation engine. NOTE: This member is now obsolete. Instead, please use CustomEngine property, AbstractCalculationEngine provides more convenient and flexible APIs for manipulating custom functions. This property will be removed 12 months later since August 2020. Aspose apologizes for any inconvenience you may have experienced. The custom formula calculation engine to extend the default calculation engine of Aspose.Cells. The monitor for user to track the progress of formula calculation. Specifies the stack size for calculating cells recursively. -1 for this property means the calculation will use WorkbookSettings.CalcStackSize of corresponding workbook. Specifies the strategy for processing precision of calculation. Indicates whether calculate the dependent cells recursively when calculating one cell and it depends on other cells. Represents a Custom XML Data Storage Part (custom XML data within a package). Gets or sets the XML content of this Custom XML Data Storage Part. Gets or sets the XML content of this Custom XML Schema Data Storage Part. Gets and sets the id of the custom xml part. Represents a Custom XML Data Storage Part (custom XML data within a package). Adds an item to the collection. The XML content of this Custom XML Data Storage Part. The set of XML schemas that are associated with this custom XML part. Gets an item by id. Contains the GUID for the custom XML part. Gets an item at the specified index. The index. represents automatic fill. Represents the fill format of the shape. Represents this fill format should inherit the fill properties of the group. Represents no fill. Represent the signature line. Gets and sets the id of signature provider. It's typically the CLSID of the provider com add-in. Gets and sets the singer. Gets and sets the title of singer. Gets and sets the email of singer. Indicates whether it is a signature line. Indicates whether comments could be attached. Indicates whether show signed date. Gets and sets the text shown to user at signing time. Represents automatic numbered bullet. Represents the value of the bullet. Gets the type of the bullet's value. Gets the type of the bullet. Gets and sets the starting number of the bullet. Represents the scheme of automatic number. Represents the bullet. Gets bullet value Gets and sets the bullet type. Get and sets the name of the font. Represents the type of the bullet. No bullet. Character bullet. Image bullet. Automatic numbered bullet. Represents the character bullet. Gets the type of the bullet. Gets and sets character of the bullet. Represents the unit type of line space size. Represents in unit of a percentage of the text size. Represents in unit of points. Represents no bullet. Gets the type of the bullet's value. Represents the value of the image bullet. Gets the type of the bullet's value. Gets and sets image data of the bullet. Represents all automatic number scheme. (a), (b), (c), … a), b), c), … a., b., c., … (A), (B), (C), … A), B), C), … A., B., C., … Bidi Arabic 1 (AraAlpha) with ANSI minus symbol Bidi Arabic 2 (AraAbjad) with ANSI minus symbol Dbl-byte Arabic numbers w/ double-byte period Dbl-byte Arabic numbers (1), (2), (3), … 1), 2), 3), … 1., 2., 3., … 1, 2, 3, … Dbl-byte circle numbers (1-10 circle[0x2460-], 11-arabic numbers) Wingdings black circle numbers Wingdings white circle numbers (0-10 circle[0x0080-],11- arabic numbers) EA: Simplified Chinese w/ single-byte period EA: Simplified Chinese (TypeA 1-99, TypeC 100-) EA: Traditional Chinese w/ single-byte period EA: Traditional Chinese (TypeA 1-19, TypeC 20-) EA: Japanese w/ double-byte period EA: Japanese/Korean w/ single-byte period EA: Japanese/Korean (TypeC 1-) Bidi Hebrew 2 with ANSI minus symbol Hindi alphabet period - consonants Hindi alphabet period - vowels /// Hindi numerical parentheses - right Hindi numerical period (i), (ii), (iii), … i), ii), iii), … i., ii., iii., … (I), (II), (III), … I), II), III), … I., II., III., … Thai alphabet parentheses - both Thai alphabet parentheses - right Thai alphabet period Thai numerical parentheses - both Thai numerical parentheses - right Thai numerical period Represents a geometric shape. Gets a collection of shape adjust value Represents the different types of font alignment. When the text flow is horizontal or simple vertical same as fontBaseline but for other vertical modes same as fontCenter. The letters are anchored to the very bottom of a single line. The letters are anchored to the bottom baseline of a single line. The letters are anchored between the two baselines of a single line. The letters are anchored to the top baseline of a single dline. Represents the setting of shape's text alignment; Gets and sets the text wrapped type of the shape which contains text. Indicates whether rotating text with shape. Gets and sets the text vertical overflow type of the text box. Gets and sets the text horizontal overflow type of the text box. Gets and sets the rotation of the shape. Gets and sets the text direction. Indicates if size of shape is adjusted automatically according to its content. Gets and set the transform type of text. Returns the top margin in unit of Points Returns the bottom margin in unit of Points Returns the left margin in unit of Points Returns the right margin in unit of Points Indicates whether the margin of the text frame is automatic. Represents the node type. Represents the text node. Represents the text paragraph. Represents the equation text. Represents the text paragraph setting. Gets the bullet. Gets the type of text node. Gets and sets the amount of vertical white space that will be used within a paragraph. Gets and sets the amount of vertical white space that will be used within a paragraph. Gets and sets the amount of vertical white space that will be present after a paragraph. Gets and sets the amount of vertical white space that will be present after a paragraph. Gets and sets the amount of vertical white space that will be present before a paragraph. Gets and sets the amount of vertical white space that will be present before a paragraph. Gets tab stop list. Specifies whether a Latin word can be broken in half and wrapped onto the next line without a hyphen being added. Specifies whether an East Asian word can be broken in half and wrapped onto the next line without a hyphen being added. Specifies whether punctuation is to be forcefully laid out on a line of text or put on a different line of text. Specifies the right margin of the paragraph. Specifies the left margin of the paragraph. Specifies the indent size that will be applied to the first line of text in the paragraph. Determines where vertically on a line of text the actual words are positioned. This deals with vertical placement of the characters with respect to the baselines. Gets and sets the text horizontal alignment type of the paragraph. Gets and sets the default size for a tab character within this paragraph. Gets all text runs in this paragraph. If this paragraph is empty, return paragraph itself. Represents the text tab alignment types. The text at this tab stop is center aligned. At this tab stop, the decimals are lined up. The text at this tab stop is left aligned. The text at this tab stop is right aligned. Represents tab stop. Specifies the alignment that is to be applied to text using this tab stop. Specifies the position of the tab stop relative to the left margin. Represents the list of all tab stops. Adds a tab stop. Gets by the index. The index. Represents the text direct type. East Asian Vertical display. Horizontal text. Displayed vertical and the text flows top down then LEFT to RIGHT Each line is 90 degrees rotated clockwise Each line is 270 degrees rotated clockwise Determines if all of the text is vertical Specifies that vertical WordArt should be shown from right to left rather than left to right. Specifies how to apply style for parsed values when converting string value to number or datetime. Does not set style for the parsed value. Set the style as built-in number/datetime when the parsed value are plain numeric/datetime values. When ms excel parsing datetime or numeric values according to user's input(such as CSV file), the formatting of those values may be changed, such as leading/tailing zeros of number, year/month/day order of datetime, ...etc. This type is for simulating ms excel's behavior. Set the exact custom format for the parsed value to make the formatted value be same with the original input one. Contains all basic classes of Aspose.Cells. Contains all classes of chart and sparkline. Contains all classes of DigitalSignature. Contains all classes of shapes and fill format. Contains all classes of ActiveXControl. Contains all classes of Texts. Contains all classes of external connections. Contains all classes of smart tag. Contains all classes of loading and saving metadata. Contains all classes of PivotTable. Contains all core classes of Aspose.Cells. Contains all classes of Rendering image and pdf. Contains all security options of Rendering pdf. Contains all classes of Table(List Object). Contains all classes of VBA project. Represents a custom geometric shape. Gets path collection information when shape is a NotPrimitive autoshape Encapsulates a shape guide specifies the presence of a shape guide that will be used to govern the geometry of the specified shape Gets or sets value of this guide Encapsulates a collection of shape guide Gets a shape guide by index Represents type of the property to be locked. Group AdjustHandles Text Points Crop Selection Move AspectRatio Rotation Ungroup Resize ShapeType Arrowhead Represents a creation path consisting of a series of moves, lines and curves that when combined will form a geometric shape. Add a segment path in creation path. The path type. Returns the position of object in the list. Gets object. The index. Returns a object. Represents an x-y coordinate within the path coordinate space. Gets and sets x coordinate for this position coordinate. Gets y coordinate for this position coordinate. Represents all shape path points. Adds a path point. The x coordinate. The y coordinate. Gets shape path point by index. The index Returns object Specifies the collection [C#] Workbook wb = new Workbook("connection.xlsx"); ExternalConnectionCollection dataConns = wb.DataConnections; ExternalConnection dataConn = null; for (int i = 0; i < dataConns.Count; i++) { dataConn = dataConns[i]; //get external connection id Console.WriteLine(dataConn.ConnectionId); } [Visual Basic] Dim wb As Workbook = New Workbook("connection.xlsx") Dim dataConns As ExternalConnectionCollection = wb.DataConnections Dim dataConn As ExternalConnection Dim count As Integer = dataConns.Count - 1 Dim i As Integer For i = 0 To count Step 1 dataConn = dataConns(i) 'get external connection id Console.WriteLine(dataConn.ConnectionId) Next Gets the element with the specified id. external connection id The element with the specified id. Gets the element at the specified index. The zero based index of the element. The element at the specified index. Gets the element with the specified name. data connection name The element with the specified name. Specifies all properties associated with an ODBC or OLE DB external data connection. The connection information string is used to make contact with an OLE DB or ODBC data source. Gets the definition of power query formula. Specifies the OLE DB command type. 1. Query specifies a cube name 2. Query specifies a SQL statement 3. Query specifies a table name 4. Query specifies that default information has been given, and it is up to the provider how to interpret. 5. Query is against a web based List Data Provider. The string containing the database command to pass to the data provider API that will interact with the external source in order to retrieve data Specifies a second command text string that is persisted when PivotTable server-based page fields are in use. For ODBC connections, serverCommand is usually a broader query than command (no WHERE clause is present in the former). Based on these 2 commands(Command and ServerCommand), parameter UI can be populated and parameterized queries can be constructed Specifies the properties for a web query source. A web query will retrieve data from HTML tables, and can also supply HTTP "Get" parameters to be processed by the web server in generating the HTML by including the parameters and parameter elements. true if the web query source is XML (versus HTML), otherwise false. This flag exists for backward compatibility with older existing spreadsheet files, and is set to true if this web query was created in Microsoft Excel 97. This is an optional attribute that can be ignored. This flag exists for backward compatibility with older existing spreadsheet files, and is set to true if this web query was refreshed in a spreadsheet application newer than or equal to Microsoft Excel 2000. This is an optional attribute that can be ignored. URL to use to refresh external data. Flag indicating whether dates should be imported into cells in the worksheet as text rather than dates. Flag indicating that XML source data should be imported instead of the HTML table itself. Returns or sets the string used with the post method of inputting data into a web server to return data from a web query. Flag indicating whether data contained within HTML PRE tags in the web page is parsed into columns when you import the page into a query table. Flag indicating whether web queries should only work on HTML tables. How to handle formatting from the HTML source when bringing web query data into the worksheet. Relevant when sourceData is True. Flag indicating whether to parse all tables inside a PRE block with the same width settings as the first row. The URL of the user-facing web page showing the web query data. This URL is persisted in the case that sourceData="true" and url has been redirected to reference an XML file. Then the user-facing page can be shown in the UI, and the XML data can be retrieved behind the scenes. The URL of the user-facing web page showing the web query data. This URL is persisted in the case that sourceData="true" and url has been redirected to reference an XML file. Then the user-facing page can be shown in the UI, and the XML data can be retrieved behind the scenes. NOTE: This property is now obsolete. Instead, please use WebQueryConnection.EditWebPage property. This property will be removed 12 months later since October 2017. Aspose apologizes for any inconvenience you may have experienced. Flag indicating whether consecutive delimiters should be treated as just one delimiter. Specifies external database source type ODBC-based source DAO-based source File based database source Web query OLE DB-based source Text-based source ADO record set DSP OLE DB data source created by the Spreadsheet Data Model. Data feed data source created by the Spreadsheet Data Model. Worksheet data source created by the Spreadsheet Data Model. Worksheet data source created by the Spreadsheet Data Model. NOTE: This member is now obsolete. Instead, please use WorksheetDataModel enum. This property will be removed 12 months later since September 2017. Aspose apologizes for any inconvenience you may have experienced. Text data source created by the Spreadsheet Data Model. Text data source created by the Spreadsheet Data Model. Specifies properties about any parameters used with external data connections Parameters are valid for ODBC and web queries. SQL data type of the parameter. Only valid for ODBC sources. Flag indicating whether the query should automatically refresh when the contents of a cell that provides the parameter value changes. If true, then external data is refreshed using the new parameter value every time there's a change. If false, then external data is only refreshed when requested by the user, or some other event triggers refresh (e.g., workbook opened). Prompt string for the parameter. Presented to the spreadsheet user along with input UI to collect the parameter value before refreshing the external data. Used only when parameterType = prompt. Type of parameter used. If the parameterType=value, then the value from boolean, double, integer, or string will be used. In this case, it is expected that only one of {boolean, double, integer, or string} will be specified. The name of the parameter. Cell reference indicating which cell's value to use for the query parameter. Used only when parameterType is cell. Non-integer numeric value,Integer value,String value or Boolean value to use as the query parameter. Used only when parameterType is value. Specifies the collection Gets the element at the specified index. The zero based index of the element. The element at the specified index. Gets the element with the specified name. connection parameter name The element with the specified name. Specifies the parameter type of external connection Get the parameter value from a cell on each refresh. Prompt the user on each refresh for a parameter value. Use a constant value on each refresh for the parameter value. Specifies Credentials method used for server access. Integrated Authentication No Credentials Prompt Credentials Stored Credentials Specifies the OLE DB command type. The command type is not specified. Specifies a cube name unsupported Specifies a SQL statement Specifies a table name Specifies that default information has been given, and it is up to the provider how to interpret. unsupported Specifies a query which is against a web based List Data Provider. unsupported Specifies what the spreadsheet application should do when a connection fails. On refresh use the existing connection information and if it ends up being invalid then get updated connection information, if available from the external connection file. On every refresh get updated connection information from the external connection file, if available, and use that instead of the existing connection information. In this case the data refresh will fail if the external connection file is unavailable. Never get updated connection information from the external connection file even if it is available and even if the existing connection information is invalid Specifies SQL data type of the parameter. Only valid for ODBC sources. sql unsigned offset sql signed offset sql guid sql wide long variable char sql wide variable char sql wide char sql bit sql tiny int sql big int sql long variable binary sql variable binary sql binary sql long variable char sql unknown type sql char sql numeric sql decimal sql integer sql small int sql float sql real sql double sql date type sql time type sql timestamp type sql variable char sql interval year sql interval month sql interval day sql interval hour sql interval minute sql interval second sql interval year to month sql interval day to hour sql interval day to minute sql interval day to second sql interval hour to minute sql interval hour to second sql interval minute to second Contains data returned by file format detection methods. Gets whether the file is protected by Microsoft Rights Management Server. Returns true if the document is encrypted and requires a password to open. Gets the detected file format. Gets the detected load format. Represents the options to filter data when loading workbook from template. Load nothing for sheet data NOTE: This member is now obsolete and please use Structure instead. This property will be removed 12 months later since December 2017. Aspose apologizes for any inconvenience you may have experienced. Load all Load cells whose value is blank Load cells whose value is string Load cells whose value is numeric(including datetime) Load cells whose value is error Load cells whose value is bool Load cells value(all value types) only Load cell formulas. Generally defined Name objects(DefinedNames) also need to be loaded when loading formulas because they may be referenced by formulas. So Formula or CellData option should work with DefinedNames option together(Formula|DefinedNames or CellData|DefinedNames) for most scenarios. Load cells data including values, formulas and formatting Load charts Load shapes NOTE: This member is now obsolete and please use Structure instead. This property will be removed 12 months later since November 2019. Aspose apologizes for any inconvenience you may have experienced. Drawing objects(including Chart, Picture, OleObject and all other drawing objects) Load merged cells Load conditional formatting Load data validations Load pivot tables Load tables Load hyperlinks Load settings for worksheet Load all data of worksheet, such as cells data, settings, objects, ...etc. Load settings for workbook Load settings for workbook and worksheet Load XmlMap Load structure of the workbook Load document properties Load defined Name objects Load VBA projects Load styles for cell formatting Load pictures Load OleObjects Fill format type. Represents automatic formatting type. Represents none formatting type. Solid fill format. Gradient fill format. Texture fill format(includes picture fill). Pattern fill format. Inherit the fill properties of the group. Encapsulates the object that represents solid fill format Gets or sets the . Gets and sets the object. Returns or sets the degree of transparency of the area as a value from 0.0 (opaque) through 1.0 (clear). Represents the custom icon of conditional formatting rule. Get the icon set data icon's type icon's index Gets the icon set data. Gets and sets the icon set type. Gets and sets the icon's index in the icon set. Represents a collection of objects. [C#] //Instantiating a Workbook object Workbook workbook = new Workbook(); Worksheet sheet = workbook.Worksheets[0]; //Get Conditional Formatting ConditionalFormattingCollection cformattings = sheet.ConditionalFormattings; //Adds an empty conditional formatting int index = cformattings.Add(); //Get newly added Conditional formatting FormatConditionCollection fcs = cformattings[index]; //Sets the conditional format range. CellArea ca = new CellArea(); ca.StartRow = 0; ca.EndRow = 0; ca.StartColumn = 0; ca.EndColumn = 0; fcs.AddArea(ca); ca = new CellArea(); ca.StartRow = 1; ca.EndRow = 1; ca.StartColumn = 1; ca.EndColumn = 1; fcs.AddArea(ca); //Sets condition int idx = fcs.AddCondition(FormatConditionType.IconSet); FormatCondition cond = fcs[idx]; //Sets condition's type cond.IconSet.Type = IconSetType.ArrowsGray3; //Add custom iconset condition. ConditionalFormattingIcon cfIcon = cond.IconSet.CfIcons[0]; cfIcon.Type = IconSetType.Arrows3; cfIcon.Index = 0; ConditionalFormattingIcon cfIcon1 = cond.IconSet.CfIcons[1]; cfIcon1.Type = IconSetType.ArrowsGray3; cfIcon1.Index = 1; ConditionalFormattingIcon cfIcon2 = cond.IconSet.CfIcons[2]; cfIcon2.Type = IconSetType.Boxes5; cfIcon2.Index = 2; //Saving the Excel file workbook.Save("C:\\output.xls"); [VB.NET] 'Instantiating a Workbook object Dim workbook As New Workbook() Dim sheet As Worksheet = workbook.Worksheets(0) 'Get Conditional Formatting Dim cformattings As ConditionalFormattingCollection = sheet.ConditionalFormattings 'Adds an empty conditional formatting Dim index As Integer = cformattings.Add() 'Get newly added Conditional formatting Dim fcs As FormatConditionCollection = cformattings(index) 'Sets the conditional format range. Dim ca As New CellArea() ca.StartRow = 0 ca.EndRow = 0 ca.StartColumn = 0 ca.EndColumn = 0 fcs.AddArea(ca) ca = New CellArea() ca.StartRow = 1 ca.EndRow = 1 ca.StartColumn = 1 ca.EndColumn = 1 fcs.AddArea(ca) //Sets condition Dim idx As Integer =fcs.AddCondition(FormatConditionType.IconSet) Dim cond As FormatCondition=fcs[idx] //Sets condition's type cfIcon.Type = IconSetType.ArrowsGray3 'Add custom iconset condition. Dim cfIcon As ConditionalFormattingIcon = cond.IconSet.CfIcons[0] cfIcon.Type = IconSetType.Arrows3 cfIcon.Index=0 Dim cfIcon1 As ConditionalFormattingIcon = cond.IconSet.CfIcons[1] cfIcon1.Type = IconSetType.ArrowsGray3 cfIcon1.Index=1 Dim cfIcon2 As ConditionalFormattingIcon = cond.IconSet.CfIcons[2] cfIcon2.Type = IconSetType.Boxes5 cfIcon2.Index=2 'Saving the Excel file workbook.Save("C:\output.xls") Adds object. The value type. The Index. Returns the index of new object in the list. Adds object. Returns the index of new object in the list. Gets the ConditionalFormattingIcon element at the specified index. The zero based index of the element. The element at the specified index. Specifies the axis position for a range of cells with conditional formatting as data bars. Display the axis at a variable position based on the ratio of the minimum negative value to the maximum positive value in the range. Positive values are displayed in a left-to-right direction. Negative values are displayed in a right-to-left direction. When all values are positive or all values are negative, no axis is displayed. NOTE: This enum type is now obsolete. Instead, please use DataBarAxisPosition.Automatic enum type. This property will be removed 12 months later since December 2013. Aspose apologizes for any inconvenience you may have experienced. Display the axis at the midpoint of the cell regardless of the set of values in the range. Positive values are displayed in a left-to-right direction. Negative values are displayed in a right-to-left direction. NOTE: This enum type is now obsolete. Instead, please use DataBarAxisPosition.Midpoint enum type. This property will be removed 12 months later since December 2013. Aspose apologizes for any inconvenience you may have experienced. No axis is displayed, and both positive and negative values are displayed in the left-to-right direction. NOTE: This enum type is now obsolete. Instead, please use DataBarAxisPosition.None enum type. This property will be removed 12 months later since December 2013. Aspose apologizes for any inconvenience you may have experienced. Display the axis at a variable position based on the ratio of the minimum negative value to the maximum positive value in the range. Positive values are displayed in a left-to-right direction. Negative values are displayed in a right-to-left direction. When all values are positive or all values are negative, no axis is displayed. Display the axis at the midpoint of the cell regardless of the set of values in the range. Positive values are displayed in a left-to-right direction. Negative values are displayed in a right-to-left direction. No axis is displayed, and both positive and negative values are displayed in the left-to-right direction. Represents the border of the data bars specified by a conditional formatting rule. Gets or sets the border's color of data bars specified by a conditional formatting rule. Gets or sets the border's type of data bars specified by a conditional formatting rule. Specifies the border type of a data bar. The data bar has no border. NOTE: This enum type is now obsolete. Instead, please use DataBarBorderType.None enum type. This property will be removed 12 months later since December 2013. Aspose apologizes for any inconvenience you may have experienced. The data bar has a solid border. NOTE: This enum type is now obsolete. Instead, please use DataBarBorderType.Solid enum type. This property will be removed 12 months later since December 2013. Aspose apologizes for any inconvenience you may have experienced. The data bar has no border. The data bar has a solid border. Specifies how a data bar is filled with color. The data bar is filled with solid color. NOTE: This enum type is now obsolete. Instead, please use DataBarFillType.Solid enum type. This property will be removed 12 months later since December 2013. Aspose apologizes for any inconvenience you may have experienced. The data bar is filled with a color gradient. NOTE: This enum type is now obsolete. Instead, please use DataBarFillType.Gradient enum type. This property will be removed 12 months later since December 2013. Aspose apologizes for any inconvenience you may have experienced. The data bar is filled with solid color. The data bar is filled with a color gradient. Specifies whether to use the same border and fill color as positive data bars. Use the color specified in the Negative Value and Axis Setting dialog box or by using the ColorType and BorderColorType properties of the NegativeBarFormat object. NOTE: This enum type is now obsolete. Instead, please use DataBarNegativeColorType.Color enum type. This property will be removed 12 months later since December 2013. Aspose apologizes for any inconvenience you may have experienced. Use the same color as positive data bars. NOTE: This enum type is now obsolete. Instead, please use DataBarNegativeColorType.SameAsPositive enum type. This property will be removed 12 months later since December 2013. Aspose apologizes for any inconvenience you may have experienced. Use the color specified in the Negative Value and Axis Setting dialog box or by using the ColorType and BorderColorType properties of the NegativeBarFormat object. Use the same color as positive data bars. Represents the color settings of the data bars for negative values that are defined by a data bar conditional formatting rule. Gets or sets a FormatColor object that you can use to specify the border color for negative data bars. Gets whether to use the same border color as positive data bars. Gets or sets a FormatColor object that you can use to specify the fill color for negative data bars. Gets or sets whether to use the same fill color as positive data bars. Represents identifier information. Returns or sets the name of the object. Returns or sets the value of the content type property. Gets and sets the type of the property. Indicates whether the value could be empty. A collection of objects that represent additional information. Adds content type property information. The name of the content type property. The value of the content type property. Adds content type property information. The name of the content type property. The value of the content type property. The type of the content type property. Gets the content type property by the specific index. The index. The content type property Gets the content type property by the property name. The property name. The content type property Represents the stream options. Initializes a new instance of the class. The type to load the linked resource. The default path. Initializes a new instance of the class. Gets and sets the type of loading resource. The default path(URL) saved in generated html file for the referred source. For example, the sheet data saved in xxx_files/sheet001.htm, the url used in the main html file should be like "src="xxx_files/sheet001.htm"" The user custom path(URL) saved in generated html file for the referred source. If not defined by user, DefaultPath will be used. For example, the sheet data will be saved by user to d:/sheet001.htm, the url used in the main html file should be "d:/sheet001.htm" or other valid relative path that can be accessed by the main html file. Gets/Sets the stream Represents the setting of deleting rows/columns. Indicates if update references in other worksheets. Represents the result of conditional formatting which applies to a cell. Gets the conditional result style. Gets the image of icon set. Gets the DataBar object. Gets the ColorScale object. Gets the display color of color scale. Represents PivotTable condition formatting rule type. Indicates that Top N conditional formatting is not evaluated Indicates that Top N conditional formatting is evaluated across the entire scope range. Indicates that Top N conditional formatting is evaluated for each row. Indicates that Top N conditional formatting is evaluated for each column. Represents the revision. Represents the type of revision. Gets the worksheet. Gets the number of this revision. Zero means this revision does not contains id. represents a revision record of information about a formatting change. Gets the type of the revision. Gets the location where the formatting was applied. Represents a revision record of a cell comment change. Gets the type of revision. Gets the row index of the which contains a comment. Gets the column index of the which contains a comment. Gets the name of the cell. Gets the action type of the revision. Indicates whether it's an old comment. Gets Length of the comment text added in this revision. Gets Length of the comment before this revision was made. Represents a revision record on a cell(s) that moved. Represents the type of revision. Gets the source area. Gets the destination area. Gets the source worksheet. represents a revision record of information about a formatting change. Gets the type of revision. The range to which this formatting was applied. Gets the applied style. Represents a revision record of a row/column insert/delete action. Represents the type of revision. Gets the inserting/deleting range. Gets the action type of this revision. Gets revision list by this operation. Represents a revision record of a sheet that was inserted. Gets the type of revision. Gets the action type of the revision. Gets the name of the worksheet. Gets the zero based position of the new sheet in the sheet tab bar. Represents a revision record which indicates that there was a merge conflict. Gets the type of revision. Represents a revision of a query table field change. Represents the type of the revision. Gets the location of the affected query table. Gets ID of the specific query table field that was removed. Represents the revision that changing cells. Represents the type of revision. Gets the name of the cell. Gets the row index of the cell. Gets the column index of the cell. Indicates whether this cell is new formatted. Indicates whether this cell is old formatted. Gets the old formula. Gets old value of the cell. Gets new value of the cell. Gets the old formula. Gets the new style of the cell. Gets the old style of the cell. Represents all revision logs. Gets by the index. Represents a revision record of a defined name change. Represents the type of revision. Gets the text of the defined name. Gets the old formula. Gets the formula. Represents all revision logs. Gets and sets the number of days the spreadsheet application will keep the change history for this workbook. Gets by index. The index. Returns object. Represents the type of revision action. Add revision. Delete revision. Column delete revision. Row delete revision. Column insert revision. Row insert revision. Represents a revision record of adding or removing a custom view to the workbook Gets the type of revision. Gets the type of action. Gets the globally unique identifier of the custom view. Represents the revision log. Gets all revisions in this log. Represents the revision type. Custom view. Defined name. Cells change. Auto format. Merge conflict. Comment. Format. Insert worksheet. Move cells. Undo. Query table. Inserting or deleting. Rename worksheet. Unknown. Represents a revision of renaming sheet. Represents the type of the revision. Gets the old name of the worksheet. Gets the new name of the worksheet. Represents the options for exporting html data. Only export table part of html file. Export all the data of html file. Represents the type of target attribute in HTML tag. Opens the linked document in a new window or tab Opens the linked document in the parent frame Opens the linked document in the same frame as it was clicked (this is default) Opens the linked document in the full body of the window Specifies the type of using quotation marks for values in text format files. All values that contain special characters such as quotation mark, separator character will be quoted. Same with the behavior of ms excel for exporting text file. All values will be quoted always. Only quote values when needed. Such as, if one value contains quotation mark but the quotation mark is not at the begin of this value, this value will not be quoted. All values will not be quoted. The exported text file with this type may not be read back correctly because the needed quotation marks being absent. The event triggered when exporting an object, such as Picture. Gets the object that contains the data to be saved. @return the data source object. Gets the object to be exported. the object to be exported. Represents two types of showing the hidden row in html. Hidden the row in html page. Remove the row in html page. Represents two types of showing the hidden col in html. Hidden the column in html page. Remove the hidden in html page. Allows users to manipulate objects while exporting. The following example creates a Workbook, opens a file named designer.xls in it and makes the horizontal and vertical scroll bars invisible for the Workbook. It then replaces two string values with an Integer value and string value respectively within the spreadsheet and finally sends the updated file to the client browser. [C#] //custom implementation of IExportObjectListener class CustomExportObjectListener : IExportObjectListener { private int imgIdx = 0; public object ExportObject(ExportObjectEvent e) { Object source = e.GetSource(); if (source is Shape) { Shape shape = (Shape)source; string url = null; switch (shape.MsoDrawingType) { case MsoDrawingType.Picture: { url = SaveImage(((Picture)shape).Data, imgIdx, ((Picture)shape).ImageFormat); break; } } if (url != null) { imgIdx++; } return url; } return null; } private string SaveImage(byte[] data, int imgIdx, ImageFormat format) { //here save the image to any location, then return the url(relative or absolute) that the generated html can get the image return "temp1/temp2.png"; } } //Save html file with custom listener HtmlSaveOptions saveOptions = new HtmlSaveOptions(); saveOptions.ExportObjectListener = new CustomExportObjectListener(); Stream stream = File.Create(outfn); book.Save(stream, saveOptions); stream.Flush(); stream.Close(); Export one object. The event triggered when one object needs to be exported. The information about the result of exporting object.
  • For exporting objects when export workbook to HTML format, the result is URL string to access the saved Image from the html file which contains this exported object.
Represents QueryTable information. Gets the connection id of the query table. Gets the relate external connection. Gets the name of querytable. Gets the range of the result. Returns or sets the PreserveFormatting of the object. Returns or sets the AdjustColumnWidth of the object. A collection of objects that represent QueryTable collection information. Gets the querytable by the specific index. The index. The querytable Represents an individual scenario. Gets and sets the comment of scenario. Gets and sets the name of scenario. Gets name of user who last changed the scenario. Indicates whether scenario is hidden. Indicates whether scenario is locked for editing when the sheet is protected. Gets the input cells of scenario. Represents the list of scenarios. Adds a scenario. The name of scenario. The index in the list of scenarios. Gets and sets which scenario is selected. Indicates which scenario was last selected by the user to be run/shown. Gets the object by the index. The specific index in the list. Represents input cell for the scenario. Gets and sets the row index of the input cell. Gets and sets the column index of the input cell. Gets and sets the input cell address. Gets and sets value of the input cell. Indicates whether input cell is deleted. Represents the list of the scenario's input cells. Adds an input cell. The row index of input cell. The column index of input cell. The value of input cell. Gets by index in the list. The specific index in the list The object summary description of slicer cache Returns or sets whether a slicer is participating in cross filtering with other slicers that share the same slicer cache, and how cross filtering is displayed. Read/write Returns whether the slicer associated with the specified slicer cache is based on an Non-OLAP data source. Read-only Returns a SlicerCacheItem collection that contains the collection of all items in the slicer cache. Read-only Returns the name of the slicer cache. Returns the name of cache field Represent the type of SlicerCacheCrossFilterType The table style element of the slicer style for slicer items with no data is not applied to slicer items with no data, and slicer items with no data are not sorted separately in the list of slicer items in the slicer view The table style element of the slicer style for slicer items with no data is applied to slicer items with no data, and slicer items with no data are sorted at the bottom in the list of slicer items in the slicer view The table style element of the slicer style for slicer items with no data is applied to slicer items with no data, and slicer items with no data are not sorted separately in the list of slicer items in the slicer view. Specify the sort type of SlicerCacheItem Ascending sort type Descending sort type Represent slicer data source item Specifies whether the SlicerItem is selected or not. Represent the collection of SlicerCacheItem Gets the SlicerCacheItem object by index. Gets the count of the SlicerCacheItem. Specify the style of slicer view built-in light style one built-in light style two built-in light style three built-in light style four built-in light style five built-in light style six built-in style other one built-in style other two built-in dark style one built-in dark style tow built-in dark style three built-in dark style four built-in dark style five built-in dark style six user-defined style, unsupported for now unsupported summary description of Slicer View Refreshing the slicer.Meanwhile, Refreshing and Calculating relative PivotTables. Specifies the title of the current Slicer object. Returns or sets the descriptive (alternative) text string of the Slicer object. Indicates whether the slicer object is printable. Indicates whether the slicer shape is locked. Represents the way the drawing object is attached to the cells below it. The property controls the placement of an object on a worksheet. Indicates whether locking aspect ratio. Indicates whether the specified slicer can be moved or resized by using the user interface. Returns the SlicerCache object associated with the slicer. Read-only. Returns the Worksheet object that represents the sheet that contains the slicer. Read-only. Specify the type of Built-in slicer style the default type is SlicerStyleLight1 Returns or sets the name of the specified slicer Returns or sets the caption of the specified slicer. Returns or sets whether the header that displays the slicer Caption is visible the default value is true Returns or sets the number of columns in the specified slicer. Returns or sets the horizontal offset of slicer shape from its left column, in pixels. Returns or sets the vertical offset of slicer shape from its top row, in pixels. Returns or sets the width of the specified slicer, in points. Returns or sets the width of the specified slicer, in pixels. Returns or sets the height of the specified slicer, in points. Returns or sets the height of the specified slicer, in pixels. Gets or sets the width in unit of pixels for each column of the slicer.  Returns or sets the width, in points, of each column in the slicer. Returns or sets the height, in pixels, of each row in the specified slicer. Returns or sets the height, in points, of each row in the specified slicer. Specifies the collection of all the Slicer objects on the specified worksheet. Remove the specified Slicer The Slicer object Deletes the Slicer at the specified index The position index in Slicer collection Add a new Slicer using PivotTable as data source PivotTable object The cell in the upper-left corner of the Slicer range. The name of PivotField in PivotTable.BaseFields The new add Slicer index Add a new Slicer using PivotTable as data source PivotTable object Row index of the cell in the upper-left corner of the Slicer range. Column index of the cell in the upper-left corner of the Slicer range. The name of PivotField in PivotTable.BaseFields The new add Slicer index Add a new Slicer using PivotTable as data source PivotTable object Row index of the cell in the upper-left corner of the Slicer range. Column index of the cell in the upper-left corner of the Slicer range. The index of PivotField in PivotTable.BaseFields The new add Slicer index Add a new Slicer using PivotTable as data source PivotTable object The cell in the upper-left corner of the Slicer range. The index of PivotField in PivotTable.BaseFields The new add Slicer index Add a new Slicer using PivotTable as data source PivotTable object Row index of the cell in the upper-left corner of the Slicer range. Column index of the cell in the upper-left corner of the Slicer range. The PivotField in PivotTable.BaseFields The new add Slicer index Add a new Slicer using PivotTable as data source PivotTable object The cell in the upper-left corner of the Slicer range. The PivotField in PivotTable.BaseFields The new add Slicer index Add a new Slicer using ListObjet as data source ListObject object The index of ListColumn in ListObject.ListColumns The cell in the upper-left corner of the Slicer range. The new add Slicer index Add a new Slicer using ListObjet as data source ListObject object The ListColumn in ListObject.ListColumns The cell in the upper-left corner of the Slicer range. The new add Slicer index Add a new Slicer using ListObjet as data source ListObject object The ListColumn in ListObject.ListColumns Row index of the cell in the upper-left corner of the Slicer range. Column index of the cell in the upper-left corner of the Slicer range. The new add Slicer index Gets the Slicer by index. Gets the Slicer by slicer's name. Represents callback interface of processing smartmarker. Callback for processing a smart marker. The sheet index. The row index. The column index. The table name of smartmarker. The table name of smartmarker. Represents category type of cell's number formatting. General Text Number Date or Date and Time Time Fraction Scientific This type specifies the cap types of the text. None caps Apply all caps on the text. Apply small caps to the text. This type specifies the strike type. A single strikethrough applied on the text A double strikethrough applied on the text No strike is applied to the text Represents a list object on a worksheet. The ListObject object is a member of the ListObjects collection. The ListObjects collection contains all the list objects on a worksheet. [C#] Workbook workbook = new Workbook(); Cells cells = workbook.Worksheets[0].Cells; for (int i = 0; i <5; i++) { cells[0,i].PutValue(CellsHelper.ColumnIndexToName(i)); } for (int row = 1; row <10; row++) { for (int column = 0; column <5; column++) { cells[row, column].PutValue(row * column); } } ListObjectCollection tables = workbook.Worksheets[0].ListObjects; int index = tables.Add(0, 0, 9, 4, true); ListObject table = tables[0]; table.ShowTotals = true; table.ListColumns[4].TotalsCalculation = Aspose.Cells.TotalsCalculation.Sum; workbook.Save(@"C:\Book1.xlsx"); [Visual Basic] Dim workbook As Workbook = New Workbook() Dim cells As Cells = workbook.Worksheets(0).Cells For i As Int32 = 0 To 4 cells(0, i).PutValue(CellsHelper.ColumnIndexToName(i)) Next For row As Int32 = 1 To 9 For column As Int32 = 0 To 4 cells(row, column).PutValue(row * column) Next Next Dim tables As ListObjectCollection = workbook.Worksheets(0).ListObjects Dim index As Int32 = tables.Add(0, 0, 9, 4, True) Dim table As ListObject = tables(0) table.ShowTotals = True table.ListColumns(4).TotalsCalculation = Aspose.Cells.TotalsCalculation.Sum workbook.Save("C:\Book1.xlsx") Resize the range of the list object. The start row index of the new range. The start column index of the new range. The end row index of the new range. The end column index of the new range. Whether the ListObject has headers. Put the value to the cell. The row offset. The column offset. The cell value. Updates all list columns' name from the worksheet. The value of the cells in the header row of the table must be same as the name of the ListColumn; Cell.PutValue do not auto modify the name of the ListColumn for performance. Apply the table style to the range. Convert the table to range. Convert the table to range. the options when converting table to range. Gets the start row of the range. Gets the start column of the range. Gets the end row of the range. Gets the end column of the range. Gets ListColumns of the ListObject. Gets and sets whether this ListObject show header row. Gets and sets whether this ListObject show total row. Gets the data range of the ListObject. Gets the linked QueryTable. Gets the data source type of the table. Gets auto filter. Gets and sets the display name. Gets and sets the comment of the table. Indicates whether the first column in the table should have the style applied. Indicates whether the last column in the table should have the style applied. Indicates whether row stripe formatting is applied. Indicates whether column stripe formatting is applied. Gets and the built-in table style. Gets and sets the table style name. Gets an used for this list. Gets and sets the alternative text. Gets and sets the alternative description. Represents how to update links to other workbooks when the workbook is opened. Prompt user to update. Do not update, and do not prompt user. Always update. Represents data validation.settings. [C#] Workbook workbook = new Workbook(); ValidationCollection validations = workbook.Worksheets[0].Validations; Validation validation = validations[validations.Add()]; validation.Type = Aspose.Cells.ValidationType.WholeNumber; validation.Operator = OperatorType.Between; validation.Formula1 = "3"; validation.Formula2 = "1234"; CellArea area; area.StartRow = 0; area.EndRow = 1; area.StartColumn = 0; area.EndColumn = 1; validation.AddArea(area); [Visual Basic] Dim workbook as Workbook = new Workbook() Dim validations as ValidationCollection = workbook.Worksheets(0).Validations Dim validation as Validation = validations(validations.Add()) validation.Type = ValidationType.WholeNumber validation.Operator = OperatorType.Between validation.Formula1 = "3" validation.Formula2 = "1234" Dim area as CellArea area.StartRow = 0 area.EndRow = 1 area.StartColumn = 0 area.EndColumn = 1 validation.AddArea(area) Gets the value or expression associated with this validation. Whether the formula needs to be formatted as R1C1. Whether the formula needs to be formatted by locale. The value or expression associated with this validation. Gets the value or expression associated with this validation. Whether the formula needs to be formatted as R1C1. Whether the formula needs to be formatted by locale. The value or expression associated with this validation. Gets the value or expression associated with this validation for specific cell. Whether the formula needs to be formatted as R1C1. Whether the formula needs to be formatted by locale. The row index. The column index. The value or expression associated with this validation. Gets the value or expression associated with this validation for specific cell. Whether the formula needs to be formatted as R1C1. Whether the formula needs to be formatted by locale. The row index. The column index. The value or expression associated with this validation. Sets the value or expression associated with this validation. The value or expression associated with this format condition. Whether the formula is R1C1 formula. Whether the formula is locale formatted. Sets the value or expression associated with this validation. The value or expression associated with this format condition. Whether the formula is R1C1 formula. Whether the formula is locale formatted. Get the value for list of the validation for the specified cell. The row index. The column index. The value to produce the list of this validation for the specified cell. If the list references to a range, then the returned value will be a ReferredArea object; Otherwise the returned value may be null, object[], or simple object. Only for validation whose type is List and has been applied to given cell, otherwise null will be returned. Applies the validation to the area. The area. It is equivalent to use with checking intersection and edge. Applies the validation to the area. The area. Whether check the intersection of given area with existing validations' areas. If one validation has been applied in given area(or part of it), then the existing validation should be removed at first from given area. Otherwise corruption may be caused for the generated Validations. If user is sure that the added area does not intersect with any existing area, this parameter can be set as false for performance consideration. Whether check the edge of this validation's applied areas. Validation's internal settings depend on the top-left one of its applied ranges, so if given area will become the new top-left one of the applied ranges, the internal settings should be changed and rebuilt, otherwise unexpected result may be caused. If user is sure that the added area is not the top-left one, this parameter can be set as false for performance consideration. In this method, we will remove all old validations in given area. For the top-left one of Validation's applied ranges, firstly its StartRow is smallest, secondly its StartColumn is the smallest one of those areas who have the same smallest StartRow. Applies the validation to given areas. The areas. Whether check the intersection of given area with existing validations' areas. If one validation has been applied in given area(or part of it), then the existing validation should be removed at first from given area. Otherwise corruption may be caused for the generated Validations. If user is sure that all the added areas do not intersect with any existing area, this parameter can be set as false for performance consideration. Whether check the edge of this validation's applied areas. Validation's internal settings depend on the top-left one of its applied ranges, so if one of given areas will become the new top-left one of the applied ranges, the internal settings should be changed and rebuilt, otherwise unexpected result may be caused. If user is sure that no one of those added areas is the top-left, this parameter can be set as false for performance consideration. In this method, we will remove all old validations in given area. For the top-left one of Validation's applied ranges, firstly its StartRow is smallest, secondly its StartColumn is the smallest one of those areas who have the same smallest StartRow. Remove the validation settings in the range. the areas where this validation settings should be removed. Removes this validation from given areas. the areas where this validation settings should be removed. Remove the validation settings in the cell. The row index. The column index. Copy validation. The source validation. The copy option. Represents the operator for the data validation. Represents the validation alert style. Represents the data validation type. Represents the data validation input message. Represents the title of the data-validation input dialog box. Represents the data validation error message. Represents the title of the data-validation error dialog box. Indicates whether the data validation input message will be displayed whenever the user selects a cell in the data validation range. Indicates whether the data validation error message will be displayed whenever the user enters invalid data. Indicates whether blank values are permitted by the range data validation. Represents the value or expression associated with the data validation. Represents the value or expression associated with the data validation. Represents the first value associated with the data validation. Represents the second value associated with the data validation. Indicates whether data validation displays a drop-down list that contains acceptable values. Gets all which contain the data validation settings. Represents module that is contained in VBA project. Gets and sets the name of Module. Gets the type of module. Gets and sets the codes of module. Represents the list of Represents the data of Designer. We do not support to parse them. Just only for copying. Adds module for a worksheet. The worksheet Adds module. The type of module. The name of module. Removes module for a worksheet. The worksheet Remove the module by the name Gets in the list by the index. The index. Gets in the list by the name. The name of module. Represents the type of VBA module. Represents a procedural module. Represents a document module. Represents a class module. Represents a designer module. Represents the VBA project. Sign this VBA project by a DigitalSignature DigitalSignature Protects or unprotects this VBA project. indicates whether locks project for viewing. If the value is null, unprotects this VBA project, otherwise projects the this VBA project. If islockedForViewing is true, the password could not be null. Copy VBA project from other file. Indicates whether the signature of VBA project is valid or not. Gets certificate raw data if this VBA project is signed. Gets and sets the name of the VBA project. Indicates whether VBAcode is signed or not. Indicates whether this VBA project is protected. Indicates whether this VBA project is locked for viewing. Gets all objects. Gets all references of VBA project. Represents the reference of VBA project. Gets the type of this reference. Gets and sets the name of the reference. Gets and sets the Libid of the reference. Gets and sets the twiddled Libid of the reference. Only for control reference. Gets and sets the extended Libid of the reference. Only for control reference. Gets and sets the referenced VBA project's identifier with an relative path. Only for project reference. Represents all references of VBA project. Add a reference to an Automation type library. The name of reference. The identifier of an Automation type library. Add a reference to a twiddled type library and its extended type library. The name of reference. The identifier of an Automation type library. The identifier of a twiddled type library The identifier of an extended type library Adds a reference to an external VBA project. The name of reference. The referenced VBA project's identifier with an absolute path. The referenced VBA project's identifier with an relative path. Copies references from other VBA project. The source references. Get the reference in the list by the index. The index. Represents the type of VBA project reference. Specifies a reference to an Automation type library. Specifies a reference to a twiddled type library and its extended type library. Specifies a reference to an external VBA project. Warning info Get warning type. Get description of warning info. The error object. Gets and sets the corrected object. WaringType Font substitution warning type when a font has not been found, this warning type can be get. Duplicate defined name is found in the file. Unsupported file format. Invalid text of the defined name. Invalid the font name. Invalid autofilter range. Specifies write protection settings for a workbook. Returns true if the specified password is the same as the write-protection password the file was protected with. The specified password. Gets and sets the author. Indicates if the Read Only Recommended option is selected. Indicates whether this workbook is write protected. Sets the protected password to modify the file. Allows users to add their custom value parser for parsing string values to other proper cell value object. Parses given string to proper value object. The string value to be parsed Parsed value object from given string. If given string cannot be parsed to proper value object, returns null. Gets the formatting pattern corresponding to the parsed value by last invocation of . The returned formatting pattern may be used to format corresponding cell(set to Style.Custom for the cell). Represents five types of html cross string. Display like MS Excel,depends on the next cell. If the next cell is null,the string will cross,or it will be truncated Display the string like MS Excel exporting html. Display HTML cross string, this performance for creating large html files will be more than ten times faster than setting the value to Default or FitToCell. Display HTML cross string and hide the right string when the texts overlap. Only displaying the string within the width of cell. Enumerates Bit Depth Type for tiff image. Default value, not set value. 1 bit per pixel 84 bits per pixel 8 bits per pixel 24 bits per pixel 32 bits per pixel DrawObject will be initialized and returned when rendering. Indicates the Cell object when rendering. All properties of cell can be accessed. Indicates the Shape object when rendering. All properties of shape can be accessed. Indicates image bytes of rendered Chart, Shape when rendering. Indicates the type of DrawObject. Indicates the page index of DrawObject. Page index is based on zero. One Sheet contains several pages when rendering. Indicates total pages in current rendering. Indicates current sheet index of DrawObject. Indicate Cell or Image of DrawObject. Indicate DrawObject is an Image indicate DrawObject is an Cell Interface to get DrawObject and Bound when rendering. Implements this interface to get DrawObject and Bound when rendering. DrawObject will be initialized and returned when rendering Left of DrawObject Top of DrawObject Width of DrawObject Height of DrawObject Enumerates grid line Type. Represents dotted line. Represents hair line. Allows to specify options when rendering worksheet to images, printing worksheet or rendering chart to image. [C#] //Set Image Or Print Options ImageOrPrintOptions options = new ImageOrPrintOptions(); //set Horizontal resolution options.HorizontalResolution = 200; //set Vertica; Resolution options.VerticalResolution = 300; //Instantiate Workbook Workbook book = new Workbook(@"c:\test.xls"); //Save chart as Image using ImageOrPrint Options Bitmap chartObject = book.Worksheets[0].Charts[0].ToImage(options); [VB.NET] 'Set Image Or Print Options Dim options As New ImageOrPrintOptions() 'set Horizontal resolution options.HorizontalResolution = 200 'set Vertica; Resolution options.VerticalResolution = 300 'Instantiate Workbook Dim book As New Workbook("c:\test.xls") 'Save chart as Image using ImageOrPrint Options Dim chartObject As Bitmap = book.Worksheets(0).Charts(0).ToImage(options) Sets desired width and height of image. desired width in pixels desired height in pixels Gets or sets the output file format type Support Tiff/XPS Client can special output to printer when print each page using this EventHandler Client can control page setting of printer when print each page using this EventHandler If PrintWithStatusDialog = true , there will be a dialog that shows current print status. else no such dialog will show. Gets or sets the horizontal resolution for generated images, in dots per inch. Applies generating image method except Emf format images. The default value is 96. Gets or sets the vertical resolution for generated images, in dots per inch. Applies generating image method except Emf format image. The default value is 96. Gets or sets the type of compression to apply only when saving pages to the Tiff format. Has effect only when saving to TIFF. The default value is Lzw. Gets or sets bit depth to apply only when saving pages to the Tiff format. Has effect only when saving to TIFF. If TiffCompression is set to CCITT3, CCITT4, this will not take effect, the bit depth of the generated tiff image will be always 1. Indicates which pages will not be printed. Gets or sets a value determining the quality of the generated images to apply only when saving pages to the Jpeg format. The default value is 100 Has effect only when saving to JPEG. The value must be between 0 and 100. The default value is 100. Gets or sets the format of the generated images. Don't apply the method that returns a Bitmap object. NOTE: This member is now obsolete. Instead, please use ImageOrPrintOptions.ImageType property. This property will be removed 12 months later since April. 2018. Aspose apologizes for any inconvenience you may have experienced. Gets or sets the format of the generated images. Don't apply the method that returns a Bitmap object. The default value is ImageFormat.Bmp. Don't apply the method that returns a Bitmap object. Indicates whether the width and height of the cells is automatically fitted by cell value. The default value is false. When set the value to true, the page only include the cells that have data. The default value is false. If OnePagePerSheet is true , all content of one sheet will output to only one page in result. The paper size of pagesetup will be invalid, and the other settings of pagesetup will still take effect. If AllColumnsInOnePagePerSheet is true , all column content of one sheet will output to only one page in result. The width of paper size of pagesetup will be invalid, and the other settings of pagesetup will still take effect. Implements this interface to get DrawObject and Bound when rendering. Indicate the chart imagetype when converting. Indicate the filename of embedded image in svg. This should be full path with directory like "c:\\xpsEmbedded" if this property is true, the generated svg will fit to view port. If this property is true , one Area will be output, and no scale will take effect. Specifies the quality of text rendering. The default value is TextRenderingHint.SystemDefault Specifies whether smoothing (antialiasing) is applied to lines and curves and the edges of filled areas. The default value is SmoothingMode.None Indicates if the background of generated image should be transparent. The default value is false. That means the background of the generated images is white. Gets or sets the pixel format for the generated images. The default value is PixelFormat.Format32bppArgb. Gets or sets warning callback. Control/Indicate progress of page saving process. Indicates whether only substitute the font of character when the cell font is not compatibility for it. Default is false. We will try default font of Workbook and PdfSaveOption/system for cell font first. Gets or sets the 0-based index of the first page to save. Default is 0. Gets or sets the number of pages to save. Default is System.Int32.MaxValue which means all pages will be rendered.. When characters in the Excel are unicode and not be set with correct font in cell style, They may appear as block in pdf,image. Set the DefaultFont such as MingLiu or MS Gothic to show these characters. If this property is not set, Aspose.Cells will use system default font to show these unicode characters. When characters in the Excel are unicode and not be set with correct font in cell style, They may appear as block in pdf,image. Set this to true to try to use workbook's default font to show these characters first. Default is true. Indicates whether to output a blank page when there is nothing to print. Default is false. Gets or sets gridline type. Default is Dotted type. Gets or sets displaying text type when the text width is larger than cell width. Gets or sets an EmfType that specifies the format of the Metafile.. The default value is EmfPlusDual. Gets or sets default edit language. It may display/render different layouts for text paragraph when different edit languages is set. Default is . Control/Indicate progress of page saving process. Control/Indicate a page starts to be output. Info for a page starts saving process. Control/Indicate a page ends to be output. Info for a page ends saving process. Info for a page ends saving process. Info for a page saving process. Current page index, zero based. Total page count. Gets or sets a value indicating whether having more pages to be output. The default value is true. Info for a page starts saving process. Gets or sets a value indicating whether the page should be output. The default value is true. Indicates which pages will not be printed. Prints all pages. Don't print the pages which the cells are blank. Don't print the pages which cells only contain styles. Enumerates displaying text type when the text width is larger than cell width. Display text like in Microsoft Excel. Display all the text by crossing other cells and keep text of crossed cells. Display all the text by crossing other cells and override text of crossed cells. Only display the text within the width of cell. Specifies what type of compression to apply when saving images into TIFF format file. Specifies no compression. Specifies the RLE compression scheme. Specifies the LZW compression scheme. Specifies the CCITT3 compression scheme. Specifies the CCITT4 compression scheme. Worksheet printing preview. The construct of SheetPrintingPreview Indicate which spreadsheet to be printed. ImageOrPrintOptions contains some property of output Evaluate the total page count of this worksheet Represents a worksheet render which can render worksheet to various images such as (BMP, PNG, JPEG, TIFF..) The constructor of this class , must be used after modification of pagesetup, cell style. the construct of SheetRender, need worksheet and ImageOrPrintOptions as params Indicate which spreadsheet to be rendered. ImageOrPrintOptions contains some property of output image Get page size of output image. The size unit is in pixel. The page index is based on zero. Render certain page to a Graphics indicate which page is to be converted The object where to render to. The X coordinate (in pixels) of the top left corner of the rendered page. The Y coordinate (in pixels) of the top left corner of the rendered page. The maximum width (in pixels) that can be occupied by the rendered page. The maximum height (in pixels) that can be occupied by the rendered page. Render certain page to a Graphics indicate which page is to be converted The object where to render to. The X coordinate (in pixels) of the top left corner of the rendered page. The Y coordinate (in pixels) of the top left corner of the rendered page. Render certain page to a file. indicate which page is to be converted filename of the output image Render certain page to a stream. indicate which page is to be converted the stream of the output image Render certain page to a Bitmap object. indicate which page is to be converted the bitmap object of the page Render whole worksheet as Tiff Image to stream. the stream of the output image Render whole worksheet as Tiff Image to a file. the filename of the output image Render worksheet to Printer the name of the printer , for example: "Microsoft Office Document Image Writer" Render worksheet to Printer the name of the printer , for example: "Microsoft Office Document Image Writer" the 0-based index of the first page to print, it must be in Range [0, SheetRender.PageCount-1] the number of pages to print, it must be greater than zero Render worksheet to Printer the name of the printer , for example: "Microsoft Office Document Image Writer" set the print job name Render worksheet to Printer the settings of printer, e.g. PrinterName, Duplex Client can control page setting of printer when print each page using this function. If true , printer will go to next page after print current page System.Drawing.Printing.PrintPageEventArgs Indirect next page index, based on zero Indicate the total page count of current worksheet Gets calculated page scale of the sheet. Workbook printing preview. The construct of WorkbookPrintingPreview Indicate which workbook to be printed. ImageOrPrintOptions contains some property of output Evaluate the total page count of this workbook Represents a Workbook render. The constructor of this class , must be used after modification of pagesetup, cell style. The construct of WorkbookRender Indicate which workbook to be rendered. ImageOrPrintOptions contains some property of output image Get page size of output image. The size unit is in pixel. The page index is based on zero. Render whole workbook as Tiff Image to stream. the stream of the output image Render whole workbook as Tiff Image to a file. the filename of the output image Render certain page to a file. indicate which page is to be converted filename of the output image Render certain page to a stream. indicate which page is to be converted the stream of the output image Render certain page to a Bitmap object. indicate which page is to be converted the bitmap object of the page Render workbook to Printer the name of the printer , for example: "Microsoft Office Document Image Writer" Render workbook to Printer the name of the printer , for example: "Microsoft Office Document Image Writer" the 0-based index of the first page to print, it must be in Range [0, WorkbookRender.PageCount-1] the number of pages to print, it must be greater than zero Render workbook to Printer the name of the printer , for example: "Microsoft Office Document Image Writer" set the print job name Render workbook to Printer the settings of printer, e.g. PrinterName, Duplex Client can control page setting of printer when print each page using this function. If true , printer will go to next page after print current page System.Drawing.Printing.PrintPageEventArgs Indirect next page index, based on zero Indicate the total page count of workbook Represents the options of inserting. Indicates if references in other worksheets will be updated. Represents fill formatting for a shape. Sets the specified fill to a one-color gradient. One gradient color. The gradient degree. Can be a value from 0.0 (dark) through 1.0 (light). Gradient shading style. The gradient variant. Can be a value from 1 through 4, corresponding to one of the four variants on the Gradient tab in the Fill Effects dialog box. If style is GradientStyle.FromCenter, the Variant argument can only be 1 or 2. Gets and sets the fill fore color. Returns or sets the degree of fore color of the specified fill as a value from 0.0 (opaque) through 1.0 (clear). Gets and sets the file back color. Gets and sets the Texture and Picture fill data. Gets the texture fill type. Indicates whether there is fill. Represents all parameters' type or return value type of function. Represents the options of importing data into cells. Creates the default importing options. Indicates whether apply the style of the grid view to cells. Gets or sets a value that indicates whether the string value should be converted to numeric or date value. Indicates whether new rows should be added for importing data records. Indicates whether shifting the first row down when inserting rows. Indicates whether field name should be imported. Gets or sets date format string for cells with imported datetime values. Gets or sets the number formats Indicates whether the data are formulas. Gets or sets total row count to import from data source. -1 means all rows of given data source. Gets or sets total column count to import from data source. -1 means all rows of given data source. Gets or sets the columns(0-based) to import from data source. null means all columns should be imported. Default value for the value in the table is null. Indicates whether the value contains html tags. Indicates whether checking merged cells. Represents error bar display type. Both Minus None Plus Fill format set type. No Fill format. Gradient fill format. Texture fill format. Pattern fill format. Represents the gradient stop collection. Add a gradient stop. The position of the stop,in unit of percentage. The color of the stop. The alpha of the color. Add a gradient stop. The position of the stop,in unit of percentage. The color of the stop. The alpha of the color. Gets the gradient stop by the index. The index. The gradient stop. Represents data label position type. Applies only to bar, 2d/3d pie charts Applies only to bar, 2d/3d pie charts Applies only to bar charts Applies only to bar, 2d/3d pie charts Applies only to line charts Applies only to line charts Applies only to line charts Applies only to line charts Applies only to 2d/3d pie charts User moved the data labels, Only for reading chart from template file. Represents mirror type of texture fill None Horizonal Vertical Both Represents picture format option Gets or sets the picture fill type. Gets or sets how many the picture stack and scale with. Gets or sets the left offset for stretching picture. Gets or sets the top offset for stretching picture. Gets or sets the bottom offset for stretching picture. Gets or sets the right offset for stretching picture. Represents tile picture as texture. Gets or sets the X offset for tiling picture. Gets or sets the Y offset for tiling picture. Gets or sets the X scale for tiling picture. Gets or sets the Y scale for tiling picture. Gets or sets the mirror type for tiling. Gets or sets the alignment for tiling. Represents a creation path consisting of a series of moves, lines and curves that when combined will form a geometric shape. Initializes a new instance of the class. Gets list Represents path collection information in NotPrimitive autoshape Add a creation path. Returns object. Gets the count of paths Gets a creation path. The index. Returns object. Represents a segment path in a path of the freeform. Gets the path segment type Gets the points in path segment Represents path segment type. Straight line segment Cubic Bezier curve Start a new path If the starting POINT and the end POINT are not the same, a single straight line is drawn to connect the starting POINT and ending POINT of the path. The end of the current path Escape An arc Unknown Represents all error check option. Add an error check option. Gets object by the given index. The index Return object Error check setting applied on certain ranges. [C#] Workbook workbook = new Workbook(); ErrorCheckOptionCollection opts = workbook.Worksheets[0].ErrorCheckOptions; int optionIdx = opts.Add(); ErrorCheckOption opt = opts[optionIdx]; opt.SetErrorCheck(Aspose.Cells.ErrorCheckType.InconsistFormula, false); opt.SetErrorCheck(Aspose.Cells.ErrorCheckType.InconsistRange, false); opt.SetErrorCheck(Aspose.Cells.ErrorCheckType.TextDate, false); opt.SetErrorCheck(Aspose.Cells.ErrorCheckType.TextNumber, false); opt.SetErrorCheck(Aspose.Cells.ErrorCheckType.Validation, false); opt.AddRange(CellArea.CreateCellArea("A1", "B10")); workbook.Save(@"D:\Filetemp\Book1.xlsx"); [Visual Basic] Dim workbook As Workbook = New Workbook() Dim opts As ErrorCheckOptionCollection = workbook.Worksheets(0).ErrorCheckOptions Dim optionIdx As Integer = opts.Add() Dim opt As ErrorCheckOption = opts(optionIdx) opt.SetErrorCheck(Aspose.Cells.ErrorCheckType.InconsistFormula, False) opt.SetErrorCheck(Aspose.Cells.ErrorCheckType.InconsistRange, False) opt.SetErrorCheck(Aspose.Cells.ErrorCheckType.TextDate, False) opt.SetErrorCheck(Aspose.Cells.ErrorCheckType.TextNumber, False) opt.SetErrorCheck(Aspose.Cells.ErrorCheckType.Validation, False) opt.AddRange(CellArea.CreateCellArea("A1", "B10")) workbook.Save("D:\Filetemp\Book1.xlsx") Checks whether given error type will be checked. error type can be checked return true if given error type will be checked(green triangle will be shown for cell if the check failed). Sets whether given error type will be checked. error type can be checked. true if given error type needs to be checked(green triangle will be shown for cell if the check failed). Gets the count of ranges that influenced by this setting. the count of ranges that influenced by this setting. Adds one influenced range by this setting. the range to be added. the index of the added range in the range list of this setting. Gets the influenced range of this setting by given index. the index of range return influenced range at given index. Removes one range by given index. the index of the range to be removed. Represents all error check type. check for calculation errors check for references to empty cells check the format of numeric values check formulas with references to less than the entirety of a range containing continuous data check formulas that are inconsistent with formulas in neighboring cells. check the format of date/time values check for unprotected formulas whether to perform data validation Ignore errors when cells contain a value different from a calculated column formula. Represents all operator about the interrupt. Interrupt the current operator. Provides methods to license the component. In this example, an attempt will be made to find a license file named MyLicense.lic in the folder that contains the component, in the folder that contains the calling assembly, in the folder of the entry assembly and then in the embedded resources of the calling assembly. [C#] License license = new License(); license.SetLicense("MyLicense.lic"); [Visual Basic] Dim license As license = New license License.SetLicense("MyLicense.lic") Initializes a new instance of this class. In this example, an attempt will be made to find a license file named MyLicense.lic in the folder that contains the component, in the folder that contains the calling assembly, in the folder of the entry assembly and then in the embedded resources of the calling assembly. [C#] License license = new License(); license.SetLicense("MyLicense.lic"); [Visual Basic] Dim license As license = New license License.SetLicense("MyLicense.lic") Licenses the component.

Tries to find the license in the following locations:

1. Explicit path.

2. The folder that contains the Aspose component assembly.

3. The folder that contains the client's calling assembly.

4. The folder that contains the entry (startup) assembly.

5. An embedded resource in the client's calling assembly.

Note:On the .NET Compact Framework, tries to find the license only in these locations:

1. Explicit path.

2. An embedded resource in the client's calling assembly.

In this example, an attempt will be made to find a license file named MyLicense.lic in the folder that contains the component, in the folder that contains the calling assembly, in the folder of the entry assembly and then in the embedded resources of the calling assembly. [C#] License license = new License(); license.SetLicense("MyLicense.lic"); [Visual Basic] Dim license As License = New License license.SetLicense("MyLicense.lic") Can be a full or short file name or name of an embedded resource. Use an empty string to switch to evaluation mode.
Licenses the component. A stream that contains the license.

Use this method to load a license from a stream.

[C#] License license = new License(); license.SetLicense(myStream); [Visual Basic] Dim license as License = new License license.SetLicense(myStream)
Represents the load file format. Represents recognizing the format automatically. Represents a CSV file. Represents Office Open XML spreadsheetML workbook or template, with or without macros. Represents a TSV(tab-separated values file) file. Represents a tab delimited text file, same with . Represents a html file. Represents a mhtml file. Represents a ods file. Represents an Excel97-2003 xls file. Represents an Excel 2003 xml file. Represents an xlsb file. Represents a numbers file. Represents the flat ods file. Represents StarOffice Calc Spreadsheet (.sxc) file format. Represents unrecognized format, cannot be loaded. Represents the options for loading text file. Creates the options for loading text file. The default load file type is CSV . Creates the options for loading text file. The loading format Gets and sets character separator of text file. Gets and sets the a string value as separator. True means that the file contains several encoding. Gets and sets preferred value parsers for loading text file. parsers[0] is the parser will be used for the first column in text template file, parsers[1] is the parser will be used for the second column, ...etc. The last one(parsers[parsers.length-1]) will be used for all other columns start from parsers.length-1. If one item is null, the corresponding column will be parsed by the default parser of Aspose.Cells. Indicates whether the text is formula if it starts with "=". Whether there is text qualifier for cell value. Default is true. Specifies the text qualifier for cell values. Default qualifier is '"'. When setting this property, will become true automatically. Whether consecutive delimiters should be treated as one. Represents PivotTable condition formatting scope type. Indicates that conditional formatting is applied to the selected data fields. Indicates that conditional formatting is applied to the selected PivotTable field intersections. Indicates that conditional formatting is applied to the selected cells. Represents a PivotFilter in PivotFilter Collection. Gets the autofilter of the pivot filter. Gets the autofilter type of the pivot filter. Gets the field index of the pivot filter. Gets the string value1 of the label pivot filter. Gets the string value2 of the label pivot filter. Gets the measure field index of the pivot filter. Gets the member property field index of the pivot filter. Gets the name of the pivot filter. Gets the Evaluation Order of the pivot filter. Represents a collection of all the PivotFilter objects Adds a PivotFilter Object to the specific type the PivotField index the PivotFilter type the index of the PivotFilter Object in this PivotFilterCollection. Clear PivotFilter from the specific PivotField the PivotField index Gets the pivotfilter object at the specific index. Represents PivotTable Filter type. Indicates the "begins with" filter for field captions. Indicates the "is between" filter for field captions. Indicates the "contains" filter for field captions. Indicates the "ends with" filter for field captions. Indicates the "equal" filter for field captions. Indicates the "is greater than" filter for field captions. Indicates the "is greater than or equal to" filter for field captions. Indicates the "is less than" filter for field captions. Indicates the "is less than or equal to" filter for field captions. Indicates the "does not begin with" filter for field captions. Indicates the "is not between" filter for field captions. Indicates the "does not contain" filter for field captions. Indicates the "does not end with" filter for field captions. Indicates the "not equal" filter for field captions. Indicates the "count" filter. Indicates the "between" filter for date values. Indicates the "equals" filter for date values. Indicates the "newer than" filter for date values. Indicates the "newer than or equal to" filter for date values. Indicates the "not between" filter for date values. Indicates the "does not equal" filter for date values. Indicates the "older than" filter for date values. Indicates the "older than or equal to" filter for date values. Indicates the "last month" filter for date values. Indicates the "last quarter" filter for date values. Indicates the "last week" filter for date values. Indicates the "last year" filter for date values. Indicates the "January" filter for date values. Indicates the "February" filter for date values. Indicates the "March" filter for date values. Indicates the "April" filter for date values. Indicates the "May" filter for date values. Indicates the "June" filter for date values. Indicates the "July" filter for date values. Indicates the "August" filter for date values. Indicates the "September" filter for date values. Indicates the "October" filter for date values. Indicates the "November" filter for date values. Indicates the "December" filter for date values. Indicates the "next month" filter for date values. Indicates the "next quarter" for date values. Indicates the "next week" for date values. Indicates the "next year" filter for date values. Indicates the "percent" filter for numeric values. Indicates the "first quarter" filter for date values. Indicates the "second quarter" filter for date values. Indicates the "third quarter" filter for date values. Indicates the "fourth quarter" filter for date values. Indicates the "sum" filter for numeric values. Indicates the "this month" filter for date values. Indicates the "this quarter" filter for date values. Indicates the "this week" filter for date values. Indicate the "this year" filter for date values. Indicates the "today" filter for date values. Indicates the "tomorrow" filter for date values. Indicates the PivotTable filter is unknown to the application. Indicates the "Value between" filter for text and numeric values. Indicates the "value equal" filter for text and numeric values. Indicates the "value greater than" filter for text and numeric values. Indicates the "value greater than or equal to" filter for text and numeric values. Indicates the "value less than" filter for text and numeric values. Indicates the "value less than or equal to" filter for text and numeric values. Indicates the "value not between" filter for text and numeric values. Indicates the "value not equal" filter for text and numeric values. Indicates the "year-to-date" filter for date values. Indicates the "yesterday" filter for date values. Represents a PivotTable Format Condition in PivotFormatCondition Collection. Get and set scope type for the pivot table condition format . Get and set rule type for the pivot table condition format . Get formatconditions for the pivot table condition format . Represents PivotTable Format Conditions. Adds a pivot FormatCondition to the collection. pivot FormatCondition object index. not supported Gets the pivot FormatCondition object at the specific index. pivot FormatCondition object. Represents number of items to retain per field. The default number of unique items per PivotField allowed. The maximum number of unique items per PivotField allowed (>32,500). No unique items per PivotField allowed. Represents the options of saving dif file. Creates the options for saving DIF file. Represents image save options Creates the options for saving image file. Creates the options for saving image file. The file format. It must be tiff or svg. Additional image creation options Represents Svg save options Creates the options for saving svg file. Creates the options for saving svg file. The file format. It must be svg. Gets and sets which worksheet should be exported. If the value is -1, the active worksheet will be exported. Sorted value type. Sorts by cells' value. Sorts by cells' color. Sorts by cells' font color. Sorts by conditional icon. Encapsulates the object that represents a designer spreadsheet. [C#] //Create a connection object, specify the provider info and set the data source. OleDbConnection con = new OleDbConnection("provider=microsoft.jet.oledb.4.0;data source=d:\\test\\Northwind.mdb"); //Open the connection object. con.Open(); //Create a command object and specify the SQL query. OleDbCommand cmd = new OleDbCommand("Select * from [Order Details]", con); //Create a data adapter object. OleDbDataAdapter da = new OleDbDataAdapter(); //Specify the command. da.SelectCommand = cmd; //Create a dataset object. DataSet ds = new DataSet(); //Fill the dataset with the table records. da.Fill(ds, "Order Details"); //Create a datatable with respect to dataset table. DataTable dt = ds.Tables["Order Details"]; //Create WorkbookDesigner object. WorkbookDesigner wd = new WorkbookDesigner(); //Open the template file (which contains smart markers). wd.Open("D:\\test\\SmartMarker_Designer.xls"); //Set the datatable as the data source. wd.SetDataSource(dt); //Process the smart markers to fill the data into the worksheets. wd.Process(true); //Save the excel file. wd.Workbook.Save("D:\\test\\outSmartMarker_Designer.xls"); [Visual Basic] 'Create a connection object, specify the provider info and set the data source. Dim con As OleDbConnection = New OleDbConnection("provider=microsoft.jet.oledb.4.0;data source=d:\test\Northwind.mdb") 'Open the connection object. con.Open() 'Create a command object and specify the SQL query. Dim cmd As OleDbCommand = New OleDbCommand("Select * from [Order Details]", con) 'Create a data adapter object. Dim da As OleDbDataAdapter = New OleDbDataAdapter() 'Specify the command. da.SelectCommand = cmd 'Create a dataset object. Dim ds As DataSet = New DataSet() 'Fill the dataset with the table records. da.Fill(ds, "Order Details") 'Create a datatable with respect to dataset table. Dim dt As DataTable = ds.Tables("Order Details") 'Create WorkbookDesigner object. Dim wd As WorkbookDesigner = New WorkbookDesigner() 'Open the template file (which contains smart markers). wd.Open("D:\test\SmartMarker_Designer.xls") 'Set the datatable as the data source. wd.SetDataSource(dt) 'Process the smart markers to fill the data into the worksheets. wd.Process(True) 'Save the excel file. wd.Workbook.Save("D:\test\outSmartMarker_Designer.xls") Initializes a new instance of the class. Initializes a new instance of the class. The template workbook file. Clears all data sources. Sets data source of a DataSet object. DataSet object Sets data source of a DataTable object. DataTable object Sets data source of a object. The name of the table. DataTable object Sets data source of a DataView object and binds it to a data source name. Data source name. DataView object. Sets data source of a DataView object. DataView object Sets data source of a IDataReader object. The data source map name. IDataReader object The number of the data rows. If the smart marker does not contains "noadd", we have to insert rows by the row count for performance issue and dynamic repeated formulas. -1 means the param is useless. Sets data binding to a variable. Variable name created using smart marker. Source data. Sets data array binding to a variable. Variable name created using smart marker. Source data array. Processes the smart markers and populates the data source values. Processes the smart markers and populates the data source values. True if the unrecognized smart marker is preserved. Processes the smart markers and populates the data source values. Worksheet index. True if the unrecognized smart marker is preserved. This method works on worksheet level. Returns a collection of smart markers in a spreadsheet. A collection of smart markers A string array is created on every call. The array is sorted and duplicated values are removed. Sets data source of a OleDbConnection object. OleDbConnection object Sets data source of a SqlConnection object. SqlConnection object Gets and sets the object. Indicates whether repeating formulas with subtotal row. If TRUE, Null will be inserted if the value is ""; Indicates if references in other worksheets will be updated. Indicates whether formulas should be calculated. Gets and sets callback interface of processing smartmarker. Describes a collection of CFValueObject. Use only for icon sets. Adds object. The value type. The value. Returns the index of new object in the list. Get the CFValueObject element at the specified index. The zero based index of the element. The element at the specified index. Condition value type. The minimum/ midpoint / maximum value for the gradient is determined by a formula. Indicates that the maximum value in the range shall be used as the maximum value for the gradient. Indicates that the minimum value in the range shall be used as the minimum value for the gradient. Indicates that the minimum / midpoint / maximum value for the gradient is specified by a constant numeric value. Value indicates a percentage between the minimum and maximum values in the range shall be used as the minimum / midpoint / maximum value for the gradient. Value indicates a percentile ranking in the range shall be used as the minimum / midpoint / maximum value for the gradient. Indicates that the Automatic maximum value in the range shall be used as the Automatic maximum value for the gradient. Indicates that the Automatic minimum value in the range shall be used as the Automatic minimum value for the gradient. Icon set type for conditional formatting. The threshold values for triggering the different icons within a set are configurable, and the icon order is reversible. 3 arrows icon set. 3 gray arrows icon set. 3 flags icon set. 3 signs icon set. 3 symbols icon set (circled). 3 Symbols icon set (uncircled). 3 traffic lights icon set (unrimmed). 3 traffic lights icon set with thick black border. 4 arrows icon set. 4 gray arrows icon set. 4 ratings icon set. 4 'red to black' icon set. 4 traffic lights icon set. 5 arrows icon set. 5 gray arrows icon set. 5 quarters icon set. 5 rating icon set. 3 stars set 5 boxes set 3 triangles set None CustomSet. This element is read-only. 3 smilies. Only for .ods. 3 color smilies. Only for .ods. Used in a FormatConditionType.TimePeriod conditional formatting rule. These are dynamic time periods, which change based on the date the conditional formatting is refreshed / applied. Today's date. Yesterday's date. Tomorrow's date. A date in the last seven days. A date occurring in this calendar month. A date occurring in the last calendar month. A date occurring in the next calendar month. A date occurring this week. A date occurring last week. A date occurring next week. A date occurring this year. Only for .ods. A date occurring last year. Only for .ods. A date occurring next year. Only for .ods. Describe the Top10 conditional formatting rule. This conditional formatting rule highlights cells whose values fall in the top N or bottom N bracket, as specified. Get or set the flag indicating whether a "top/bottom n" rule is a "top/bottom n percent" rule. Default value is false. Get or set the flag indicating whether a "top/bottom n" rule is a "bottom n" rule. '1' indicates 'bottom'. Default value is false. Get or set the value of "n" in a "top/bottom n" conditional formatting rule. If IsPercent is true, the value must between 0 and 100. Otherwise it must between 0 and 1000. Default value is 10. The content disposition type. Signature in file. Constructor of digitalSignature. Uses .Net implementation. Certificate object that was used to sign the document. The purpose to signature. The time when the document was signed. Constructor of digitalSignature. Uses Bouncy Castle implementation. A byte array containing data from an X.509 certificate. The password required to access the X.509 certificate data. The purpose to signature. The time when the document was signed. Certificate object that was used to sign the document. The purpose to signature. The time when the document was signed. If this digital signature is valid and the document has not been tampered with, this value will be true. XAdES type. Default value is None(XAdES is off). Provides a collection of digital signatures attached to a document. The following example shows how to create digital signature [C#] internal void ValidateSignature() { Workbook wb = new Workbook(@"c:\newfile.xlsx"); //wb.IsDigitallySigned is true when the workbook is signed already. System.Console.WriteLine(wb.IsDigitallySigned); //get digitalSignature collection from workbook DigitalSignatureCollection dsc = wb.GetDigitalSignature(); foreach (DigitalSignature ds in dsc) { System.Console.WriteLine(ds.Comments); System.Console.WriteLine(ds.SignTime); System.Console.WriteLine(ds.IsValid); } } internal void SignSignature() { //dsc is signature collection contains one or more signature needed to sign DigitalSignatureCollection dsc = new DigitalSignatureCollection(); //cert must contain private key, it can be contructed from cert file or windows certificate collection. //123456 is password of cert X509Certificate2 cert = new X509Certificate2("c:\\mykey2.pfx", "123456"); DigitalSignature ds = new DigitalSignature(cert, "test for sign", DateTime.Now); dsc.Add(ds); Workbook wb = new Workbook(); //wb.SetDigitalSignature sign all signatures in dsc wb.SetDigitalSignature(dsc); wb.Save(@"c:\newfile.xlsx"); } [Visual Basic] Sub ValidateSignature() Dim workbook As Workbook = New Workbook("c:\newfile.xlsx") 'Workbook.IsDigitallySigned is true when the workbook is signed already. System.Console.WriteLine(workbook.IsDigitallySigned) 'get digitalSignature collection from workbook Dim dsc As DigitalSignatureCollection = workbook.GetDigitalSignature() Dim ds As DigitalSignature For Each ds In dsc System.Console.WriteLine(ds.Comments) System.Console.WriteLine(ds.SignTime) System.Console.WriteLine(ds.IsValid) Next End Sub Sub SignSignature() 'dsc is signature collection contains one or more signature needed to sign Dim dsc As DigitalSignatureCollection = New DigitalSignatureCollection() 'cert must contain private key, it can be contructed from cert file or windows certificate collection. Dim cert As X509Certificate2 = New X509Certificate2("c:\mykey2.pfx", "123456") 'create a signature with certificate, sign purpose and sign time Dim ds As DigitalSignature = New DigitalSignature(cert, "test for sign", DateTime.Now) dsc.Add(ds) Dim workbook As Workbook = New Workbook() 'workbook.SetDigitalSignature sign all signatures in dsc workbook.SetDigitalSignature(dsc) workbook.Save("c:\newfile.xlsx") End Sub The constructor of DigitalSignatureCollection. Add one signature to DigitalSignatureCollection. Digital signature in collection. Get the enumerator for DigitalSignatureCollection, this enumerator allows iteration over the collection The enumerator to iteration. Settings of pdf when converting excel to pdf, PDF/A does not allow security setting. The constructor of PdfSecurityOptions Gets or sets the user password Gets or sets the owner password of the document Permission to print pdf document Permission to modify pdf document Permission to copy or extract content Obsoleted according to PDF reference. Permission to comment on the document. Permission to fill the form fields. Permission to copy or extract content. Permission to copy or extract content (in support of accessibility to disabled users or for other purposes). Permission to insert, rotate, or delete pages and create bookmarks or thumbnail images even if ModifyDocumentPermission is not set. Permission to print in high quality. Represents the command type of header and footer. The text. Current page number Page count Current date Current time Sheet name File name without path File path without file name Picture Represents the key of the data sorter. Indicates the order of sorting. Gets the sorted column index(absolute position, column A is 0, B is 1, ...). Represents the type of sorting. Represents the icon set type. Only effects when is SortOnType.Icon. Represents the id of the icon set type. Only effects when is SortOnType.Icon. Gets the sorted color. Only effects when is SortOnType.CellColor or SortOnType.FontColor. Represents the light rig direction type. Bottom Bottom left. Bottom Right. Left. Right. Top. Top left. Top Right. Enumerates the line end width of the shape border line. Short line end length Medium line end length Long line end length Enumerates the line end width of the shape border line. Short line end width. Medium line end width. Wide line end width. Represents the way the text vertical or horizontal overflow. Pay attention to top and bottom barriers. Provide no indication that there is text which is not visible. Pay attention to top and bottom barriers. Use an ellipsis to denote that there is text which is not visible. Only for vertical overflow. Overflow the text and pay no attention to top and bottom barriers. Provides utility methods for converting file format enums to strings or file extensions and back. Detects and returns the information about a format of an excel stored in a stream. A object that contains the detected information. Detects and returns the information about a format of an excel stored in a stream. The password for encrypted ooxml files. A object that contains the detected information. Detects and returns the information about a format of an excel stored in a stream. The password for encrypted ooxml files. Returns whether the password is corrected. Detects and returns the information about a format of an excel stored in a file. The file path. A object that contains the detected information. Detects and returns the information about a format of an excel stored in a file. The file path. The password for encrypted ooxml files. A object that contains the detected information. Converts a file name extension into a SaveFormat value. The file extension. Can be with or without a leading dot. Case-insensitive. If the extension cannot be recognized, returns . Returns true if the extension is .xlt, .xltX, .xltm,.ots. Converts a load format enumerated value into a file extension. The loaded file format. The returned extension is a lower-case string with a leading dot. If it can not be converted, returns null. Converts a LoadFormat value to a SaveFormat value if possible. The load format. The save format. Converts a save format enumerated value into a file extension. The save format. The returned extension is a lower-case string with a leading dot. Converts a SaveFormat value to a LoadFormat value if possible. The save format. The load format Represents the paste special type. Copies all data of the range. It works as "All" behavior of MS Excel. Copies all data of the range without the range. It works as "All except borders" behavior of MS Excel. Only copies the widths of the range. Only copies the heights of the range. Represents a collection of all the PivotField objects in the PivotTable's specific PivotFields type. Gets an enumerator over the elements in this collection in proper sequence. enumerator Adds a PivotField Object to the specific type PivotFields. field index in the base PivotFields. the index of the PivotField Object in this PivotFields. Adds a PivotField Object to the specific type PivotFields. a PivotField Object. the index of the PivotField Object in this PivotFields. clear all fields of PivotFieldCollection Gets the PivotFields type. Gets the count of the pivotFields. Gets the PivotField Object at the specific index. Gets the PivotField Object of the specific name. Represents data display format in the PivotTable data field. Represents normal display format. Represents difference from display format. Represents percentage of display format. Represents percentage difference from display format. Represents running total in display format. Represents percentage of row display format. Represents percentage of column display format. Represents percentage of total display format. Represents index display format. Represents percentage of parent row total display format. Represents percentage of parent column total display format. Represents percentage of parent total display format. Represents percentage of running total in display format. Represents smallest to largest display format. Represents largest to smallest display format. Summary description for PivotFieldSubtotalType. Represents None subtotal type. Represents Automatic subtotal type. Represents Sum subtotal type. Represents Count subtotal type. Represents Average subtotal type. Represents Max subtotal type. Represents Min subtotal type. Represents Product subtotal type. Represents Count Nums subtotal type. Represents Stdev subtotal type. Represents Stdevp subtotal type. Represents Var subtotal type. Represents Varp subtotal type. Represents PivotTable field type. Presents base pivot field type. Presents row pivot field type. Presents column pivot field type. Presents page pivot field type. Presents data pivot field type. Represents PivotTable groupby type. Presents range of values groupby type. Presents Seconds groupby type. Presents Minutes groupby type. Presents Hours groupby type. Presents Days groupby type. Presents Months groupby type. Presents Quarters groupby type. Presents Years groupby type. Represents a item in a PivotField report. Moves the item up or down The number of moving up or down. Move the item up if this is less than zero; Move the item down if this is greater than zero. Specifying whether moving operation is in the same parent node or not Gets the string value of the pivot item If the value is null, it will return "" Gets the double value of the pivot item If the value is null or not number ,it will return 0 Gets the date time value of the pivot item If the value is null ,it will return DateTime.MinValue Gets and Sets whether the pivot item is hidden. Specifying the position index in all the PivotItems,not the PivotItems under the same parent node. Specifying the position index in the PivotItems under the same parent node. Gets the value of the pivot item Gets the name of the pivot item. Gets the index of the pivot item in the pivot field Represents a collection of all the PivotItem objects in the PivotField's Gets an enumerator over the elements in this collection in proper sequence. enumerator Directly changes the orders of the two items. The current index The dest index Gets the PivotItem Object at the specific index. Gets the PivotItem Object of the specific name. Gets the count of the pivot items. Represents PivotTable base item Next/Previous/All position in the base field . Represents the previous pivot item in the PivotField. Represents the next pivot item in the PivotField. Represents a pivot item index, as specified by Pivot Items, that specifies a pivot item in the PivotField. only read Represents the pivot page field items if the pivot table data source is consolidation ranges. It only can contain up to 4 fields. Represents the pivot page field items. Adds a page field. Page field item label Sets which item label in each page field to use to identify the data range. The pageItemIndex.Length must be equal to PageFieldCount, so please add the page field first. The consolidation data range index. The page item index in the each page field. pageItemIndex[2] = 1 means the second item in the third field to use to identify this range. pageItemIndex[1] = -1 means no item in the second field to use to identify this range and MS will auto create "blank" item in the second field to identify this range. Gets the number of page fields. Represents PivotTable auto format type. Represents None format type. Represents Classic auto format type. Represents Report1 format type. Represents Report2 format type. Represents Report3 format type. Represents Report4 format type. Represents Report5 format type. Represents Report6 format type. Represents Report7 format type. Represents Report8 format type. Represents Report9 format type. Represents Report10 format type. Represents Table1 format type. Represents Table2 format type. Represents Table3 format type. Represents Table4 format type. Represents Table5 format type. Represents Table6 format type. Represents Table7 format type. Represents Table8 format type. Represents Table9 format type. Represents Table10 format type. Represents the collection of all the PivotTable objects on the specified worksheet. Performs application-defined tasks associated with freeing, releasing, or resetting unmanaged resources. Adds a new PivotTable cache to a PivotCaches collection. The data for the new PivotTable cache. The cell in the upper-left corner of the PivotTable report's destination range. The name of the new PivotTable report. The new added cache index. Adds a new PivotTable cache to a PivotCaches collection. The data for the new PivotTable cache. The cell in the upper-left corner of the PivotTable report's destination range. The name of the new PivotTable report. Indicates whether using same data source when another existing pivot table has used this data source. If the property is true, it will save memory. The new added cache index. Adds a new PivotTable cache to a PivotCaches collection. The data cell range for the new PivotTable.Example : Sheet1!A1:C8 Row index of the cell in the upper-left corner of the PivotTable report's destination range. Column index of the cell in the upper-left corner of the PivotTable report's destination range. The name of the new PivotTable report. The new added cache index. Adds a new PivotTable cache to a PivotCaches collection. The data cell range for the new PivotTable.Example : Sheet1!A1:C8 Row index of the cell in the upper-left corner of the PivotTable report's destination range. Column index of the cell in the upper-left corner of the PivotTable report's destination range. The name of the new PivotTable report. Indicates whether using same data source when another existing pivot table has used this data source. If the property is true, it will save memory. The new added cache index. Adds a new PivotTable Object to the collection from another PivotTable. The source pivotTable. The cell in the upper-left corner of the PivotTable report's destination range. The name of the new PivotTable report. The new added PivotTable index. Adds a new PivotTable Object to the collection from another PivotTable. The source pivotTable. Row index of the cell in the upper-left corner of the PivotTable report's destination range. Column index of the cell in the upper-left corner of the PivotTable report's destination range. The name of the new PivotTable report. The new added PivotTable index. Adds a new PivotTable Object to the collection with multiple consolidation ranges as data source. The multiple consolidation ranges,such as {"Sheet1!A1:C8","Sheet2!A1:B8"} Whether auto create a single page field. If true,the following param pageFields will be ignored. The pivot page field items. destCellName The name of the new PivotTable report. the name of the new PivotTable report. The new added PivotTable index. Adds a new PivotTable Object to the collection with multiple consolidation ranges as data source. The multiple consolidation ranges,such as {"Sheet1!A1:C8","Sheet2!A1:B8"} Whether auto create a single page field. If true,the following param pageFields will be ignored The pivot page field items. Row index of the cell in the upper-left corner of the PivotTable report's destination range. Column index of the cell in the upper-left corner of the PivotTable report's destination range. The name of the new PivotTable report. The new added PivotTable index. Clear all pivot tables. Deletes the specified PivotTable PivotTable object Deletes the PivotTable at the specified index the position index in PivotTable collection Gets the PivotTable report by index. Gets the PivotTable report by pivottable's name. Gets the PivotTable report by pivottable's position. Represents the pivot table style type. Represents Group Range in a PivotField. Specifies a boolean value that indicates whether the application will use the source data to set the beginning range value. Specifies a boolean value that indicates whether the application will use the source data to set the end range value. Represents the start object for the group range. Represents the end object for the group range. Represents the interval object for the group range. Represents the group type for the group range. rangeofvalue Seconds Minutes Hours Days Months Quarters Years Describe the ColorScale conditional formatting rule. This conditional formatting rule creates a gradated color scale on the cells. Indicates whether conditional formatting is 3 color scale. Get or set this ColorScale's min value object. Cannot set null or CFValueObject with type FormatConditionValueType.Max to it. Get or set this ColorScale's mid value object. Cannot set CFValueObject with type FormatConditionValueType.Max or FormatConditionValueType.Min to it. Get or set this ColorScale's max value object. Cannot set null or CFValueObject with type FormatConditionValueType.Min to it. Get or set the min value object's corresponding color. Get or set the mid value object's corresponding color. Get or set the max value object's corresponding color. Describes the values of the interpolation points in a gradient scale, dataBar or iconSet. Get or set the value of this conditional formatting value object. It should be used in conjunction with Type. If the value is string and start with "=", it will be processed as a formula, otherwise we will process it as a simple value. Get or set the type of this conditional formatting value object. Setting the type to FormatConditionValueType.Min or FormatConditionValueType.Max will auto set "Value" to null. Get or set the Greater Than Or Equal flag. Use only for icon sets, determines whether this threshold value uses the greater than or equal to operator. 'false' indicates 'greater than' is used instead of 'greater than or equal to'. Default value is true. Describe the DataBar conditional formatting rule. This conditional formatting rule displays a gradated data bar in the range of cells. [C#] //Instantiating a Workbook object Workbook workbook = new Workbook(); Worksheet sheet = workbook.Worksheets[0]; //Adds an empty conditional formatting int index = sheet.ConditionalFormattings.Add(); FormatConditions fcs = sheet.ConditionalFormattings[index]; //Sets the conditional format range. CellArea ca = new CellArea(); ca.StartRow = 0; ca.EndRow = 2; ca.StartColumn = 0; ca.EndColumn = 0; fcs.AddArea(ca); //Adds condition. int idx = fcs.AddCondtion(FormatConditionType.DataBar); fcs.AddArea(ca); FormatCondition cond = fcs[idx]; //Get Databar DataBar dataBar = cond.DataBar; dataBar.Color = Color.Orange; //Set Databar properties dataBar.MinCfvo.Type = FormatConditionValueType.Percentile; dataBar.MinCfvo.Value = 30; dataBar.ShowValue = false; dataBar.BarBorder.Type = DataBarBorderType.DataBarBorderSolid; dataBar.BarBorder.Color = Color.Plum; dataBar.BarFillType = DataBarFillType.DataBarFillSolid; dataBar.AxisColor = Color.Red; dataBar.AxisPosition = DataBarAxisPosition.DataBarAxisMidpoint; dataBar.NegativeBarFormat.ColorType = DataBarNegativeColorType.DataBarColor; dataBar.NegativeBarFormat.Color = Color.White; dataBar.NegativeBarFormat.BorderColorType = DataBarNegativeColorType.DataBarColor; dataBar.NegativeBarFormat.BorderColor = Color.Yellow; //Put Cell Values Aspose.Cells.Cell cell1 = sheet.Cells["A1"]; cell1.PutValue(10); Aspose.Cells.Cell cell2 = sheet.Cells["A2"]; cell2.PutValue(120); Aspose.Cells.Cell cell3 = sheet.Cells["A3"]; cell3.PutValue(260); //Saving the Excel file workbook.Save("D:\\book1.xlsx"); [VB.NET] 'Instantiating a Workbook object Dim workbook As New Workbook() Dim sheet As Worksheet = workbook.Worksheets(0) 'Adds an empty conditional formatting Dim index As Integer = sheet.ConditionalFormattings.Add() Dim fcs As FormatConditions = sheet.ConditionalFormattings(index) 'Sets the conditional format range. Dim ca As New CellArea() ca.StartRow = 0 ca.EndRow = 2 ca.StartColumn = 0 ca.EndColumn = 0 fcs.AddArea(ca) 'Adds condition. Dim idx As Integer = fcs.AddCondtion(FormatConditionType.DataBar) fcs.AddArea(ca) Dim cond As FormatCondition = fcs(idx) 'Get Databar Dim dataBar As DataBar = cond.DataBar dataBar.Color = Color.Orange 'Set Databar properties dataBar.MinCfvo.Type = FormatConditionValueType.Percentile dataBar.MinCfvo.Value = 30 dataBar.ShowValue = False dataBar.BarBorder.Type = DataBarBorderType.DataBarBorderSolid dataBar.BarBorder.Color = Color.Plum dataBar.BarFillType = DataBarFillType.DataBarFillSolid dataBar.AxisColor = Color.Red dataBar.AxisPosition = DataBarAxisPosition.DataBarAxisMidpoint dataBar.NegativeBarFormat.ColorType = DataBarNegativeColorType.DataBarColor dataBar.NegativeBarFormat.Color = Color.White dataBar.NegativeBarFormat.BorderColorType = DataBarNegativeColorType.DataBarColor dataBar.NegativeBarFormat.BorderColor = Color.Yellow 'Put Cell Values Dim cell1 As Aspose.Cells.Cell = sheet.Cells("A1") cell1.PutValue(10) Dim cell2 As Aspose.Cells.Cell = sheet.Cells("A2") cell2.PutValue(120) Dim cell3 As Aspose.Cells.Cell = sheet.Cells("A3") cell3.PutValue(260) 'Saving the Excel file workbook.Save("D:\book1.xlsx") Render data bar in cell to image byte array. Indicate the data bar in which cell to be rendered ImageOrPrintOptions contains some property of output image Gets the color of the axis for cells with conditional formatting as data bars. Gets or sets the position of the axis of the data bars specified by a conditional formatting rule. Gets or sets how a data bar is filled with color. Gets or sets the direction the databar is displayed. Gets an object that specifies the border of a data bar. Gets the NegativeBarFormat object associated with a data bar conditional formatting rule. Get or set this DataBar's min value object. Cannot set null or CFValueObject with type FormatConditionValueType.Max to it. Get or set this DataBar's max value object. Cannot set null or CFValueObject with type FormatConditionValueType.Min to it. Get or set this DataBar's Color. Represents the min length of data bar . Represents the max length of data bar . Get or set the flag indicating whether to show the values of the cells on which this data bar is applied. Default value is true. Describe the IconSet conditional formatting rule. This conditional formatting rule applies icons to cells according to their values. [C#] //Instantiating a Workbook object Workbook workbook = new Workbook(); Worksheet sheet = workbook.Worksheets[0]; //Adds an empty conditional formatting int index = sheet.ConditionalFormattings.Add(); FormatConditions fcs = sheet.ConditionalFormattings[index]; //Sets the conditional format range. CellArea ca = new CellArea(); ca.StartRow = 0; ca.EndRow = 2; ca.StartColumn = 0; ca.EndColumn = 0; fcs.AddArea(ca); //Adds condition. int idx = fcs.AddCondtion(FormatConditionType.IconSet); fcs.AddArea(ca); FormatCondition cond = fcs[idx]; //Get Icon Set IconSet iconSet = cond.IconSet; //Set Icon Type iconSet.Type = IconSetType.Arrows3; //Put Cell Values Aspose.Cells.Cell cell1 = sheet.Cells["A1"]; cell1.PutValue(10); Aspose.Cells.Cell cell2 = sheet.Cells["A2"]; cell2.PutValue(120); Aspose.Cells.Cell cell3 = sheet.Cells["A3"]; cell3.PutValue(260); //Saving the Excel file workbook.Save("D:\\book1.xlsx"); [VB.NET] 'Instantiating a Workbook object Dim workbook As New Workbook() Dim sheet As Worksheet = workbook.Worksheets(0) 'Adds an empty conditional formatting Dim index As Integer = sheet.ConditionalFormattings.Add() Dim fcs As FormatConditions = sheet.ConditionalFormattings(index) 'Sets the conditional format range. Dim ca As New CellArea() ca.StartRow = 0 ca.EndRow = 2 ca.StartColumn = 0 ca.EndColumn = 0 fcs.AddArea(ca) 'Adds condition. Dim idx As Integer = fcs.AddCondtion(FormatConditionType.IconSet) fcs.AddArea(ca) Dim cond As FormatCondition = fcs(idx) 'Get Icon Set Dim iconSet As IconSet = cond.IconSet 'Set Icon Type iconSet.Type = IconSetType.Arrows3 'Put Cell Values Dim cell1 As Aspose.Cells.Cell = sheet.Cells("A1") cell1.PutValue(10) Dim cell2 As Aspose.Cells.Cell = sheet.Cells("A2") cell2.PutValue(120) Dim cell3 As Aspose.Cells.Cell = sheet.Cells("A3") cell3.PutValue(260) 'Saving the Excel file workbook.Save("D:\book1.xlsx") Get the from the collection Get the CFValueObjects instance. Get or Set the icon set type to display. Setting the type will auto check if the current Cfvos's count is accord with the new type. If not accord, old Cfvos will be cleaned and default Cfvos will be added. Indicates whether the icon set is custom. Default value is false. Get or set the flag indicating whether to show the values of the cells on which this icon set is applied. Default value is true. Get or set the flag indicating whether to reverses the default order of the icons in this icon set. Default value is false. A specified range to be allowed to edit when the sheet protection is ON. Gets all referred areas. Returns all referred areas. Adds a referred area to this The start row. The start column. The end row. The end column. Gets the Range title. This is used as a descriptor, not as a named range definition. Gets the object represents the cell area to be protected. Represents the password to protect the range. The security descriptor defines user accounts who may edit this range without providing a password to access the range. Encapsulates a collection of objects. Adds a item to the collection. Range title. This is used as a descriptor, not as a named range definition. Start row index of the range. Start column index of the range. End row index of the range. End column index of the range. object index. Gets the element at the specified index. The zero based index of the element. The element at the specified index. Represents the color filter. Flag indicating whether or not to filter by the cell's fill color. Represents the custom filter. Sets the filter criteria. filter operator type filter criteria value Gets and sets the filter operator type. Gets and sets the criteria. Represents the custom filters. Indicates whether the two criteria have an "and" relationship. Gets the custom filter in the specific index. The index. Represents the datetime's group setting. Gets the min value. Gets and sets the group type. Gets and sets the year of the grouped date time. Gets and sets the month of the grouped date time. Gets and sets the day of the grouped date time. Gets and sets the hour of the grouped date time. Gets and sets the minute of the grouped date time. Gets and sets the second of the grouped date time. Specifies how to group dateTime values. Group by day. Group by hour. Group by Minute. Group by Month. Group by Second. Group by Year. Represents the dynamic filter. Gets and sets the dynamic filter type. Gets and sets the dynamic filter value. Gets and sets the dynamic filter max value. Dynamic filter type. Shows values that are above average. Shows values that are below average. Shows last month's dates. Shows last quarter's dates. Shows last week's dates. Shows last year's dates. Shows the dates that are in January, regardless of year. Shows the dates that are in October, regardless of year. Shows the dates that are in November, regardless of year. Shows the dates that are in December, regardless of year. Shows the dates that are in February, regardless of year. NOTE: This member is now obsolete. Instead, please use DynamicFilterType.February property. This property will be removed 12 months later since September 2020. Aspose apologizes for any inconvenience you may have experienced. Shows the dates that are in February, regardless of year. Shows the dates that are in March, regardless of year. Shows the dates that are in April, regardless of year. Shows the dates that are in May, regardless of year. Shows the dates that are in June, regardless of year. Shows the dates that are in July, regardless of year. Shows the dates that are in August, regardless of year. Shows the dates that are in September, regardless of year. Shows next month's dates. Shows next quarter's dates. Shows next week's dates. Shows next year's dates. Shows the dates that are in the 1st quarter, regardless of year. Shows the dates that are in the 2nd quarter, regardless of year. Shows the dates that are in the 3rd quarter, regardless of year. Shows the dates that are in the 4th quarter, regardless of year. Shows this month's dates. Shows this quarter's dates. Shows this week's dates. Shows this year's dates. Shows today's dates. Shows tomorrow's dates. Shows the dates between the beginning of the year and today, inclusive. Shows yesterday's dates. Represents the multiple filter collection. Indicates whether to filter by blank. DateTimeGroupItem or a simple object. The filter type. When multiple values are chosen to filter by, or when a group of date values are chosen to filter by, this element groups those criteria together. Represents icon filter. Gets and sets which icon set is used in the filter criteria. Gets and sets Zero-based index of an icon in an icon set. Represents the top 10 filter. Indicates whether it's top filter. Indicates whether the items is percent. Gets and sets the items of the filter. Represents all auto fitter options. Indicates whether auto fit row height when the cells is merged in a row. The default value is false. NOTE: This member is now obsolete. Instead, please use AutoFitterOptions.AutoFitMergedCellsType property, instead. This property will be removed 12 months later since December 2018. Aspose apologizes for any inconvenience you may have experienced. Gets and set the type of auto fitting row height. If the cells in merged in a row and auto fit the rows in MS Excel, MS Excel do not expand the row height. If this option is true, Aspose.Cells will expand the row height to fit the cells' data. Indicates whether only fit the rows which height are not customed. Ignores the hidden rows/columns. Gets and sets the max row height(in unit of Point) when autofitting rows. Gets and sets the type of auto fitting wrapped text. Allowing user to set PDF conversion's Compatibility Normal pdf format Pdf format compatible with PDFA-1b Pdf format compatible with PDFA-1a Represents the directory type of the file name. Represents an MS-DOS drive letter. It is followed by the drive letter. Or UNC file names, such as \\server\share\myfile.xls Indicates that the source workbook is on the same drive as the dependent workbook (the drive letter is omitted) Indicates that the source workbook is in a subdirectory of the current directory. Indicates that the source workbook is in the parent directory of the current directory. Represents a preset light right that can be applied to a shape Balanced Bright room Chilly Contrasting Flat Flood Freezing Glow Harsh LegacyFlat1 LegacyFlat2 LegacyFlat3 LegacyFlat4 LegacyHarsh1 LegacyHarsh2 LegacyHarsh3 LegacyHarsh4 LegacyNormal1 LegacyNormal2 LegacyNormal3 LegacyNormal4 Morning Soft Sunrise Sunset Three point Two point No light rig. Represents all export table options. Gets and sets the DataTable which columns' data type is assigned. Indicates whether the data in the first row are exported to the column name of the DataTable. The default value is false. Indicates whether skip invalid value for the column. For example,if the column type is decimal ,the value is greater than decimal.MaxValue and this property is true,we will not throw exception again. The default value is false. Only exports visible cells. Only exports visible rows. Only exports visible columns. Exports the string value of the cells to the DataTable. Exports the html string value of the cells to the DataTable. Gets and sets the format strategy when exporting the value as string value. False, Aspose.Cells will set the DataColumn's type by the value type of the first row for performance. True, Aspose.Cells will check whether the value type in the column are mixed before set the DataColumn's type And the value type are mixed, the DataColumn's type will be string. True if a row in Workbook file represents a row in DataTable. False if a column in Workbook file represents a row in DataTable. The indexes of columns/rows which should be exported out. Renames strategy when columns contains the duplicate names. Represents the options for saving html file. Creates options for saving html file. Creates options for saving htm file. The saving file format. The title of the html page. Only for saving to html stream. The directory that the attached files will be saved to. Only for saving to html stream. Specify the Url prefix of attached files such as image in the html file. Only for saving to html stream. Specify the default font name for exporting html, the default font will be used when the font of style is not existing, If this property is null, Aspose.Cells will use universal font which have the same family with the original font, the default value is null. Indicates if exporting comments when saving file to html, the default value is false. Indicates if disable Downlevel-revealed conditional comments when exporting file to html, the default value is false. Indicates whether exporting image files to temp directory. Only for saving to html stream. Indicates whether using scalable unit to describe the image width when using scalable unit to describe the column width. The default value is true. Indicates whether using scalable unit to describe the column width when exporting file to html. The default value is false. Indicates whether exporting the single tab when the file only has one worksheet. The default value is false. Specifies whether images are saved in Base64 format to HTML, MHTML or EPUB. When this property is set to true image data is exported directly on the img elements and separate files are not created. Indicates if exporting the whole workbook to html file. Indicates if only exporting the print area to html file. The default value is false. Gets or Sets the exporting CellArea of current active Worksheet. If you set this attribute, the print area of current active Worksheet will be omitted. Only the specified area will be exported when saving the file to html. Parse html tag in cell,like
,as cell value,or as html tag,default is true
Indicates if a cross-cell string will be displayed in the same way as MS Excel when saving an Excel file in html format. By default the value is Default, so, for cross-cell strings, there is little difference between the html files created by Aspose.Cells and MS Excel. But the performance for creating large html files,setting the value to Cross would be several times faster than setting it to Default or Fit2Cell. Hidden column(the width of this column is 0) in excel,before save this into html format, if HtmlHiddenColDisplayType is "Remove",the hidden column would not been output, if the value is "Hidden", the column would been output,but was hidden,the default value is "Hidden" Hidden row(the height of this row is 0) in excel,before save this into html format, if HtmlHiddenRowDisplayType is "Remove",the hidden row would not been output, if the value is "Hidden", the row would been output,but was hidden,the default value is "Hidden" If not set,use Encoding.UTF8 as default enconding type. Gets or sets the ExportObjectListener for exporting objects. NOTE: This property is now obsolete. Instead, please use HtmlSaveOptions.IStreamProvider property. This property will be removed 12 months later since August 2015. Aspose apologizes for any inconvenience you may have experienced. Gets or sets the IFilePathProvider for exporting Worksheet to html separately. Gets or sets the IStreamProvider for exporting objects. Get the ImageOrPrintOptions object before exporting Indicating if exporting the hidden worksheet content.The default value is true. Indicating if html or mht file is presentation preference.The default value is false.if you want to get more beautiful presentation,please set the value to true. Gets and sets the prefix of the css name,the default value is "". Gets and sets the prefix of the type css name such as tr,col,td and so on, they are contained in the table element which has the specific TableCssId attribute. The default value is "". Indicating whether using full path link in sheet00x.htm,filelist.xml and tabstrip.htm. The default value is false. Indicating whether export the worksheet css separately.The default value is false. Indicating whether exporting the similar border style when the border style is not supported by browsers. If you want to import the html or mht file to excel, please keep the default value. The default value is false. Indicates whether exporting headings when saving file to html.The default value is false. If you want to import the html file to excel, please keep the default value. Indicates whether adding tooltip text when the data can't be fully displayed. The default value is false. Indicating whether exporting the gridlines.The default value is false. Indicating whether exporting bogus bottom row data. The default value is true.If you want to import the html or mht file to excel, please keep the default value. Indicating whether excluding unused styles.The default value is false.If you want to import the html or mht file to excel, please keep the default value. Indicating whether exporting document properties.The default value is true.If you want to import the html or mht file to excel, please keep the default value. Indicating whether exporting worksheet properties.The default value is true.If you want to import the html or mht file to excel, please keep the default value. Indicating whether exporting workbook properties.The default value is true.If you want to import the html or mht file to excel, please keep the default value. Indicating whether exporting frame scripts and document properties. The default value is true.If you want to import the html or mht file to excel, please keep the default value. Indicating the rule of exporting html file data.The default value is All. Indicating the type of target attribute in <a> link,The default value is HtmlLinkTargetType.Parent. Represents a smart tag. Change the name and the namespace URI of the smart tag. The namespace URI of the smart tag. The name of the smart tag. Indicates whether the smart tag is deleted. Gets and set the properties of the smart tag. Gets the namespace URI of the smart tag. Gets the name of the smart tag. Represents all smart tags in the cell. Adds a smart tag. Specifies the namespace URI of the smart tag Specifies the name of the smart tag. The index of smart tag in the list. Gets the row of the cell smart tags. Gets the column of the cell smart tags. Gets a object at the specific index The index. returns a object. Represents the options of the smart tag. Indicates whether saving smart tags with the workbook. Represents the show type of smart tag. Represents all object in the worksheet. Adds a object to a cell. The row of the cell. The column of the cell. Returns index of a object in the worksheet. Add a cell smart tags. The name of the cell. Gets a object by the index. The index of the object in the list. Gets the object of the cell. The row index of the cell. The column index of the cell Returns the object of the cell. Returns null if there is no any smart tags on the cell. Gets the object of the cell. The name of the cell. Returns the object of the cell. Returns null if there is no any smart tags on the cell. Represents the property of the cell smart tag. Gets and sets the name of the property. Gets and sets the value of the property. Represents all properties of cell smart tag. Adds a property of cell's smart tag. The name of the property The value of the property. return Gets a object. The index Returns a object. Gets a object by the name of the property. The name of the property. Returns a object. Represents the show type of the smart tag. Indicates that smart tags are enabled and shown Indicates that the smart tags are enabled but the indicator not be shown. Indicates that smart tags are disabled and not displayed. Represents the options of saving ods file. Creates the options of saving ods file. Creates the options of saving ods file. Gets and sets the generator of the ods file. Indicates whether the ods file should be saved as ODF format version 1.1. Default is false. Represents the paste special options. The paste special type. Indicates whether skips blank cells. True means only copying visible cells. True to transpose rows and columns when the range is pasted. The default value is False. Represents the options for saving pdf file. Creates the options for saving pdf file. Creates the options for saving pdf file. The save format.It must be pdf. Sets desired PPI(pixels per inch) of resample images and jpeg quality All images will be converted to JPEG with the specified quality setting, and images that are greater than the specified PPI (pixels per inch) will be resampled. Desired pixels per inch. 220 high quality. 150 screen quality. 96 email quality. 0 - 100% JPEG quality. Indicates which pages will not be printed. True to embed true type fonts. Affects only ASCII characters 32-127. Fonts for character codes greater than 127 are always embedded. PDFA1B must embedded font. Default is true. Gets and sets the PdfBookmarkEntry object. Workbook converts to pdf will according to PdfCompliance in this property. When characters in the Excel are unicode and not be set with correct font in cell style, They may appear as block in pdf,image. Set the DefaultFont such as MingLiu or MS Gothic to show these characters. If this property is not set, Aspose.Cells will use system default font to show these unicode characters. When characters in the Excel are unicode and not be set with correct font in cell style, They may appear as block in pdf,image. Set this to true to try to use workbook's default font to show these characters first. Default is true. Set this options, when security is need in xls2pdf result. If OnePagePerSheet is true , all content of one sheet will output to only one page in result. The paper size of pagesetup will be invalid, and the other settings of pagesetup will still take effect. If AllColumnsInOnePagePerSheet is true , all column content of one sheet will output to only one page in result. The width of paper size of pagesetup will be ignored, and the other settings of pagesetup will still take effect. Represents the image type when converting the chart and shape . Indicates whether calculate formulas before saving pdf file. The default value is false. Indicate the compression algorithm Gets or sets the IStreamProvider for exporting objects. NOTE: This member is now obsolete. Instead, please use Border property. This property will be removed 12 months later since January 2018. Aspose apologizes for any inconvenience you may have experienced. Indicates whether check font compatibility for every character in text. The default value is true. Disable this property may give better performance. But when the default or specified font of text/character cannot be used to render it, unreadable characters(such as block) maybe occur in the generated pdf. For such situation user should keep this property as true so that alternative font can be searched and used to render the text instead; Gets or sets the 0-based index of the first page to save. Default is 0. Gets or sets the number of pages to save. Default is System.Int32.MaxValue which means all pages will be rendered.. Gets and sets the time of generating the pdf document. if it is not be set, it will be the time of generating the pdf. Gets and sets pdf optimization type. Indicates whether only substitute the font of character when the cell font is not compatibility for it. Default is false. We will try default font of Workbook and PdfSaveOption/system for cell font first. Gets or sets gridline type. Default is Dotted type. Gets or sets displaying text type when the text width is larger than cell width. Indicates if you need to hide the error while rendering. The error can be error in shape, image, chart rendering, etc. Indicates whether to output a blank page when there is nothing to print. Default is true. Implements this interface to get DrawObject and Bound when rendering. Gets or sets a value determining the way are exported to PDF file. Default value is None. Gets or sets a value determining whether or not to export document structure. Control/Indicate progress of page saving process. Setting for rendering Emf metafile. EMF metafiles identified as "EMF+ Dual" can contain both EMF+ records and EMF records. Either type of record can be used to render the image, only EMF+ records, or only EMF records. When is set, then EMF+ records will be parsed while rendering to pdf, otherwise only EMF records will be parsed. Default value is . Indicate whether the window's title bar should display the document title. If false, the title bar should instead display the name of the PDF file. Default value is false. Gets or sets default edit language. It may display/render different layouts for text paragraph when different edit languages is set. Default is . Represents a bevel of a shape Gets and sets the width of the bevel, or how far into the shape it is applied. In unit of Points. Gets and sets the height of the bevel, or how far above the shape it is applied. In unit of Points. Gets and sets the preset bevel type. Represents a preset for a type of bevel which can be applied to a shape in 3D. No bevel Angle Art deco Circle Convex Cool slant Cross Divot Hard edge Relaxed inset Riblet Slope Soft round This class specifies the 3D shape properties for a chart element or shape. Indicates if the shape has top bevel data. Gets the object that holds the properties associated with defining a bevel on the top or front face of a shape. Gets and sets the material type which is combined with the lighting properties to give the final look and feel of a shape. Default value is PresetMaterialType.WarmMatte. Gets and sets the lighting type which is to be applied to the scene of the shape. Default value is LightRigType.ThreePoint. Gets and sets the lighting angle. Range from 0 to 359.9 degrees. This class specifies a glow effect, in which a color blurred outline is added outside the edges of the object. Gets the color of the glow effect. Gets and sets the radius of the glow, in unit of points. NOTE: This member is now obsolete. Instead, please use GlowEffect.Size property. This property will be removed 6 months later since September 2016. Aspose apologizes for any inconvenience you may have experienced. Gets and sets the radius of the glow, in unit of points. Gets and sets the degree of transparency of the glow effect. Range from 0.0 (opaque) to 1.0 (clear). Represent different algorithmic methods for setting all camera properties, including position. Represents preset shadow type. No shadow. Custom shadow. Outer shadow offset diagonal bottom right. Outer shadow offset bottom. Outer shadow offset diagonal bottom left. Outer shadow offset right. Outer shadow offset center. Outer shadow offset left. Outer shadow offset diagonal top right. Outer shadow offset top. Outer shadow offset diagonal top left. Inner shadow inside diagonal top Left. Inner shadow inside top. Inner shadow inside diagonal top right. Inner shadow inside left. Inner shadow inside center. Inner shadow inside right. Inner shadow inside diagonal bottom left. Inner shadow inside bottom. Inner shadow inside diagonal bottom right. Outer shadow perspective diagonal upper left. Outer shadow perspective diagonal upper right. Outer shadow below. Outer shadow perspective diagonal lower left. Outer shadow perspective diagonal lower right. This class specifies a reflection effect. Gets and sets the preset reflection effect. Gets and sets the degree of the starting reflection transparency as a value from 0.0 (opaque) through 1.0 (clear). Gets and sets the end position (along the alpha gradient ramp) of the end alpha value,in unit of percentage Gets and sets the blur radius,in unit of points. Gets and sets the direction of the alpha gradient ramp relative to the shape itself. Gets and sets how far to distance the shadow,in unit of points. Gets and sets the direction to offset the reflection. Gets and sets if the reflection should rotate with the shape. This class specifies the shadow effect of the chart element or shape. Gets and sets the preset shadow type of the shadow. Gets and sets the color of the shadow. Gets and sets the degree of transparency of the shadow. Range from 0.0 (opaque) to 1.0 (clear). Gets and sets the size of the shadow. Range from 0 to 2.0. Meaningless in inner shadow. Gets and sets the blur of the shadow. Range from 0 to 100 points. Gets and sets the lighting angle. Range from 0 to 359.9 degrees. Gets and sets the distance of the shadow. Range from 0 to 200 points. Describes surface appearance of a shape. Clear Dark edge Flat Legacy matte Legacy metal Legacy plastic Legacy wireframe Matte Metal Plastic Powder Soft edge Soft metal Translucent powder Warm matte Represents how to position two rectangles relative to each other. Bottom BottomLeft BottomRight Center Left Right Top TopLeft TopRight This class specifies the visual shape properties for a chart element or shape. Clears the glow effect of the shape. Indicates if the shape has glow effect data. Indicates if the shape has 3d format data. Clears the 3D shape properties of the shape. Clears the shadow effect of the chart element or shape. Indicates if the shape has shadow effect data. Represents a object that specifies glow effect for the chart element or shape. Represents a object that specifies 3D shape properties for the chart element or shape. Gets and sets the radius of blur to apply to the edges, in unit of points. Represents a object that specifies shadow effect for the chart element or shape. Represents the scheme type of the font. None Major scheme. Minor scheme. The font's name will be automatically changed with the language. Represents all referred cells and areas. Represents the format in which the workbook is saved. Represents a CSV file. Represents an xlsx file. Represents an xlsm file which enable macros. Represents an xltx file. Represents an xltm file which enable macros. Represents an xltm file which enable addin macros. Represents a TSV(tab-separated values file) file. Represents a tab delimited text file, same with . Represents a html file. Represents a mhtml file. Represents a ods file. Represents an Excel97-2003 xls file. Represents an Excel 2003 xml file. Represents an xlsb file. If saving the file to the disk,the file format accords to the extension of the file name. If saving the file to the stream, the file format is xlsx. Represents unrecognized format, cannot be saved. Represents a Pdf file. Represents an XPS file. Represents an TIFF file. Represents an SVG file. Data Interchange Format. Represents a numbers file. Represents markdown document. Represents the flat ods file. Represents StarOffice Calc Spreadsheet (.sxc) file format. Represents .pptx file. A sparkline represents a tiny chart or graphic in a worksheet cell that provides a visual representation of data. Converts a sparkline to an image. The image options Returns a object. Converts a sparkline to an image. The image file name. The image options Converts a sparkline to an image. The image stream. The image options. Represents the data range of the sparkline. Gets the row index of the sparkline. Gets the column index of the sparkline. Represents the minimum and maximum value types for the sparkline vertical axis. Automatic for each sparkline. Same for all sparklines in the group. Custom value for sparkline. Encapsulates a collection of objects. Add a sparkline. Specifies the new data range of the sparkline. The row index of the location. The column index of the location. Removes the sparkline Gets the element at the specified index. The zero based index of the element. The element at the specified index. is organized into sparkline group. A SparklineGroup contains a variable number of sparkline items. A sparkline group specifies the type, display settings and axis settings for the sparklines. Resets the data range and location range of the sparkline group. This method will clear original sparkline items in the group and creates new sparkline items for the new ranges. Specifies the new data range of the sparkline group. Specifies whether to plot the sparklines from the new data range by row or by column. Specifies where the sparklines to be placed. Gets and sets the preset style type of the sparkline group. Gets the object of the sparkline group. Indicates the sparkline type of the sparkline group. Indicates how to plot empty cells. Indicates whether to show data in hidden rows and columns. Indicates whether to highlight the highest points of data in the sparkline group. Gets and sets the color of the highest points of data in the sparkline group. Indicates whether to highlight the lowest points of data in the sparkline group. Gets and sets the color of the lowest points of data in the sparkline group. Indicates whether to highlight the negative values on the sparkline group with a different color or marker. Gets and sets the color of the negative values on the sparkline group. Indicates whether to highlight the first point of data in the sparkline group. Gets and sets the color of the first point of data in the sparkline group. Indicates whether to highlight the last point of data in the sparkline group. Gets and sets the color of the last point of data in the sparkline group. Indicates whether to highlight each point in each line sparkline in the sparkline group. Gets and sets the color of points in each line sparkline in the sparkline group. Gets and sets the color of the sparklines in the sparkline group. Indicates whether the plot data is right to left. Gets and sets the line weight in each line sparkline in the sparkline group, in the unit of points. Gets and sets the color of the horizontal axis in the sparkline group. Indicates whether to show the sparkline horizontal axis. The horizontal axis appears if the sparkline has data that crosses the zero axis. Represents the range that contains the date values for the sparkline data. Represents the vertical axis maximum value type. Gets and sets the custom maximum value for the vertical axis. Represents the vertical axis minimum value type. Gets and sets the custom minimum value for the vertical axis. Encapsulates a collection of objects. Adds an item to the collection. Specifies the type of the Sparkline group. Specifies the data range of the sparkline group. Specifies whether to plot the sparklines from the data range by row or by column. Specifies where the sparklines to be placed. object index. Clears the sparklines that is inside an area of cells. Specifies the area of cells Clears the sparkline groups that overlaps an area of cells. Specifies the area of cells Gets the element at the specified index. The zero based index of the element. The element at the specified index. Represents the preset style types for sparkline. Style 1 Style 2 Style 3 Style 4 Style 5 Style 6 Style 7 Style 8 Style 9 Style 10 Style 11 Style 12 Style 13 Style 14 Style 15 Style 16 Style 17 Style 18 Style 19 Style 20 Style 21 Style 22 Style 23 Style 24 Style 25 Style 26 Style 27 Style 28 Style 29 Style 30 Style 31 Style 32 Style 33 Style 34 Style 35 Style 36 No preset style. Represents the sparkline types. Line sparkline. Column sparkline. Win/Loss sparkline. Represents the options for saving Excel 2003 spreadml file. Creates the options for saving Excel 2003 spreadml file. Creates the options for saving Excel 2003 spreadml file. The save format. Causes child elements to be indented. The default value is true. If the value is false, it will reduce the size of the xml file Limit as xls, the max row index is 65535 and the max column index is 255. The default value is false, it means that column index will be ignored if the cell is contiguous to the previous cell. Represents all built-in style type Represents all types of color. Set the tint of the shape color Gets and set the color which should apply to cell or shape. The expression of the color of the cell and the shape is different. For example: the theme color with same tint value will be not same in the cell and the shape. The color type. Gets the theme color. Only applies for theme color type. Gets and sets the color index in the color palette. Only applies of indexed color. Gets and sets the RGB color. Gets and sets the color from a 32-bit ARGB value. Gets and sets transparency as a value from 0.0 (opaque) through 1.0 (clear). Represents the axis type. Category axis Value axis Series axis Represents the category axis type. AutomaticScale CategoryScale TimeScale Represents the axis cross type. Microsoft Excel sets the axis crossing point. The axis crosses at the maximum value. The axis crosses at the minimum value. The axis crosses at the custom value. Encapsulates the object that represents the plot area in a chart. Set position of the plot area to automatic Gets or gets the x coordinate of the upper left corner of plot-area bounding box in units of 1/4000 of the chart area.

The plot-area bounding box includes the plot area, tick marks(tick labels), and a small border around the tick marks. If the value is not created by MS Excel, please call Chart.Calculate() method before calling this method.

The X, Y, Width and Height of PlotArea represents the plot-area bounding box that includes the plot area, tick marks(tick labels), and a small border around the tick marks. If you want to get actual size of plot area, you should call InnerX, InnerY, InnerWidth and InnerHeight properties.

For excel 2007 or latter, the default value is zero. you should call get the value after calling Chart.Calculate().

Gets or gets the y coordinate of the upper top corner of plot-area bounding box in units of 1/4000 of the chart area.

The plot-area bounding box includes the plot area, tick marks(tick labels), and a small border around the tick marks. If the value is not created by MS Excel, please call Chart.Calculate() method before calling this method.

The X, Y, Width and Height of PlotArea represents the plot-area bounding box that includes the plot area, tick marks(tick labels), and a small border around the tick marks. If you want to get actual size of plot area, you should call InnerX, InnerY, InnerWidth and InnerHeight properties.

For excel 2007 or latter, the default value is zero. you should call get the value after calling Chart.Calculate().

Gets or sets the height of plot-area bounding box in units of 1/4000 of the chart area.

The plot-area bounding box includes the plot area, tick marks(tick labels), and a small border around the tick marks. If the value is not created by MS Excel, please call Chart.Calculate() method before calling this method.

The X, Y, Width and Height of PlotArea represents the plot-area bounding box that includes the plot area, tick marks(tick labels), and a small border around the tick marks. If you want to get actual size of plot area, you should call InnerX, InnerY, InnerWidth and InnerHeight properties.

For excel 2007 or latter, the default value is zero. you should call get the value after calling Chart.Calculate().

Gets or sets the width of plot-area bounding box in units of 1/4000 of the chart area.

The plot-area bounding box includes the plot area, tick marks(tick labels), and a small border around the tick marks. If the value is not created by MS Excel, please call Chart.Calculate() method before calling this method.

The X, Y, Width and Height of PlotArea represents the plot-area bounding box that includes the plot area, tick marks(tick labels), and a small border around the tick marks. If you want to get actual size of plot area, you should call InnerX, InnerY, InnerWidth and InnerHeight properties.

For excel 2007 or latter, the default value is zero. you should call get the value after calling Chart.Calculate().

Gets or gets the x coordinate of the upper top corner of plot area in units of 1/4000 of the chart area.

The plot-area bounding box includes the plot area, tick marks(tick labels), and a small border around the tick marks. If the value is not created by MS Excel, please call Chart.Calculate() method before calling this method.

The X, Y, Width and Height of PlotArea represents the plot-area bounding box that includes the plot area, tick marks(tick labels), and a small border around the tick marks. If you want to get actual size of plot area, you should call InnerX, InnerY, InnerWidth and InnerHeight properties.

For excel 2007 or latter, the default value is zero. you should call get the value after calling Chart.Calculate().

Gets or gets the x coordinate of the upper top corner of plot area in units of 1/4000 of the chart area.

The plot-area bounding box includes the plot area, tick marks(tick labels), and a small border around the tick marks. If the value is not created by MS Excel, please call Chart.Calculate() method before calling this method.

The X, Y, Width and Height of PlotArea represents the plot-area bounding box that includes the plot area, tick marks(tick labels), and a small border around the tick marks. If you want to get actual size of plot area, you should call InnerX, InnerY, InnerWidth and InnerHeight properties.

For excel 2007 or latter, the default value is zero. you should call get the value after calling Chart.Calculate().

Gets or sets the height of plot area in units of 1/4000 of the chart area.

The plot-area bounding box includes the plot area, tick marks(tick labels), and a small border around the tick marks. If the value is not created by MS Excel, please call Chart.Calculate() method before calling this method.

The X, Y, Width and Height of PlotArea represents the plot-area bounding box that includes the plot area, tick marks(tick labels), and a small border around the tick marks. If you want to get actual size of plot area, you should call InnerX, InnerY, InnerWidth and InnerHeight properties.

For excel 2007 or latter, the default value is zero. you should call get the value after calling Chart.Calculate().

Gets or sets the width of plot area in units of 1/4000 of the chart area.

The plot-area bounding box includes the plot area, tick marks(tick labels), and a small border around the tick marks. If the value is not created by MS Excel, please call Chart.Calculate() method before calling this method.

The X, Y, Width and Height of PlotArea represents the plot-area bounding box that includes the plot area, tick marks(tick labels), and a small border around the tick marks. If you want to get actual size of plot area, you should call InnerX, InnerY, InnerWidth and InnerHeight properties.

For excel 2007 or latter, the default value is zero. you should call get the value after calling Chart.Calculate().

Indicates whether the plot area is automatic sized. Represents the base unit for the category axis. Days Months Years Represents all color type Automatic color. It's automatic color,but the displayed color depends the setting of the OS System. Not supported. The RGB color. The color index in the color palette. The theme color. Represents the master differential formatting records. Gets the element at the specified index. The specified index. Represents look at type. Cell value Contains the find object. Cell value Starts with the find object. Cell value ends with the find object. Cell value is same as the find object. Represents look in type. If the cell contains a formula, find object from formula,else find it from the value. Only find object from the formatted values. Only find object from the values of cells which do not contains formula. Only find object from the comments. Only find object from formulas. Only find object from the original values. Represent the replace options. Indicates if the searched string is case sensitive. NOTE: This member is now obsolete. Instead, please use ReplaceOptions.CaseSensitive property. This property will be removed 12 months later since June 2010. Aspose apologizes for any inconvenience you may have experienced. Indicates if the searched string is case sensitive. Indicates whether to match entire cells contents Indicates whether the searched key is regex. If true then the searched key will be taken as regex. Represents a referred area by the formula. Gets cell values in this area. If this area is invalid, "#REF!" will be returned; If this area is one single cell, then return the cell value object; Otherwise return one 2D array for all values in this area. Gets cell values in this area. In this range, if there are some formulas that have not been calculated, this flag denotes whether those formulas should be calculated recursively If this area is invalid, "#REF!" will be returned; If this area is one single cell, then return the cell value object; Otherwise return one 2D array for all values in this area. Gets cell value with given offset from the top-left of this area. row offset from the start row of this area column offset from the start row of this area "#REF!" if this area is invalid; "#N/A" if given offset out of this area; Otherwise return the cell value at given position. Gets cell value with given offset from the top-left of this area. row offset from the start row of this area column offset from the start row of this area Whether calculate it recursively if the specified reference is formula "#REF!" if this area is invalid; "#N/A" if given offset out of this area; Otherwise return the cell value at given position. Returns the simple string representation of this area. Indicates whether this is an external link. Get the external file name if this is an external reference. Indicates which sheet this reference is in. Indicates whether this is an area. If this is not an area, only StartRow and StartColumn effect. The end column of the area. The start column of the area. The end row of the area. The start row of the area. Represents the arc shape. [C#] //Instantiate a new Workbook. Workbook excelbook = new Workbook(); //Add an arc shape. Aspose.Cells.ArcShape arc1 = excelbook.Worksheets[0].Shapes.AddArc(2, 0, 2, 0, 130, 130); //Set the placement of the arc. arc1.Placement = PlacementType.FreeFloating; //Set the fill format. arc1.FillFormat.ForeColor = Color.Blue; //Set the line style. arc1.LineFormat.Style = MsoLineStyle.Single; //Set the line weight. arc1.LineFormat.Weight = 1; //Set the color of the arc line. arc1.LineFormat.ForeColor = Color.Blue; //Set the dash style of the arc. arc1.LineFormat.DashStyle = MsoLineDashStyle.Solid; //Add another arc shape. Aspose.Cells.ArcShape arc2 = excelbook.Worksheets[0].Shapes.AddArc(9, 0, 2, 0, 130, 130); //Set the placement of the arc. arc2.Placement = PlacementType.FreeFloating; //Set the line style. arc2.LineFormat.Style = MsoLineStyle.Single; //Set the line weight. arc2.LineFormat.Weight = 1; //Set the color of the arc line. arc2.LineFormat.ForeColor = Color.Blue; //Set the dash style of the arc. arc2.LineFormat.DashStyle = MsoLineDashStyle.Solid; //Save the excel file. excelbook.Save("d:\\test\\tstarcs.xls"); [VB..NET] 'Instantiate a new Workbook. Dim excelbook As Workbook = New Workbook() 'Add an arc shape. Dim arc1 As Aspose.Cells.ArcShape = excelbook.Worksheets(0).Shapes.AddArc(2, 0, 2, 0, 130, 130) 'Set the placement of the arc. arc1.Placement = PlacementType.FreeFloating 'Set the fill format. arc1.FillFormat.ForeColor = Color.Blue 'Set the line style. arc1.LineFormat.Style = MsoLineStyle.Single 'Set the line weight. arc1.LineFormat.Weight = 1 'Set the color of the arc line. arc1.LineFormat.ForeColor = Color.Blue 'Set the dash style of the arc. arc1.LineFormat.DashStyle = MsoLineDashStyle.Solid 'Add another arc shape. Dim arc2 As Aspose.Cells.ArcShape = excelbook.Worksheets(0).Shapes.AddArc(9, 0, 2, 0, 130, 130) 'Set the placement of the arc. arc2.Placement = PlacementType.FreeFloating 'Set the line style. arc2.LineFormat.Style = MsoLineStyle.Single 'Set the line weight. arc2.LineFormat.Weight = 1 'Set the color of the arc line. arc2.LineFormat.ForeColor = Color.Blue 'Set the dash style of the arc. arc2.LineFormat.DashStyle = MsoLineDashStyle.Solid 'Save the excel file. excelbook.Save("d:\test\tstarcs.xls") Gets and sets the begin arrow head style of the line. NOTE: This member is now obsolete. Instead, please use Shape.Line.BeginArrowheadStyle property. This property will be removed 12 months later since August 2016. Aspose apologizes for any inconvenience you may have experienced. Gets and sets the begin arrow head width of the line. NOTE: This member is now obsolete. Instead, please use Shape.Line.BeginArrowheadWidth property. This property will be removed 12 months later since August 2016. Aspose apologizes for any inconvenience you may have experienced. Gets and sets the begin arrow head length of the line. NOTE: This member is now obsolete. Instead, please use Shape.Line.BeginArrowheadLength property. This property will be removed 12 months later since August 2016. Aspose apologizes for any inconvenience you may have experienced. Gets and sets the end arrow head style of the line. NOTE: This member is now obsolete. Instead, please use Shape.Line.EndArrowheadStyle property. This property will be removed 12 months later since August 2016. Aspose apologizes for any inconvenience you may have experienced. Gets and sets the end arrow head width of the line. NOTE: This member is now obsolete. Instead, please use Shape.Line.EndArrowheadWidth property. This property will be removed 12 months later since August 2016. Aspose apologizes for any inconvenience you may have experienced. Gets and sets the end arrow head length of the line. NOTE: This member is now obsolete. Instead, please use Shape.Line.EndArrowheadLength property. This property will be removed 12 months later since August 2016. Aspose apologizes for any inconvenience you may have experienced. Encapsulates the object that represents an area format. [C#] //Instantiating a Workbook object Workbook workbook = new Workbook(); //Adding a new worksheet to the Workbook object int sheetIndex = workbook.Worksheets.Add(); //Obtaining the reference of the newly added worksheet by passing its sheet index Worksheet worksheet = workbook.Worksheets[sheetIndex]; //Adding a sample value to "A1" cell worksheet.Cells["A1"].PutValue(50); //Adding a sample value to "A2" cell worksheet.Cells["A2"].PutValue(100); //Adding a sample value to "A3" cell worksheet.Cells["A3"].PutValue(150); //Adding a sample value to "B1" cell worksheet.Cells["B1"].PutValue(60); //Adding a sample value to "B2" cell worksheet.Cells["B2"].PutValue(32); //Adding a sample value to "B3" cell worksheet.Cells["B3"].PutValue(50); //Adding a chart to the worksheet int chartIndex = worksheet.Charts.Add(ChartType.Column, 5, 0, 15, 5); //Accessing the instance of the newly added chart Chart chart = worksheet.Charts[chartIndex]; //Adding NSeries (chart data source) to the chart ranging from "A1" cell to "B3" chart.NSeries.Add("A1:B3", true); //Setting the foreground color of the plot area chart.PlotArea.Area.ForegroundColor = Color.Blue; //Setting the foreground color of the chart area chart.ChartArea.Area.ForegroundColor = Color.Yellow; //Setting the foreground color of the 1st NSeries area chart.NSeries[0].Area.ForegroundColor = Color.Red; //Setting the foreground color of the area of the 1st NSeries point chart.NSeries[0].Points[0].Area.ForegroundColor = Color.Cyan; //Saving the Excel file workbook.Save("C:\\book1.xls"); [Visual Basic] 'Instantiating a Workbook object Dim workbook As Workbook = New Workbook() 'Adding a new worksheet to the Workbook object Dim sheetIndex As Integer = workbook.Worksheets.Add() 'Obtaining the reference of the newly added worksheet by passing its sheet index Dim worksheet As Worksheet = workbook.Worksheets(sheetIndex) 'Adding a sample value to "A1" cell worksheet.Cells("A1").PutValue(50) 'Adding a sample value to "A2" cell worksheet.Cells("A2").PutValue(100) 'Adding a sample value to "A3" cell worksheet.Cells("A3").PutValue(150) 'Adding a sample value to "B1" cell worksheet.Cells("B1").PutValue(60) 'Adding a sample value to "B2" cell worksheet.Cells("B2").PutValue(32) 'Adding a sample value to "B3" cell worksheet.Cells("B3").PutValue(50) 'Adding a chart to the worksheet Dim chartIndex As Integer = worksheet.Charts.Add(ChartType.Column, 5, 0, 15, 5) 'Accessing the instance of the newly added chart Dim chart As Chart = worksheet.Charts(chartIndex) 'Adding NSeries (chart data source) to the chart ranging from "A1" cell to "B3" chart.NSeries.Add("A1:B3", True) 'Setting the foreground color of the plot area chart.PlotArea.Area.ForegroundColor = Color.Blue 'Setting the foreground color of the chart area chart.ChartArea.Area.ForegroundColor = Color.Yellow 'Setting the foreground color of the 1st NSeries area chart.NSeries(0).Area.ForegroundColor = Color.Red 'Setting the foreground color of the area of the 1st NSeries point chart.NSeries(0).Points(0).Area.ForegroundColor = Color.Cyan 'Saving the Excel file workbook.Save("C:\book1.xls") Gets or sets the background of the . Gets or sets the foreground . Represents the formatting of the area. If the property is true and the value of chart point is a negative number, the foreground color and background color will be exchanged. [C#] //Instantiating a Workbook object Workbook workbook = new Workbook(); //Adding a new worksheet to the Workbook object int sheetIndex = workbook.Worksheets.Add(); //Obtaining the reference of the newly added worksheet by passing its sheet index Worksheet worksheet = workbook.Worksheets[sheetIndex]; //Adding a sample value to "A1" cell worksheet.Cells["A1"].PutValue(50); //Adding a sample value to "A2" cell worksheet.Cells["A2"].PutValue(-100); //Adding a sample value to "A3" cell worksheet.Cells["A3"].PutValue(150); //Adding a chart to the worksheet int chartIndex = worksheet.Charts.Add(ChartType.Column, 5, 0, 15, 5); //Accessing the instance of the newly added chart Chart chart = worksheet.Charts[chartIndex]; //Adding NSeries (chart data source) to the chart ranging from "A1" cell to "A3" chart.NSeries.Add("A1:A3", true); chart.NSeries[0].Area.InvertIfNegative = true; //Setting the foreground color of the 1st NSeries area chart.NSeries[0].Area.ForegroundColor = Color.Red; //Setting the background color of the 1st NSeries area. //The displayed area color of second chart point will be the background color. chart.NSeries[0].Area.BackgroundColor = Color.Yellow; //Saving the Excel file workbook.Save("C:\\book1.xls"); [Visual Basic] 'Instantiating a Workbook object Dim workbook As Workbook = New Workbook() 'Adding a new worksheet to the Workbook object Dim sheetIndex As Integer = workbook.Worksheets.Add() 'Obtaining the reference of the newly added worksheet by passing its sheet index Dim worksheet As Worksheet = workbook.Worksheets(sheetIndex) 'Adding a sample value to "A1" cell worksheet.Cells("A1").PutValue(50) 'Adding a sample value to "A2" cell worksheet.Cells("A2").PutValue(-100) 'Adding a sample value to "A3" cell worksheet.Cells("A3").PutValue(150) 'Adding a chart to the worksheet Dim chartIndex As Integer = worksheet.Charts.Add(ChartType.Column, 5, 0, 15, 5) 'Accessing the instance of the newly added chart Dim chart As Chart = worksheet.Charts(chartIndex) 'Adding NSeries (chart data source) to the chart ranging from "A1" cell to "A3" chart.NSeries.Add("A1:A3", True) chart.NSeries(0).Area.InvertIfNegative = True 'Setting the foreground color of the 1st NSeries area chart.NSeries(0).Area.ForegroundColor = Color.Red 'Setting the background color of the 1st NSeries area. 'The displayed area color of second chart point will be the background color. chart.NSeries(0).Area.BackgroundColor = Color.Yellow 'Saving the Excel file workbook.Save("C:\book1.xls") Represents a object that contains fill formatting properties for the specified chart or shape. Returns or sets the degree of transparency of the area as a value from 0.0 (opaque) through 1.0 (clear). Encapsulates the object that represents a single data series in a chart. [C#] //Instantiating a Workbook object Workbook workbook = new Workbook(); //Adding a new worksheet to the Excel object int sheetIndex = workbook.Worksheets.Add(); //Obtaining the reference of the newly added worksheet by passing its sheet index Worksheet worksheet = workbook.Worksheets[sheetIndex]; //Adding a sample value to "A1" cell worksheet.Cells["A1"].PutValue(50); //Adding a sample value to "A2" cell worksheet.Cells["A2"].PutValue(100); //Adding a sample value to "A3" cell worksheet.Cells["A3"].PutValue(150); //Adding a sample value to "A4" cell worksheet.Cells["A4"].PutValue(200); //Adding a sample value to "B1" cell worksheet.Cells["B1"].PutValue(60); //Adding a sample value to "B2" cell worksheet.Cells["B2"].PutValue(32); //Adding a sample value to "B3" cell worksheet.Cells["B3"].PutValue(50); //Adding a sample value to "B4" cell worksheet.Cells["B4"].PutValue(40); //Adding a sample value to "C1" cell as category data worksheet.Cells["C1"].PutValue("Q1"); //Adding a sample value to "C2" cell as category data worksheet.Cells["C2"].PutValue("Q2"); //Adding a sample value to "C3" cell as category data worksheet.Cells["C3"].PutValue("Y1"); //Adding a sample value to "C4" cell as category data worksheet.Cells["C4"].PutValue("Y2"); //Adding a chart to the worksheet int chartIndex = worksheet.Charts.Add(ChartType.Column, 5, 0, 15, 5); //Accessing the instance of the newly added chart Chart chart = worksheet.Charts[chartIndex]; //Adding NSeries (chart data source) to the chart ranging from "A1" cell to "B4" chart.NSeries.Add("A1:B4", true); //Setting the data source for the category data of NSeries chart.NSeries.CategoryData = "C1:C4"; Series series = chart.NSeries[1]; //Setting the values of the series. series.Values = "=B1:B4"; //Changing the chart type of the series. series.Type = ChartType.Line; //Setting marker properties. series.MarkerStyle = ChartMarkerType.Circle; series.MarkerForegroundColorSetType = FormattingType.Automatic; series.MarkerForegroundColor = System.Drawing.Color.Black; series.MarkerBackgroundColorSetType = FormattingType.Automatic; //Saving the Excel file workbook.Save("C:\\book1.xls"); [Visual Basic] 'Instantiating a Workbook object Dim workbook As Workbook = New Workbook() 'Adding a new worksheet to the Excel object Dim sheetIndex As Int32 = workbook.Worksheets.Add() 'Obtaining the reference of the newly added worksheet by passing its sheet index Dim worksheet As Worksheet = workbook.Worksheets(sheetIndex) 'Adding a sample value to "A1" cell worksheet.Cells("A1").PutValue(50) 'Adding a sample value to "A2" cell worksheet.Cells("A2").PutValue(100) 'Adding a sample value to "A3" cell worksheet.Cells("A3").PutValue(150) 'Adding a sample value to "A4" cell worksheet.Cells("A4").PutValue(200) 'Adding a sample value to "B1" cell worksheet.Cells("B1").PutValue(60) 'Adding a sample value to "B2" cell worksheet.Cells("B2").PutValue(32) 'Adding a sample value to "B3" cell worksheet.Cells("B3").PutValue(50) 'Adding a sample value to "B4" cell worksheet.Cells("B4").PutValue(40) 'Adding a sample value to "C1" cell as category data worksheet.Cells("C1").PutValue("Q1") 'Adding a sample value to "C2" cell as category data worksheet.Cells("C2").PutValue("Q2") 'Adding a sample value to "C3" cell as category data worksheet.Cells("C3").PutValue("Y1") 'Adding a sample value to "C4" cell as category data worksheet.Cells("C4").PutValue("Y2") 'Adding a chart to the worksheet Dim chartIndex As Int32 = worksheet.Charts.Add(ChartType.Column, 5, 0, 15, 5) 'Accessing the instance of the newly added chart Dim chart As Chart = worksheet.Charts(chartIndex) 'Adding NSeries (chart data source) to the chart ranging from "A1" cell to "B4" chart.NSeries.Add("A1:B4", True) 'Setting the data source for the category data of NSeries chart.NSeries.CategoryData = "C1:C4" Dim series As Series = chart.NSeries(1) 'Setting the values of the series. series.Values = "=B1:B4" 'Changing the chart type of the series. series.Type = ChartType.Line 'Setting marker properties. series.MarkerStyle = ChartMarkerType.Circle series.MarkerForegroundColorSetType = FormattingType.Automatic series.MarkerForegroundColor = System.Drawing.Color.Black series.MarkerBackgroundColorSetType = FormattingType.Automatic 'Saving the Excel file workbook.Save("C:\\book1.xls") Moves the series up or down. The number of moving up or down. Move the series up if this is less than zero; Move the series down if this is greater than zero. Represents the properties of layout. Gets the collection of points in a series in a chart. When the chart is Pie of Pie or Bar of Pie, the last point is other point in first pie plot. Represents the background area of Series object. Represents border of Series object. Gets or sets the name of the data series. [C#] //Reference name to a cell chart.NSeries[0].Name = "=A1"; //Set a string to name chart.NSeries[0].Name = "First Series"; [Visual Basic] 'Reference name to a cell chart.NSeries[0].Name = "=A1" 'Set a string to name chart.NSeries[0].Name = "First Series" Gets the series's name that displays on the chart graph. Gets the number of the data values. Indicates whether the data source is vertical. Represents the data of the chart series. Represents format code of Values¡®s NumberList. Represents the x values of the chart series. Gets or sets the bubble sizes values of the chart series. Returns an object that represents a collection of all the trendlines for the series. Represents curve smoothing. True if curve smoothing is turned on for the line chart or scatter chart. Applies only to line and scatter connected by lines charts. True if the series has a shadow. True if the series has a three-dimensional appearance. Applies only to bubble charts. Gets or sets the 3D shape type used with the 3-D bar or column chart. Gets or sets the 3D shape type used with the 3-D bar or column chart. NOTE: This member is now obsolete. Instead, please use ASeries.Bar3DShapeType property. This property will be removed 12 months later since June 2010. Aspose apologizes for any inconvenience you may have experienced. Represents the DataLabels object for the specified ASeries. Gets or sets a data series' type. Gets the marker. Represents the marker style in a line chart, scatter chart, or radar chart. NOTE: This member is now obsolete. Instead, please use Marker.MarkerStyle property. This property will be removed 12 months later since August 2012. Aspose apologizes for any inconvenience you may have experienced. Represents the marker size in a line chart, scatter chart, or radar chart. NOTE: This member is now obsolete. Instead, please use Marker.MarkerSize property. This property will be removed 12 months later since August 2012. Aspose apologizes for any inconvenience you may have experienced. Represents the marker foreground color in a line chart, scatter chart, or radar chart. NOTE: This member is now obsolete. Instead, please use Marker.MarkerForegroundColor property. This property will be removed 12 months later since August 2012. Aspose apologizes for any inconvenience you may have experienced. Gets or sets the marker foreground color set type. NOTE: This member is now obsolete. Instead, please use Marker.MarkerForegroundColorSetType property. This property will be removed 12 months later since August 2012. Aspose apologizes for any inconvenience you may have experienced. FormattingType.Automatic is same as ChartLineFormattingType.Automatic. FormattingType.None is same as ChartLineFormattingType.None. FormattingType.InnerCustom is same as ChartLineFormattingType.Solid. Represents the marker background color in a line chart, scatter chart, or radar chart. NOTE: This member is now obsolete. Instead, please use Marker.MarkerBackgroundColor property. This property will be removed 12 months later since August 2012. Aspose apologizes for any inconvenience you may have experienced. Gets or sets the marker background color set type. NOTE: This member is now obsolete. Instead, please use Marker.MarkerBackgroundColorSetType property. This property will be removed 12 months later since August 2012. Aspose apologizes for any inconvenience you may have experienced. FormattingType.Automatic is same as ChartLineFormattingType.Automatic. FormattingType.None is same as ChartLineFormattingType.None. FormattingType.InnerCustom is same as ChartLineFormattingType.Solid. Indicates if this series is plotted on second value axis. Represents X direction error bar of the series. Represents Y direction error bar of the series. True if the line chart has high-low lines. Applies only to line charts. Returns a HiLoLines object that represents the high-low lines for a series on a line chart. Applies only to line charts. True if a stacked column chart or bar chart has series lines or if a Pie of Pie chart or Bar of Pie chart has connector lines between the two sections. Applies only to stacked column charts, bar charts, Pie of Pie charts, or Bar of Pie charts. Returns a SeriesLines object that represents the series lines for a stacked bar chart or a stacked column chart. Applies only to stacked bar and stacked column charts. True if the chart has drop lines. Applies only to line chart or area charts. Returns a object that represents the drop lines for a series on the line chart or area chart. Applies only to line chart or area charts. True if a line chart has up and down bars. Applies only to line charts. Returns an DropBars object that represents the up bars on a line chart. Applies only to line charts. Returns a object that represents the down bars on a line chart. Applies only to line charts. Represents if the color of points is varied. The chart must contain only one series. Returns or sets the space between bar or column clusters, as a percentage of the bar or column width. The value of this property must be between 0 and 500. Gets or sets the angle of the first pie-chart or doughnut-chart slice, in degrees (clockwise from vertical). Applies only to pie, 3-D pie, and doughnut charts, 0 to 360. Specifies how bars and columns are positioned. Can be a value between ¨C 100 and 100. Applies only to 2-D bar and 2-D column charts. Returns or sets the size of the secondary section of either a pie of pie chart or a bar of pie chart, as a percentage of the size of the primary pie. Can be a value from 5 to 200. Returns or sets a value that how to determine which data points are in the second pie or bar on a pie of pie or bar of pie chart. Returns or sets a value that shall be used to determine which data points are in the second pie or bar on a pie of pie or bar of pie chart. Indicates whether the threshold value is automatic. Gets or sets the scale factor for bubbles in the specified chart group. It can be an integer value from 0 (zero) to 300, corresponding to a percentage of the default size. Applies only to bubble charts. Gets or sets what the bubble size represents on a bubble chart. BubbleSizeRepresents.SizeIsArea means the value is the area of the bubble. BubbleSizeRepresents.SizeIsWidth means the value is the width of the bubble. True if negative bubbles are shown for the chart group. Valid only for bubble charts. Returns or sets the size of the hole in a doughnut chart group. The hole size is expressed as a percentage of the chart size, between 10 and 90 percent. The distance of an open pie slice from the center of the pie chart is expressed as a percentage of the pie diameter. True if a radar chart has category axis labels. Applies only to radar charts. True if the series has leader lines. Represents leader lines on a chart. Leader lines connect data labels to data points. This object isn¡¯t a collection; there¡¯s no object that represents a single leader line. Gets the legend entry according to this series. Gets the object that holds the visual shape properties of the Series. Represents find options. [C#] //Instantiate the workbook object Workbook workbook = new Workbook("C:\\book1.xls"); //Get Cells collection Cells cells = workbook.Worksheets[0].Cells; //Instantiate FindOptions Object FindOptions findOptions = new FindOptions(); //Create a Cells Area CellArea ca = new CellArea(); ca.StartRow = 8; ca.StartColumn = 2; ca.EndRow = 17; ca.EndColumn = 13; //Set cells area for find options findOptions.SetRange(ca); //Set searching properties findOptions.SearchBackward = false; findOptions.SeachOrderByRows = true; findOptions.LookInType = LookInType.Values; //Find the cell with 0 value Cell cell = cells.Find(0, null, findOptions); [VB.NET] 'Instantiate the workbook object Dim workbook As New Workbook("C:\book1.xls") 'Get Cells collection Dim cells As Cells = workbook.Worksheets(0).Cells 'Instantiate FindOptions Object Dim findOptions As New FindOptions() 'Create a Cells Area Dim ca As New CellArea() ca.StartRow = 8 ca.StartColumn = 2 ca.EndRow = 17 ca.EndColumn = 13 'Set cells area for find options findOptions.SetRange(ca) 'Set searching properties findOptions.SearchBackward = True findOptions.SeachOrderByRows = True findOptions.LookInType = LookInType.Values 'Find the cell with 0 value Dim cell As Cell = cells.Find(0, Nothing, findOptions) Gets and sets the searched range. Returns the searched range. Sets the searched range. the searched range. Indicates if the searched string is case sensitive. NOTE: This member is now obsolete. Instead, please use FindOptions.CaseSensitive property. This property will be removed 12 months later since June 2010. Aspose apologizes for any inconvenience you may have experienced. Indicates if the searched string is case sensitive. Look at type. Indicates whether the searched range is set. Search order. True: search next. False: search previous. NOTE: This member is now obsolete. Instead, please use FindOptions.SearchBackward property. This property will be removed 12 months later since November 2018. Aspose apologizes for any inconvenience you may have experienced. Whether search backward for cells. Indicates whether search order by rows or columns. Look in type. Indicates whether the searched key is regex. If true then the searched key will be taken as regex. Indicates whether searched cell value type should be same with the searched key. The format to search for. Gets or sets a value that indicates whether converting the searched string value to numeric data. Represents all built-in auto shape type. A value that SHOULD NOT be used. A plain text shape. An octagonal text shape. A triangular text shape pointing upwards. A triangular text shape pointing downwards. A chevron text shape pointing upwards. A chevron text shape pointing downwards. A circular text shape, as if reading an inscription on the inside of a ring. A circular text shape, as if reading an inscription on the outside of a ring. An upward arching curved text shape. A downward arching curved text shape. A circular text shape. A text shape that resembles a button. An upward arching text shape. A downward arching text shape. A circular text shape. A text shape that resembles a button. An upward curving text shape. A downward curving text shape. A cascading text shape pointed upwards. A cascading text shape pointed downwards. A wavy text shape. A wavy text shape. A wavy text shape. NOTE: This enum is now obsolete. Instead, please use AutoShape.TextDoubleWave1. This property will be removed 12 months later since April 2016. Aspose apologizes for any inconvenience you may have experienced. A wavy text shape. NOTE: This enum is now obsolete. Instead, please use AutoShape.TextDoubleWave2. This property will be removed 12 months later since April 2016. Aspose apologizes for any inconvenience you may have experienced. A wavy text shape. A wavy text shape. A text shape that expands vertically in the middle. A text shape that shrinks vertically in the middle. A text shape that expands downward in the middle. A text shape that shrinks upwards in the middle. A text shape that expands upward in the middle. A text shape that shrinks downward in the middle. A text shape where lower lines expand upward. Upper lines shrink to compensate. A text shape where lines in the center expand vertically. Upper and lower lines shrink to compensate. A text shape that shrinks vertically on the right side. A text shape that shrinks vertically on the left side. A text shape that shrinks horizontally on top. A text shape that shrinks horizontally on bottom. An upward slanted text shape. A downward slanted text shape. A text shape that is curved upwards as if being read on the side of a can. A text shape that is curved downwards as if being read on the side of a can. A shape enclosed in brackets. A shape enclosed in braces. This value SHOULD NOT be used. There is no such type in Excel There is no such type in Excel There is no such type in Excel There is no such type in Excel There is no such type in Excel Encapsulates the object that represents a chart's axis. [C#] //Instantiating a Workbook object Workbook workbook = new Workbook(); //Adding a new worksheet to the Excel object int sheetIndex = workbook.Worksheets.Add(); //Obtaining the reference of the newly added worksheet by passing its sheet index Worksheet worksheet = workbook.Worksheets[sheetIndex]; //Adding a sample value to "A1" cell worksheet.Cells["A1"].PutValue(50); //Adding a sample value to "A2" cell worksheet.Cells["A2"].PutValue(100); //Adding a sample value to "A3" cell worksheet.Cells["A3"].PutValue(150); //Adding a sample value to "B1" cell worksheet.Cells["B1"].PutValue(4); //Adding a sample value to "B2" cell worksheet.Cells["B2"].PutValue(20); //Adding a sample value to "B3" cell worksheet.Cells["B3"].PutValue(50); //Adding a chart to the worksheet int chartIndex = worksheet.Charts.Add(ChartType.Column, 5, 0, 25, 5); //Accessing the instance of the newly added chart Chart chart = worksheet.Charts[chartIndex]; //Adding NSeries (chart data source) to the chart ranging from "A1" cell to "B3" chart.NSeries.Add("A1:B3", true); //Set the max value of value axis chart.ValueAxis.MaxValue = 200; //Set the min value of value axis chart.ValueAxis.MinValue = 0; //Set the major unit chart.ValueAxis.MajorUnit = 25; //Category(X) axis crosses at the maxinum value. chart.ValueAxis.Crosses = CrossType.Maximum; //Set he number of categories or series between tick-mark labels. chart.CategoryAxis.TickLabelSpacing = 2; //Saving the Excel file workbook.Save("C:\\book1.xls"); [Visual Basic] 'Instantiating a Workbook object Dim workbook As Workbook = New Workbook() 'Adding a new worksheet to the Excel object Dim sheetIndex As Int32 = workbook.Worksheets.Add() 'Obtaining the reference of the newly added worksheet by passing its sheet index Dim worksheet As Worksheet = workbook.Worksheets(sheetIndex) 'Adding a sample value to "A1" cell worksheet.Cells("A1").PutValue(50) 'Adding a sample value to "A2" cell worksheet.Cells("A2").PutValue(100) 'Adding a sample value to "A3" cell worksheet.Cells("A3").PutValue(150) 'Adding a sample value to "B1" cell worksheet.Cells("B1").PutValue(4) 'Adding a sample value to "B2" cell worksheet.Cells("B2").PutValue(20) 'Adding a sample value to "B3" cell worksheet.Cells("B3").PutValue(50) 'Adding a chart to the worksheet Dim chartIndex As Int32 = worksheet.Charts.Add(ChartType.Column, 5, 0, 25, 5) 'Accessing the instance of the newly added chart Dim chart As Chart = worksheet.Charts(chartIndex) 'Adding NSeries (chart data source) to the chart ranging from "A1" cell to "B3" chart.NSeries.Add("A1:B3", True) 'Set the max value of value axis chart.ValueAxis.MaxValue = 200 'Set the min value of value axis chart.ValueAxis.MinValue = 0 'Set the major unit chart.ValueAxis.MajorUnit = 25 'Category(X) axis crosses at the maxinum value. chart.ValueAxis.Crosses = CrossType.Maximum 'Set he number of categories or series between tick-mark labels. chart.CategoryAxis.TickLabelSpacing = 2 'Saving the Excel file workbook.Save("C:\book1.xls") Gets the . Indicates whether the min value is automatically assigned. Represents the minimum value on the value axis. The minValue type only can be double or DateTime Indicates whether the max value is automatically assigned. Represents the maximum value on the value axis. The maxValue type only can be double or DateTime Indicates whether the major unit of the axis is automatically assigned. Represents the major units for the axis. The major units must be greater than zero. Indicates whether the minor unit of the axis is automatically assigned. Represents the minor units for the axis. The minor units must be greater than zero. Gets the appearance of an Axis. Represents the type of major tick mark for the specified axis. Represents the type of minor tick mark for the specified axis. Represents the position of tick-mark labels on the specified axis. Represents the point on the value axis where the category axis crosses it. The number should be a integer when it applies to category axis. And the value must be between 1 and 31999. Represents the on the specified axis where the other axis crosses. Represents the logarithmic base. Default value is 10.Only applies for Excel2007. Represents if the value axis scale type is logarithmic or not. Represents if Microsoft Excel plots data points from last to first. Represents if the value axis crosses the category axis between categories. This property applies only to category axes, and it doesn't apply to 3-D charts. Returns a object that represents the tick-mark labels for the specified axis. Represents the number of categories or series between tick-mark labels. Applies only to category and series axes. The number must be between 1 and 31999. Indicates whether ticklabel spacing is automatic Returns or sets the number of categories or series between tick marks. Applies only to category and series axes. The number must be between 1 and 31999. Represents the unit label for the specified axis. Specifies a custom value for the display unit. Represents a unit label on an axis in the specified chart. Unit labels are useful for charting large values¡ª for example, in the millions or billions. Represents if the display unit label is shown on the specified axis. The default value is True. Gets the axis' title. Represents the category axis type. Represents the base unit scale for the category axis. Setting this property only takes effect when the CategoryType property is set to TimeScale. Represents the major unit scale for the category axis. [C#] chart.CategoryAxis.CategoryType = CategoryType.TimeScale; chart.CategoryAxis.MajorUnitScale = TimeUnit.Months; chart.CategoryAxis.MajorUnit = 2; [Visual Basic] chart.CategoryAxis.CategoryType = CategoryType.TimeScale chart.CategoryAxis.MajorUnitScale = TimeUnit.Months chart.CategoryAxis.MajorUnit = 2 Represents the major unit scale for the category axis. [C#] chart.CategoryAxis.CategoryType = CategoryType.TimeScale; chart.CategoryAxis.MinorUnitScale = TimeUnit.Months; chart.CategoryAxis.MinorUnit = 2; [Visual Basic] chart.CategoryAxis.CategoryType = CategoryType.TimeScale chart.CategoryAxis.MinorUnitScale = TimeUnit.Months chart.CategoryAxis.MinorUnit = 2 Represents if the axis is visible. Represents major gridlines on a chart axis. [C#] chart.ValueAxis.MajorGridLines.IsVisible = false; chart.CategoryAxis.MajorGridLines.IsVisible = true; [Visual Basic] chart.ValueAxis.MajorGridLines.IsVisible = false chart.CategoryAxis.MajorGridLines.IsVisible = true Represents minor gridlines on a chart axis. Indicates whether the labels shall be shown as multi level. Only valid for category axis. Gets the labels of the axis after call Chart.Calculate() method. Represents the display mode of the background. Automatic Opaque Transparent Enumerates cell background pattern types. Represents diagonal crosshatch pattern. Represents diagonal stripe pattern. Represents 6.25% gray pattern Represents 12.5% gray pattern Represents 25% gray pattern. Represents 50% gray pattern. Represents 75% gray pattern. Represents horizontal stripe pattern. Represents no background. Represents reverse diagonal stripe pattern. Represents solid pattern. Represents thick diagonal crosshatch pattern. Represents thin diagonal crosshatch pattern. Represents thin diagonal stripe pattern. Represents thin horizontal crosshatch pattern. Represents thin horizontal stripe pattern. Represents thin reverse diagonal stripe pattern. Represents thin vertical stripe pattern. Represents vertical stripe pattern. Represents the shape used with the 3-D bar or column chart. Box PyramidToPoint PyramidToMax Cylinder ConeToPoint ConeToMax Encapsulates the object that represents the cell border. [C#] Style style = cell.GetStyle(); //Set top border style and color Border border = style.Borders[BorderType.TopBorder]; border.LineStyle = CellBorderType.Medium; border.Color = Color.Red; cell.SetStyle(style); [Visual Basic] Dim style as Style = cell.GetStyle() 'Set top border style and color Dim border as Border = style.Borders(BorderType.TopBorder) border.LineStyle = CellBorderType.Medium border.Color = Color.Red cell.SetStyle(style); Gets and sets the theme color of the border. Gets or sets the of the border. Gets and sets the color with a 32-bit ARGB value. Gets or sets the cell border type. Encapsulates a collection of objects. [C#] //Instantiating a Workbook object Workbook workbook = new Workbook(); //Adding a new worksheet to the Excel object workbook.Worksheets.Add(); //Obtaining the reference of the newly added worksheet by passing its sheet index Worksheet worksheet = workbook.Worksheets[0]; //Accessing the "A1" cell from the worksheet Cell cell = worksheet.Cells["A1"]; //Adding some value to the "A1" cell cell.PutValue("Visit Aspose!"); Style style = cell.GetStyle(); //Setting the line style of the top border style.Borders[BorderType.TopBorder].LineStyle = CellBorderType.Thick; //Setting the color of the top border style.Borders[BorderType.TopBorder].Color = Color.Black; //Setting the line style of the bottom border style.Borders[BorderType.BottomBorder].LineStyle = CellBorderType.Thick; //Setting the color of the bottom border style.Borders[BorderType.BottomBorder].Color = Color.Black; //Setting the line style of the left border style.Borders[BorderType.LeftBorder].LineStyle = CellBorderType.Thick; //Setting the color of the left border style.Borders[BorderType.LeftBorder].Color = Color.Black; //Setting the line style of the right border style.Borders[BorderType.RightBorder].LineStyle = CellBorderType.Thick; //Setting the color of the right border style.Borders[BorderType.RightBorder].Color = Color.Black; cell.SetStyle(style); //Saving the Excel file workbook.Save("C:\\book1.xls"); [VB.NET] 'Instantiating a Workbook object Dim workbook As Workbook = New Workbook() 'Adding a new worksheet to the Workbook object workbook.Worksheets.Add() 'Obtaining the reference of the newly added worksheet by passing its sheet index Dim worksheet As Worksheet = workbook.Worksheets(0) 'Accessing the "A1" cell from the worksheet Dim cell As Cell = worksheet.Cells("A1") 'Adding some value to the "A1" cell cell.PutValue("Visit Aspose!") Dim style as Style = cell.GetStyle() 'Setting the line style of the top border style.Borders(BorderType.TopBorder).LineStyle = CellBorderType.Thick 'Setting the color of the top border style.Borders(BorderType.TopBorder).Color = Color.Black 'Setting the line style of the bottom border style.Borders(BorderType.BottomBorder).LineStyle = CellBorderType.Thick 'Setting the color of the bottom border style.Borders(BorderType.BottomBorder).Color = Color.Black 'Setting the line style of the left border style.Borders(BorderType.LeftBorder).LineStyle = CellBorderType.Thick 'Setting the color of the left border style.Borders(BorderType.LeftBorder).Color = Color.Black 'Setting the line style of the right border style.Borders(BorderType.RightBorder).LineStyle = CellBorderType.Thick 'Setting the color of the right border style.Borders(BorderType.RightBorder).Color = Color.Black cell.SetStyle(style) 'Saving the Excel file workbook.Save("C:\book1.xls") Sets the of all borders in the collection. Borders' . Sets the style of all borders of the collection. Borders' style Gets the element at the specified index. The border to be retrieved. The element at the specified index. Gets or sets the of Diagonal lines. Gets or sets the style of Diagonal lines. Enumerates the border line and diagonal line types. Represents bottom border line. Represents the diagonal line from top left to right bottom. Represents the diagonal line from bottom left to right top. Represents left border line. Represents right border line exists. Represents top border line. Only for dynamic style,such as conditional formatting. Only for dynamic style,such as conditional formatting. Represents what the bubble size represents on a bubble chart. Represents the value of is area of the bubble. Represents the value of is width of the bubble. Represents the Forms control: Button [C#] //Create a new Workbook. Workbook workbook = new Workbook(); //Get the first worksheet in the workbook. Worksheet sheet = workbook.Worksheets[0]; //Add a new button to the worksheet. Aspose.Cells.Button button = sheet.Shapes.AddButton(2, 0, 2, 0, 28, 80); //Set the caption of the button. button.Text = "Aspose"; //Set the Placement Type, the way the //button is attached to the cells. button.Placement = PlacementType.FreeFloating; //Set the font name. button.Font.Name = "Tahoma"; //Set the caption string bold. button.Font.IsBold = true; //Set the color to blue. button.Font.Color = Color.Blue; //Set the hyperlink for the button. button.AddHyperlink("http://www.aspose.com/"); //Saves the file. workbook.Save(@"d:\test\tstbutton.xls"); [VB.NET] 'Create a new Workbook. Dim workbook As Workbook = New Workbook() 'Get the first worksheet in the workbook. Dim sheet As Worksheet = workbook.Worksheets(0) 'Add a new button to the worksheet. Dim button As Aspose.Cells.Button = sheet.Shapes.AddButton(2, 0, 2, 0, 28, 80) 'Set the caption of the button. button.Text = "Aspose" 'Set the Placement Type, the way the 'button is attached to the cells. button.Placement = PlacementType.FreeFloating 'Set the font name. button.Font.Name = "Tahoma" 'Set the caption string bold. button.Font.IsBold = True 'Set the color to blue. button.Font.Color = Color.Blue 'Set the hyperlink for the button. button.AddHyperlink("http://www.aspose.com/") 'Saves the file. workbook.Save("d:\test\tstbutton.xls") Represents the mode type of calculating formulas. Represent an area of cells. [C#] //Create Cell Area CellArea ca = new CellArea(); ca.StartRow = 0; ca.EndRow = 0; ca.StartColumn = 0; ca.EndColumn = 0; [VB.NET] 'Create Cell Area Dim ca As CellArea = New CellArea() ca.StartRow = 0 ca.EndRow = 0 ca.StartColumn = 0 ca.EndColumn = 0 Gets or set the start row of this area. Gets or set the end row of this area. Gets or set the start column of this area. Gets or set the end column of this area. Internal use only. Returns a string represents the current Worksheet object. Creates a cell area. The start row. The start column. The end row. The end column. Return a . Creates a cell area. The top-left cell of the range. The bottom-right cell of the range. Return a . Enumerates a cell's border type. Represents thin dash-dotted line. Represents thin dash-dot-dotted line. Represents dashed line. Represents dotted line. Represents double line. Represents hair line. Represents medium dash-dotted line. Represents medium dash-dot-dotted line. Represents medium dashed line. Represents no line. Represents medium line. Represents slanted medium dash-dotted line. Represents thick line. Represents thin line. Represents the auto shape and drawing object. The exception that is thrown when Aspose.Cells specified error occurs. Represents custom exception code. Specifies a cell value type. Cell value is boolean. Cell value is datetime. Cell contains error value Blank cell. Cell value is numeric. Cell value is string. Cell value type is unknown. Encapsulates the object that represents a single Excel chart. [C#] Workbook workbook = new Workbook(); Worksheet sheet = workbook.Worksheets[0]; Cells cells = sheet.Cells; cells[0,1].PutValue("Income"); cells[1,0].PutValue("Company A"); cells[2,0].PutValue("Company B"); cells[3,0].PutValue("Company C"); cells[1,1].PutValue(10000); cells[2,1].PutValue(20000); cells[3,1].PutValue(30000); int chartIndex = sheet.Charts.Add(ChartType.Column, 9, 9, 21, 15); Chart chart = sheet.Charts[chartIndex]; chart.NSeries.Add("B2:B4", true); chart.NSeries.CategoryData = "A2:A4"; ASeries aSeries = chart.NSeries[0]; aSeries.Name = "=B1"; chart.IsLegendShown = true; chart.Title.Text = "Income Analysis"; [Visual Basic] Dim workbook as Workbook = new Workbook() Dim sheet as Worksheet = workbook.Worksheets(0) Dim cells as Cells = sheet.Cells cells(0,1).PutValue("Income") cells(1,0).PutValue("Company A") cells(2,0).PutValue("Company B") cells(3,0).PutValue("Company C") cells(1,1).PutValue(10000) cells(2,1).PutValue(20000) cells(3,1).PutValue(30000) Dim chartIndex as Integer = sheet.Charts.Add(ChartType.Column, 9, 9, 21, 15) Dim chart as Chart = sheet.Charts(chartIndex) chart.NSeries.Add("B2:B4", true) chart.NSeries.CategoryData = "A2:A4" Dim aSeries as ASeries = chart.NSeries(0) aSeries.Name = "=B1" chart.IsLegendShown = true chart.Title.Text = "Income Analysis" Detects if a chart's data source has changed. The method detects the changes in the chart's data source before rendering the chart to image format. At first Chart.toImage call, the chart source data (e.g. XValuesParseData, ValuesParseData) will be recorded. Before calling the Chart.toImage method again, call IsChartDataChanged method to check if Chart needs re-rendering. Returns true if the chart has changed otherwise returns false Refreshes pivot chart's data from it's pivot data source. We will gather data from pivot data source to the pivot chart cache. This method is only used to gather all data to a pivot chart. Moves the chart to a specified location. Upper left column index. Upper left row index. Lower right column index Lower right row index Calculates the custom position of plot area, axes if the position of them are auto assigned. Gets a 32-bit Bitmap object of the chart. the picture of the chart. If the width or height is zero or the chart is not supported according to Supported Charts List, it will return null. Please refer to
Supported Charts List for more details. Gets a 32-bit Bitmap object of the chart. ImageOrPrintOptions.ImageFormat, ImageOrPrintOptions.TiffCompression and ImageOrPrintOptions.Quality attributes are ignored. Additional image creation options the picture of the chart. Returns a 32-bit bitmap object, so ImageOrPrintOptions.ImageFormat, ImageOrPrintOptions.TiffCompression and ImageOrPrintOptions.Quality attributes do not affect the method. If the width or height is zero or the chart is not supported according to Supported Charts List, it will return null. Please refer to Supported Charts List for more details. Gets a bitmap object with 200 x dpi and 300 y dpi. [C#] ImageOrPrintOptions options = new ImageOrPrintOptions(); options.HorizontalResolution = 200; options.VerticalResolution = 300; Workbook book = new Workbook(@"c:\test.xls"); Bitmap chartObject = book.Worksheets[0].Charts[0].ToImage(options); [VB] Dim options As ImageOrPrintOptions = New ImageOrPrintOptions() options.HorizontalResolution = 200 options.VerticalResolution = 300 Dim book As Workbook = New Workbook("c:\test.xls") Dim chartObject As Bitmap = book.Worksheets(0).Charts(0).ToImage(options) Creates the chart image and saves it to a file. The extension of the file name determines the format of the image. The image file name with full path.

The format of the image is specified by using the extension of the file name. For example, if you specify "myfile.png", then the image will be saved in the PNG format. The following file extensions are recognized: .bmp, .gif, .png, .jpg, .jpeg, .tiff, .tif, .emf.

If the width or height is zero or the chart is not supported according to Supported Charts List, this method will do nothing. Please refer to Supported Charts List for more details.
Creates the chart image and saves it to a file in the specified format. The image file name with full path. The format in which to save the image.

The format of the image is specified by using imageFormat. The following formats are supported: ImageFormat.Bmp, ImageFormat.Gif, ImageFormat.Png, ImageFormat.Jpeg, ImageFormat.Tiff, ImageFormat.Emf.

If the width or height is zero or the chart is not supported according to Supported Charts List, this method will do nothing. Please refer to Supported Charts List for more details.
Creates the chart image and saves it to a file in the Jpeg format. The image file name with full path. Jpeg quality. If the width or height is zero or the chart is not supported according to Supported Charts List, this method will do nothing. Please refer to Supported Charts List for more details. Creates the chart image and saves it to a stream in the Jpeg format. The output stream. Jpeg quality. If the width or height is zero or the chart is not supported according to Supported Charts List, this method will do nothing. Please refer to Supported Charts List for more details. Creates the chart image and saves it to a stream in the specified format. The output stream. The format in which to save the image.

The format of the image is specified by using imageFormat. The following formats are supported: ImageFormat.Bmp, ImageFormat.Gif, ImageFormat.Png, ImageFormat.Jpeg, ImageFormat.Tiff, ImageFormat.Emf.

If the width or height is zero or the chart is not supported according to Supported Charts List, this method will do nothing. Please refer Supported Charts List for more details.
Saves the chart to a pdf file. the pdf file name with full path Saves the chart to a pdf file. the pdf file name with full path The desired page width in inches. The desired page height in inches. The chart horizontal alignment type in the output page. The chart vertical alignment type in the output page. Creates the chart pdf and saves it to a stream. The output stream. Creates the chart pdf and saves it to a stream. The output stream. The desired page width in inches. The desired page height in inches. The chart horizontal alignment type in the output page. The chart vertical alignment type in the output page. Creates the chart image and saves it to a file. The extension of the file name determines the format of the image. The image file name with full path. Additional image creation options

The format of the image is specified by using the extension of the file name. For example, if you specify "myfile.png", then the image will be saved in the PNG format. The following file extensions are recognized: .bmp, .gif, .png, .jpg, .jpeg, .tiff, .tif, .emf.

If the width or height is zero or the chart is not supported according to Supported Charts List, this method will do nothing. Please refer to Supported Charts List for more details.
Saves to Tiff with 300 dpi and CCITT4 compression. [C#] ImageOrPrintOptions options = new ImageOrPrintOptions(); options.HorizontalResolution = 300; options.VerticalResolution = 300; options.TiffCompression = TiffCompression.CompressionCCITT4; Workbook book = new Workbook(@"c:\test.xls"); book.Worksheets[0].Charts[0].ToImage(@"c:\chart.Tiff", options); [VB] Dim options As ImageOrPrintOptions = New ImageOrPrintOptions() options.HorizontalResolution = 300 options.VerticalResolution = 300 options.TiffCompression = TiffCompression.CompressionCCITT4 Dim book As Workbook = New Workbook("c:\test.xls") book.Worksheets(0).Charts(0).ToImage("c:\chart.Tiff", options) Saves to Jpeg with 300 dpi and 80 image quality. [C#] ImageOrPrintOptions options = new ImageOrPrintOptions(); options.HorizontalResolution = 300; options.VerticalResolution = 300; options.Quality = 80; Workbook book = new Workbook(@"c:\test.xls"); book.Worksheets[0].Charts[0].ToImage(@"c:\chart.Jpeg", options); [VB] Dim options As ImageOrPrintOptions = New ImageOrPrintOptions() options.HorizontalResolution = 300 options.VerticalResolution = 300 options.Quality = 80 Dim book As Workbook = New Workbook("c:\test.xls") book.Worksheets(0).Charts(0).ToImage("c:\chart.Jpeg", options)
Creates the chart image and saves it to a stream in the specified format. The output stream. Additional image creation options

The format of the image is specified by using options.ImageFormat. The following formats are supported: ImageFormat.Bmp, ImageFormat.Gif, ImageFormat.Png, ImageFormat.Jpeg, ImageFormat.Tiff, ImageFormat.Emf.

If the width or height is zero or the chart is not supported according to Supported Charts List, this method will do nothing. Please refer to Supported Charts List for more details.
Returns which axes exist on the chart. Normally, Pie, PieExploded, PiePie,PieBar, Pie3D, Pie3DExploded,Doughnut, DoughnutExploded is no axis. Specifies data range for a chart. Specifies values from which to plot the data series Specifies whether to plot the series from a range of cell values by row or by column. Gets and sets the builtin style. It should be between 1 and 48. Return -1 if it's not be set. Represents the chartShape; Indicates whether hide the pivot chart field buttons only when the chart is PivotChart Specifies the pivot controls that appear on the chart The source is the data of the pivotTable. If PivotSource is not empty ,the chart is PivotChart. If the pivot table "PivotTable1" in the Worksheet "Sheet1" in the file "Book1.xls". The pivotSource could be "[Book1.xls]Sheet1!PivotTable1" if the chart and the PivotTable is not in the same workbook. If you set this property ,the previous data source setting will be lost. Gets and sets whether plot by row or column. Gets and sets how to plot the empty cells. Indicates whether only plot visible cells. Indicates whether displaying #N/A as blank value. Gets and sets the name of the chart. True if Microsoft Excel resizes the chart to match the size of the chart sheet window. Gets the worksheet which contains this chart. Returns all drawing shapes in this chart. Gets and sets the printed chart size. Gets or sets a chart's type. Gets a collection representing the data series in the chart. Gets the chart's title. Gets the chart's sub-title. Only for ODS format file. Gets the chart's plot area which includes axis tick labels. Gets the chart area in the worksheet Gets the chart's X axis. Gets the chart's Y axis. Gets the chart's second Y axis. Gets the chart's second X axis. Gets the chart's series axis. Gets the chart legend. Represents the chart data table. Gets or sets a value indicating whether the chart legend will be displayed. Default is true. Gets or sets a value indicating whether the chart area is rectangular cornered. Default is true. Gets or sets a value indicating whether the chart displays a data table. Gets or sets the angle of the first pie-chart or doughnut-chart slice, in degrees (clockwise from vertical). Applies only to pie, 3-D pie, and doughnut charts, 0 to 360. Returns or sets the space between bar or column clusters, as a percentage of the bar or column width. The value of this property must be between 0 and 500. Gets or sets the distance between the data series in a 3-D chart, as a percentage of the marker width. The value of this property must be between 0 and 500. Returns a object that represents the walls of a 3-D chart. This property doesn't apply to 3-D pie charts. Returns a object that represents the walls of a 3-D chart. This property doesn't apply to 3-D pie charts. Returns a object that represents the back wall of a 3-D chart. Returns a object that represents the side wall of a 3-D chart. True if gridlines are drawn two-dimensionally on a 3-D chart. Represents the rotation of the 3-D chart view (the rotation of the plot area around the z-axis, in degrees). The value of this property must be from 0 to 360, except for 3-D bar charts, where the value must be from 0 to 44. The default value is 20. Applies only to 3-D charts. Represents the elevation of the 3-D chart view, in degrees. The chart elevation is the height at which you view the chart, in degrees. The default is 15 for most chart types. The value of this property must be between -90 and 90, except for 3-D bar charts, where it must be between 0 and 44. True if the chart axes are at right angles.Applies only for 3-D charts(except Column3D and 3-D Pie Charts). If this property is True, the Perspective property is ignored. True if Microsoft Excel scales a 3-D chart so that it's closer in size to the equivalent 2-D chart. The RightAngleAxes property must be True. Returns or sets the height of a 3-D chart as a percentage of the chart width (between 5 and 500 percent). Returns or sets the perspective for the 3-D chart view. Must be between 0 and 100. This property is ignored if the RightAngleAxes property is True. Indicates whether the chart is a 3d chart. Represents the depth of a 3-D chart as a percentage of the chart width (between 20 and 2000 percent). Gets actual size of chart Represents the way the chart is attached to the cells below it. Represents the page setup description in this chart. Gets the line. Encapsulates the object that represents the chart area in the worksheet. [C#] //Instantiating a Workbook object Workbook workbook = new Workbook(); //Obtaining the reference of the first worksheet Worksheet worksheet = workbook.Worksheets[0]; //Adding a sample value to "A1" cell worksheet.Cells["A1"].PutValue(50); //Adding a sample value to "A2" cell worksheet.Cells["A2"].PutValue(100); //Adding a sample value to "A3" cell worksheet.Cells["A3"].PutValue(150); //Adding a sample value to "B1" cell worksheet.Cells["B1"].PutValue(60); //Adding a sample value to "B2" cell worksheet.Cells["B2"].PutValue(32); //Adding a sample value to "B3" cell worksheet.Cells["B3"].PutValue(50); //Adding a chart to the worksheet int chartIndex = worksheet.Charts.Add(ChartType.Column, 5, 0, 15, 5); //Accessing the instance of the newly added chart Chart chart = worksheet.Charts[chartIndex]; //Adding NSeries (chart data source) to the chart ranging from "A1" cell to "B3" chart.NSeries.Add("A1:B3", true); //Getting Chart Area ChartArea chartArea = chart.ChartArea; //Setting the foreground color of the chart area chartArea.Area.ForegroundColor = Color.Yellow; //Setting Chart Area Shadow chartArea.Shadow = true; //Saving the Excel file workbook.Save("D:\\book1.xls"); [VB.NET] 'Instantiating a Workbook object Dim workbook As New Workbook() 'Obtaining the reference of the first worksheet Dim worksheet As Worksheet = workbook.Worksheets(0) 'Adding a sample value to "A1" cell worksheet.Cells("A1").PutValue(50) 'Adding a sample value to "A2" cell worksheet.Cells("A2").PutValue(100) 'Adding a sample value to "A3" cell worksheet.Cells("A3").PutValue(150) 'Adding a sample value to "B1" cell worksheet.Cells("B1").PutValue(60) 'Adding a sample value to "B2" cell worksheet.Cells("B2").PutValue(32) 'Adding a sample value to "B3" cell worksheet.Cells("B3").PutValue(50) 'Adding a chart to the worksheet Dim chartIndex As Integer = worksheet.Charts.Add(ChartType.Column, 5, 0, 15, 5) 'Accessing the instance of the newly added chart Dim chart As Chart = worksheet.Charts(chartIndex) 'Adding NSeries (chart data source) to the chart ranging from "A1" cell to "B3" chart.NSeries.Add("A1:B3", True) 'Getting Chart Area Dim chartArea As ChartArea = chart.ChartArea 'Setting the foreground color of the chart area chartArea.Area.ForegroundColor = Color.Yellow 'Setting Chart Area Shadow chartArea.Shadow = True 'Saving the Excel file workbook.Save("D:\book1.xls") Gets or gets the horizontal offset from its upper left corner column. Gets or gets the vertical offset from its upper left corner row. Gets or sets the vertical offset from its lower right corner row. Gets or sets the horizontal offset from its lower right corner column. Gets a object of the specified chartarea object. Represents a chart data table. [C#] //Instantiating a Workbook object Workbook workbook = new Workbook(); //Obtaining the reference of the first worksheet Worksheet worksheet = workbook.Worksheets[0]; //Adding a sample value to "A1" cell worksheet.Cells["A1"].PutValue(50); //Adding a sample value to "A2" cell worksheet.Cells["A2"].PutValue(100); //Adding a sample value to "A3" cell worksheet.Cells["A3"].PutValue(150); //Adding a sample value to "B1" cell worksheet.Cells["B1"].PutValue(60); //Adding a sample value to "B2" cell worksheet.Cells["B2"].PutValue(32); //Adding a sample value to "B3" cell worksheet.Cells["B3"].PutValue(50); //Adding a chart to the worksheet int chartIndex = worksheet.Charts.Add(ChartType.Column, 5, 0, 25, 10); //Accessing the instance of the newly added chart Chart chart = worksheet.Charts[chartIndex]; //Adding NSeries (chart data source) to the chart ranging from "A1" cell to "B3" chart.NSeries.Add("A1:B3", true); chart.IsDataTableShown = true; //Getting Chart Table ChartDataTable chartTable = chart.ChartDataTable; //Setting Chart Table Font Color chartTable.Font.Color = System.Drawing.Color.Red; //Setting Legend Key VisibilityOptions chartTable.ShowLegendKey = false; //Saving the Excel file workbook.Save("D:\\book1.xls"); [VB.NET] 'Instantiating a Workbook object Dim workbook As New Workbook() 'Obtaining the reference of the first worksheet Dim worksheet As Worksheet = workbook.Worksheets(0) 'Adding a sample value to "A1" cell worksheet.Cells("A1").PutValue(50) 'Adding a sample value to "A2" cell worksheet.Cells("A2").PutValue(100) 'Adding a sample value to "A3" cell worksheet.Cells("A3").PutValue(150) 'Adding a sample value to "B1" cell worksheet.Cells("B1").PutValue(60) 'Adding a sample value to "B2" cell worksheet.Cells("B2").PutValue(32) 'Adding a sample value to "B3" cell worksheet.Cells("B3").PutValue(50) 'Adding a chart to the worksheet Dim chartIndex As Integer = worksheet.Charts.Add(ChartType.Column, 5, 0, 25, 10) 'Accessing the instance of the newly added chart Dim chart As Chart = worksheet.Charts(chartIndex) 'Adding NSeries (chart data source) to the chart ranging from "A1" cell to "B3" chart.NSeries.Add("A1:B3", True) chart.IsDataTableShown = True 'Getting Chart Table Dim chartTable As ChartDataTable = chart.ChartDataTable 'Setting Chart Table Font Color chartTable.Font.Color = System.Drawing.Color.Red 'Setting Legend Key VisibilityOptions chartTable.ShowLegendKey = False 'Saving the Excel file workbook.Save("D:\book1.xls") Gets a object which represents the font setting of the specified chart data table. True if the text in the object changes font size when the object size changes. The default value is True. Gets and sets the display mode of the background Gets and sets the display mode of the background NOTE: This member is now obsolete. Instead, please use ChartDataTable.BackgroundMode property. This property will be removed 12 months later since JANUARY 2012. Aspose apologizes for any inconvenience you may have experienced. True if the chart data table has horizontal cell borders True if the chart data table has vertical cell borders True if the chart data table has outline borders True if the data label legend key is visible. Returns a Border object that represents the border of the object Represents the marker style in a line chart, scatter chart, or radar chart. Automatic markers. Circular markers. Long bar markers Diamond-shaped markers. Short bar markers. No markers. Square markers with a plus sign. Square markers. Square markers with an asterisk. Triangular markers. Square markers with an X. Picture Represents a single point in a series in a chart. [C#] //Instantiating a Workbook object Workbook workbook = new Workbook(); //Obtaining the reference of the first worksheet Worksheet worksheet = workbook.Worksheets[0]; //Adding a sample value to "A1" cell worksheet.Cells["A1"].PutValue(50); //Adding a sample value to "A2" cell worksheet.Cells["A2"].PutValue(100); //Adding a sample value to "A3" cell worksheet.Cells["A3"].PutValue(150); //Adding a sample value to "B1" cell worksheet.Cells["B1"].PutValue(60); //Adding a sample value to "B2" cell worksheet.Cells["B2"].PutValue(32); //Adding a sample value to "B3" cell worksheet.Cells["B3"].PutValue(50); //Adding a chart to the worksheet int chartIndex = worksheet.Charts.Add(ChartType.PieExploded, 5, 0, 25, 10); //Accessing the instance of the newly added chart Chart chart = worksheet.Charts[chartIndex]; //Adding NSeries (chart data source) to the chart ranging from "A1" cell to "B3" chart.NSeries.Add("A1:B3", true); //Show Data Labels chart.NSeries[0].DataLabels.IsValueShown = true; for (int i = 0; i < chart.NSeries[0].Points.Count; i++) { //Get Data Point ChartPoint point = chart.NSeries[0].Points[i]; //Set Pir Explosion point.Explosion = 15; //Set Border Color point.Border.Color = System.Drawing.Color.Red; } //Saving the Excel file workbook.Save("D:\\book1.xls"); [VB.NET] 'Instantiating a Workbook object Dim workbook As New Workbook() 'Obtaining the reference of the first worksheet Dim worksheet As Worksheet = workbook.Worksheets(0) 'Adding a sample value to "A1" cell worksheet.Cells("A1").PutValue(50) 'Adding a sample value to "A2" cell worksheet.Cells("A2").PutValue(100) 'Adding a sample value to "A3" cell worksheet.Cells("A3").PutValue(150) 'Adding a sample value to "B1" cell worksheet.Cells("B1").PutValue(60) 'Adding a sample value to "B2" cell worksheet.Cells("B2").PutValue(32) 'Adding a sample value to "B3" cell worksheet.Cells("B3").PutValue(50) 'Adding a chart to the worksheet Dim chartIndex As Integer = worksheet.Charts.Add(ChartType.PieExploded, 5, 0, 25, 10) 'Accessing the instance of the newly added chart Dim chart As Chart = worksheet.Charts(chartIndex) 'Adding NSeries (chart data source) to the chart ranging from "A1" cell to "B3" chart.NSeries.Add("A1:B3", True) 'Show Data Labels chart.NSeries(0).DataLabels.IsValueShown = True For i As Integer = 0 To chart.NSeries(0).Points.Count - 1 'Get Data Point Dim point As ChartPoint = chart.NSeries(0).Points(i) 'Set Pir Explosion point.Explosion = 15 'Set Border Color point.Border.Color = System.Drawing.Color.Red Next i 'Saving the Excel file workbook.Save("D:\book1.xls") Gets the number of top points after calls Chart.Calculate() method. Gets x-coordinate of the top point of shape after calls Chart.Calculate() method. Applies 3D charts: Column3D, Bar3D, Cone, Cylinder, Pyramid and Area3D Gets y-coordinate of the top point of shape after calls Chart.Calculate() method. Applies 3D charts: Column3D, Bar3D, Cone, Cylinder, Pyramid and Area3D Gets the number of bottom points after calls Chart.Calculate() method. Gets x-coordinate of the bottom point of shape after calls Chart.Calculate() method. Applies 3D charts: Column3D, Bar3D, Cone, Cylinder, Pyramid Gets y-coordinate of the bottom point of shape after calls Chart.Calculate() method. Applies 3D charts: Column3D, Bar3D, Cone, Cylinder, Pyramid Gets the number of the points on category axis after calls Chart.Calculate() method. Only applies to area chart. Area 2D chart return 1 Area 3D chart return 2. Gets x-coordinate of the point on category axis after calls Chart.Calculate() method. Only applies to Area chart. Area 2D chart: index is 0. Area 3D chart: index is 0 or 1. Gets y-coordinate of the point on category axis after calls Chart.Calculate() method. Only applies to Area chart. Area 2D chart: index is 0. Area 3D chart: index is 0 or 1. The distance of an open pie slice from the center of the pie chart is expressed as a percentage of the pie diameter. True if the chartpoint has a shadow. Gets the border. Gets the area. Gets the marker. Represents the marker style in a line chart, scatter chart, or radar chart. NOTE: This member is now obsolete. Instead, please use Marker.MarkerStyle property. This property will be removed 12 months later since August 2012. Aspose apologizes for any inconvenience you may have experienced. Represents the marker size in a line chart, scatter chart, or radar chart. NOTE: This member is now obsolete. Instead, please use Marker.MarkerSize property. This property will be removed 12 months later since August 2012. Aspose apologizes for any inconvenience you may have experienced. Represents the marker foreground color in a line chart, scatter chart, or radar chart. NOTE: This member is now obsolete. Instead, please use Marker.MarkerForegroundColor property. This property will be removed 12 months later since August 2012. Aspose apologizes for any inconvenience you may have experienced. Gets or sets the marker foreground color set type. NOTE: This member is now obsolete. Instead, please use Marker.MarkerForegroundColorSetType property. This property will be removed 12 months later since August 2012. Aspose apologizes for any inconvenience you may have experienced. FormattingType.Automatic is same as ChartLineFormattingType.Automatic. FormattingType.None is same as ChartLineFormattingType.None. FormattingType.InnerCustom is same as ChartLineFormattingType.Solid. Represents the marker background color in a line chart, scatter chart, or radar chart. NOTE: This member is now obsolete. Instead, please use Marker.MarkerBackgroundColor property. This property will be removed 12 months later since August 2012. Aspose apologizes for any inconvenience you may have experienced. Gets or sets the marker background color set type. NOTE: This member is now obsolete. Instead, please use Marker.MarkerBackgroundColorSetType property. This property will be removed 12 months later since August 2012. Aspose apologizes for any inconvenience you may have experienced. FormattingType.Automatic is same as ChartLineFormattingType.Automatic. FormattingType.None is same as ChartLineFormattingType.None. FormattingType.InnerCustom is same as ChartLineFormattingType.Solid. Returns a DataLabels object that represents the data label associated with the point. Gets or sets the Y value of the chart point. Gets Y value type of the chart point. Gets or sets the X value of the chart point. Gets X value type of the chart point. Gets the object that holds the visual shape properties of the ChartPoint. Gets or sets a value indicates whether this data points is in the second pie or bar on a pie of pie or bar of pie chart Gets the x coordinate of the upper left corner in units of 1/4000 of chart's width after calls Chart.Calculate() method. Gets the y coordinate of the upper left corner in units of 1/4000 of chart's height after calls Chart.Calculate() method. Gets the width in units of 1/4000 of chart's width after calls Chart.Calculate() method. Gets the height in units of 1/4000 of chart's height after calls Chart.Calculate() method. Gets the x coordinate of the upper left corner in units of pixels after calls Chart.Calculate() method. Gets the y coordinate of the upper left corner in units of pixels after calls Chart.Calculate() method. Gets the width in units of pixels after calls Chart.Calculate() method. Gets the height in units of pixels after calls Chart.Calculate() method. Gets the width of border in units of pixels after calls Chart.Calculate() method. Gets the radius of bubble, pie or doughnut in units of pixels after calls Chart.Calculate() method. Gets the inner radius of doughnut slice in units of pixels after calls Chart.Calculate() method. Applies to Doughnut chart. Gets the starting angle for the pie section, measured in degrees clockwise from the x-axis after calls Chart.Calculate() method. Applies to Pie chart. Gets the ending angle for the pie section, measured in degrees clockwise from the x-axis after calls Chart.Calculate() method. Applies to Pie chart. Gets the x coordinate of starting point for the pie section after calls Chart.Calculate() method. Applies to Pie and Doughnut chart. Gets the y coordinate of starting point for the pie section after calls Chart.Calculate() method. Applies to Pie and Doughnut chart. Gets the x coordinate of ending point for the pie section after calls Chart.Calculate() method. Applies to Pie and Doughnut chart. Gets the y coordinate of ending point for the pie section after calls Chart.Calculate() method. Applies to Pie and Doughnut chart. Gets the x coordinate of starting point for the pie section after calls Chart.Calculate() method. Applies to Doughnut chart. Gets the y coordinate of starting point for the pie section after calls Chart.Calculate() method. Applies to Doughnut chart. Gets the x coordinate of ending point for the pie section after calls Chart.Calculate() method. Applies to Doughnut chart. Gets the y coordinate of ending point for the pie section after calls Chart.Calculate() method. Applies to Doughnut chart. Represents a collection that contains all the points in one series. //Instantiating a Workbook object Workbook workbook = new Workbook(); //Obtaining the reference of the first worksheet Worksheet worksheet = workbook.Worksheets[0]; //Adding a sample value to "A1" cell worksheet.Cells["A1"].PutValue(50); //Adding a sample value to "A2" cell worksheet.Cells["A2"].PutValue(100); //Adding a sample value to "A3" cell worksheet.Cells["A3"].PutValue(150); //Adding a sample value to "B1" cell worksheet.Cells["B1"].PutValue(60); //Adding a sample value to "B2" cell worksheet.Cells["B2"].PutValue(32); //Adding a sample value to "B3" cell worksheet.Cells["B3"].PutValue(50); //Adding a chart to the worksheet int chartIndex = worksheet.Charts.Add(ChartType.PieExploded, 5, 0, 25, 10); //Accessing the instance of the newly added chart Chart chart = worksheet.Charts[chartIndex]; //Adding NSeries (chart data source) to the chart ranging from "A1" cell to "B3" chart.NSeries.Add("A1:B3", true); //Show Data Labels chart.NSeries[0].DataLabels.IsValueShown = true; ChartPointCollection points = chart.NSeries[0].Points; for (int i = 0; i < points.Count; i++) { //Get Data Point ChartPoint point = points[i]; //Set Pir Explosion point.Explosion = 15; //Set Border Color point.Border.Color = System.Drawing.Color.Red; } //Saving the Excel file workbook.Save("D:\\book1.xls"); [VB.NET] 'Instantiating a Workbook object Dim workbook As New Workbook() 'Obtaining the reference of the first worksheet Dim worksheet As Worksheet = workbook.Worksheets(0) 'Adding a sample value to "A1" cell worksheet.Cells("A1").PutValue(50) 'Adding a sample value to "A2" cell worksheet.Cells("A2").PutValue(100) 'Adding a sample value to "A3" cell worksheet.Cells("A3").PutValue(150) 'Adding a sample value to "B1" cell worksheet.Cells("B1").PutValue(60) 'Adding a sample value to "B2" cell worksheet.Cells("B2").PutValue(32) 'Adding a sample value to "B3" cell worksheet.Cells("B3").PutValue(50) 'Adding a chart to the worksheet Dim chartIndex As Integer = worksheet.Charts.Add(ChartType.PieExploded, 5, 0, 25, 10) 'Accessing the instance of the newly added chart Dim chart As Chart = worksheet.Charts(chartIndex) 'Adding NSeries (chart data source) to the chart ranging from "A1" cell to "B3" chart.NSeries.Add("A1:B3", True) 'Show Data Labels chart.NSeries(0).DataLabels.IsValueShown = True Dim points As ChartPointCollection = chart.NSeries(0).Points For i As Integer = 0 To points.Count - 1 'Get Data Point Dim point As ChartPoint = points(i) 'Set Pir Explosion point.Explosion = 15 'Set Border Color point.Border.Color = System.Drawing.Color.Red Next i 'Saving the Excel file workbook.Save("D:\book1.xls") Returns an enumerator for the entire . Remove all setting of the chart points. Removes point at the index of the series.. The index of the point. Gets the count of the chart point. Gets the element at the specified index in the series. The index of chart point in the series. The ChartPoint object. Encapsulates a collection of objects. [C#] Workbook workbook = new Workbook(); ChartCollection charts = workbook.Worksheets[0].Charts; [Visual Basic] Dim workbook as Workbook = new Workbook() Dim ChartCollection as Charts = workbook.Worksheets(0).Charts Adds a chart to the collection. Chart type The x offset to corner The y offset to corner The chart width The chart height object index. Adds a chart to the collection. Chart type Upper left row index. Upper left column index. Lower right row index Lower right column index object index. Remove a chart at the specific index. The chart index. Clear all charts. Gets the element at the specified index. The zero based index of the element. The element at the specified index. Gets the chart by the name. The chart name. The chart. The default chart name is null. So you have to explicitly set the name of the chart. Represents the shape of the chart. Properties and methods for the ChartObject object control the appearance and size of the embedded chart on the worksheet. [C#] //Instantiating a Workbook object Workbook workbook = new Workbook(); //Obtaining the reference of the first worksheet Worksheet worksheet = workbook.Worksheets[0]; //Adding a sample value to "A1" cell worksheet.Cells["A1"].PutValue(50); //Adding a sample value to "A2" cell worksheet.Cells["A2"].PutValue(100); //Adding a sample value to "A3" cell worksheet.Cells["A3"].PutValue(150); //Adding a sample value to "B1" cell worksheet.Cells["B1"].PutValue(60); //Adding a sample value to "B2" cell worksheet.Cells["B2"].PutValue(32); //Adding a sample value to "B3" cell worksheet.Cells["B3"].PutValue(50); //Adding a chart to the worksheet int chartIndex = worksheet.Charts.Add(ChartType.PieExploded, 5, 0, 25, 10); //Accessing the instance of the newly added chart Chart chart = worksheet.Charts[chartIndex]; //Adding NSeries (chart data source) to the chart ranging from "A1" cell to "B3" chart.NSeries.Add("A1:B3", true); //Show Data Labels chart.NSeries[0].DataLabels.IsValueShown = true; //Getting Chart Shape ChartShape chartShape = chart.ChartObject; //Set Lower Right Column chartShape.LowerRightColumn = 10; //Set LowerDeltaX chartShape.LowerDeltaX = 1024; //Saving the Excel file workbook.Save("D:\\book1.xls"); [VB.NET] 'Instantiating a Workbook object Dim workbook As New Workbook() 'Obtaining the reference of the first worksheet Dim worksheet As Worksheet = workbook.Worksheets(0) 'Adding a sample value to "A1" cell worksheet.Cells("A1").PutValue(50) 'Adding a sample value to "A2" cell worksheet.Cells("A2").PutValue(100) 'Adding a sample value to "A3" cell worksheet.Cells("A3").PutValue(150) 'Adding a sample value to "B1" cell worksheet.Cells("B1").PutValue(60) 'Adding a sample value to "B2" cell worksheet.Cells("B2").PutValue(32) 'Adding a sample value to "B3" cell worksheet.Cells("B3").PutValue(50) 'Adding a chart to the worksheet Dim chartIndex As Integer = worksheet.Charts.Add(ChartType.PieExploded, 5, 0, 25, 10) 'Accessing the instance of the newly added chart Dim chart As Chart = worksheet.Charts(chartIndex) 'Adding NSeries (chart data source) to the chart ranging from "A1" cell to "B3" chart.NSeries.Add("A1:B3", True) 'Show Data Labels chart.NSeries(0).DataLabels.IsValueShown = True 'Getting Chart Shape Dim chartShape As ChartShape = chart.ChartObject 'Set Lower Right Column chartShape.LowerRightColumn = 10 'Set LowerDeltaX chartShape.LowerDeltaX = 1024 'Saving the Excel file workbook.Save("D:\book1.xls") Returns a Chart object that represents the chart contained in the object. Represents the way the two sections of either a pie of pie chart or a bar of pie chart are split. Represents the data points shall be split between the pie and the second chart by putting the last Split Position of the data points in the second chart Represents the data points shall be split between the pie and the second chart by putting the data points with value less than Split Position in the second chart. Represents the data points shall be split between the pie and the second chart by putting the points with percentage less than Split Position percent in the second chart. Represents the data points shall be split between the pie and the second chart according to the Custom Split values. Represents the data points shall be split using the default mechanism for this chart type. Enumerates all chart types used in Excel. Represents Area Chart. Represents Stacked Area Chart. Represents 100% Stacked Area Chart. Represents 3D Area Chart. Represents 3D Stacked Area Chart. Represents 3D 100% Stacked Area Chart. Represents Bar Chart: Clustered Bar Chart. Represents Stacked Bar Chart. Represents 100% Stacked Bar Chart. Represents 3D Colustered Bar Chart. Represents 3D Stacked Bar Chart. Represents 3D 100% Stacked Bar Chart. Represents Bubble Chart. Represents 3D Bubble Chart. Represents Column Chart: Clustered Column Chart. Represents Stacked Column Chart. Represents 100% Stacked Column Chart. Represents 3D Column Chart. Represents 3D Clustered Column Chart. Represents 3D Stacked Column Chart. Represents 3D 100% Stacked Column Chart. Represents Cone Chart. Represents Stacked Cone Chart. Represents 100% Stacked Cone Chart. Represents Conical Bar Chart. Represents Stacked Conical Bar Chart. Represents 100% Stacked Conical Bar Chart. Represents 3D Conical Column Chart. Represents Cylinder Chart. Represents Stacked Cylinder Chart. Represents 100% Stacked Cylinder Chart. Represents Cylindrical Bar Chart. Represents Stacked Cylindrical Bar Chart. Represents 100% Stacked Cylindrical Bar Chart. Represents 3D Cylindrical Column Chart. Represents Doughnut Chart. Represents Exploded Doughnut Chart. Represents Line Chart. Represents Stacked Line Chart. Represents 100% Stacked Line Chart. Represents Line Chart with data markers. Represents Stacked Line Chart with data markers. Represents 100% Stacked Line Chart with data markers. Represents 3D Line Chart. Represents Pie Chart. Represents 3D Pie Chart. Represents Pie of Pie Chart. Represents Exploded Pie Chart. Represents 3D Exploded Pie Chart. Represents Bar of Pie Chart. Represents Pyramid Chart. Represents Stacked Pyramid Chart. Represents 100% Stacked Pyramid Chart. Represents Pyramid Bar Chart. Represents Stacked Pyramid Bar Chart. Represents 100% Stacked Pyramid Bar Chart. Represents 3D Pyramid Column Chart. Represents Radar Chart. Represents Radar Chart with data markers. Represents Filled Radar Chart. Represents Scatter Chart. Represents Scatter Chart connected by curves, with data markers. Represents Scatter Chart connected by curves, without data markers. Represents Scatter Chart connected by lines, with data markers. Represents Scatter Chart connected by lines, without data markers. Represents High-Low-Close Stock Chart. Represents Open-High-Low-Close Stock Chart. Represents Volume-High-Low-Close Stock Chart. Represents Volume-Open-High-Low-Close Stock Chart. Represents Surface Chart: 3D Surface Chart. Represents Wireframe 3D Surface Chart. Represents Contour Chart. Represents Wireframe Contour Chart. The series is laid out as box and whisker. The series is laid out as a funnel. The series is laid out as pareto lines. The series is laid out as a sunburst. The series is laid out as a treemap. The series is laid out as a waterfall. The series is laid out as a histogram. The series is laid out as a region map. Represents a check box object in a worksheet. [C#] int index = excel.Worksheets[0].CheckBoxes.Add(15, 15, 20, 100); CheckBox checkBox = excel.Worksheets[0].CheckBoxes[index]; checkBox.Text = "Check Box 1"; [Visual Basic] Dim index as integer = excel.Worksheets(0).CheckBoxes.Add(15, 15, 20, 100) Dim checkBox as CheckBox = excel.Worksheets(0).CheckBoxes[index]; checkBox.Text = "Check Box 1" Indicates if the checkbox is checked or not. Gets or set checkbox' value. NOTE: This member is now obsolete. Instead, please use CheckBox.CheckValueType property. This property will be removed 12 months later since June 2010. Aspose apologizes for any inconvenience you may have experienced. Gets or set checkbox' value. Indicates whether the combobox has 3-D shading. Represents a collection of objects in a worksheet. [C#] int index = excel.Worksheets[0].CheckBoxes.Add(15, 15, 20, 100); CheckBox checkBox = excel.Worksheets[0].CheckBoxes[index]; checkBox.Text = "Check Box 1"; [Visual Basic] Dim index as integer = excel.Worksheets(0).CheckBoxes.Add(15, 15, 20, 100) Dim checkBox as CheckBox = excel.Worksheets(0).CheckBoxes[index]; checkBox.Text = "Check Box 1" Adds a checkBox to the collection. Upper left row index. Upper left column index. Height of checkBox, in unit of pixel. Width of checkBox, in unit of pixel. object index. Gets the element at the specified index. The zero based index of the element. The element at the specified index. Represents the check value type of the check box. UnChecked Checked Mixed Represents the control form ComboBox. [C#] //Create a new Workbook. Workbook workbook = new Workbook(); //Get the first worksheet. Worksheet sheet = workbook.Worksheets[0]; //Get the worksheet cells collection. Cells cells = sheet.Cells; //Input a value. cells["B3"].PutValue("Employee:"); //Set it bold. cells["B3"].Style.Font.IsBold = true; //Input some values that denote the input range //for the combo box. cells["A2"].PutValue("Emp001"); cells["A3"].PutValue("Emp002"); cells["A4"].PutValue("Emp003"); cells["A5"].PutValue("Emp004"); cells["A6"].PutValue("Emp005"); cells["A7"].PutValue("Emp006"); //Add a new combo box. Aspose.Cells.ComboBox comboBox = sheet.Shapes.AddComboBox(2, 0, 2, 0, 22, 100); //Set the linked cell; comboBox.LinkedCell = "A1"; //Set the input range. comboBox.InputRange = "A2:A7"; //Set no. of list lines displayed in the combo //box's list portion. comboBox.DropDownLines = 5; //Set the combo box with 3-D shading. comboBox.Shadow = true; //AutoFit Columns sheet.AutoFitColumns(); //Saves the file. workbook.Save(@"d:\test\tstcombobox.xls"); [VB.NET] 'Create a new Workbook. Dim workbook As Workbook = New Workbook() 'Get the first worksheet. Dim sheet As Worksheet = workbook.Worksheets(0) 'Get the worksheet cells collection. Dim cells As Cells = sheet.Cells 'Input a value. cells("B3").PutValue("Employee:") 'Set it bold. cells("B3").Style.Font.IsBold = True 'Input some values that denote the input range 'for the combo box. cells("A2").PutValue("Emp001") cells("A3").PutValue("Emp002") cells("A4").PutValue("Emp003") cells("A5").PutValue("Emp004") cells("A6").PutValue("Emp005") cells("A7").PutValue("Emp006") 'Add a new combo box. Dim comboBox As Aspose.Cells.ComboBox = sheet.Shapes.AddComboBox(2, 0, 2, 0, 22, 100) 'Set the linked cell; comboBox.LinkedCell = "A1" 'Set the input range. comboBox.InputRange = "A2:A7" 'Set no. of list lines displayed in the combo 'box's list portion. comboBox.DropDownLines = 5 'Set the combo box with 3-D shading. comboBox.Shadow = True 'AutoFit Columns sheet.AutoFitColumns() 'Saves the file. workbook.Save("d:\test\tstcombobox.xls") Gets or sets the index number of the currently selected item in a list box or combo box. Zero-based. -1 presents no item is selected. Gets the selected value of the combox box. Gets the selected cell in the input range of the combo box. Indicates whether the combobox has 3-D shading. Gets or sets the number of list lines displayed in the drop-down portion of a combo box. Encapsulates the object that represents a cell comment. [C#] Workbook workbook = new Workbook(); CommentCollection comments = workbook.Worksheets[0].Comments; //Add comment to cell A1 int commentIndex = comments.Add(0, 0); Comment comment = comments[commentIndex]; comment.Note = "First note."; comment.Font.Name = "Times New Roman"; //Add comment to cell B2 comments.Add("B2"); comment = comments["B2"]; comment.Note = "Second note."; [Visual Basic] Dim workbook as Workbook = new Workbook() Dim comments as CommentCollection = workbook.Worksheets(0).Comments 'Add comment to cell A1 Dim commentIndex as Integer = comments.Add(0, 0) Dim comment as Comment = comments(commentIndex) comment.Note = "First note." comment.Font.Name = "Times New Roman" 'Add comment to cell B2 comments.Add("B2") comment = comments("B2") comment.Note = "Second note." Format some characters with the font setting. The start index. The length. The font setting. The flag of the font setting. Returns a Characters object that represents a range of characters within the comment text. The index of the start of the character. The number of characters. Characters object. Returns all Characters objects that represents a range of characters within the comment text. All Characters objects Gets and sets Name of the original comment author Get a Shape object that represents the shape attached to the specified comment. Gets the row index of the comment. Gets the column index of the comment. Gets the list of threaded comments; Represents the content of comment. Gets and sets the html string which contains data and some formats in this comment. Gets the font of comment. Represents if the comment is visible or not. Gets and sets the text orientation type of the comment. Gets and sets the text horizontal alignment type of the comment. Gets and sets the text vertical alignment type of the comment. Indicates if size of comment is adjusted automatically according to its content. Represents the height of the comment, in unit of centimeters. Represents the width of the comment, in unit of centimeters. Represents the width of the comment, in unit of pixels. Represents the Height of the comment, in unit of pixels. Represents the width of the comment, in unit of inches. Represents the height of the comment, in unit of inches. Encapsulates a collection of objects. [C#] Workbook workbook = new Workbook(); CommentCollection comments = workbook.Worksheets[0].Comments; [Visual Basic] Dim workbook as Workbook = new Workbook() Dim comments as CommentCollection = workbook.Worksheets(0).Comments Adds a threaded comment. Cell row index. Cell column index. The text of the comment The user of this threaded comment. object index. Adds a threaded comment. The name of the cell. The text of the comment The user of this threaded comment. object index. Gets the threaded comments by row and column index. The row index. The column index. Gets the threaded comments by cell name. The name of the cell. Adds a comment to the collection. Cell row index. Cell column index. object index. Adds a comment to the collection. Cell name. object index. Removes the comment of the specific cell. The name of cell which contains a comment. Removes the comment of the specific cell. The row index. the column index. Removes all comments; Gets the element at the specified index. The zero based index of the element. The element at the specified index. Gets the element at the specified cell. Cell name. The element at the specified cell. Gets the element at the specified row index and column index. Row index. Column index. The element at the specified cell. Represents the shape of the comment. Gets the comment object. Encapsulates a collection of objects. [C#] //Instantiating a Workbook object Workbook workbook = new Workbook(); Worksheet sheet = workbook.Worksheets[0]; //Get Conditional Formatting ConditionalFormattingCollection cformattings = sheet.ConditionalFormattings; //Adds an empty conditional formatting int index = cformattings.Add(); //Get newly added Conditional formatting FormatConditionCollection fcs = cformattings[index]; //Sets the conditional format range. CellArea ca = new CellArea(); ca.StartRow = 0; ca.EndRow = 0; ca.StartColumn = 0; ca.EndColumn = 0; fcs.AddArea(ca); ca = new CellArea(); ca.StartRow = 1; ca.EndRow = 1; ca.StartColumn = 1; ca.EndColumn = 1; fcs.AddArea(ca); //Add condition. int conditionIndex = fcs.AddCondition(FormatConditionType.CellValue, OperatorType.Between, "=A2", "100"); //Add condition. int conditionIndex2 = fcs.AddCondition(FormatConditionType.CellValue, OperatorType.Between, "50", "100"); //Sets the background color. FormatCondition fc = fcs[conditionIndex]; fc.Style.BackgroundColor = Color.Red; //Saving the Excel file workbook.Save("C:\\output.xls"); [VB.NET] 'Instantiating a Workbook object Dim workbook As New Workbook() Dim sheet As Worksheet = workbook.Worksheets(0) 'Get Conditional Formatting Dim cformattings As ConditionalFormattingCollection = sheet.ConditionalFormattings 'Adds an empty conditional formatting Dim index As Integer = cformattings.Add() 'Get newly added Conditional formatting Dim fcs As FormatConditionCollection = cformattings(index) 'Sets the conditional format range. Dim ca As New CellArea() ca.StartRow = 0 ca.EndRow = 0 ca.StartColumn = 0 ca.EndColumn = 0 fcs.AddArea(ca) ca = New CellArea() ca.StartRow = 1 ca.EndRow = 1 ca.StartColumn = 1 ca.EndColumn = 1 fcs.AddArea(ca) 'Add condition. Dim conditionIndex As Integer = fcs.AddCondition(FormatConditionType.CellValue, OperatorType.Between, "=A2", "100") 'Add condition. Dim conditionIndex2 As Integer = fcs.AddCondition(FormatConditionType.CellValue, OperatorType.Between, "50", "100") 'Sets the background color. Dim fc As FormatCondition = fcs(conditionIndex) fc.Style.BackgroundColor = Color.Red 'Saving the Excel file workbook.Save("C:\output.xls") Remove all conditional formatting in the range. The start row of the range. The start column of the range. The number of rows of the range. The number of columns of the range. Copies conditional formatting. The conditional formatting Adds a FormatConditions to the collection. FormatConditions object index. Gets the FormatConditions element at the specified index. The zero based index of the element. Represents consolidation function. Represents Sum function. Represents Count function. Represents Average function. Represents Max function. Represents Min function. Represents Product function. Represents Count Nums function. Represents StdDev function. Represents StdDevp function. Represents Var function. Represents Varp function. Represents Distinct Count function. Only valid for PivotTable with Data Module created since by 2013. Specifies the type (format) of an image. An unknown image type. Windows Enhanced Metafile. Windows Metafile. Macintosh PICT. JPEG JFIF. Portable Network Graphics. Windows Bitmap Gif Tiff Svg Svm glTF Specifies a type of compression applied to all content in the PDF file except images. None Rle Lzw Flate Represents the command of header/footer Gets the header/footer' command type . Gets the font of the command's value. Useless for HeaderFooterCommandType.Picture. Gets the text of the command. Only valid for HeaderFooterCommandType.Text. Represents the copy options. CopyOptions constructor. Indicates whether keeping macros; Only for copying workbook. Indicates whether extend ranges when copying the range to adjacent range. If it's true, only extends the range of the hyperlink,not adding a new hyperlink when copying hyperlinks to adjacent rows. Indicates whether copying the names. If the formula is not valid for the dest destination, only copy values. Indicates whether copying column width in unit of characters. When copying a worksheet to another workbook and the worksheet contains the formulas which refer to other worksheets in MS Excel, the copied formulas should refer to source workbook. But sometimes we have copied other worksheets and we hope the copied formulas refer to other worksheets with the name in the same workbook, please set this property as true. The default value is true. When copying the range in the same file and the chart refers to the source sheet, False means the copied chart's data source will not be changed. True means the copied chart's data source refers to the destination sheet. The default value is false, it works as MS Excel. Represents Excel country identifiers. United States Canada Latin America, except Brazil Russia Egypt Greece Netherlands Belgium France Spain Hungary Italy Switzerland Austria United Kingdom Denmark Sweden Norway Poland Germany Mexico Brazil Australia New Zealand Thailand Japan SouthKorea Viet Nam People's Republic of China Turkey India Algeria Morocco Libya Portugal Iceland Finland Czech Republic Taiwan Lebanon Jordan Syria Iraq Kuwait Saudi Arabia United Arab Emirates Israel Qatar Iran A collection of objects that represent additional information. Adds custom property information. The name of the custom property. The value of the custom property. Gets the custom property by the specific index. The index. The custom property Gets the custom property by the property name. The property name. The custom property Represents identifier information. Returns or sets the name of the object. Returns or sets the value of the custom property. NOTE: This member is now obsolete. Instead, please use CustomProperty.Value property. This property will be removed 12 months later since June 2010. Aspose apologizes for any inconvenience you may have experienced. Returns or sets the value of the custom property. Encapsulates a collection of all the DataLabel objects for the specified Series. [C#] //Set the DataLabels in the chart DataLabels datalabels; for (int i = 0; i <chart.NSeries.Count; i++) { datalabels = chart.NSeries[i].DataLabels; //Set the position of DataLabels datalabels.Position = LabelPositionType.InsideBase; //Show the category name in the DataLabels datalabels.ShowCategoryName = true; //Show the value in the DataLabels datalabels.ShowValue = true; //Not show the percentage in the DataLabels datalabels.ShowPercentage = false; //Not show the legend key. datalabels.ShowLegendKey = false; } [Visual Basic] 'Set the DataLabels in the chart Dim datalabels As DataLabels Dim i As Integer For i = 0 To chart.NSeries.Count - 1 Step 1 datalabels = chart.NSeries(i).DataLabels 'Set the position of DataLabels datalabels.Position = LabelPositionType.InsideBase 'Show the category name in the DataLabels datalabels.ShowCategoryName= True 'Show the value in the DataLabels datalabels.ShowValue = True 'Not show the percentage in the DataLabels datalabels.ShowPercentage = False 'Not show the legend key. datalabels.ShowLegendKey = False Next Gets the border. Gets the area. Indicates the text is auto generated. Gets and sets the direction of text. Gets or sets the text of data label. Gets or sets a value indicating whether the text is wrapped. Gets and sets the linked source. Gets and sets the display mode of the background Represents a specified chart's data label values display behavior. True displays the values. False to hide. Indicates whether showing cell range as the data labels. Represents a specified chart's data label percentage value display behavior. True displays the percentage value. False to hide. Represents a specified chart's data label percentage value display behavior. True displays the percentage value. False to hide. Represents a specified chart's data label category name display behavior.True to display the category name for the data labels on a chart. False to hide. Returns or sets a Boolean to indicate the series name display behavior for the data labels on a chart. True to show the series name. False to hide. Represents a specified chart's data label legend key display behavior. True if the data label legend key is visible. Represents the format string for the DataLabels object. Gets and sets the built-in number format. True if the number format is linked to the cells (so that the number format changes in the labels when it changes in the cells). Gets the font of the DataLabels; Gets or sets the separator type used for the data labels on a chart. NOTE: This member is now obsolete. Instead, please use DataLabels.SeparatorType property. This property will be removed 12 months later since September 2020. Aspose apologizes for any inconvenience you may have experienced. Gets or sets the separator type used for the data labels on a chart. To set custom separator, please set the property as and then specify the expected value for . Gets or sets the separator value used for the data labels on a chart. Represents the position of the data label. Gets or sets shape type of data label. Represents the separator type of DataLabels. Represents automatic separator Represents space(" ") Represents comma(",") Represents semicolon(";") Represents period(".") Represents newline("\n") Represents custom separator Summary description for DataSorter. [C#] //Instantiate a new Workbook object. Workbook workbook = new Workbook("C:\\Book1.xls"); //Get the workbook datasorter object. DataSorter sorter = workbook.DataSorter; //Set the first order for datasorter object. sorter.Order1 = Aspose.Cells.SortOrder.Descending; //Define the first key. sorter.Key1 = 0; //Set the second order for datasorter object. sorter.Order2 = Aspose.Cells.SortOrder.Ascending; //Define the second key. sorter.Key2 = 1; //Create a cells area (range). CellArea ca = new CellArea(); //Specify the start row index. ca.StartRow = 0; //Specify the start column index. ca.StartColumn = 0; //Specify the last row index. ca.EndRow = 13; //Specify the last column index. ca.EndColumn = 1; //Sort data in the specified data range (A1:B14) sorter.Sort(workbook.Worksheets[0].Cells, ca); //Save the excel file. workbook.Save("C:\\outBook.xls"); [Visual Basic] 'Instantiate a new Workbook object. Dim workbook As Workbook = New Workbook("C:\Book1.xls") 'Get the workbook datasorter object. Dim sorter As DataSorter = workbook.DataSorter 'Set the first order for datasorter object sorter.Order1 = Aspose.Cells.SortOrder.Descending 'Define the first key. sorter.Key1 = 0 'Set the second order for datasorter object. sorter.Order2 = Aspose.Cells.SortOrder.Ascending 'Define the second key. sorter.Key2 = 1 'Create a cells area (range). Dim ca As CellArea = New CellArea 'Specify the start row index. ca.StartRow = 0 'Specify the start column index. ca.StartColumn = 0 'Specify the last row index. ca.EndRow = 13 'Specify the last column index. ca.EndColumn = 1 'Sort the data in the specified data range (A1:B14) sorter.Sort(workbook.Worksheets(0).Cells, ca) 'Save the excel file. workbook.Save("C:\outBook.xls") Clear all settings. Adds sorted column index and sort order. The sorted column index(absolute position, column A is 0, B is 1, ...) The sort order Adds sorted column index and sort order with custom sort list. The sorted column index(absolute position, column A is 0, B is 1, ...) The sort order. The custom sort list. Adds sorted column index and sort order with custom sort list. The sorted column index(absolute position, column A is 0, B is 1, ...) The sorted value type. The sort order. The custom sort list. If type is SortOnType.CellColor or SortOnType.FontColor, the customList is Color. Adds sorted column index and sort order with custom sort list. The sorted column index(absolute position, column A is 0, B is 1, ...) The sort order. The custom sort list. Sorts the data of the area. The cells contains the data area. The start row of the area. The start column of the area. The end row of the area. The end column of the area. Sort the data of the area. The cells contains the data area. The area needed to sort Sort the data in the range. Gets the key list of data sorter. Represents whether the range has headers. Represents first sorted column index(absolute position, column A is 0, B is 1, ...). Represents sort order of the first key. Represents second sorted column index(absolute position, column A is 0, B is 1, ...). Represents sort order of the second key. Represents third sorted column index(absolute position, column A is 0, B is 1, ...). Represents sort order of the third key. True means that sorting orientation is from left to right. False means that sorting orientation is from top to bottom. The default value is false. Gets and sets whether case sensitive when comparing string. Indicates whether sorting anything that looks like a number. Represents whether and how to show objects in the workbook. Show all objects Show placeholders Hide all shapes. Represents the display unit label. [C#] //Instantiating a Workbook object Workbook workbook = new Workbook(); //Adding a new worksheet to the Excel object int sheetIndex = workbook.Worksheets.Add(); //Obtaining the reference of the newly added worksheet by passing its sheet index Worksheet worksheet = workbook.Worksheets[sheetIndex]; //Adding a sample value to "A1" cell worksheet.Cells["A1"].PutValue(50); //Adding a sample value to "A2" cell worksheet.Cells["A2"].PutValue(100); //Adding a sample value to "A3" cell worksheet.Cells["A3"].PutValue(150); //Adding a sample value to "A4" cell worksheet.Cells["A4"].PutValue(200); //Adding a sample value to "B1" cell worksheet.Cells["B1"].PutValue(60); //Adding a sample value to "B2" cell worksheet.Cells["B2"].PutValue(32); //Adding a sample value to "B3" cell worksheet.Cells["B3"].PutValue(50); //Adding a sample value to "B4" cell worksheet.Cells["B4"].PutValue(40); //Adding a sample value to "C1" cell as category data worksheet.Cells["C1"].PutValue("Q1"); //Adding a sample value to "C2" cell as category data worksheet.Cells["C2"].PutValue("Q2"); //Adding a sample value to "C3" cell as category data worksheet.Cells["C3"].PutValue("Y1"); //Adding a sample value to "C4" cell as category data worksheet.Cells["C4"].PutValue("Y2"); //Adding a chart to the worksheet int chartIndex = worksheet.Charts.Add(ChartType.Column, 5, 0, 15, 5); //Accessing the instance of the newly added chart Chart chart = worksheet.Charts[chartIndex]; //Adding NSeries (chart data source) to the chart ranging from "A1" cell to "B4" chart.NSeries.Add("A1:B4", true); //Setting the data source for the category data of NSeries chart.NSeries.CategoryData = "C1:C4"; //Setting the display unit of value(Y) axis. chart.ValueAxis.DisplayUnit = DisplayUnitType.Hundreds; DisplayUnitLabel displayUnitLabel = chart.ValueAxis.DisplayUnitLabel; //Setting the custom display unit label displayUnitLabel.Text = "100"; //Saving the Excel file workbook.Save("C:\\book1.xls"); [Visual Basic] 'Instantiating a Workbook object Dim workbook As Workbook = New Workbook() 'Adding a new worksheet to the Excel object Dim sheetIndex As Int32 = workbook.Worksheets.Add() 'Obtaining the reference of the newly added worksheet by passing its sheet index Dim worksheet As Worksheet = workbook.Worksheets(sheetIndex) 'Adding a sample value to "A1" cell worksheet.Cells("A1").PutValue(50) 'Adding a sample value to "A2" cell worksheet.Cells("A2").PutValue(100) 'Adding a sample value to "A3" cell worksheet.Cells("A3").PutValue(150) 'Adding a sample value to "A4" cell worksheet.Cells("A4").PutValue(200) 'Adding a sample value to "B1" cell worksheet.Cells("B1").PutValue(60) 'Adding a sample value to "B2" cell worksheet.Cells("B2").PutValue(32) 'Adding a sample value to "B3" cell worksheet.Cells("B3").PutValue(50) 'Adding a sample value to "B4" cell worksheet.Cells("B4").PutValue(40) 'Adding a sample value to "C1" cell as category data worksheet.Cells("C1").PutValue("Q1") 'Adding a sample value to "C2" cell as category data worksheet.Cells("C2").PutValue("Q2") 'Adding a sample value to "C3" cell as category data worksheet.Cells("C3").PutValue("Y1") 'Adding a sample value to "C4" cell as category data worksheet.Cells("C4").PutValue("Y2") 'Adding a chart to the worksheet Dim chartIndex As Int32 = worksheet.Charts.Add(ChartType.Column, 5, 0, 15, 5) 'Accessing the instance of the newly added chart Dim chart As Chart = worksheet.Charts(chartIndex) 'Adding NSeries (chart data source) to the chart ranging from "A1" cell to "B4" chart.NSeries.Add("A1:B4", True) 'Setting the data source for the category data of NSeries Chart.NSeries.CategoryData = "C1:C4" 'Setting the display unit of value(Y) axis. chart.ValueAxis.DisplayUnit = DisplayUnitType.Hundreds Dim displayUnitLabel As DisplayUnitLabel = chart.ValueAxis.DisplayUnitLabel 'Setting the custom display unit label displayUnitLabel.Text = "100" 'Saving the Excel file workbook.Save("C:\\book1.xls") Gets or sets the text of display unit label. Gets a object of the specified ChartFrame object. True if the text in the object changes font size when the object size changes. The default value is True. Represents the type of display unit. Display unit is None. Specifies the values on the chart shall be divided by 100. Specifies the values on the chart shall be divided by 1,000. Specifies the values on the chart shall be divided by 10,000. Specifies the values on the chart shall be divided by 100,000. Specifies the values on the chart shall be divided by 1,000,000. Specifies the values on the chart shall be divided by 10,000,000. Specifies the values on the chart shall be divided by 100,000,000. Specifies the values on the chart shall be divided by 1,000,000,000. Specifies the values on the chart shall be divided by 1,000,000,000,000. The values on the chart shall be divided by 0.01. specifies a custom value for the display unit. A collection of built-in document properties.

Provides access to objects by their names (using an indexer) and via a set of typed properties that return values of appropriate types.

Base class for and collections. [C#] //Instantiate a Workbook object by calling its empty constructor Workbook workbook = new Workbook("C:\\book1.xls"); //Retrieve a list of all custom document properties of the Excel file DocumentPropertyCollection customProperties = workbook.Worksheets.CustomDocumentProperties; //Accessng a custom document property by using the property index DocumentProperty customProperty1 = customProperties[3]; //Accessng a custom document property by using the property name DocumentProperty customProperty2 = customProperties["Owner"]; [VB.NET] 'Instantiate a Workbook object by calling its empty constructor Dim workbook As Workbook = New Workbook("C:\\book1.xls") 'Retrieve a list of all custom document properties of the Excel file Dim customProperties As DocumentPropertyCollection = workbook.Worksheets.CustomDocumentProperties 'Accessng a custom document property by using the property index Dim customProperty1 As DocumentProperty = customProperties(3) 'Accessng a custom document property by using the property name Dim customProperty2 As DocumentProperty = customProperties("Owner") Returns true if a property with the specified name exists in the collection. The case-insensitive name of the property. True if the property exists in the collection; false otherwise. Gets the index of a property by name. The case-insensitive name of the property. The zero based index. Negative value if not found. Removes a property with the specified name from the collection. The case-insensitive name of the property. Removes a property at the specified index. The zero based index. Removes all properties from the collection. Gets number of items in the collection. Returns a object. Returns a object by the name of the property.

Returns null if a property with the specified name is not found.

The case-insensitive name of the property to retrieve.
Returns a object by index. Zero-based index of the to retrieve. Returns a object. Returns a object by the name of the property.

The string names of the properties correspond to the names of the typed properties available from .

If you request a property that is not present in the document, but the name of the property is recognized as a valid built-in name, a new is created, added to the collection and returned. The newly created property is assigned a default value (empty string, zero, false or DateTime.MinValue depending on the type of the built-in property).

If you request a property that is not present in the document and the name is not recognized as a built-in name, a null is returned.

The case-insensitive name of the property to retrieve.
Gets or sets the document's language. Gets or sets the name of the document's author. Represents an estimate of the number of bytes in the document. Represents an estimate of the number of characters in the document. Represents an estimate of the number of characters (including spaces) in the document. Gets or sets the document comments. Gets or sets the category of the document. Gets or sets the content type of the document. Gets or sets the content status of the document. Gets or sets the company property. Gets or sets the hyperlinkbase property. Gets or sets date of the document creation in local timezone.

Aspose.Cells does not update this property when you modify the document.

Gets or sets the Universal time of the document creation.

Aspose.Cells does not update this property when you modify the document.

Gets or sets the document keywords. Gets or sets the date when the document was last printed in local timezone.

If the document was never printed, this property will return DateTime.MinValue.

Aspose.Cells does not update this property when you modify the document.

Gets or sets the Universal time when the document was last printed. Gets or sets the name of the last author.

Aspose.Cells does not update this property when you modify the document.

Gets or sets the time of the last save in local timezone.

Aspose.Cells does not update this property when you modify the document.

Gets or sets the universal time of the last save.

Aspose.Cells does not update this property when you modify the document.

Represents an estimate of the number of lines in the document.

Aspose.Cells does not update this property when you modify the document.

Gets or sets the manager property. Gets or sets the name of the application. Represents an estimate of the number of pages in the document. Represents an estimate of the number of paragraphs in the document. Gets or sets the document revision number.

Aspose.Cells does not update this property when you modify the document.

NOTE: This property is now obsolete. Instead, please use BuiltInDocumentPropertyCollection.Revision property, this property will be removed 12 months later since February 2017. Aspose apologizes for any inconvenience you may have experienced.
Gets or sets the document revision number.

Aspose.Cells does not update this property when you modify the document.

Gets or sets the subject of the document. Gets or sets the informational name of the document template. Gets or sets the title of the document. Gets or sets the total editing time in minutes. Represents the version number of the application that created the document. It's format is "00.0000",for example : 12.0000 Represents the version of the file. Indicates the display mode of the document thumbnail. Indicates whether hyperlinks in a document are up-to-date. Represents an estimate of the number of words in the document. A collection of custom document properties.

Each object represents a custom property of a container document.

[C#] //Instantiate a Workbook object Workbook workbook = new Workbook("C:\\book1.xls"); //Retrieve a list of all custom document properties of the Excel file CustomDocumentPropertyCollection customProperties = workbook.Worksheets.CustomDocumentProperties; [VB.NET] 'Instantiate a Workbook object Dim workbook As New Workbook("C:\book1.xls") 'Retrieve a list of all custom document properties of the Excel file Dim customProperties As CustomDocumentPropertyCollection = workbook.Worksheets.CustomDocumentProperties
Creates a new custom document property. Creates a new custom document property of the PropertyType.String data type. The name of the property. The value of the property. The newly created property object. Creates a new custom document property of the PropertyType.Number data type. The name of the property. The value of the property. The newly created property object. Creates a new custom document property of the PropertyType.DateTime data type. The name of the property. The value of the property. The newly created property object. Creates a new custom document property of the PropertyType.Boolean data type. The name of the property. The value of the property. The newly created property object. Creates a new custom document property of the PropertyType.Float data type. The name of the property. The value of the property. The newly created property object. Creates a new custom document property which links to content. The name of the property. The source of the property The newly created property object. Update custom document property value which links to content. Update custom document property value to linked range. Represents a custom or built-in document property. [C#] //Instantiate a Workbook object Workbook workbook = new Workbook("C:\\book1.xls"); //Retrieve a list of all custom document properties of the Excel file DocumentPropertyCollection customProperties = workbook.Worksheets.CustomDocumentProperties; //Accessng a custom document property by using the property index DocumentProperty customProperty1 = customProperties[3]; //Accessng a custom document property by using the property name DocumentProperty customProperty2 = customProperties["Owner"]; [VB.NET] 'Instantiate a Workbook object Dim workbook As Workbook = New Workbook("C:\\book1.xls") 'Retrieve a list of all custom document properties of the Excel file Dim customProperties As DocumentPropertyCollection = workbook.Worksheets.CustomDocumentProperties 'Accessng a custom document property by using the property index Dim customProperty1 As DocumentProperty = customProperties(3) 'Accessng a custom document property by using the property name Dim customProperty2 As DocumentProperty = customProperties("Owner") Returns the property value as a string.

Converts a number property using Object.ToString(). Converts a boolean property into "Y" or "N". Converts a date property into a short date string.

Returns the property value as integer. Throws an exception if the property type is not PropertyType.Number. Returns the property value as double. Throws an exception if the property type is not PropertyType.Float. Returns the property value as DateTime in local timezone.

Throws an exception if the property type is not PropertyType.Date.

Returns the property value as bool.

Throws an exception if the property type is not PropertyType.Boolean.

Returns the name of the property. Gets or sets the value of the property. Indicates whether this property is linked to content The linked content source. Gets the data type of the property. Returns true if this property does not have a name in the OLE2 storage and a unique name was generated only for the public API. Specifies data type of a document property. The property is a boolean value. The property is a date time value. The property is a floating number. The property is an integer number. The property is a string value. The property is a byte array. Represents the up/down bars in a chart. Gets the border . Gets the . Encryption Type. Only used by excel2003. We will encrypt 2007/2010 workbook using SHA AES the same as Excel does, and this EncryptionType will be ignored. Office 97/2000 compatible. Represents error bar of data series. [C#] Workbook workbook = new Workbook(); Cells cells = workbook.Worksheets[0].Cells; cells["a1"].PutValue(2); cells["a2"].PutValue(5); cells["a3"].PutValue(3); cells["a4"].PutValue(6); cells["b1"].PutValue(4); cells["b2"].PutValue(3); cells["b3"].PutValue(6); cells["b4"].PutValue(7); cells["C1"].PutValue("Q1"); cells["C2"].PutValue("Q2"); cells["C3"].PutValue("Y1"); cells["C4"].PutValue("Y2"); int chartIndex = excel.Worksheets[0].Charts.Add(ChartType.Column, 11, 0, 27, 10); Chart chart = excel.Worksheets[0].Charts[chartIndex]; chart.NSeries.Add("A1:B4", true); chart.NSeries.CategoryData = "C1:C4"; for(int i = 0; i < chart.NSeries.Count; i ++) { ASeries aseries = chart.NSeries[i]; aseries.YErrorBar.DisplayType = ErrorBarDisplayType.Minus; aseries.YErrorBar.Type = ErrorBarType.FixedValue; aseries.YErrorBar.Amount = 5; } [Visual Basic] Dim workbook As Workbook = New Workbook() Dim cells As Cells = workbook.Worksheets(0).Cells cells("a1").PutValue(2) cells("a2").PutValue(5) cells("a3").PutValue(3) cells("a4").PutValue(6) cells("b1").PutValue(4) cells("b2").PutValue(3) cells("b3").PutValue(6) cells("b4").PutValue(7) cells("C1").PutValue("Q1") cells("C2").PutValue("Q2") cells("C3").PutValue("Y1") cells("C4").PutValue("Y2") Dim chartIndex As Integer = excel.Worksheets(0).Charts.Add(ChartType.Column,11,0,27,10) Dim chart As Chart = excel.Worksheets(0).Charts(chartIndex) chart.NSeries.Add("A1:B4", True) chart.NSeries.CategoryData = "C1:C4" Dim i As Integer For i = 0 To chart.NSeries.Count - 1 Dim aseries As ASeries = chart.NSeries(i) aseries.YErrorBar.DisplayType = ErrorBarDisplayType.Minus aseries.YErrorBar.Type = ErrorBarType.FixedValue aseries.YErrorBar.Amount = 5 Next Encapsulates the object that represents the line format. [C#] //Applying a dotted line style on the lines of an NSeries chart.NSeries[0].Border.Style = LineType.Dot; chart.NSeries[0].Border.Color = Color.Red; //Applying a triangular marker style on the data markers of an NSeries chart.NSeries[0].MarkerStyle = ChartMarkerType.Triangle; //Setting the weight of all lines in an NSeries to medium chart.NSeries[1].Border.Weight = WeightType.MediumLine; chart.NSeries[1].Border.Color = Color.Green; [Visual Basic] 'Applying a dotted line style on the lines of an NSeries chart.NSeries(0).Border.Style = LineType.Dot chart.NSeries(0).Border.Color = Color.Red 'Applying a triangular marker style on the data markers of an NSeries chart.NSeries(0).MarkerStyle = ChartMarkerType.Triangle 'Setting the weight of all lines in an NSeries to medium chart.NSeries(1).Border.Weight = WeightType.MediumLine Specifies the compound line type Specifies the dash line type Specifies the ending caps. Specifies the joining caps. Specifies an arrowhead for the begin of a line. Specifies an arrowhead for the end of a line. Specifies the length of the arrowhead for the begin of a line. Specifies the length of the arrowhead for the end of a line. Specifies the width of the arrowhead for the begin of a line. Specifies the width of the arrowhead for the end of a line. Gets and sets the theme color. If the foreground color is not a theme color, NULL will be returned. Represents the of the line. Returns or sets the degree of transparency of the line as a value from 0.0 (opaque) through 1.0 (clear). Represents the style of the line. Gets or sets the of the line. Gets or sets the weight of the line in unit of points. Gets or sets the weight of the line in unit of pixels. Gets or sets format type. Indicates whether the color of line is auotmatic assigned. Represents whether the line is visible. Indicates whether this line style is auto assigned. Represents gradient fill. Represents error bar amount type. [C#] //Sets custom error bar type aseries.YErrorBar.Type = ErrorBarType.InnerCustom; aseries.YErrorBar.PlusValue = "=Sheet1!A1"; aseries.YErrorBar.MinusValue = "=Sheet1!A2"; [Visual Basic] 'Sets custom error bar type aseries.YErrorBar.Type = ErrorBarType.InnerCustom aseries.YErrorBar.PlusValue = "=Sheet1!A1" aseries.YErrorBar.MinusValue = "=Sheet1!A2" Represents error bar display type. Represents amount of error bar. The amount must be greater than and equal to zero. Indicates if formatting error bars with a T-top. Represents positive error amount when error bar type is Custom. Represents negative error amount when error bar type is Custom. Represents error bar amount type. InnerCustom value type. Fixed value type. Percentage type Standard deviation type. Standard error type. Represents custom exception type code. Invalid chart setting. Invalid data type setting. Invalid data validation setting. Invalid data validation setting. Invalid file format. Invalid formula. Invalid data. Invalid operator. Incorrect password. License related errors. Out of MS Excel limitation error. Invalid page setup setting. Invalid pivotTable setting. Invalid drawing object setting. Invalid sparkline object setting. Invalid worksheet name. Invalid worksheet type. The process is interrupted. The file is invalid. Permission is required to open this file. Unsupported feature. Unsupported stream to be opened. Files contains some undisclosed information. Represents an external link in a workbook. [C#] //Open a file with external links Workbook workbook = new Workbook("d:\\book1.xls"); //Get External Link ExternalLink externalLink = workbook.Worksheets.ExternalLinks[0]; //Change External Link's Data Source externalLink.DataSource = "d:\\link.xls"; [VB.NET] 'Open a file with external links Dim workbook As New Workbook("d:\book1.xls") 'Get External Link Dim externalLink As ExternalLink = workbook.Worksheets.ExternalLinks(0) 'Change External Link's Data Source externalLink.DataSource = "d:\link.xls" Adds an external name. The text of the external name. If the external name belongs to a worksheet, the text should be as Sheet1!Text. The referTo of the external name. It must be a cell or the range. Gets the type of external link. Represents stored data source of the external link. Represents data source of the external link. Indicates whether this external link is referenced by others. Indicates whether this external link is visible in MS Excel. Represents external links collection in a workbook. [C#] //Open a file with external links Workbook workbook = new Workbook("d:\\book1.xls"); //Change external link data source workbook.Worksheets.ExternalLinks[0].DataSource = "d:\\link.xls"; [Visual Basic] 'Open a file with external links Dim workbook As Workbook = New Workbook("d:\\book1.xls") 'Change external link data source workbook.Worksheets.ExternalLinks(0).DataSource = "d:\\link.xls" Adds an external link. The external file name. All sheet names of the external file. The position of the external name in this list. Add an external link . The directory type of the file name. the file name. All sheet names of the external file. The position of the external name in this list. Gets the number of elements actually contained in the collection. Gets the element at the specified index. The zero based index of the element. The element at the specified index. Enumerates spreadsheet file format types Represents a CSV file. Represents an xlsx file. Represents an xlsm file which enable macros. Represents a template xltx file. Represents a macro-enabled template xltm file. Represents a addinMacro-enabled template xltm file. Represents a TSV(tab-separated values file) file. Represents a tab delimited text file, same with . Represents a html file. Represents a mhtml file. Represents a ods file. Represents an Excel97-2003 xls file. Represents an Excel 2003 xml file. Represents an xlsb file. Represents unrecognized format, cannot be loaded. Represents a Pdf file. Represents an XPS file. Represents a TIFF file. Represents a svg file. Represents an Excel95 xls file. Only support data and style.Shapes and charts are not supported. Represents an Excel4.0 xls file. The file format is not supported Represents an Excel3.0 xls file. The file format is not supported Represents an Excel2.1 xls file. The file format is not supported Represents a pptx file. The file format is not supported Only for detecting file type. Represents a docx file. The file format is not supported Only for detecting file type. Data Interchange Format. Represents a doc file. The file format is not supported Only for detecting file type. Represents a ppt file. The file format is not supported Only for detecting file type. Represents a email file. The file format is not supported Only for detecting file type. Represents the MS Equation 3.0 object. The file format is not supported Only for detecting file type. Represents the embedded native object. The file format is not supported Only for detecting file type. Represents MS Visio VSD binary format. The file format is not supported Only for detecting file type. MS Visio 2013 VSDX file format. The file format is not supported Only for detecting file type. Represents a docm file. The file format is not supported Only for detecting file type. Represents a dotx file. The file format is not supported Only for detecting file type. Represents a dotm file. The file format is not supported Only for detecting file type. Represents a pptm file. The file format is not supported Only for detecting file type. Represents a Potx file. The file format is not supported Only for detecting file type. Represents a Potm file. The file format is not supported Only for detecting file type. Represents a ppsx file. The file format is not supported Only for detecting file type. Represents a ppsm file. The file format is not supported Only for detecting file type. Represents office open xml file(such as xlsx, docx,pptx, etc). The file format is not supported Only for detecting file type. If the office open xml file is encrypted, it could not be detected as xlsx ,docx, pptx,etc. Represents a odt file. The file format is not supported Only for detecting file type. Represents a odp file. The file format is not supported Only for detecting file type. Represents a odf file. The file format is not supported Only for detecting file type. Represents a odg file. The file format is not supported Only for detecting file type. Represents an simple xml file. The file format is not supported Only for detecting file type. Represents a template xlt file. Represents a odt file. The file format is not supported Only for detecting file type. Represents a bmp file. The file format is not supported Only for detecting file type. Represents a ods file. Represents Numbers file format by Apple Inc Represents markdown document. Represents embedded graph chart. Represents OpenDocument Flat XML Spreadsheet (.fods) file format. Represents StarOffice Calc Spreadsheet (.sxc) file format. Represents a otp file. The file format is not supported. Only for detecting file type. Represents Numbers 3.5 file format since 2014 by Apple Inc The file format is not supported. Only for detecting file type. Enumerates shape fill pattern types. Represents no background. Represents solid pattern. Represents 5% gray pattern. Represents 10% gray pattern. Represents 20% gray pattern. Represents 30% gray pattern. Represents 40% gray pattern. Represents 50% gray pattern. Represents 60% gray pattern. Represents 70% gray pattern. Represents 75% gray pattern. Represents 80% gray pattern. Represents 90% gray pattern. Represents 25% gray pattern. Represents light downward diagonal pattern. Represents light upward diagonal pattern. Represents dark downward diagonal pattern. Represents dark upward diagonal pattern. Represents wide downward diagonal pattern. Represents wide upward diagonal pattern. Represents light vertical pattern. Represents light horizontal pattern. Represents narrow vertical pattern. Represents narrow horizontal pattern. Represents dark vertical pattern. Represents dark horizontal pattern. Represents dashed downward diagonal pattern. Represents dashed upward diagonal pattern. Represents dashed vertical pattern. Represents dashed horizontal pattern. Represents small confetti pattern. Represents large confetti pattern. Represents zig zag pattern. Represents wave pattern. Represents diagonal brick pattern. Represents horizontal brick pattern. Represents weave pattern. Represents plaid pattern. Represents divot pattern. Represents dotted grid pattern. Represents dotted diamond pattern. Represents shingle pattern. Represents trellis pattern. Represents sphere pattern. Represents small grid pattern. Represents large grid pattern. Represents small checker board pattern. Represents large checker board pattern. Represents outlined diamond pattern. Represents solid diamond pattern. Represents unknown pattern. Represents a filter for a single column. The Filter object is a member of the Filters collection Indicates whether the AutoFilter button for this column is visible. Indicates whether the AutoFilter button for this column is visible. NOTE: This member is now obsolete. Instead, please use FilterColumn.IsDropdownVisible to check whether the AutoFilter button for this column is visible. This property will be removed 12 months later since September 2020. Aspose apologizes for any inconvenience you may have experienced. Custom Filter operator type. Represents LessOrEqual operator. Represents LessThan operator. Represents Equal operator. Represents GreaterThan operator. Represents NotEqual operator. Represents GreaterOrEqual operator. Represents no comparison. Begins with the text. Ends with the text. Contains the text. Not contains the text. A collection of Filter objects that represents all the filters in an autofiltered range. Returns a single Filter object from a collection. Gets object at the special field. The integer offset of the field on which you want to base the filter (from the left of the list; the leftmost field is field 0). Returns object. Encapsulates the object that represents the floor of a 3-D chart. [C#] //Instantiate the License class Aspose.Cells.License license = new Aspose.Cells.License(); //Pass only the name of the license file embedded in the assembly license.SetLicense("Aspose.Cells.lic"); //Instantiate the workbook object Workbook workbook = new Workbook(); //Get cells collection Cells cells = workbook.Worksheets[0].Cells; //Put values in cells cells["A1"].PutValue(1); cells["A2"].PutValue(2); cells["A3"].PutValue(3); //get charts colletion Charts charts = workbook.Worksheets[0].Charts; //add a new chart int index = charts.Add(ChartType.Column3DStacked, 5, 0, 15, 5); //get the newly added chart Chart chart = charts[index]; //set charts nseries chart.NSeries.Add("A1:A3", true); //Show data labels chart.NSeries[0].DataLabels.IsValueShown = true; //Get chart's floor Floor floor = chart.Floor; //set floor's border as red floor.Border.Color = System.Drawing.Color.Red; //set fill format floor.FillFormat.SetPresetColorGradient(GradientPresetType.CalmWater, GradientStyleType.DiagonalDown, 2); //save the file workbook.Save(@"d:\dest.xls"); [VB.NET] 'Instantiate the License class Dim license As New Aspose.Cells.License() 'Pass only the name of the license file embedded in the assembly license.SetLicense("Aspose.Cells.lic") 'Instantiate the workbook object Dim workbook As New Workbook() 'Get cells collection Dim cells As Cells = workbook.Worksheets(0).Cells 'Put values in cells cells("A1").PutValue(1) cells("A2").PutValue(2) cells("A3").PutValue(3) 'get charts colletion Dim charts As Charts = workbook.Worksheets(0).Charts 'add a new chart Dim index As Integer = charts.Add(ChartType.Column3DStacked, 5, 0, 15, 5) 'get the newly added chart Dim chart As Chart = charts(index) 'set charts nseries chart.NSeries.Add("A1:A3", True) 'Show data labels chart.NSeries(0).DataLabels.IsValueShown = True 'Get chart's floor Dim floor As Floor = chart.Floor 'set floor's border as red floor.Border.Color = System.Drawing.Color.Red 'set fill format floor.FillFormat.SetPresetColorGradient(GradientPresetType.CalmWater, GradientStyleType.DiagonalDown, 2) 'save the file workbook.Save("d:\dest.xls") Gets or sets the border . Enumerates the font underline types. Represents no underline. Represents single underline. Represents double underline. Represents single accounting underline. Represents double accounting underline. Represents Dashed Underline Represents Thick Dash-Dot-Dot Underline Represents Thick Dash-Dot Underline Represents Thick Dashed Underline Represents Long Dashed Underline Represents Thick Long Dashed Underline Represents Dash-Dot Underline Represents Dash-Dot-Dot Underline Represents Dotted Underline Represents Thick Dotted Underline Represents Thick Underline Represents Wave Underline Represents Double Wave Underline Represents Heavy Wave Underline Represents Underline Non-Space Characters Only Describe the AboveAverage conditional formatting rule. This conditional formatting rule highlights cells that are above or below the average for all values in the range. Get or set the flag indicating whether the rule is an "above average" rule. 'true' indicates 'above average'. Default value is true. Get or set the flag indicating whether the 'aboveAverage' and 'belowAverage' criteria is inclusive of the average itself, or exclusive of that value. 'true' indicates to include the average value in the criteria. Default value is false. Get or set the number of standard deviations to include above or below the average in the conditional formatting rule. The input value must between 0 and 3 (include 0 and 3). Setting this value to 0 means stdDev is not set. The default value is 0. Represents conditional formatting. The FormatConditions can contain up to three conditional formats. [C#] //Adds an empty conditional formatting int index = sheet.ConditionalFormattings.Add(); FormatConditionCollection fcs = sheet.ConditionalFormattings[index]; //Sets the conditional format range. CllArea ca = new CellArea(); ca.StartRow = 0; ca.EndRow = 0; ca.StartColumn = 0; ca.EndColumn = 0; fcs.AddArea(ca); ca = new CellArea(); ca.StartRow = 1; ca.EndRow = 1; ca.StartColumn = 1; ca.EndColumn = 1; fcs.AddArea(ca); //Adds condition. int conditionIndex = fcs.AddCondition(FormatConditionType.CellValue, OperatorType.Between, "=A2", "100"); //Adds condition. int conditionIndex2 = fcs.AddCondition(FormatConditionType.CellValue, OperatorType.Between, "50", "100"); //Sets the background color. FormatCondition fc = fcs[conditionIndex]; fc.Style.BackgroundColor = Color.Red; //Saving the Excel file workbook.Save("C:\\output.xls"); [Visual Basic] 'Instantiating a Workbook object Dim workbook As Workbook = New Workbook() Dim sheet As Worksheet = workbook.Worksheets(0) ' Adds an empty conditional formatting Dim index As Integer = sheet.ConditionalFormattings.Add() Dim fcs As FormatConditionCollection = sheet.ConditionalFormattings(index) 'Sets the conditional format range. Dim ca As CellArea = New CellArea() ca.StartRow = 0 ca.EndRow = 0 ca.StartColumn = 0 ca.EndColumn = 0 fcs.AddArea(ca) ca = New CellArea() ca.StartRow = 1 ca.EndRow = 1 ca.StartColumn = 1 ca.EndColumn = 1 fcs.AddArea(ca) 'Adds condition. Dim conditionIndex As Integer = fcs.AddCondition(FormatConditionType.CellValue, OperatorType.Between, "=A2", "100") 'Adds condition. Dim conditionIndex2 As Integer = fcs.AddCondition(FormatConditionType.CellValue, OperatorType.Between, "50", "100") 'Sets the background color. Dim fc As FormatCondition = fcs(conditionIndex) fc.Style.BackgroundColor = Color.Red 'Saving the Excel file workbook.Save("C:\output.xls") Adds a formatting condition and effected cell rang to the FormatConditions The FormatConditions can contain up to three conditional formats. References to the other sheets are not allowed in the formulas of conditional formatting. Conditional formatted cell range. Type of conditional formatting.It could be one of the members of FormatConditionType. Comparison operator.It could be one of the members of OperatorType. The value or expression associated with conditional formatting. The value or expression associated with conditional formatting [0]:Formatting condition object index;[1] Effected cell rang index. Adds a conditional formatted cell range. Conditional formatted cell range. Conditional formatted cell rang index. Adds a formatting condition. of conditional formatting.It could be one of the members of FormatConditionType. The comparison .It could be one of the members of OperatorType. The value or expression associated with conditional formatting. If the input value starts with '=', then it will be taken as formula. Otherwise it will be taken as plain value(text, number, bool). For text value that starts with '=', user may input it as formula in format: "=\"=...\"". The value or expression associated with conditional formatting. The input format is same with formula1 Formatting condition object index; Add a format condition. Format condition type. Formatting condition object index; Gets the conditional formatted cell range by index. the index of the conditional formatted cell range. the conditional formatted cell range Removes conditional formatted cell range by index. The index of the conditional formatted cell range to be removed. Remove conditional formatting int the range. The startRow of the range. The startColumn of the range. The number of rows of the range. The number of columns of the range. Returns TRUE, this FormatCondtionCollection should be removed. Removes the formatting condition by index. The index of the formatting condition to be removed. Gets the count of the conditions. Gets count of conditionally formatted ranges. Gets the formatting condition by index. the index of the formatting condition to return. the formatting condition Conditional format rule type. This conditional formatting rule compares a cell value to a formula calculated result, using an operator. This conditional formatting rule contains a formula to evaluate. When the formula result is true, the cell is highlighted. This conditional formatting rule creates a gradated color scale on the cells. This conditional formatting rule displays a gradated data bar in the range of cells. This conditional formatting rule applies icons to cells according to their values. This conditional formatting rule highlights cells whose values fall in the top N or bottom N bracket, as specified. This conditional formatting rule highlights unique values in the range. This conditional formatting rule highlights duplicated values. This conditional formatting rule highlights cells containing given text. Equivalent to using the SEARCH() sheet function to determine whether the cell contains the text. This conditional formatting rule highlights cells that are not blank. Equivalent of using LEN(TRIM()). This means that if the cell contains only characters that TRIM() would remove, then it is considered blank. An empty cell is also considered blank. This conditional formatting rule highlights cells in the range that begin with the given text. Equivalent to using the LEFT() sheet function and comparing values. This conditional formatting rule highlights cells ending with given text. Equivalent to using the RIGHT() sheet function and comparing values. This conditional formatting rule highlights cells that are completely blank. Equivalent of using LEN(TRIM()). This means that if the cell contains only characters that TRIM() would remove, then it is considered blank. An empty cell is also considered blank. This conditional formatting rule highlights cells that are not blank. Equivalent of using LEN(TRIM()). This means that if the cell contains only characters that TRIM() would remove, then it is considered blank. An empty cell is also considered blank. This conditional formatting rule highlights cells with formula errors. Equivalent to using ISERROR() sheet function to determine if there is a formula error. This conditional formatting rule highlights cells without formula errors. Equivalent to using ISERROR() sheet function to determine if there is a formula error. This conditional formatting rule highlights cells containing dates in the specified time period. The underlying value of the cell is evaluated, therefore the cell does not need to be formatted as a date to be evaluated. For example, with a cell containing the value 38913 the conditional format shall be applied if the rule requires a value of 7/14/2006. This conditional formatting rule highlights cells that are above or below the average for all values in the range. Represents the type of formatting applied to an object or a object. Represents automatic formatting type. Represents custom formatting type. Represents none formatting type. Represents the gradient color type for the specified fill. No gradient color One gradient color Preset gradient colors Two gradient colors Represents gradient preset color type. Brass preset color Calm Water preset color Chrome preset color Chrome II preset color Daybreak preset color Desert preset color Early Sunset preset color Fire preset color Fog preset color Gold preset color Gold II preset color Horizon preset color Late Sunset preset color Mahogany preset color Moss preset color Nightfall preset color Ocean preset color Parchment preset color Peacock preset color Rainbow preset color Rainbow II preset color Sapphire preset color Silver preset color Wheat preset color Unknown preset color. Only for the preset color (which is not same as any known preset color) in the template workbook. Represents gradient shading style. Diagonal down shading style Diagonal up shading style From center shading style From corner shading style Horizontal shading style Vertical shading style Unknown shading style.Only for the shading style(which is not for any member of the GradientStyleType) in the template file. Encapsulates the object that represents a groupbox in a spreadsheet. [C#] //Instantiate a new Workbook. Workbook excelbook = new Workbook(); //Add a group box to the first worksheet. Aspose.Cells.GroupBox box = excelbook.Worksheets[0].Shapes.AddGroupBox(1, 0, 1, 0, 300, 250); //Set the caption of the group box. box.Text = "Age Groups"; box.Placement = PlacementType.FreeFloating; //Make it 2-D box. box.Shadow = false; //Add a radio button. Aspose.Cells.RadioButton radio1 = excelbook.Worksheets[0].Shapes.AddRadioButton(3, 0, 2, 0, 30, 110); //Set its text string. radio1.Text = "20-29"; //Set A1 cell as a linked cell for the radio button. radio1.LinkedCell = "A1"; //Make the radio button 3-D. radio1.Shadow = true; //Set the foreground color of the radio button. radio1.FillFormat.ForeColor = Color.LightGreen; //Set the line style of the radio button. radio1.LineFormat.Style = MsoLineStyle.ThickThin; //Set the weight of the radio button. radio1.LineFormat.Weight = 4; //Set the line color of the radio button. radio1.LineFormat.ForeColor = Color.Blue; //Set the dash style of the radio button. radio1.LineFormat.DashStyle = MsoLineDashStyle.Solid; //Make the line format visible. radio1.LineFormat.IsVisible = true; //Make the fill format visible. radio1.FillFormat.IsVisible = true; //Add another radio button. Aspose.Cells.RadioButton radio2 = excelbook.Worksheets[0].Shapes.AddRadioButton(6, 0, 2, 0, 30, 110); //Set its text string. radio2.Text = "30-39"; //Set A1 cell as a linked cell for the radio button. radio2.LinkedCell = "A1"; //Make the radio button 3-D. radio2.Shadow = true; //Set the foreground color of the radio button. radio2.FillFormat.ForeColor = Color.LightGreen; //Set the line style of the radio button. radio2.LineFormat.Style = MsoLineStyle.ThickThin; //Set the weight of the radio button. radio2.LineFormat.Weight = 4; //Set the line color of the radio button. radio2.LineFormat.ForeColor = Color.Blue; //Set the dash style of the radio button. radio2.LineFormat.DashStyle = MsoLineDashStyle.Solid; //Make the line format visible. radio2.LineFormat.IsVisible = true; //Make the fill format visible. radio2.FillFormat.IsVisible = true; //Add another radio button. Aspose.Cells.RadioButton radio3 = excelbook.Worksheets[0].Shapes.AddRadioButton(9, 0, 2, 0, 30, 110); //Set its text string. radio3.Text = "40-49"; //Set A1 cell as a linked cell for the radio button. radio3.LinkedCell = "A1"; //Make the radio button 3-D. radio3.Shadow = true; //Set the foreground color of the radio button. radio3.FillFormat.ForeColor = Color.LightGreen; //Set the line style of the radio button. radio3.LineFormat.Style = MsoLineStyle.ThickThin; //Set the weight of the radio button. radio3.LineFormat.Weight = 4; //Set the line color of the radio button. radio3.LineFormat.ForeColor = Color.Blue; //Set the dash style of the radio button. radio3.LineFormat.DashStyle = MsoLineDashStyle.Solid; //Make the line format visible. radio3.LineFormat.IsVisible = true; //Make the fill format visible. radio3.FillFormat.IsVisible = true; //Get the shapes. Aspose.Cells.Shape[] shapeobjects = new Aspose.Cells.Shape[] { box, radio1, radio2, radio3 }; //Group the shapes. Aspose.Cells.GroupShape group = excelbook.Worksheets[0].Shapes.Group(shapeobjects); //Save the excel file. excelbook.Save("d:\\test\\groupshapes.xls"); [VB.NET] 'Instantiate a new Workbook. Dim excelbook As Workbook = New Workbook() 'Add a group box to the first worksheet. Dim box As Aspose.Cells.GroupBox = excelbook.Worksheets(0).Shapes.AddGroupBox(1, 0, 1, 0, 300, 250) 'Set the caption of the group box. box.Text = "Age Groups" box.Placement = PlacementType.FreeFloating 'Make it 2-D box. box.Shadow = False 'Add a radio button. Dim radio1 As Aspose.Cells.RadioButton = excelbook.Worksheets(0).Shapes.AddRadioButton(3, 0, 2, 0, 30, 110) 'Set its text string. radio1.Text = "20-29" 'Set A1 cell as a linked cell for the radio button. radio1.LinkedCell = "A1" 'Make the radio button 3-D. radio1.Shadow = True 'Set the foreground color of the radio button. radio1.FillFormat.ForeColor = Color.LightGreen 'Set the line style of the radio button. radio1.LineFormat.Style = MsoLineStyle.ThickThin 'Set the weight of the radio button. radio1.LineFormat.Weight = 4 'Set the line color of the radio button. radio1.LineFormat.ForeColor = Color.Blue 'Set the dash style of the radio button. radio1.LineFormat.DashStyle = MsoLineDashStyle.Solid 'Make the line format visible. radio1.LineFormat.IsVisible = True 'Make the fill format visible. radio1.FillFormat.IsVisible = True 'Add another radio button. Dim radio2 As Aspose.Cells.RadioButton = excelbook.Worksheets(0).Shapes.AddRadioButton(6, 0, 2, 0, 30, 110) 'Set its text string. radio2.Text = "30-39" 'Set A1 cell as a linked cell for the radio button. radio2.LinkedCell = "A1" 'Make the radio button 3-D. radio2.Shadow = True 'Set the foreground color of the radio button. radio2.FillFormat.ForeColor = Color.LightGreen 'Set the line style of the radio button. radio2.LineFormat.Style = MsoLineStyle.ThickThin 'Set the weight of the radio button. radio2.LineFormat.Weight = 4 'Set the line color of the radio button. radio2.LineFormat.ForeColor = Color.Blue 'Set the dash style of the radio button. radio2.LineFormat.DashStyle = MsoLineDashStyle.Solid 'Make the line format visible. radio2.LineFormat.IsVisible = True 'Make the fill format visible. radio2.FillFormat.IsVisible = True 'Add another radio button. Dim radio3 As Aspose.Cells.RadioButton = excelbook.Worksheets(0).Shapes.AddRadioButton(9, 0, 2, 0, 30, 110) 'Set its text string. radio3.Text = "40-49" 'Set A1 cell as a linked cell for the radio button. radio3.LinkedCell = "A1" 'Make the radio button 3-D. radio3.Shadow = True 'Set the foreground color of the radio button. radio3.FillFormat.ForeColor = Color.LightGreen 'Set the line style of the radio button. radio3.LineFormat.Style = MsoLineStyle.ThickThin 'Set the weight of the radio button. radio3.LineFormat.Weight = 4 'Set the line color of the radio button. radio3.LineFormat.ForeColor = Color.Blue 'Set the dash style of the radio button. radio3.LineFormat.DashStyle = MsoLineDashStyle.Solid 'Make the line format visible. radio3.LineFormat.IsVisible = True 'Make the fill format visible. radio3.FillFormat.IsVisible = True 'Get the shapes. Dim shapeobjects() As Aspose.Cells.Shape = New Aspose.Cells.Shape() {box, radio1, radio2, radio3} 'Group the shapes. Dim group As Aspose.Cells.GroupShape = excelbook.Worksheets(0).Shapes.Group(shapeobjects) 'Save the excel file. excelbook.Save("d:\test\groupshapes.xls") Indicates whether the groupbox has shadow. Represents the group shape which contains the individual shapes. [C#] //Instantiate a new Workbook. Workbook excelbook = new Workbook(); //Add a group box to the first worksheet. Aspose.Cells.GroupBox box = excelbook.Worksheets[0].Shapes.AddGroupBox(1, 0, 1, 0, 300, 250); //Set the caption of the group box. box.Text = "Age Groups"; box.Placement = PlacementType.FreeFloating; //Make it 2-D box. box.Shadow = false; //Add a radio button. Aspose.Cells.RadioButton radio1 = excelbook.Worksheets[0].Shapes.AddRadioButton(3, 0, 2, 0, 30, 110); //Set its text string. radio1.Text = "20-29"; //Set A1 cell as a linked cell for the radio button. radio1.LinkedCell = "A1"; //Make the radio button 3-D. radio1.Shadow = true; //Set the foreground color of the radio button. radio1.FillFormat.ForeColor = Color.LightGreen; //Set the line style of the radio button. radio1.LineFormat.Style = MsoLineStyle.ThickThin; //Set the weight of the radio button. radio1.LineFormat.Weight = 4; //Set the line color of the radio button. radio1.LineFormat.ForeColor = Color.Blue; //Set the dash style of the radio button. radio1.LineFormat.DashStyle = MsoLineDashStyle.Solid; //Make the line format visible. radio1.LineFormat.IsVisible = true; //Make the fill format visible. radio1.FillFormat.IsVisible = true; //Add another radio button. Aspose.Cells.RadioButton radio2 = excelbook.Worksheets[0].Shapes.AddRadioButton(6, 0, 2, 0, 30, 110); //Set its text string. radio2.Text = "30-39"; //Set A1 cell as a linked cell for the radio button. radio2.LinkedCell = "A1"; //Make the radio button 3-D. radio2.Shadow = true; //Set the foreground color of the radio button. radio2.FillFormat.ForeColor = Color.LightGreen; //Set the line style of the radio button. radio2.LineFormat.Style = MsoLineStyle.ThickThin; //Set the weight of the radio button. radio2.LineFormat.Weight = 4; //Set the line color of the radio button. radio2.LineFormat.ForeColor = Color.Blue; //Set the dash style of the radio button. radio2.LineFormat.DashStyle = MsoLineDashStyle.Solid; //Make the line format visible. radio2.LineFormat.IsVisible = true; //Make the fill format visible. radio2.FillFormat.IsVisible = true; //Add another radio button. Aspose.Cells.RadioButton radio3 = excelbook.Worksheets[0].Shapes.AddRadioButton(9, 0, 2, 0, 30, 110); //Set its text string. radio3.Text = "40-49"; //Set A1 cell as a linked cell for the radio button. radio3.LinkedCell = "A1"; //Make the radio button 3-D. radio3.Shadow = true; //Set the foreground color of the radio button. radio3.FillFormat.ForeColor = Color.LightGreen; //Set the line style of the radio button. radio3.LineFormat.Style = MsoLineStyle.ThickThin; //Set the weight of the radio button. radio3.LineFormat.Weight = 4; //Set the line color of the radio button. radio3.LineFormat.ForeColor = Color.Blue; //Set the dash style of the radio button. radio3.LineFormat.DashStyle = MsoLineDashStyle.Solid; //Make the line format visible. radio3.LineFormat.IsVisible = true; //Make the fill format visible. radio3.FillFormat.IsVisible = true; //Get the shapes. Aspose.Cells.Shape[] shapeobjects = new Aspose.Cells.Shape[] { box, radio1, radio2, radio3 }; //Group the shapes. Aspose.Cells.GroupShape group = excelbook.Worksheets[0].Shapes.Group(shapeobjects); //Save the excel file. excelbook.Save("d:\\test\\groupshapes.xls"); [VB.NET] 'Instantiate a new Workbook. Dim excelbook As Workbook = New Workbook() 'Add a group box to the first worksheet. Dim box As Aspose.Cells.GroupBox = excelbook.Worksheets(0).Shapes.AddGroupBox(1, 0, 1, 0, 300, 250) 'Set the caption of the group box. box.Text = "Age Groups" box.Placement = PlacementType.FreeFloating 'Make it 2-D box. box.Shadow = False 'Add a radio button. Dim radio1 As Aspose.Cells.RadioButton = excelbook.Worksheets(0).Shapes.AddRadioButton(3, 0, 2, 0, 30, 110) 'Set its text string. radio1.Text = "20-29" 'Set A1 cell as a linked cell for the radio button. radio1.LinkedCell = "A1" 'Make the radio button 3-D. radio1.Shadow = True 'Set the foreground color of the radio button. radio1.FillFormat.ForeColor = Color.LightGreen 'Set the line style of the radio button. radio1.LineFormat.Style = MsoLineStyle.ThickThin 'Set the weight of the radio button. radio1.LineFormat.Weight = 4 'Set the line color of the radio button. radio1.LineFormat.ForeColor = Color.Blue 'Set the dash style of the radio button. radio1.LineFormat.DashStyle = MsoLineDashStyle.Solid 'Make the line format visible. radio1.LineFormat.IsVisible = True 'Make the fill format visible. radio1.FillFormat.IsVisible = True 'Add another radio button. Dim radio2 As Aspose.Cells.RadioButton = excelbook.Worksheets(0).Shapes.AddRadioButton(6, 0, 2, 0, 30, 110) 'Set its text string. radio2.Text = "30-39" 'Set A1 cell as a linked cell for the radio button. radio2.LinkedCell = "A1" 'Make the radio button 3-D. radio2.Shadow = True 'Set the foreground color of the radio button. radio2.FillFormat.ForeColor = Color.LightGreen 'Set the line style of the radio button. radio2.LineFormat.Style = MsoLineStyle.ThickThin 'Set the weight of the radio button. radio2.LineFormat.Weight = 4 'Set the line color of the radio button. radio2.LineFormat.ForeColor = Color.Blue 'Set the dash style of the radio button. radio2.LineFormat.DashStyle = MsoLineDashStyle.Solid 'Make the line format visible. radio2.LineFormat.IsVisible = True 'Make the fill format visible. radio2.FillFormat.IsVisible = True 'Add another radio button. Dim radio3 As Aspose.Cells.RadioButton = excelbook.Worksheets(0).Shapes.AddRadioButton(9, 0, 2, 0, 30, 110) 'Set its text string. radio3.Text = "40-49" 'Set A1 cell as a linked cell for the radio button. radio3.LinkedCell = "A1" 'Make the radio button 3-D. radio3.Shadow = True 'Set the foreground color of the radio button. radio3.FillFormat.ForeColor = Color.LightGreen 'Set the line style of the radio button. radio3.LineFormat.Style = MsoLineStyle.ThickThin 'Set the weight of the radio button. radio3.LineFormat.Weight = 4 'Set the line color of the radio button. radio3.LineFormat.ForeColor = Color.Blue 'Set the dash style of the radio button. radio3.LineFormat.DashStyle = MsoLineDashStyle.Solid 'Make the line format visible. radio3.LineFormat.IsVisible = True 'Make the fill format visible. radio3.FillFormat.IsVisible = True 'Get the shapes. Dim shapeobjects() As Aspose.Cells.Shape = New Aspose.Cells.Shape() {box, radio1, radio2, radio3} 'Group the shapes. Dim group As Aspose.Cells.GroupShape = excelbook.Worksheets(0).Shapes.Group(shapeobjects) 'Save the excel file. excelbook.Save("d:\test\groupshapes.xls") Ungroups the shape items. If the group shape is grouped by another group shape,nothing will be done. Gets the shapes grouped by this shape. Gets the child shape by index. the child shape index. return the child shape. Provides helper functions. Get width of text in unit of points. The text. The font of the text. The scaling of text. Get the release version. The release version. Gets whether the file is protected by Microsoft Rights Management Server. The file name. This member is now obsolete. Instead, please use property. This property will be removed 12 months later since December 2013. Aspose apologizes for any inconvenience you may have experienced. Gets whether the file is protected by Microsoft Rights Management Server. The file stream. This member is now obsolete. Instead, please use property. This property will be removed 12 months later since December 2013. Aspose apologizes for any inconvenience you may have experienced. Gets the cell row and column indexes according to its name. Name of cell. Output row index Output column index Gets cell name according to its row and column indexes. Row index. Column index. Name of cell. Gets column name according to column index. Column index. Name of column. Gets column index according to column name. Column name. Column index. Gets row name according to row index. Row index. Name of row. Gets row index according to row name. Row name. Row index. Converts the r1c1 formula of the cell to A1 formula. The r1c1 formula. The row index of the cell. The column index of the cell. The A1 formula. Converts A1 formula of the cell to the r1c1 formula. The A1 formula. The row index of the cell. The column index of the cell. The R1C1 formula. Convert the double value to the date time value. The double value. Date 1904 system. Convert the date time to double value. The date time. Date 1904 system. Detects the file load format. The file name. The load format. This member is now obsolete. Instead, please use property. This property will be removed 12 months later since December 2013. Aspose apologizes for any inconvenience you may have experienced. Detects the file load format. The stream. This member is now obsolete. Instead, please use property. This property will be removed 12 months later since December 2013. Aspose apologizes for any inconvenience you may have experienced. Detects the file format type. the file name The file format type. This member is now obsolete. Instead, please use property. This property will be removed 12 months later since December 2013. Aspose apologizes for any inconvenience you may have experienced. Detects the format type of the file stored in the stream. The stream The file format type. This member is now obsolete. Instead, please use property. This property will be removed 12 months later since December 2013. Aspose apologizes for any inconvenience you may have experienced. Gets all used colors in the workbook. The workbook object. The used colors. Add addin function. The function name. Minimum number of parameters this function requires Maximum number of parameters this function allows. The excepted parameters type of the function The function value type. Merges some large xls files to a xls file. The files. The cached file. The dest file. This method only supports merging data, style and formulas to the new file. The cached file is used to store some temporary data. Checks given sheet name and create a valid one when needed. If given sheet name conforms to the rules of excel sheet name, then return it. Otherwise string will be truncated if length exceeds the limit and invalid characters will be replaced with ' ', then return the rebuilt string value. sheet name to be used Checks given sheet name and create a valid one when needed. If given sheet name conforms to the rules of excel sheet name, then return it. Otherwise string will be truncated if length exceeds the limit and invalid characters will be replaced with given character, then return the rebuilt string value. sheet name to be used character which will be used to replace invalid characters in given sheet name Gets and sets the number of significant digits. The default value is 17. Only could be 15 or 17 now. Gets the DPI of the machine. When generating PDF/XPS, specific font file directory can be set in the property. If it is not set , using %WINDOWS%\fonts by default. This member is now obsolete. Instead, please use method with folder recursive to false. This property will be removed 12 months later since July 2016. Aspose apologizes for any inconvenience you may have experienced. When generating PDF/XPS, specific font file directories can be set in the property. If it is not set , using %WINDOWS%\fonts by default. This member is now obsolete. Instead, please use method with folder recursive to false. This property will be removed 12 months later since July 2016. Aspose apologizes for any inconvenience you may have experienced. When generating PDF/XPS, specific font files can be set in the property. Such as "d:\myfonts\myArial.ttf" This member is now obsolete. Instead, please use method. This property will be removed 12 months later since July 2016. Aspose apologizes for any inconvenience you may have experienced. Gets or sets the startup path, which is referred to by some external formula references. Gets or sets the alternate startup path, which is referred to by some external formula references. Gets or sets the library path which is referred to by some external formula references. Gets or sets the factory for creating instances with special implementation. Encapsulates the object that represents a horizontal page break. [C#] //Instantiating a Workbook object Workbook workbook = new Workbook(); //Obtaining the reference of the newly added worksheet by passing its sheet index Worksheet worksheet = workbook.Worksheets[0]; //Add a page break at cell Y30 int Index = worksheet.HorizontalPageBreaks.Add("Y30"); //get the newly added horizontal page break HorizontalPageBreak hPageBreak = worksheet.HorizontalPageBreaks[Index]; [VB.NET] 'Instantiating a Workbook object Dim workbook As New Workbook() 'Obtaining the reference of the newly added worksheet by passing its sheet index Dim worksheet As Worksheet = workbook.Worksheets(0) 'Add a page break at cell Y30 Dim Index As Integer = worksheet.HorizontalPageBreaks.Add("Y30") 'get the newly added horizontal page break Dim hPageBreak As HorizontalPageBreak = worksheet.HorizontalPageBreaks(Index) Gets the start column index of this horizontal page break. Gets the end column index of this horizontal page break. Gets the zero based row index. Encapsulates a collection of objects. [C#] //Add a pagebreak at G5 excel.Worksheets[0].HorizontalPageBreaks.Add("G5"); excel.Worksheets[0].VerticalPageBreaks.Add("G5"); [VB] 'Add a pagebreak at G5 excel.Worksheets(0).HorizontalPageBreaks.Add("G5") excel.Worksheets(0).VerticalPageBreaks.Add("G5") Adds a horizontal page break to the collection. Row index, zero based. Start column index, zero based. End column index, zero based. object index. This method is used to add a horizontal pagebreak within a print area. Adds a horizontal page break to the collection. Cell row index, zero based. object index. Page break is added in the top left of the cell. Please set a horizontal page break and a vertical page break concurrently. Adds a horizontal page break to the collection. Cell row index, zero based. Cell column index, zero based. object index. Page break is added in the top left of the cell. Please set a horizontal page break and a vertical page break concurrently. Adds a horizontal page break to the collection. Cell name. object index. Page break is added in the top left of the cell. Please set a horizontal page break and a vertical page break concurrently. Removes the HPageBreak element at a specified name. Element index, zero based. Gets the element at the specified index. The zero based index of the element. The element at the specified index. Gets the element with the specified cell name. Cell name. The element with the specified cell name. Encapsulates the object that represents a hyperlink. [C#] //Instantiating a Workbook object Workbook workbook = new Workbook(); //Adding a new worksheet to the Workbook object workbook.Worksheets.Add(); //Obtaining the reference of the newly added worksheet by passing its sheet index Worksheet worksheet = workbook.Worksheets[0]; //Adding a hyperlink to a URL at "A1" cell worksheet.Hyperlinks.Add("A1", 1, 1, "http://www.aspose.com"); //Saving the Excel file workbook.Save("C:\\book1.xls"); [Visual Basic] 'Instantiating a Workbook object Dim workbook As Workbook = New Workbook() 'Adding a new worksheet to the Workbook object workbook.Worksheets.Add() 'Obtaining the reference of the newly added worksheet by passing its sheet index Dim worksheet As Worksheet = workbook.Worksheets(0) 'Adding a hyperlink to a URL at "A1" cell worksheet.Hyperlinks.Add("A1", 1, 1, "http://www.aspose.com") 'Saving the Excel file workbook.Save("C:\book1.xls") Deletes this hyperlink Represents the address of a hyperlink. Represents the text to be displayed for the specified hyperlink. The default value is the address of the hyperlink. Gets the range of hyperlink. Returns or sets the ScreenTip text for the specified hyperlink. Gets the link type. Encapsulates a collection of objects. [C#] //Instantiating a Workbook object Workbook workbook = new Workbook(); //Obtaining the reference of the newly added worksheet by passing its sheet index Worksheet worksheet = workbook.Worksheets[0]; //Get Hyperlinks Collection HyperlinkCollection hyperlinks = worksheet.Hyperlinks; //Adding a hyperlink to a URL at "A1" cell hyperlinks.Add("A1", 1, 1, "http://www.aspose.com"); //Saving the Excel file workbook.Save("D:\\book1.xls"); [VB.NET] 'Instantiating a Workbook object Dim workbook As New Workbook() 'Obtaining the reference of the newly added worksheet by passing its sheet index Dim worksheet As Worksheet = workbook.Worksheets(0) 'Get Hyperlinks Collection Dim hyperlinks As HyperlinkCollection = worksheet.Hyperlinks 'Adding a hyperlink to a URL at "A1" cell hyperlinks.Add("A1", 1, 1, "http://www.aspose.com") 'Saving the Excel file workbook.Save("D:\book1.xls") Adds a hyperlink to a specified cell or a range of cells. First row of the hyperlink range. First column of the hyperlink range. Number of rows in this hyperlink range. Number of columns of this hyperlink range. Address of the hyperlink. object index. [C#] Worksheet worksheet = excel.Worksheets[0]; worksheet.Hyperlinks.Add("A4", 1, 1, "http://www.aspose.com"); worksheet.Hyperlinks.Add("A5", 1, 1, "c:\\book1.xls"); [Visual Basic] Dim worksheet as Worksheet = excel.Worksheets(0) worksheet.Hyperlinks.Add("A4", 1, 1, "http://www.aspose.com") worksheet.Hyperlinks.Add("A5", 1, 1, "c:\\book1.xls") Adds a hyperlink to a specified cell or a range of cells. Cell name. Number of rows in this hyperlink range. Number of columns of this hyperlink range. Address of the hyperlink. object index. Adds a hyperlink to a specified cell or a range of cells. The top-left cell of the range. The bottom-right cell of the range. Address of the hyperlink. The text to be displayed for the specified hyperlink. The screenTip text for the specified hyperlink. object index. Remove the hyperlink at the specified index. The zero based index of the element. Clears all hyperlinks. Gets the element at the specified index. The zero based index of the element. The element at the specified index. Represents the save options for csv/tab delimited/other text format. Creates text file save options. Creates text file save options. The save format of the text file. Gets and sets char Delimiter of text file. Gets and sets the a string value as separator. Gets and sets the default encoding. Indicates whether always adding '"' for each field. If true then all values will be quoted; If false then only quote values when needed(when values contain special characters such as '"' , '\n' or separator character). Default is false. NOTE: This member is now obsolete. Instead, please use QuoteType property instead. This property will be removed 12 months later since August 2012. Aspose apologizes for any inconvenience you may have experienced. Gets or sets how to quote values in the exported text file. Gets and sets the format strategy when exporting the cell value as string. The Data provider to provide cells data for saving workbook in light mode. Indicates whether leading blank rows and columns should be trimmed like what ms excel does. Default is true. Indicates whether separators should be output for blank row. Default value is false which means the content for blank row will be empty. The range of cells to be exported. Represents Xml Data Binding information. Encapsulates the object that represents a label in a spreadsheet. //Create a new Workbook. Workbook workbook = new Workbook(); //Get the first worksheet in the workbook. Worksheet sheet = workbook.Worksheets[0]; //Add a new label to the worksheet. Aspose.Cells.Label label = sheet.Shapes.AddLabel(2, 0, 2, 0, 60, 120); //Set the caption of the label. label.Text = "This is a Label"; //Set the Placement Type, the way the //label is attached to the cells. label.Placement = PlacementType.FreeFloating; //Set the fill color of the label. label.FillFormat.ForeColor = Color.Yellow; //Saves the file. workbook.Save(@"d:\test\tstlabel.xls"); [VB.NET] 'Create a new Workbook. Dim workbook As Workbook = New Workbook() 'Get the first worksheet in the workbook. Dim sheet As Worksheet = workbook.Worksheets(0) 'Add a new label to the worksheet. Dim label As Aspose.Cells.Label = sheet.Shapes.AddLabel(2, 0, 2, 0, 60, 120) 'Set the caption of the label. label.Text = "This is a Label" 'Set the Placement Type, the way the 'label is attached to the cells. label.Placement = PlacementType.FreeFloating 'Set the fill color of the label. label.FillFormat.ForeColor = Color.Yellow 'Saves the file. workbook.Save("d:\test\tstlabel.xls") Encapsulates the object that represents the chart legend. [C#] //Set Legend's width and height Legend legend = chart.Legend; //Legend is at right side of chart by default. //If the legend is at left or right side of the chart, setting Legend.X property will not take effect. //If the legend is at top or bottom side of the chart, setting Legend.Y property will not take effect. legend.Y = 1500; legend.Width = 50; legend.Height = 50; //Set legend's position legend.Position = LegendPositionType.Left; [Visual Basic] 'Set Legend's width and height Dim legend as Legend = chart.Legend 'Legend is at right side of chart by default. 'If the legend is at left or right side of the chart, setting Legend.X property will not take effect. 'If the legend is at top or bottom side of the chart, setting Legend.Y property will not take effect. legend.Y = 1500 legend.Width = 50 legend.Height = 50 'Set legend's position legend.Position = LegendPositionType.Left Gets or sets the legend position type.
Default position is right.

If the legend is at left or right side of the chart, setting Legend.X property will not take effect.

If the legend is at top or bottom side of the chart, setting Legend.Y property will not take effect.
Gets a collection of all the LegendEntry objects in the specified chart legend. Setting the legend entries of the surface chart is not supported. So it will return null if the chart type is surface chart type. Gets the labels of the legend entries after call Chart.Calculate() method. Gets or sets whether other chart elements shall be allowed to overlap this chart element. Represents a collection of all the objects in the specified chart legend. Gets the element at the specified index. The zero based index of the element. The element at the specified index. Represents a legend entry in a chart legend. Gets and sets whether the legend entry is deleted. Gets a object of the specified ChartFrame object. Gets a object of the specified LegendEntry object. NOTE: This member is now obsolete. Instead, please use LegendEntry.Font property. This property will be removed 12 months later since JANUARY 2012. Aspose apologizes for any inconvenience you may have experienced. Gets or sets no fill of the text. True if the text in the object changes font size when the object size changes. The default value is True. Gets and sets the display mode of the background NOTE: This member is now obsolete. Instead, please use LegendEntry.BackgroundMode property. This property will be removed 12 months later since JANUARY 2012. Aspose apologizes for any inconvenience you may have experienced. Gets and sets the display mode of the background Enumerates the legend position types. Displays the legend to the bottom of the chart's plot area. Displays the legend to the corner of the chart's plot area. Displays the legend to the left of the chart's plot area. Represents that the legend is not docked. Displays the legend to the right of the chart's plot area. Displays the legend to the top of the chart's plot area. Represents the line shape. [C#] //Instantiate a new Workbook. Workbook workbook = new Workbook(); //Get the first worksheet in the book. Worksheet worksheet = workbook.Worksheets[0]; //Add a new line to the worksheet. Aspose.Cells.LineShape line1 = worksheet.Shapes.AddLine(5, 0, 1, 0, 0, 250); //Set the line dash style line1.LineFormat.DashStyle = MsoLineDashStyle.Solid; //Set the placement. line1.Placement = PlacementType.FreeFloating; //Add another line to the worksheet. Aspose.Cells.LineShape line2 = worksheet.Shapes.AddLine(7, 0, 1, 0, 85, 250); //Set the line dash style. line2.LineFormat.DashStyle = MsoLineDashStyle.DashLongDash; //Set the weight of the line. line2.LineFormat.Weight = 4; //Set the placement. line2.Placement = PlacementType.FreeFloating; //Add the third line to the worksheet. Aspose.Cells.LineShape line3 = worksheet.Shapes.AddLine(13, 0, 1, 0, 0, 250); //Set the line dash style line3.LineFormat.DashStyle = MsoLineDashStyle.Solid; //Set the placement. line3.Placement = PlacementType.FreeFloating; //Make the gridlines invisible in the first worksheet. workbook.Worksheets[0].IsGridlinesVisible = false; //Save the excel file. workbook.Save("d:\\test\\tstlines.xls"); [VB.NET] 'Instantiate a new Workbook. Dim workbook As Workbook = New Workbook() 'Get the first worksheet in the book. Dim worksheet As Worksheet = workbook.Worksheets(0) 'Add a new line to the worksheet. Dim line1 As Aspose.Cells.LineShape = worksheet.Shapes.AddLine(5, 0, 1, 0, 0, 250) 'Set the line dash style line1.LineFormat.DashStyle = MsoLineDashStyle.Solid 'Set the placement. line1.Placement = PlacementType.FreeFloating 'Add another line to the worksheet. Dim line2 As Aspose.Cells.LineShape = worksheet.Shapes.AddLine(7, 0, 1, 0, 85, 250) 'Set the line dash style. line2.LineFormat.DashStyle = MsoLineDashStyle.DashLongDash 'Set the weight of the line. line2.LineFormat.Weight = 4 'Set the placement. line2.Placement = PlacementType.FreeFloating 'Add the third line to the worksheet. Dim line3 As Aspose.Cells.LineShape = worksheet.Shapes.AddLine(13, 0, 1, 0, 0, 250) 'Set the line dash style line3.LineFormat.DashStyle = MsoLineDashStyle.Solid 'Set the placement. line3.Placement = PlacementType.FreeFloating 'Make the gridlines invisible in the first worksheet. workbook.Worksheets(0).IsGridlinesVisible = False 'Save the excel file. workbook.Save("d:\test\tstlines.xls") Gets and sets the begin arrow head style of the line. NOTE: This member is now obsolete. Instead, please use Shape.Line.BeginArrowheadStyle property. This property will be removed 12 months later since August 2016. Aspose apologizes for any inconvenience you may have experienced. Gets and sets the begin arrow head width of the line. NOTE: This member is now obsolete. Instead, please use Shape.Line.BeginArrowheadWidth property. This property will be removed 12 months later since August 2016. Aspose apologizes for any inconvenience you may have experienced. Gets and sets the begin arrow head length of the line. NOTE: This member is now obsolete. Instead, please use Shape.Line.BeginArrowheadLength property. This property will be removed 12 months later since August 2016. Aspose apologizes for any inconvenience you may have experienced. Gets and sets the end arrow head style of the line. NOTE: This member is now obsolete. Instead, please use Shape.Line.EndArrowheadStyle property. This property will be removed 12 months later since August 2016. Aspose apologizes for any inconvenience you may have experienced. Gets and sets the end arrow head width of the line. NOTE: This member is now obsolete. Instead, please use Shape.Line.EndArrowheadWidth property. This property will be removed 12 months later since August 2016. Aspose apologizes for any inconvenience you may have experienced. Gets and sets the end arrow head length of the line. NOTE: This member is now obsolete. Instead, please use Shape.Line.EndArrowheadLength property. This property will be removed 12 months later since August 2016. Aspose apologizes for any inconvenience you may have experienced. Enumerates the type of border or line. Represents a dark gray line. Represent a dash line. Represents a dash-dot line Represents a dash-dot-dot line. Represents a dotted line. Represents a light gray line. Represents a medium gray line. Represent a solid line. Represents a list box object. [C#] //Create a new Workbook. Workbook workbook = new Workbook(); //Get the first worksheet. Worksheet sheet = workbook.Worksheets[0]; //Get the worksheet cells collection. Cells cells = sheet.Cells; //Input a value. cells["B3"].PutValue("Choose Dept:"); //Set it bold. cells["B3"].Style.Font.IsBold = true; //Input some values that denote the input range //for the list box. cells["A2"].PutValue("Sales"); cells["A3"].PutValue("Finance"); cells["A4"].PutValue("MIS"); cells["A5"].PutValue("R&D"); cells["A6"].PutValue("Marketing"); cells["A7"].PutValue("HRA"); //Add a new list box. ListBox listBox = sheet.Shapes.AddListBox(2, 0, 3, 0, 122, 100); //Set the placement type. listBox.Placement = PlacementType.FreeFloating; //Set the linked cell. listBox.LinkedCell = "A1"; //Set the input range. listBox.InputRange = "A2:A7"; //Set the selection tyle. listBox.SelectionType = SelectionType.Single; //Set the list box with 3-D shading. listBox.Shadow = true; //Saves the file. workbook.Save(@"d:\test\tstlistbox.xls"); [VB.NET] 'Create a new Workbook. Dim workbook As Aspose.Cells.Workbook = New Aspose.Cells.Workbook() 'Get the first worksheet. Dim sheet As Worksheet = workbook.Worksheets(0) 'Get the worksheet cells collection. Dim cells As Cells = sheet.Cells 'Input a value. cells("B3").PutValue("Choose Dept:") 'Set it bold. cells("B3").Style.Font.IsBold = True 'Input some values that denote the input range 'for the list box. cells("A2").PutValue("Sales") cells("A3").PutValue("Finance") cells("A4").PutValue("MIS") cells("A5").PutValue("R&D") cells("A6").PutValue("Marketing") cells("A7").PutValue("HRA") 'Add a new list box. Dim listBox As Aspose.Cells.ListBox = sheet.Shapes.AddListBox(2, 0, 3, 0, 122, 100) 'Set the placement type. listBox.Placement = PlacementType.FreeFloating 'Set the linked cell. listBox.LinkedCell = "A1" 'Set the input range. listBox.InputRange = "A2:A7" 'Set the selection tyle. listBox.SelectionType = SelectionType.Single 'Set the list box with 3-D shading. listBox.Shadow = True 'Saves the file. workbook.Save("d:\test\tstlistbox.xls") Sets whether the item is selected The item index Whether the item is selected. True means that this item should be selected. False means that this item should be unselected. Indicates whether the item is selected. The item index. whether the item is selected. Gets the number of items in the list box. Gets or sets the index number of the currently selected item in a list box or combo box. Zero-based. -1 presents no item is selected. Gets the selected cells. Returns null if the input range is not set or no item is selected Indicates whether the combobox has 3-D shading. Gets or sets the selection mode of the specified list box. Specifies the amount by which the control's value is changed when the user clicks on the scrollbar's page up or page down region. Represents a column in a list. Gets the formula of this list column. Whether the formula needs to be formatted as R1C1. Whether the formula needs to be formatted by locale. The formula of this list column. Sets the formula for this list column. the formula for this list column. Whether the formula needs to be formatted as R1C1. Whether the formula needs to be formatted by locale. Gets and sets the name of the column. If sets the name of the column, the according cell' value will be changed too. Gets and sets the type of calculation in the Totals row of the list column. Gets the range of this list column. Gets and sets the formula of the list column. Represents A collection of all the objects in the specified ListObject object. Gets the ListColumn by the index. The index. the ListColumn object. Gets the ListColumn by the name. The name of the ListColumn The ListColumn object. Represents a collection of objects in the worksheet. Adds a ListObject to the worksheet. The start row of the list range. The start row of the list range. The start row of the list range. The start row of the list range. Whether the range has headers. The index of the new ListObject Adds a ListObject to the worksheet. The start cell of the list range. The end cell of the list range. Whether the range has headers. The index of the new ListObject Update all column name of the tables. Gets the ListObject by index. The index. The ListObject Gets the ListObject by specified name. ListObject name. The ListObject Represents the marker in a line chart, scatter chart, or radar chart. Gets the border. Gets the area. Represents the marker style. Applies to line chart, scatter chart, or radar chart. Represents the marker size in unit of points. Applies to line chart, scatter chart, or radar chart. Represents the marker size in unit of pixels. Applies to line chart, scatter chart, or radar chart. Enumerates the line end type of the shape border line. No line end type. Arrow line end type. Arrow Stealth line end type. Arrow Diamond Line end type. Arrow Oval line end type. Arrow Open line end type. Represents line format type of chart line. Represents automatic formatting type. Represents solid formatting type. Represents none formatting type. Gradient Represents the gradient fill. Set the gradient fill type and direction. Gradient fill type. The angle. Only applies for GradientFillType.Linear. The direction type. Only applies for GradientFillType.Radial and GradientFillType.Rectangle. Sets the specified fill to a one-color gradient. Only applies for Excel 2007. One gradient color. The gradient degree. Can be a value from 0.0 (dark) through 1.0 (light). Gradient shading style. The gradient variant. Can be a value from 1 through 4, corresponding to one of the four variants on the Gradient tab in the Fill Effects dialog box. If style is GradientStyle.FromCenter, the Variant argument can only be 1 or 2. Sets the specified fill to a two-color gradient. Only applies for Excel 2007. One gradient color. Two gradient color. Gradient shading style. The gradient variant. Can be a value from 1 through 4, corresponding to one of the four variants on the Gradient tab in the Fill Effects dialog box. If style is GradientStyle.FromCenter, the Variant argument can only be 1 or 2. Sets the specified fill to a two-color gradient. Only applies for Excel 2007. One gradient color. The degree of transparency of the color1 as a value from 0.0 (opaque) through 1.0 (clear). Two gradient color. The degree of transparency of the color2 as a value from 0.0 (opaque) through 1.0 (clear). Gradient shading style. The gradient variant. Can be a value from 1 through 4, corresponding to one of the four variants on the Gradient tab in the Fill Effects dialog box. If style is GradientStyle.FromCenter, the Variant argument can only be 1 or 2. Represents the gradient stop collection. Gets the gradient fill type. Gets the gradient direction type. The angle of linear fill. Represents all Gradient fill type. Linear Radial Rectangle Path Represents the gradient stop. The position of the stop. Gets the color of this gradient stop. Returns or sets the degree of transparency of the area as a value from 0.0 (opaque) through 1.0 (clear). Represents all direction type of gradient. FromUpperLeftCorner FromUpperRightCorner FromLowerLeftCorner FromLowerRightCorner FromCenter Unknown Represents the caps of a line Square protrudes by half line width. Rounded ends. Line ends at end point. None cap Represents the join styles of a line. Round joint Bevel joint Miter joint None joint Encapsulates the object that represents pattern fill format Gets or sets the fill pattern type Gets or sets the background of the . Gets and sets the foreground object. Gets or sets the foreground . Gets and sets the foreground object. Gets or sets the transparency of foreground color. Gets or sets the transparency of background color. Represents all plot empty cells type of a chart. Not plotted(leave gap) Zero Interpolated Encapsulates the object that represents texture fill format Gets and sets the texture type Gets and sets the image data of the fill. Indicates whether tile picture as texture. Gets or sets picture format option. Gets or sets tile picture option. Gets and sets the picture format type. Gets and sets the picture format scale. Returns or sets the degree of transparency of the area as a value from 0.0 (opaque) through 1.0 (clear). Represents the picture fill type. Stretch Stack StackAndScale Represents office drawing objects type. Group Line Rectangle Oval Arc Chart TextBox Button Picture Polygon CheckBox RadioButton Label DialogBox Spinner ScrollBar ListBox GroupBox ComboBox Comment OleObject Only for preserving the drawing object in the template file. Only for preserving the drawing object in the xlsx file. Slicer Web extension Smart Art Custom xml shape ,such as Ink. 3D Model Represents preset text effect type of WordArt. TextEffect1 TextEffect2 TextEffect3 TextEffect4 TextEffect5 TextEffect6 TextEffect7 TextEffect8 TextEffect9 TextEffect10 TextEffect11 TextEffect12 TextEffect13 TextEffect14 TextEffect15 TextEffect16 TextEffect17 TextEffect18 TextEffect19 TextEffect20 TextEffect21 TextEffect22 TextEffect23 TextEffect24 TextEffect25 TextEffect26 TextEffect27 TextEffect28 TextEffect29 TextEffect30 Represents preset text effect shape type of WordArt. PlainText Stop TriangleUp TriangleDown ChevronUp ChevronDown RingInside RingOutside ArchUpCurve ArchDownCurve CircleCurve ButtonCurve ArchUpPour ArchDownPour CirclePour ButtonPour CurveUp CurveDown CanUp CanDown Wave1 Wave2 DoubleWave1 DoubleWave2 Inflate Deflate InflateBottom DeflateBottom InflateTop DeflateTop DeflateInflate DeflateInflateDeflate FadeRight FadeLeft FadeUp FadeDown SlantUp SlantDown CascadeUp CascadeDown Mixed Contains properties and methods that apply to WordArt objects. [C#] //Instantiating a Workbook object Workbook workbook = new Workbook(); Shapes shapes = workbook.Worksheets[0].Shapes; shapes.AddTextEffect(MsoPresetTextEffect.TextEffect1, "Aspose", "Arial", 30, false, false, 0, 0, 0, 0, 100, 200); TextEffectFormat textEffectFormat = shapes[0].TextEffect; textEffectFormat.SetTextEffect(MsoPresetTextEffect.TextEffect10); workbook.Save("C:\\Book1.xls"); [Visual Basic] 'Instantiating a Workbook object Dim workbook As Workbook = New Workbook() Dim shapes As Shapes = workbook.Worksheets(0).Shapes shapes.AddTextEffect(MsoPresetTextEffect.TextEffect1, "Aspose", "Arial", 30, false, false, 0, 0, 0, 0, 100, 200) Dim textEffectFormat As TextEffectFormat = shapes(0).TextEffect TextEffectFormat.SetTextEffect(MsoPresetTextEffect.TextEffect10) workbook.Save("C:\\Book1.xls") Sets the preset text effect. The preset text effect. The text in the WordArt. The name of the font used in the WordArt. Indicates whether font is bold. Indicates whether font is italic. If true,characters in the specified WordArt are rotated 90 degrees relative to the WordArt's bounding shape. The size (in points) of the font used in the WordArt. Gets and sets the preset shape type. Represents fill formatting for a shape. Sets the specified fill to a one-color gradient. One gradient color. The gradient degree. Can be a value from 0.0 (dark) through 1.0 (light). Gradient shading style. The gradient variant. Can be a value from 1 through 4, corresponding to one of the four variants on the Gradient tab in the Fill Effects dialog box. If style is GradientStyle.FromCenter, the Variant argument can only be 1 or 2. Gets and sets the fill fore color. Returns or sets the degree of transparency of the specified fill as a value from 0.0 (opaque) through 1.0 (clear). Gets and sets the file back color. Gets and sets the Texture and Picture fill data. Gets the texture fill type. Indicates whether there is fill. Represents the picture format. Represents the location of the top of the crop rectangle expressed, expressed as a ratio of the image's height. Represents the location of the bottom of the crop rectangle expressed, expressed as a ratio of the image's height. Represents the location of the left of the crop rectangle expressed, expressed as a ratio of the image's width. Represents the location of the right of the crop rectangle expressed, expressed as a ratio of the image's width. Gets and sets the transparent color of the picture. Represents the contrast modification for the picture.in unit of percentage. It is between -100% and 100%. It works same as Excel 2007 or above version. Represents the brightness modification for the picture in unit of percentage. It is between -100% and 100%. It works same as Excel 2007 or above version. Represents gamma of the picture. Indicates whether this picture should be displayed in two-color black and white. Indicates whether this picture SHOULD be displayed in grayscale. Represents style of dash drawing lines. Represent a dash line. Represents a dash-dot line. Represents a dash-dot-dot line. Represents a long dash-short dash line. Represents a long dash-short dash-dot line. Represents a round-dot line. Represent a solid line. Represents a square-dot line. Custom dash style. Represents line and arrowhead formatting. Indicates whether the object is visible. Returns a Style object that represents the style of the specified range. Gets and sets the border line fore color. Gets and sets the border line back color. Gets or sets the dash style for the specified line. Returns or sets the degree of transparency of the specified fill as a value from 0.0 (opaque) through 1.0 (clear). Returns or sets the weight of the line ,in units of pt. Represents style of drawing lines. Single line (of width lineWidth) Three lines, thin, thick, thin Double lines, one thin, one thick Double lines, one thick, one thin Double lines of equal width Represents the text frame in a Shape object. Indicates if size of shape is adjusted automatically according to its content. Indicates whether the margin is auto calculated. Indicates whether rotating text with shape. Returns the left margin in unit of Points Returns the right margin in unit of Points Returns the top margin in unit of Points Returns the bottom margin in unit of Points Represents a defined name for a range of cells. [C#] //Instantiating a Workbook object Workbook workbook = new Workbook(); //Accessing the first worksheet in the Excel file Worksheet worksheet = workbook.Worksheets[0]; //Creating a named range Range range = worksheet.Cells.CreateRange("B4", "G14"); //Setting the name of the named range range.Name = "TestRange"; //Saving the modified Excel file in default (that is Excel 2000) format workbook.Save("C:\\output.xls"); [Visual Basic] 'Instantiating a Workbook object Dim workbook As Workbook = New Workbook() 'Accessing the first worksheet in the Excel file Dim worksheet As Worksheet = workbook.Worksheets(0) 'Creating a named range Dim range As Range = worksheet.Cells.CreateRange("B4", "G14") 'Setting the name of the named range range.Name = "TestRange" 'Saving the modified Excel file in default (that is Excel 2000) format workbook.Save("C:\\output.xls") Get the reference of this Name. Whether the reference needs to be formatted as R1C1. Whether the reference needs to be formatted by locale. Set the reference of this Name. The reference. Whether the reference is R1C1 format. Whether the reference is locale formatted. Returns a string represents the current Range object. Gets all ranges referred by this name. All ranges. Gets all ranges referred by this name. whether recalculate it if this name has been calculated before this invocation. All ranges. Gets all references referred by this name. whether recalculate it if this name has been calculated before this invocation. All ranges. Gets the range if this name refers to a range. The range. Gets the range if this name refers to a range whether recalculate it if this name has been calculated before this invocation. The range. Gets the range if this name refers to a range. If the reference of this name is not absolute, the range may be different for different cell. The according sheet index. The according row index. The according column index The range. Gets and sets the comment of the name. Only applies for Excel 2007. Gets the name text of the object. Gets the name full text of the object with the scope setting. Returns or sets the formula that the name is defined to refer to, beginning with an equal sign. Gets or sets a R1C1 reference of the . Indicates whether this name is referred by other formulas. Indicates whether the name is visible. Indicates this name belongs to Workbook or Worksheet. 0 = Global name, otherwise index to sheet (one-based) Represents a collection of all the objects in the spreadsheet. Defines a new name. The text to use as the name. object index. Name cannot include spaces and cannot look like cell references. Remove an array of name The names' text. Remove the name. The name text. Remove the name at the specific index. index of the Name to be removed. Please make sure that the name is not referred by the other formulas before calling the method. And if the name is referred, setting Name.RefersTo as null is better. Remove all defined names which are not referenced by the formulas and data source. If the defined name is referred, we only set Name.ReferTo as null and hide them. Remove the duplicate defined names Sorts defined names. If you create a large amount of named ranges in the Excel file, please call this method after all named ranges are created and before saving Gets the element at the specified index. The zero based index of the element. The element at the specified index. Gets the element with the specified name. Name text. The element with the specified name. Encapsulates a collection of objects. [C#] //Instantiating a Workbook object Workbook workbook = new Workbook(); //Adding a new worksheet to the Excel object int sheetIndex = workbook.Worksheets.Add(); //Obtaining the reference of the newly added worksheet by passing its sheet index Worksheet worksheet = workbook.Worksheets[sheetIndex]; //Adding a sample value to "A1" cell worksheet.Cells["A1"].PutValue(50); //Adding a sample value to "A2" cell worksheet.Cells["A2"].PutValue(100); //Adding a sample value to "A3" cell worksheet.Cells["A3"].PutValue(150); //Adding a sample value to "A4" cell worksheet.Cells["A4"].PutValue(200); //Adding a sample value to "B1" cell worksheet.Cells["B1"].PutValue(60); //Adding a sample value to "B2" cell worksheet.Cells["B2"].PutValue(32); //Adding a sample value to "B3" cell worksheet.Cells["B3"].PutValue(50); //Adding a sample value to "B4" cell worksheet.Cells["B4"].PutValue(40); //Adding a sample value to "C1" cell as category data worksheet.Cells["C1"].PutValue("Q1"); //Adding a sample value to "C2" cell as category data worksheet.Cells["C2"].PutValue("Q2"); //Adding a sample value to "C3" cell as category data worksheet.Cells["C3"].PutValue("Y1"); //Adding a sample value to "C4" cell as category data worksheet.Cells["C4"].PutValue("Y2"); //Adding a chart to the worksheet int chartIndex = worksheet.Charts.Add(ChartType.Column, 5, 0, 15, 5); //Accessing the instance of the newly added chart Chart chart = worksheet.Charts[chartIndex]; //Adding NSeries (chart data source) to the chart ranging from "A1" cell to "B4" chart.NSeries.Add("A1:B4", true); //Setting the data source for the category data of NSeries chart.NSeries.CategoryData = "C1:C4"; //Saving the Excel file workbook.Save("C:\\book1.xls"); [Visual Basic] 'Instantiating a Workbook object Dim workbook As Workbook = New Workbook() 'Adding a new worksheet to the Excel object Dim sheetIndex As Integer = workbook.Worksheets.Add() 'Obtaining the reference of the newly added worksheet by passing its sheet index Dim worksheet As Worksheet = workbook.Worksheets(sheetIndex) 'Adding a sample value to "A1" cell worksheet.Cells("A1").PutValue(50) 'Adding a sample value to "A2" cell worksheet.Cells("A2").PutValue(100) 'Adding a sample value to "A3" cell worksheet.Cells("A3").PutValue(150) 'Adding a sample value to "A4" cell worksheet.Cells("A4").PutValue(200) 'Adding a sample value to "B1" cell worksheet.Cells("B1").PutValue(60) 'Adding a sample value to "B2" cell worksheet.Cells("B2").PutValue(32) 'Adding a sample value to "B3" cell worksheet.Cells("B3").PutValue(50) 'Adding a sample value to "B4" cell worksheet.Cells("B4").PutValue(40) 'Adding a sample value to "C1" cell as category data worksheet.Cells("C1").PutValue("Q1") 'Adding a sample value to "C2" cell as category data worksheet.Cells("C2").PutValue("Q2") 'Adding a sample value to "C3" cell as category data worksheet.Cells("C3").PutValue("Y1") 'Adding a sample value to "C4" cell as category data worksheet.Cells("C4").PutValue("Y2") 'Adding a chart to the worksheet Dim chartIndex As Integer = worksheet.Charts.Add(ChartType.Column, 5, 0, 15, 5) 'Accessing the instance of the newly added chart Dim chart As Chart = worksheet.Charts(chartIndex) 'Adding NSeries (chart data source) to the chart ranging from "A1" cell to "B4" chart.NSeries.Add("A1:B4", True) 'Setting the data source for the category data of NSeries chart.NSeries.CategoryData = "C1:C4" 'Saving the Excel file workbook.Save("C:\book1.xls") Gets the element by order. The order of series The element series Remove at a series at the specific index. The index. Directly changes the orders of the two series. The current index The dest index Adds the collection to a chart. Specifies values from which to plot the data series Specifies whether to plot the series from a range of cell values by row or by column. Return the first index of the added ASeries in the NSeries.
If set data on contiguous cells, use colon to seperate them.For example, R[1]C[1]:R[3]C[2].

If set data on contiguous cells, use comma to seperate them.For example,(R[1]C[1],R[3]C[2]).
Adds the collection to a chart. Specifies values from which to plot the data series Specifies whether to plot the series from a range of cell values by row or by column. Return the first index of the added ASeries in the NSeries.
If set data on contiguous cells, use colon to seperate them.For example, $C$2:$C$5.

If set data on non contiguous cells, use comma to seperate them.For example: ($C$2,$D$5).
Clears the collection Gets the element at the specified index. The zero based index of the element. The element at the specified index. Gets or sets the range of category Axis values. It can be a range of cells (such as, "d1:e10"), or a sequence of values (such as,"{2,6,8,10}"). Gets or sets the range of second category Axis values. It can be a range of cells (such as, "d1:e10"), or a sequence of values (such as,"{2,6,8,10}"). Only effects when some ASerieses plot on the second axis. NOTE: This member is now obsolete. Instead, please use SeriesCollection.SecondCategoryData property. This property will be removed 12 months later since February 2014. Aspose apologizes for any inconvenience you may have experienced. Gets or sets the range of second category Axis values. It can be a range of cells (such as, "d1:e10"), or a sequence of values (such as,"{2,6,8,10}"). Only effects when some ASerieses plot on the second axis. Represents if the color of points is varied. Represents an OleObject in a worksheet. [C#] //Instantiate a new Workbook. Workbook workbook = new Workbook(); //Get the first worksheet. Worksheet sheet = workbook.Worksheets[0]; //Define a string variable to store the image path. string ImageUrl = @"C:\school.jpg"; //Get the picture into the streams. FileStream fs = File.OpenRead(ImageUrl); //Define a byte array. byte[] imageData = new Byte[fs.Length]; //Obtain the picture into the array of bytes from streams. fs.Read(imageData, 0, imageData.Length); //Close the stream. fs.Close(); //Get an excel file path in a variable. string path = @"C:\Book1.xls"; //Get the file into the streams. fs = File.OpenRead(path); //Define an array of bytes. byte[] objectData = new Byte[fs.Length]; //Store the file from streams. fs.Read(objectData, 0, objectData.Length); //Close the stream. fs.Close(); //Add an Ole object into the worksheet with the image //shown in MS Excel. sheet.OleObjects.Add(14, 3, 200, 220, imageData); //Set embedded ole object data. sheet.OleObjects[0].ObjectData = objectData; //Save the excel file workbook.Save(@"C:\oleobjects.xls"); [Visual Basic] 'Instantiate a new Workbook. Dim workbook As Workbook = New Workbook() 'Get the first worksheet. Dim sheet As Worksheet = workbook.Worksheets(0) 'Define a string variable to store the image path. Dim ImageUrl As String = @"C:\school.jpg" 'Get the picture into the streams. Dim fs As FileStream = File.OpenRead(ImageUrl) 'Define a byte array. Dim imageData(fs.Length) As Byte 'Obtain the picture into the array of bytes from streams. fs.Read(imageData, 0, imageData.Length) 'Close the stream. fs.Close() 'Get an excel file path in a variable. Dim path As String = @"C:\Book1.xls" 'Get the file into the streams. fs = File.OpenRead(path) 'Define an array of bytes. Dim objectData(fs.Length) As Byte 'Store the file from streams. fs.Read(objectData, 0, objectData.Length) 'Close the stream. fs.Close() 'Add an Ole object into the worksheet with the image 'shown in MS Excel. sheet.OleObjects.Add(14, 3, 200, 220, imageData) 'Set embedded ole object data. sheet.OleObjects(0).ObjectData = objectData 'Save the excel file workbook.Save("C:\oleobjects.xls") Sets the ole native source full file name with path. the ole native source full file name True indicates that the size of the ole object will be auto changed as the size of snapshop of the embedded content when the ole object is activated. Returns true if the OleObject is linked True if the specified object is displayed as an icon and the image will not be auto changed. Represents image of ole object as byte array. Represents embedded ole object data as byte array. Gets the full embedded ole object binary data in the template file. Gets or sets the path and name of the source file for the linked image. The default value is an empty string. If SourceFullName is not an empty string, the image is linked. If SourceFullName is not an empty string, but Data is null, then the image is linked and not stored in the file. Gets or sets the ProgID of the OLE object. Gets and sets the file type of the embedded ole object data Gets and sets the file type of the embedded ole object data NOTE: This member is now obsolete. Instead, please use OleObject.FileFormatType property. This property will be removed 12 months later since December 2013. Aspose apologizes for any inconvenience you may have experienced. Returns the source full name of the source file for the linked OLE object. Only supports setting the source full name when the file type is OleFileType.Unknown. Such as wav file ,avi file..etc.. Gets and sets the display label of the linked ole object. Returns the source full name of the source file for the linked OLE object. NOTE: This member is now obsolete. Instead, please use OleObject.ObjectSourceFullName property. This property will be removed 12 months later since November 2013. Aspose apologizes for any inconvenience you may have experienced. Specifies whether the link to the OleObject is automatically updated or not. Specifies whether the host application for the embedded object shall be called to load the object data automatically when the parent workbook is opened. Gets and sets the class identifier of the embedded object. It means which application opens the embedded file. Gets the image format of the ole object. Represents embedded OLE objects. Adds an OleObject to the collection. Upper left row index. Upper left column index. Height of oleObject, in unit of pixel. Width of oleObject, in unit of pixel. Image of ole object as byte array. object index. Adds an linked OleObject to the collection. Upper left row index. Upper left column index. Height of oleObject, in unit of pixel. Width of oleObject, in unit of pixel. Image of ole object as byte array. object index. Remove all embedded OLE objects. Removes the element at the specified index. The specified index. Gets the element at the specified index. The zero based index of the element. The element at the specified index. Represents the operator type of conditional format and data validation. Represents Between operator of conditional format and data validation. Represents Equal operator of conditional format and data validation. Represents GreaterThan operator of conditional format and data validation. Represents GreaterOrEqual operator of conditional format and data validation. Represents LessThan operator of conditional format and data validation. Represents LessOrEqual operator of conditional format and data validation. Represents no comparison. Represents NotBetween operator of conditional format and data validation. Represents NotEqual operator of conditional format and data validation. Represents an outline on a worksheet. Indicates if the summary row will be positioned below the detail rows in the outline. Indicates if the summary column will be positioned to the right of the detail columns in the outline. Represents the oval shape. Represents print orientation constants. Landscape orientation Portrait orientation Represents all Pane objects shown in the specified window. Gets and sets the first visible row of the bottom pane. Gets and sets the first visible column of the right pane. Gets and sets the active pane. Represents paper size constants. Letter (8-1/2 in. x 11 in.) Letter Small (8-1/2 in. x 11 in.) Tabloid (11 in. x 17 in.) Ledger (17 in. x 11 in.) Legal (8-1/2 in. x 14 in.) Statement (5-1/2 in. x 8-1/2 in.) Executive (7-1/4 in. x 10-1/2 in.) A3 (297 mm x 420 mm) A4 (210 mm x 297 mm) A4 Small (210 mm x 297 mm) A5 (148 mm x 210 mm) JIS B4 (257 mm x 364 mm) JIS B5 (182 mm x 257 mm) Folio (8-1/2 in. x 13 in.) Quarto (215 mm x 275 mm) 10 in. x 14 in. 11 in. x 17 in. Note (8-1/2 in. x 11 in.) Envelope #9 (3-7/8 in. x 8-7/8 in.) Envelope #10 (4-1/8 in. x 9-1/2 in.) Envelope #11 (4-1/2 in. x 10-3/8 in.) Envelope #12 (4-1/2 in. x 11 in.) Envelope #14 (5 in. x 11-1/2 in.) C size sheet D size sheet E size sheet Envelope DL (110 mm x 220 mm) Envelope C5 (162 mm x 229 mm) Envelope C3 (324 mm x 458 mm) Envelope C4 (229 mm x 324 mm) Envelope C6 (114 mm x 162 mm) Envelope C65 (114 mm x 229 mm) Envelope B4 (250 mm x 353 mm) Envelope B5 (176 mm x 250 mm) Envelope B6 (176 mm x 125 mm) Envelope Italy (110 mm x 230 mm) Envelope Monarch (3-7/8 in. x 7-1/2 in.) Envelope (3-5/8 in. x 6-1/2 in.) U.S. Standard Fanfold (14-7/8 in. x 11 in.) German Standard Fanfold (8-1/2 in. x 12 in.) German Legal Fanfold (8-1/2 in. x 13 in.) B4 (ISO) 250 x 353 mm Japanese Postcard (100mm ¡Á 148mm) 9? ¡Á 11? 10? ¡Á 11? 15? ¡Á 11? Envelope Invite(220mm ¡Á 220mm) US Letter Extra 9 \275 x 12 in US Legal Extra 9 \275 x 15 in US Tabloid Extra 11.69 x 18 in A4 Extra 9.27 x 12.69 in Letter Transverse 8 \275 x 11 in A4 Transverse 210 x 297 mm Letter Extra Transverse 9\275 x 12 in SuperA/SuperA/A4 227 x 356 mm SuperB/SuperB/A3 305 x 487 mm US Letter Plus 8.5 x 12.69 in A4 Plus 210 x 330 mm A5 Transverse 148 x 210 mm B5 (JIS) Transverse 182 x 257 mm A3 Extra 322 x 445 mm A5 Extra 174 x 235 mm B5 (ISO) Extra 201 x 276 mm A2 420 x 594 mm A3 Transverse 297 x 420 mm A3 Extra Transverse 322 x 445 mm Japanese Double Postcard 200 x 148 mm A6 105 x 148 mm Japanese Envelope Kaku #2 Japanese Envelope Kaku #3 Japanese Envelope Chou #3 Japanese Envelope Chou #4 11in ¡Á 8.5in 420mm ¡Á 297mm 297mm ¡Á 210mm 210mm ¡Á 148mm B4 (JIS) Rotated 364 x 257 mm B5 (JIS) Rotated 257 x 182 mm Japanese Postcard Rotated 148 x 100 mm Double Japanese Postcard Rotated 148 x 200 mm A6 Rotated 148 x 105 mm Japanese Envelope Kaku #2 Rotated Japanese Envelope Kaku #3 Rotated Japanese Envelope Chou #3 Rotated Japanese Envelope Chou #4 Rotated B6 (JIS) 128 x 182 mm B6 (JIS) Rotated 182 x 128 mm 12 x 11 in Japanese Envelope You #4 Japanese Envelope You #4 Rotated PRC 16K 146 x 215 mm PRC 32K 97 x 151 mm PRC 32K(Big) 97 x 151 mm PRC Envelope #1 102 x 165 mm PRC Envelope #2 102 x 176 mm PRC Envelope #3 125 x 176 mm PRC Envelope #4 110 x 208 mm PRC Envelope #5 110 x 220 mm PRC Envelope #6 120 x 230 mm PRC Envelope #7 160 x 230 mm PRC Envelope #8 120 x 309 mm PRC Envelope #9 229 x 324 mm PRC Envelope #10 324 x 458 mm PRC 16K Rotated PRC 32K Rotated PRC 32K(Big) Rotated PRC Envelope #1 Rotated 165 x 102 mm PRC Envelope #2 Rotated 176 x 102 mm PRC Envelope #3 Rotated 176 x 125 mm PRC Envelope #4 Rotated 208 x 110 mm PRC Envelope #5 Rotated 220 x 110 mm PRC Envelope #6 Rotated 230 x 120 mm PRC Envelope #7 Rotated 230 x 160 mm PRC Envelope #8 Rotated 309 x 120 mm PRC Envelope #9 Rotated 324 x 229 mm PRC Envelope #10 Rotated 458 x 324 mm usual B3(13.9 x 19.7 in) Business Card(90mm x 55 mm) Thermal(3 x 11 in) Represents the custom paper size. Encapsulates the object that represents a single picture in a spreadsheet. [C#] //Instantiating a Workbook object Workbook workbook = new Workbook(); //Adding a new worksheet to the Workbook object int sheetIndex = workbook.Worksheets.Add(); //Obtaining the reference of the newly added worksheet by passing its sheet index Worksheet worksheet = workbook.Worksheets[sheetIndex]; //Adding a picture at the location of a cell whose row and column indices //are 5 in the worksheet. It is "F6" cell worksheet.Pictures.Add(5, 5, "C:\\image.gif"); //Saving the Excel file workbook.Save(saveFileDialog1.FileName, SaveFormat.Excel97To2003); [Visual Basic] 'Instantiating a Workbook object Dim workbook As Workbook = New Workbook() 'Adding a new worksheet to the Workbook object Dim sheetIndex As Integer = workbook.Worksheets.Add() 'Obtaining the reference of the newly added worksheet by passing its sheet index Dim worksheet As Worksheet = workbook.Worksheets(sheetIndex) 'Adding a picture at the location of a cell whose row and column indices 'are 5 in the worksheet. It is "F6" cell worksheet.Pictures.Add(5, 5, "C:\image.gif") 'Saving the Excel file workbook.Save("C:\book1.xls", SaveFormat.Excel97To2003) Copy the picture. The source picture. The copy options. Moves the picture to a specified location. Upper left row index. Upper left column index. Gets the original height of the picture. Gets the original width of the picture. Represents the of the border line of a picture. Gets or sets the weight of the border line of a picture in units of pt. Gets the data of the picture. Gets or sets the path and name of the source file for the linked image. The default value is an empty string. If SourceFullName is not an empty string, the image is linked. If SourceFullName is not an empty string, but Data is null, then the image is linked and not stored in the file. Gets and sets the data of the formula. True indicates that the size of the ole object will be auto changed as the size of snapshop of the embedded content when the ole object is activated. Returns true if the picture is linked to a file. Gets or sets whether dynamic data exchange True if the specified object is displayed as an icon and the image will not be auto changed. Gets the image format of the picture. Gets the original height of picture, in unit of centimeters. Gets the original width of picture, in unit of centimeters. Gets the original height of picture, in unit of inches. Gets the original width of picture, in unit of inches. Gets and sets the signature line Encapsulates a collection of objects. Adds a picture to the collection. Upper left row index. Upper left column index. Lower right row index Lower right column index Stream object which contains the image data. object index. Adds a picture to the collection. Upper left row index. Upper left column index. Lower right row index Lower right column index Image filename. object index. Adds a picture to the collection. Upper left row index. Upper left column index. Stream object which contains the image data. object index. Adds a picture to the collection. Upper left row index. Upper left column index. Image filename. object index. Adds a picture to the collection. Upper left row index. Upper left column index. Stream object which contains the image data. Scale of image width, a percentage. Scale of image height, a percentage. object index. Adds a picture to the collection. Upper left row index. Upper left column index. Image filename. Scale of image width, a percentage. Scale of image height, a percentage. object index. Clear all pictures. Remove shapes at the specific index Gets the element at the specified index. The zero based index of the element. The element at the specified index. Represents the way the drawing object is attached to the cells below it. Don't move or size with cells. Move but don't size with cells. Move and size with cells. Represents the way comments are printed with the sheet. Represents to print comments as displayed on sheet. Represents not to print comments. Represents to print comments at end of sheet. Represents print errors constants. Represents not to print errors. Represents to print errors as "--". Represents to print errors as displayed. Represents to print errors as "#N/A". Represent print order constants. Down, then over Over, then down Represents the printed chart size. Use full page. Scale to fit page. Custom. Represents the various types of protection options available for a worksheet. Only used in ExcelXP and above version. [C#] //Allowing users to select locked cells of the worksheet worksheet.Protection.AllowSelectingLockedCell = true; //Allowing users to select unlocked cells of the worksheet worksheet.Protection.AllowSelectingUnlockedCell = true; [Visual Basic] 'Allowing users to select locked cells of the worksheet worksheet.Protection.AllowSelectingLockedCell = True 'Allowing users to select unlocked cells of the worksheet worksheet.Protection.AllowSelectingUnlockedCell = True Copy protection info. Gets the hash of current password. Verifies password. The password. Represents if the deletion of columns is allowed on a protected worksheet. The columns containing the cells to be deleted must be unlocked when the sheet is protected, and "Select unlocked cells" option must be enabled. Represents if the deletion of columns is allowed on a protected worksheet. The columns containing the cells to be deleted must be unlocked when the sheet is protected, and "Select unlocked cells" option must be enabled. NOTE: This member is now obsolete. Instead, please use Protection.AllowDeletingColumn property. This property will be removed 12 months later since June 2010. Aspose apologizes for any inconvenience you may have experienced. Represents if the deletion of rows is allowed on a protected worksheet. The rows containing the cells to be deleted must be unlocked when the sheet is protected, and "Select unlocked cells" option must be enabled. Represents if the deletion of rows is allowed on a protected worksheet. The rows containing the cells to be deleted must be unlocked when the sheet is protected, and "Select unlocked cells" option must be enabled. NOTE: This member is now obsolete. Instead, please use Protection.AllowDeletingRow property. This property will be removed 12 months later since June 2010. Aspose apologizes for any inconvenience you may have experienced. Represents if the user is allowed to make use of an AutoFilter that was created before the sheet was protected. Represents if the user is allowed to make use of an AutoFilter that was created before the sheet was protected. NOTE: This member is now obsolete. Instead, please use Protection.AllowFiltering property. This property will be removed 12 months later since June 2010. Aspose apologizes for any inconvenience you may have experienced. Represents if the formatting of cells is allowed on a protected worksheet. Represents if the formatting of cells is allowed on a protected worksheet. NOTE: This member is now obsolete. Instead, please use Protection.AllowFormattingCell property. This property will be removed 12 months later since June 2010. Aspose apologizes for any inconvenience you may have experienced. Represents if the formatting of columns is allowed on a protected worksheet Represents if the formatting of columns is allowed on a protected worksheet NOTE: This member is now obsolete. Instead, please use Protection.AllowFormattingColumn property. This property will be removed 12 months later since June 2010. Aspose apologizes for any inconvenience you may have experienced. Represents if the formatting of rows is allowed on a protected worksheet Represents if the formatting of rows is allowed on a protected worksheet NOTE: This member is now obsolete. Instead, please use Protection.AllowFormattingRow property. This property will be removed 12 months later since June 2010. Aspose apologizes for any inconvenience you may have experienced. Represents if the insertion of columns is allowed on a protected worksheet Represents if the insertion of columns is allowed on a protected worksheet NOTE: This member is now obsolete. Instead, please use Protection.AllowInsertingColumn property. This property will be removed 12 months later since June 2010. Aspose apologizes for any inconvenience you may have experienced. Represents if the insertion of hyperlinks is allowed on a protected worksheet Represents if the insertion of hyperlinks is allowed on a protected worksheet NOTE: This member is now obsolete. Instead, please use Protection.AllowInsertingHyperlink property. This property will be removed 12 months later since June 2010. Aspose apologizes for any inconvenience you may have experienced. Represents if the insertion of rows is allowed on a protected worksheet Represents if the insertion of rows is allowed on a protected worksheet NOTE: This member is now obsolete. Instead, please use Protection.AllowInsertingRow property. This property will be removed 12 months later since June 2010. Aspose apologizes for any inconvenience you may have experienced. Represents if the sorting option is allowed on a protected worksheet. Represents if the sorting option is allowed on a protected worksheet. NOTE: This member is now obsolete. Instead, please use Protection.AllowSorting property. This property will be removed 12 months later since June 2010. Aspose apologizes for any inconvenience you may have experienced. Represents if the user is allowed to manipulate pivot tables on a protected worksheet. Represents if the user is allowed to manipulate pivot tables on a protected worksheet. NOTE: This member is now obsolete. Instead, please use Protection.AllowUsingPivotTable property. This property will be removed 12 months later since June 2010. Aspose apologizes for any inconvenience you may have experienced. Represents if the user is allowed to edit contents of locked cells on a protected worksheet. Represents if the user is allowed to edit contents of locked cells on a protected worksheet. NOTE: This member is now obsolete. Instead, please use Protection.AllowEditingContent property. This property will be removed 12 months later since June 2010. Aspose apologizes for any inconvenience you may have experienced. Represents if the user is allowed to manipulate drawing objects on a protected worksheet. Represents if the user is allowed to manipulate drawing objects on a protected worksheet. NOTE: This member is now obsolete. Instead, please use Protection.AllowEditingObject property. This property will be removed 12 months later since June 2010. Aspose apologizes for any inconvenience you may have experienced. Represents if the user is allowed to edit scenarios on a protected worksheet. Represents if the user is allowed to edit scenarios on a protected worksheet. NOTE: This member is now obsolete. Instead, please use Protection.AllowEditingScenario property. This property will be removed 12 months later since June 2010. Aspose apologizes for any inconvenience you may have experienced. Represents the password to protect the worksheet. If password is set to null or blank string, you can unprotect the worksheet or workbook without using a password. Otherwise, you must specify the password to unprotect the worksheet or workbook. Indicates whether the worksheets is protected with password. Represents if the user is allowed to select locked cells on a protected worksheet. Represents if the user is allowed to select locked cells on a protected worksheet. NOTE: This member is now obsolete. Instead, please use Protection.AllowSelectingLockedCell property. This property will be removed 12 months later since June 2010. Aspose apologizes for any inconvenience you may have experienced. Represents if the user is allowed to select unlocked cells on a protected worksheet. Represents if the user is allowed to select unlocked cells on a protected worksheet. NOTE: This member is now obsolete. Instead, please use Protection.AllowSelectingUnlockedCell property. This property will be removed 12 months later since June 2010. Aspose apologizes for any inconvenience you may have experienced. Represents workbook/worksheet protection type. Represents to protect all. Represents to protect contents, used in Worksheet protection. Represents to protect objects, used in Worksheet protection. Represents to protect scenarios, used in Worksheet protection. Represents to protect structure, used in Workbook protection. Represents to protect window, used in Workbook protection. Represents no protection. Only for Reading property. Represents a radio button. Indicates if the radiobutton is checked or not. Indicates whether the combobox has 3-D shading. Gets the GroupBox that contains this RadioButton. Encapsulates a collection of objects. Adds a item to the collection. Range object Gets the element at the specified index. The zero based index of the element. The element at the specified index. Represents the rectangle shape. Represents a scroll bar object. Scroll value must be between 0 and 30000. Gets or sets the current value. Gets or sets the minimum value of a scroll bar or spinner range. Gets or sets the maximum value of a scroll bar or spinner range. Gets or sets the amount that the scroll bar or spinner is incremented a line scroll. Gets or sets page change Indicates whether the shape has 3-D shading. Indicates whether this is a horizontal scroll bar. The selection type of list box. Sigle selection type. Multiple selection type. Extend selection type. Represents all the shape in a worksheet/chart. Adds and copy a shape to the worksheet.. Source shape. Upper left row index. Represents the vertical offset of checkbox from its left row, in unit of pixel. Upper left column index. Represents the horizontal offset of textbox from its left column, in unit of pixel. The new shape object index. Adds a checkbox to the worksheet. Upper left row index. Represents the vertical offset of checkbox from its left row, in unit of pixel. Upper left column index. Represents the horizontal offset of textbox from its left column, in unit of pixel. Height of textbox, in unit of pixel. Width of textbox, in unit of pixel. The new CheckBox object index. Adds a text box to the worksheet. Upper left row index. Represents the vertical offset of textbox from its left row, in unit of pixel. Upper left column index. Represents the horizontal offset of textbox from its left column, in unit of pixel. Represents the height of textbox, in unit of pixel. Represents the width of textbox, in unit of pixel. A object. Adds a Spinner to the worksheet. Upper left row index. Represents the vertical offset of Spinner from its left row, in unit of pixel. Upper left column index. Represents the horizontal offset of Spinner from its left column, in unit of pixel. Represents the height of Spinner, in unit of pixel. Represents the width of Spinner, in unit of pixel. A Spinner object. Adds a ScrollBar to the worksheet. Upper left row index. Represents the vertical offset of ScrollBar from its left row, in unit of pixel. Upper left column index. Represents the horizontal offset of ScrollBar from its left column, in unit of pixel. Represents the height of ScrollBar, in unit of pixel. Represents the width of ScrollBar, in unit of pixel. A ScrollBar object. Adds a RadioButton to the worksheet. Upper left row index. Represents the vertical offset of RadioButton from its left row, in unit of pixel. Upper left column index. Represents the horizontal offset of RadioButton from its left column, in unit of pixel. Represents the height of RadioButton, in unit of pixel. Represents the width of RadioButton, in unit of pixel. A RadioButton object. Adds a ListBox to the worksheet. Upper left row index. Represents the vertical offset of ListBox from its left row, in unit of pixel. Upper left column index. Represents the horizontal offset of ListBox from its left column, in unit of pixel. Represents the height of ListBox, in unit of pixel. Represents the width of ListBox, in unit of pixel. A ListBox object. Adds a ComboBox to the worksheet. Upper left row index. Represents the vertical offset of ComboBox from its left row, in unit of pixel. Upper left column index. Represents the horizontal offset of ComboBox from its left column, in unit of pixel. Represents the height of ComboBox, in unit of pixel. Represents the width of ComboBox, in unit of pixel. A ComboBox object. Adds a GroupBox to the worksheet. Upper left row index. Represents the vertical offset of GroupBox from its left row, in unit of pixel. Upper left column index. Represents the horizontal offset of GroupBox from its left column, in unit of pixel. Represents the height of GroupBox, in unit of pixel. Represents the width of GroupBox, in unit of pixel. A GroupBox object. Adds a Button to the worksheet. Upper left row index. Represents the vertical offset of Button from its left row, in unit of pixel. Upper left column index. Represents the horizontal offset of Button from its left column, in unit of pixel. Represents the height of Button, in unit of pixel. Represents the width of Button, in unit of pixel. A Button object. Adds a Label to the worksheet. Upper left row index. Represents the vertical offset of Label from its left row, in unit of pixel. Upper left column index. Represents the horizontal offset of Label from its left column, in unit of pixel. Represents the height of Label, in unit of pixel. Represents the width of Label, in unit of pixel. A Label object. Adds a label to the chart. Represents the vertical offset of label from the upper left corner in units of 1/4000 of the chart area. Represents the vertical offset of label from the upper left corner in units of 1/4000 of the chart area. Represents the height of label, in units of 1/4000 of the chart area. Represents the width of label, in units of 1/4000 of the chart area. A new Label object. Adds a textbox to the chart. Represents the vertical offset of textbox from the upper left corner in units of 1/4000 of the chart area. Represents the vertical offset of textbox from the upper left corner in units of 1/4000 of the chart area. Represents the height of textbox, in units of 1/4000 of the chart area. Represents the width of textbox, in units of 1/4000 of the chart area. A TextBox object. Inserts a WordArt object to the chart The mso preset text effect type. The WordArt text. The font name. The font size Indicates whether font is bold. Indicates whether font is italic. Represents the vertical offset of shape from the upper left corner in units of 1/4000 of the chart area. Represents the vertical offset of shape from the upper left corner in units of 1/4000 of the chart area. Represents the height of shape, in units of 1/4000 of the chart area. Represents the width of shape, in units of 1/4000 of the chart area. Returns a Shape object that represents the new WordArt object. Inserts a WordArt object. The mso preset text effect type. The WordArt text. The font name. The font size Indicates whether font is bold. Indicates whether font is italic. Upper left row index. Represents the vertical offset of shape from its left row, in unit of pixel. Upper left column index. Represents the horizontal offset of shape from its left column, in unit of pixel. Represents the height of shape, in unit of pixel. Represents the width of shape, in unit of pixel. Returns a Shape object that represents the new WordArt object. Adds preset WordArt since Excel 2007.s The preset WordArt Style. The text. Upper left row index. Represents the vertical offset of shape from its left row, in unit of pixel. Upper left column index. Represents the horizontal offset of shape from its left column, in unit of pixel. Represents the height of shape, in unit of pixel. Represents the width of shape, in unit of pixel. Adds a RectangleShape to the worksheet. Upper left row index. Represents the vertical offset of RectangleShape from its left row, in unit of pixel. Upper left column index. Represents the horizontal offset of RectangleShape from its left column, in unit of pixel. Represents the height of RectangleShape, in unit of pixel. Represents the width of RectangleShape, in unit of pixel. A RectangleShape object. Adds a Oval to the worksheet. Upper left row index. Represents the vertical offset of Oval from its left row, in unit of pixel. Upper left column index. Represents the horizontal offset of Oval from its left column, in unit of pixel. Represents the height of Oval, in unit of pixel. Represents the width of Oval, in unit of pixel. A Oval object. Adds a LineShape to the worksheet. Upper left row index. Represents the vertical offset of LineShape from its left row, in unit of pixel. Upper left column index. Represents the horizontal offset of LineShape from its left column, in unit of pixel. Represents the height of LineShape, in unit of pixel. Represents the width of LineShape, in unit of pixel. A LineShape object. Adds a free floating shape to the worksheet.Only applies for line/image shape. The shape type. Represents the vertical offset of shape from the worksheet's top row, in unit of pixel. Represents the horizontal offset of shape from the worksheet's left column, in unit of pixel. Represents the height of LineShape, in unit of pixel. Represents the width of LineShape, in unit of pixel. The image data,only applies for the picture. Whether the shape use original size if the shape is image. Add a shape to chart .All unit is 1/4000 of chart area. The drawing type. the placement type. In unit of 1/4000 chart area width. In unit of 1/4000 chart area height. In unit of 1/4000 chart area width. In unit of 1/4000 chart area height. If the shape is not a picture or ole object,imageData should be null. Add a shape to chart .All unit is 1/4000 of chart area. The drawing type. the placement type. In unit of 1/4000 chart area width. In unit of 1/4000 chart area height. In unit of 1/4000 chart area width. In unit of 1/4000 chart area height. Adds a ArcShape to the worksheet. Upper left row index. Represents the vertical offset of ArcShape from its left row, in unit of pixel. Upper left column index. Represents the horizontal offset of ArcShape from its left column, in unit of pixel. Represents the height of ArcShape, in unit of pixel. Represents the width of ArcShape, in unit of pixel. A ArcShape object. Adds a Shape to the worksheet. Mso drawing type. Upper left row index. Represents the vertical offset of Shape from its left row, in unit of pixel. Upper left column index. Represents the horizontal offset of Shape from its left column, in unit of pixel. Represents the height of Shape, in unit of pixel. Represents the width of Shape, in unit of pixel. A Shape object. The type could not be Chart/Comment/Picture/OleObject/Polygon/DialogBox Adds a AutoShape to the worksheet. Auto shape type. Upper left row index. Represents the vertical offset of Shape from its left row, in unit of pixel. Upper left column index. Represents the horizontal offset of Shape from its left column, in unit of pixel. Represents the height of Shape, in unit of pixel. Represents the width of Shape, in unit of pixel. A Shape object. The type could not be Chart/Comment/Picture/OleObject/Polygon/DialogBox Adds a AutoShape to the chart. Auto shape type. Represents the vertical offset of textbox from the upper left corner in units of 1/4000 of the chart area. Represents the vertical offset of textbox from the upper left corner in units of 1/4000 of the chart area. Represents the height of textbox, in units of 1/4000 of the chart area. Represents the width of textbox, in units of 1/4000 of the chart area. Returns a shape object. The type could not be Chart/Comment/Picture/OleObject/Polygon/DialogBox Creates an Activex Control. The type of the control. Upper left row index. Represents the vertical offset of Shape from its left row, in unit of pixel. Upper left column index. Represents the horizontal offset of Shape from its left column, in unit of pixel. Represents the height of Shape, in unit of pixel. Represents the width of Shape, in unit of pixel. Adds a picture to the collection. Upper left row index. Upper left column index. Lower right row index Lower right column index Stream object which contains the image data. Picture object. Adds a picture to the collection. Upper left row index. Upper left column index. Stream object which contains the image data. Scale of image width, a percentage. Scale of image height, a percentage. Picture object. Adds svg image. Upper left row index. Represents the vertical offset of shape from its left row, in unit of pixel. Upper left column index. The horizontal offset of shape from its left column, in unit of pixel. The height of shape, in unit of pixel. The width of shape, in unit of pixel. The svg image data. Converted image data from svg in order to be compatible with Excel 2016 or lower versions. Add a linked picture. Upper left row index. Upper left column index. The height of the shape. In unit of pixels The width of the shape. In unit of pixels The path and name of the source file for the linked image Picture object. Add a linked picture. Upper left row index. Upper left column index. The height of the shape. In unit of pixels The width of the shape. In unit of pixels The path and name of the source file for the linked image Picture object. Adds a picture to the chart. Represents the vertical offset of shape from the upper left corner in units of 1/4000 of the chart area. Represents the horizontal offset of shape from the upper left corner in units of 1/4000 of the chart area. Stream object which contains the image data. Scale of image width, a percentage. Scale of image height, a percentage. Returns a Picture object. Copy all comments in the range. The source shapes. The source range. The dest range start row. The dest range start column. Copy shapes in the range to destination range. Source shapes. The source range. The dest row index of the dest range. The dest column of the dest range. Whether only copy the shapes which are contained in the range. If true,only copies the shapes in the range. Otherwise,it works as MS Office. Delete shapes in the range.Comment shapes will not be deleted. The range.If the shapes are contained in the range, they will be removed. Delete a shape. If the shape is in the group or is a comment shape, it will not be deleted. Group the shapes. the group items. Return the group shape. The shape in the groupItems should not be grouped. The shape must be in this Shapes collection. Ungroups the shape items. The group shape. If the group shape is grouped by another group shape,nothing will be done. Remove the shape. The index of the shape. Remove the shape. Clear all shapes. Update the selected value by the value of the linked cell of the shapes. Gets the shape object at the specific index. Gets the shape object by the shape image Specifies the worksheet type. Visual Basic module Chart BIFF4 Macro sheet International Macro sheet Dialog worksheet Represent the shift options when deleting a range of cells. Shift cells down. Shift cells left. Do not shift cells. Shift cells right. Shift cells up. Represents sort order for the data range. Represents the Forms control: Spinner. Scroll value must be between 0 and 30000. Gets or sets the current value. Gets or sets the minimum value of a scroll bar or spinner range. Gets or sets the maximum value of a scroll bar or spinner range. Gets or sets the amount that the scroll bar or spinner is incremented a line scroll. Indicates whether the shape has 3-D shading. Indicates whether this is a horizontal scroll bar. Represents display style of excel document,such as font,color,alignment,border,etc. The Style object contains all style attributes (font, number format, alignment, and so on) as properties. There are two methods to set a cell's style. [C#] Cell cell = excel.Worksheets[0].Cells["A1"]; Style style = cell.GetStyle(); style.Font.Name = "Times New Roman"; style.Font.Color = Color.Blue; cell.SetStyle(style); Sets the background color. The pattern. The foreground color. The background color. Only works when pattern is not BackgroundType.None and BackgroundType.Solid. Initializes a new instance of the class. NOTE: This constructor is now obsolete. Instead, please use CellsFactory.CreateStyle() method. This property will be removed 6 months later since October 2016. Aspose apologizes for any inconvenience you may have experienced. Copies data from another style object Source Style object This method does not copy the name of the style. If you want to copy the name, please call the following codes after copying style: destStyle.Name = style.Name. Apply the named style to the styles of the cells which use this named style. It works like clicking the "ok" button after you finished modifying the style. Only applies for named style. Checks whether the specified properties of the style have been modified. Used for style of ConditionalFormattings to check whether the specified properties of this style should be used when applying the ConditionalFormattings on a cell. Style modified flags true if the specified properties have been modified Determines whether two Style instances are equal. The Style object to compare with the current Style object. true if the specified Object is equal to the current Object; otherwise, false. Serves as a hash function for a Style object. A hash code for the current Object. This method is only for internal use. Sets the border of the style. Sets the Custom number format string of a cell. Custom number format string, should be InvariantCulture pattern. If given Custom number format string matches one of the built-in number formats corresponding to current regional settings, whether set the number format as built-in instead of Custom. Sets the specified fill to a two-color gradient. One gradient color. Two gradient color. Gradient shading style. The gradient variant. Can be a value from 1 through 4, corresponding to one of the four variants on the Gradient tab in the Fill Effects dialog box. If style is GradientStyle.FromCenter, the Variant argument can only be 1 or 2. Get the two-color gradient setting. One gradient color. Two gradient color. Gradient shading style. The gradient variant. Gets and sets the background theme color. If the background color is not a theme color, NULL will be returned. Gets and sets the foreground theme color. If the foreground color is not a theme color, NULL will be returned. Gets or sets the name of the style. Gets or sets the cell background pattern type. Gets the of the style. Gets or sets a style's background color. If you want to set a cell's color, please use Style.ForegroundColor property. Only if the cell style pattern is other than none or solid, this property will take effect. Gets and sets the background color with a 32-bit ARGB value. Gets or sets a style's foreground color. It means no color setting if Color.Empty is returned. Gets and sets the foreground color with a 32-bit ARGB value. Gets the parent style of this style. Represents the indent level for the cell or range. Can only be an integer from 0 to 250. If text horizontal alignment type is set to value other than left or right, indent level will be reset to zero. Gets a object. Represents text rotation angle.

0: Not rotated.

255: Top to Bottom.

-90: Downward.

90: Upward.

You can set 255 or value ranged from -90 to 90.
Gets or sets the vertical alignment type of the text in a cell. Gets or sets the horizontal alignment type of the text in a cell. Gets or sets a value indicating whether the text within a cell is wrapped. Gets or sets the display format of numbers and dates. The formatting patterns are different for different regions. For example, the formatting patterns represented by numbers for en_US region:
ValueTypeFormat String
0GeneralGeneral
1Decimal0
2Decimal0.00
3Decimal#,##0
4Decimal#,##0.00
5Currency$#,##0_);($#,##0)
6Currency$#,##0_);[Red]($#,##0)
7Currency$#,##0.00_);($#,##0.00)
8Currency$#,##0.00_);[Red]($#,##0.00)
9Percentage0%
10Percentage0.00%
11Scientific0.00E+00
12Fraction# ?/?
13Fraction# ??/??
14Datem/d/yyyy
15Dated-mmm-yy
16Dated-mmm
17Datemmm-yy
18Timeh:mm AM/PM
19Timeh:mm:ss AM/PM
20Timeh:mm
21Timeh:mm:ss
22Timem/d/yyyy h:mm
37Accounting#,##0_);(#,##0)
38Accounting#,##0_);[Red](#,##0)
39Accounting#,##0.00_);(#,##0.00)
40Accounting#,##0.00_);[Red](#,##0.00)
41Accounting_(* #,##0_);_(* (#,##0);_(* "-"_);_(@_)
42Currency_($* #,##0_);_($* (#,##0);_($* "-"_);_(@_)
43Accounting_(* #,##0.00_);_(* (#,##0.00);_(* "-"??_);_(@_)
44Currency_($* #,##0.00_);_($* (#,##0.00);_($* "-"??_);_(@_)
45Timemm:ss
46Time[h]:mm:ss
47Timemm:ss.0
48Scientific##0.0E+0
49Text@
Gets or sets a value indicating whether a cell can be modified or not. Locking cells has no effect unless the worksheet is protected. Represents the custom number format string of this style object. If the custom number format is not set(For example, the number format is builtin), "" will be returned. The returned custom string is culture-independent. Gets and sets the culture-dependent pattern string for number format. If no number format has been set for this object, null will be returned. If number format is builtin, the pattern string corresponding to the builtin number will be returned. For builtin number format, both the pattern content(such as, one builtin date format is "m/d/y" for some locales, but for some other locales it becomes "d/m/y") and the format specifier(such as, some locales is using character other than 'y' to represent the year part for date formatting) are culture-dependent; For user specified custom format, only format specifiers are changed according to the culture, other parts of the formatting pattern will not be modified. Gets the culture-independent pattern string for number format. If no number format has been set for this object, null will be returned. If number format is builtin, the pattern string corresponding to the builtin number will be returned. For builtin number formats, the returned pattern content is still culture-dependent, such as, for some locales it returns "m/d/y" and for some other locales it returns "d/m/y". The difference from is(that is also what culture-independent means): the format specifiers and separators are kept as standard, such as '/' will always be used as datetime separator and "y" will always be used as the "year" part no matter what other special character is used for the specific locale. Represents if the formula will be hidden when the worksheet is protected. Represents if text automatically shrinks to fit in the available column width. Represents text reading order. Indicates if the cells justified or distributed alignment should be used on the last line of text. This is typical for East Asian alignments but not typical in other contexts. Indicates whether the cell's value starts with single quote mark. Indicates whether the cell shading is a gradient pattern. Indicates whether the number format is a percent format. Indicates whether the number format is a date format. Represents flags which indicates applied formatting properties. All properties will be applied. All borders settings will be applied. Left border settings will be applied. Right border settings will be applied. Top border settings will be applied. Bottom border settings will be applied. Diagonal down border settings will be applied. Diagonal up border settings will be applied. Font settings will be applied. Font size setting will be applied. Font name setting will be applied. Font color setting will be applied. Font bold setting will be applied. Font italic setting will be applied. Font underline setting will be applied. Font strikeout setting will be applied. Font script setting will be applied. Number format setting will be applied. Alignment setting will be applied. Horizontal alignment setting will be applied. Vertical alignment setting will be applied. Indent level setting will be applied. Rotation setting will be applied. Wrap text setting will be applied. Shrink to fit setting will be applied. Text direction setting will be applied. Cell shading setting will be applied. Locked setting will be applied. Hide formula setting will be applied. Hide formula setting will be applied. The style modified flags. Only for dynamic style,such as conditional formatting. Only for dynamic style,such as conditional formatting. NOTE: This member is now obsolete. Instead, please use FontScript. This property will be removed 12 months later since August 2012. Aspose apologizes for any inconvenience you may have experienced. NOTE: This member is now obsolete. Instead, please use FontScript. This property will be removed 12 months later since August 2012. Aspose apologizes for any inconvenience you may have experienced. Includes horizontal/vertical Alignment, rotation,wrap Text,indent,shrinkToFit,Text Direction Includes Locked, HideFormula unused. unused. unused. unused. unused. unused. unused. unused. Specifies the spacing between characters within a text run. Represents the table's data source type. Excel Worksheet Table Read-write SharePoint linked List XML mapper Table Query Table Represents the element of the table style. Gets the element style. Returns the object. Sets the element style. The element style. Number of rows or columns in a single band of striping. Applies only when type is firstRowStripe, secondRowStripe, firstColumnStripe, or secondColumnStripe. Gets the element type. Represents all elements of the table style. Adds an element. The type of the element Returns the index of the element in the list. Gets an element of the table style by the index. The index. Returns object Gets the element of the table style by the The element type. Returns object Represents the table style. [C#] Workbook workbook = new Workbook(); Style firstColumnStyle = workbook.CreateStyle(); firstColumnStyle.Pattern = BackgroundType.Solid; firstColumnStyle.BackgroundColor = System.Drawing.Color.Red; Style lastColumnStyle = workbook.CreateStyle(); lastColumnStyle.Font.IsBold = true; lastColumnStyle.Pattern = BackgroundType.Solid; lastColumnStyle.BackgroundColor = System.Drawing.Color.Red; string tableStyleName = "Custom1"; TableStyleCollection tableStyles = workbook.Worksheets.TableStyles; int index1 = tableStyles.AddTableStyle(tableStyleName); TableStyle tableStyle = tableStyles[index1]; TableStyleElementCollection elements = tableStyle.TableStyleElements; index1 = elements.Add(TableStyleElementType.FirstColumn); TableStyleElement element = elements[index1]; element.SetElementStyle(firstColumnStyle); index1 = elements.Add(TableStyleElementType.LastColumn); element = elements[index1]; element.SetElementStyle(lastColumnStyle); Cells cells = workbook.Worksheets[0].Cells; for (int i = 0; i <5; i++) { cells[0, i].PutValue(CellsHelper.ColumnIndexToName(i)); } for (int row = 1; row <10; row++) { for (int column = 0; column <5; column++) { cells[row, column].PutValue(row * column); } } ListObjectCollection tables = workbook.Worksheets[0].ListObjects; int index = tables.Add(0, 0, 9, 4, true); ListObject table = tables[0]; table.ShowTableStyleFirstColumn = true; table.ShowTableStyleLastColumn = true; table.TableStyleName = tableStyleName; workbook.Save(@"C:\Book1.xlsx"); [Visual Basic] Dim workbook As Workbook = New Workbook() Dim firstColumnStyle As Style = workbook.CreateStyle() firstColumnStyle.Pattern = BackgroundType.Solid firstColumnStyle.BackgroundColor = System.Drawing.Color.Red Dim lastColumnStyle As Style = workbook.CreateStyle() lastColumnStyle.Font.IsBold = True lastColumnStyle.Pattern = BackgroundType.Solid lastColumnStyle.BackgroundColor = System.Drawing.Color.Red Dim tableStyleName As String = "Custom1" Dim tableStyles As TableStyleCollection = workbook.Worksheets.TableStyles Dim index1 As Int32 = tableStyles.AddTableStyle(tableStyleName) Dim tableStyle As TableStyle = tableStyles(index1) Dim elements As TableStyleElementCollection = tableStyle.TableStyleElements index1 = elements.Add(TableStyleElementType.FirstColumn) Dim element As TableStyleElement = elements(index1) element.SetElementStyle(firstColumnStyle) index1 = elements.Add(TableStyleElementType.LastColumn) element = elements(index1) element.SetElementStyle(lastColumnStyle) Dim cells As Cells = workbook.Worksheets(0).Cells For i As Int32 = 0 To 4 cells(0, i).PutValue(CellsHelper.ColumnIndexToName(i)) Next For row As Int32 = 1 To 9 For column As Int32 = 0 To 4 cells(row, column).PutValue(row * column) Next Next Dim tables As ListObjectCollection = workbook.Worksheets(0).ListObjects Dim index As Int32 = tables.Add(0, 0, 9, 4, True) Dim table As ListObject = tables(0) table.ShowTableStyleFirstColumn = True table.ShowTableStyleLastColumn = True table.TableStyleName = tableStyleName workbook.Save("C:\Book1.xlsx") Gets the name of table style. Gets all elements of the table style. Represents the Table or PivotTable style element type. Table style element that applies to PivotTable's blank rows. Table style element that applies to table's first column. Table style element that applies to table's first column stripes. Table style element that applies to PivotTable's first column subheading. Table style element that applies to table's first header row cell. Table style element that applies to table's first row stripes. Table style element that applies to PivotTable's first row subheading. Table style element that applies to PivotTable's first subtotal column. Table style element that applies to pivot table's first subtotal row. Table style element that applies to pivot table's grand total column. Table style element that applies to pivot table's grand total row. Table style element that applies to table's first total row cell. Table style element that applies to table's header row. Table style element that applies to table's last column. Table style element that applies to table's last header row cell. Table style element that applies to table's last total row cell. Table style element that applies to pivot table's page field labels. Table style element that applies to pivot table's page field values. Table style element that applies to table's second column stripes. Table style element that applies to pivot table's second column subheading. Table style element that applies to table's second row stripes. Table style element that applies to pivot table's second row subheading. Table style element that applies to PivotTable's second subtotal column. Table style element that applies to PivotTable's second subtotal row. Table style element that applies to PivotTable's third column subheading. Table style element that applies to PivotTable's third row subheading. Table style element that applies to pivot table's third subtotal column. Table style element that applies to PivotTable's third subtotal row. Table style element that applies to table's total row. Table style element that applies to table's entire content. Represents all custom table styles. Adds a custom table style. The table style name. The index of the table style. Adds a custom pivot table style. The pivot table style name. The index of the pivot table style. Gets the builtin table style The builtin table style type. Gets the table style by the index. The position of the table style in the list. The table style object. Gets the table style by the name. The table style name. The table style object. Represents the built-in table style type. Enumerates text alignment types. Represents bottom text alignment. Represents center text alignment. Represents center across text alignment. Represents distributed text alignment. Represents fill text alignment. Represents general text alignment. Represents justify text alignment. Represents left text alignment. Represents right text alignment. Represents top text alignment. Aligns the text with an adjusted kashida length for Arabic text. Distributes Thai text specially, because each character is treated as a word. Encapsulates the object that represents a textbox in a spreadsheet. [C#] //Instantiate a new Workbook. Workbook workbook = new Workbook(); //Get the first worksheet in the book. Worksheet worksheet = workbook.Worksheets[0]; //Add a new textbox to the collection. int textboxIndex = worksheet.TextBoxes.Add(2, 1, 160, 200); //Get the textbox object. Aspose.Cells.TextBox textbox0 = worksheet.TextBoxes[textboxIndex]; //Fill the text. textbox0.Text = "ASPOSE______The .NET and JAVA Component Publisher!"; //Get the textbox text frame. MsoTextFrame textframe0 = textbox0.TextFrame; //Set the textbox to adjust it according to its contents. textframe0.AutoSize = true; //Set the placement. textbox0.Placement = PlacementType.FreeFloating; //Set the font color. textbox0.Font.Color = Color.Blue; //Set the font to bold. textbox0.Font.IsBold = true; //Set the font size. textbox0.Font.Size = 14; //Set font attribute to italic. textbox0.Font.IsItalic = true; //Add a hyperlink to the textbox. textbox0.AddHyperlink("http://www.aspose.com/"); //Get the filformat of the textbox. MsoFillFormat fillformat = textbox0.FillFormat; //Set the fillcolor. fillformat.ForeColor = Color.Silver; //Get the lineformat type of the textbox. MsoLineFormat lineformat = textbox0.LineFormat; //Set the line style. lineformat.Style = MsoLineStyle.ThinThick; //Set the line weight. lineformat.Weight = 6; //Set the dash style to squaredot. lineformat.DashStyle = MsoLineDashStyle.SquareDot; //Add another textbox. textboxIndex = worksheet.TextBoxes.Add(15, 4, 85, 120); //Get the second textbox. Aspose.Cells.TextBox textbox1 = worksheet.TextBoxes[textboxIndex]; //Input some text to it. textbox1.Text = "This is another simple text box"; //Set the placement type as the textbox will move and //resize with cells. textbox1.Placement = PlacementType.MoveAndSize; //Save the excel file. workbook.Save("C:\\tsttextboxes.xls"); [Visual Basic] 'Instantiate a new Workbook. Dim workbook As Workbook = New Workbook() 'Get the first worksheet in the book. Dim worksheet As Worksheet = workbook.Worksheets(0) 'Add a new textbox to the collection. Dim textboxIndex As Integer = worksheet.TextBoxes.Add(2, 1, 160, 200) 'Get the textbox object. Dim textbox0 As Aspose.Cells.TextBox = worksheet.TextBoxes(textboxIndex) 'Fill the text. textbox0.Text = "ASPOSE______The .NET and JAVA Component Publisher!" 'Get the textbox text frame. Dim textframe0 As MsoTextFrame = textbox0.TextFrame 'Set the textbox to adjust it according to its contents. textframe0.AutoSize = True 'Set the placement. textbox0.Placement = PlacementType.FreeFloating 'Set the font color. textbox0.Font.Color = Color.Blue 'Set the font to bold. textbox0.Font.IsBold = True 'Set the font size. textbox0.Font.Size = 14 'Set font attribute to italic. textbox0.Font.IsItalic = True 'Add a hyperlink to the textbox. textbox0.AddHyperlink("http://www.aspose.com/") 'Get the filformat of the textbox. Dim fillformat As MsoFillFormat = textbox0.FillFormat 'Set the fillcolor. fillformat.ForeColor = Color.Silver 'Get the lineformat type of the textbox. Dim lineformat As MsoLineFormat = textbox0.LineFormat 'Set the line style. lineformat.Style = MsoLineStyle.ThinThick 'Set the line weight. lineformat.Weight = 6 'Set the dash style to squaredot. lineformat.DashStyle = MsoLineDashStyle.SquareDot 'Add another textbox. textboxIndex = worksheet.TextBoxes.Add(15, 4, 85, 120) 'Get the second textbox. Dim textbox1 As Aspose.Cells.TextBox = worksheet.TextBoxes(textboxIndex) 'Input some text to it. textbox1.Text = "This is another simple text box" 'Set the placement type as the textbox will move and 'resize with cells. textbox1.Placement = PlacementType.MoveAndSize 'Save the excel file. workbook.Save("C:\tsttextboxes.xls") Encapsulates a collection of objects. Adds a textbox to the collection. Upper left row index. Upper left column index. Height of textbox, in unit of pixel. Width of textbox, in unit of pixel. object index. Remove a text box from the file. The text box index. Clear all text boxes. Gets the element at the specified index. The zero based index of the element. The element at the specified index. Gets the element by the name. The name of the text box. Represents the direction of the text flow for this paragraph. Enumerates text orientation types. text is rotated 90 degrees clockwise text is rotated 90 degrees counterclockwise Represents the default value. Displays text from top to bottom of the cell. Stacked text. Represents the preset texture type. Represents Blue Tissue Paper texture type. Represents Bouquet texture type. Represents Brown Marble texture type. Represents Canvas texture type. Represents Cork texture type. Represents Denim texture type. Represents Fish Fossil texture type. Represents Granite texture type. Represents Green Marble texture type. Represents Medium Wood texture type. Represents Newsprint texture type. Represents Oak texture type. Represents Paper Bag texture type. Represents Papyrus texture type. Represents Parchment texture type. Represents Pink Tissue Paper texture type. Represents Purple Mesh texture type. Represents Recycled Paper texture type. Represents Sand texture type. Represents Stationery texture type. Represents Walnut Droplets texture type. Represents Water Droplets texture type. Represents White Marble texture type. Represents Woven Mat texture type. Represents Unknown texture type. Represents a theme color. [C#] //Instantiating a Workbook object Workbook workbook = new Workbook(); Cells cells = workbook.Worksheets[0].Cells; cells["A1"].PutValue("Hello World"); Style style = cells["A1"].GetStyle(); //Set ThemeColorType.Text2 color type with 40% lighten as the font color. style.Font.ThemeColor = new ThemeColor(ThemeColorType.Text2, 0.4); style.Pattern = BackgroundType.Solid; //Set ThemeColorType.Background2 color type with 75% darken as the foreground color style.ForegroundThemeColor = new ThemeColor(ThemeColorType.Background2, -0.75); cells["A1"].SetStyle(style); //Saving the Excel file workbook.Save("C:\\book1.xlsx"); [Visual Basic] 'Instantiating a Workbook object Dim workbook As Workbook = New Workbook() Dim cells As Cells = workbook.Worksheets(0).Cells cells("A1").PutValue("Hello World") 'Get the cell style Dim style As Style = cells("A1").GetStyle() 'Set ThemeColorType.Text2 color type with 40% lighten as the font color. Style.Font.ThemeColor = New ThemeColor(ThemeColorType.Text2, 0.4) Style.Pattern = BackgroundType.Solid 'Set ThemeColorType.Background2 color type with 75% darken as the foreground color style.ForegroundThemeColor = New ThemeColor(ThemeColorType.Background2, -0.75) 'Set the cell style cells("A1").SetStyle(style) 'Saving the Excel file Workbook.Save("C:\\book1.xlsx") The theme type. The tint value. Gets and sets the theme type. Gets and sets the tint value. The tint value is stored as a double from -1.0 .. 1.0, where -1.0 means 100% darken and 1.0 means 100% lighten. Also, 0.0 means no change. Enumerates the theme color types. Inner used. A color used in theme definitions which means to use the color of the style. Represents the position type of tick-mark labels on the specified axis. Position type is high. Position type is low. Position type is next to axis. Position type is none. Represents the tick-mark labels associated with tick marks on a chart axis. Returns a object that represents the font of the specified TickLabels object. True if the text in the object changes font size when the object size changes. The default value is True. Gets and sets the display mode of the background Represents text rotation angle in clockwise.
0: Not rotated.

255: Top to Bottom.

-90: Downward.

90: Upward.
Indicates whether the rotation angle is automatic Represents the format string for the TickLabels object. The formatting string is same as a custom format string setting to a cell. For example, "$0". Represents the format number for the TickLabels object. True if the number format is linked to the cells (so that the number format changes in the labels when it changes in the cells). Gets and sets the display number format of tick labels. Represents the distance between the levels of labels, and the distance between the first level and the axis line. The default distance is 100 percent, which represents the default spacing between the axis labels and the axis line. The value can be an integer percentage from 0 through 1000, relative to the axis label¡¯s font size. Represents text reading order. NOTE: This member is now obsolete. Instead, please use TickLabels.ReadingOrder property. This property will be removed 12 months later since March 2020. Aspose apologizes for any inconvenience you may have experienced. Represents text reading order. Gets and sets the direction of text. Represents the tick mark type for the specified axis. Tick mark type is Cross. Tick mark type is Inside. Tick mark type is None. Tick mark type is Outside Encapsulates the object that represents the title of chart or axis. [C#] //Setting the title of a chart chart.Title.Text = "Title"; //Setting the font color of the chart title to blue chart.Title.Font.Color = Color.Blue; //Setting the title of category axis of the chart chart.CategoryAxis.Title.Text = "Category"; //Setting the title of value axis of the chart chart.ValueAxis.Title.Text = "Value"; [Visual Basic] 'Setting the title of a chart chart.Title.Text = "Title" 'Setting the font color of the chart title to blue chart.Title.Font.Color = Color.Blue 'Setting the title of category axis of the chart chart.CategoryAxis.Title.Text = "Category" 'Setting the title of value axis of the chart chart.ValueAxis.Title.Text = "Value" Gets rich text formatting of this Title. returns FontSetting array Gets or sets the text of display unit label. Represents whether the title is visible. Gets or sets the x coordinate of the upper left corner in units of 1/4000 of the chart area. Gets or sets the y coordinate of the upper left corner in units of 1/4000 of the chart area. Represents overlay centered title on chart without resizing chart. Determines the type of calculation in the Totals row of the list column. Represents Sum totals calculation. Represents Count totals calculation. Represents Average totals calculation. Represents Max totals calculation. Represents Min totals calculation. Represents Var totals calculation. Represents Count Nums totals calculation. Represents StdDev totals calculation. Represents No totals calculation. Represents custom calculation. Represents a trendline in a chart. [C#] //Instantiating a Workbook object Workbook workbook = new Workbook(); //Adding a new worksheet to the Excel object int sheetIndex = workbook.Worksheets.Add(); //Obtaining the reference of the newly added worksheet by passing its sheet index Worksheet worksheet = workbook.Worksheets[sheetIndex]; //Adding a sample value to "A1" cell worksheet.Cells["A1"].PutValue(50); //Adding a sample value to "A2" cell worksheet.Cells["A2"].PutValue(100); //Adding a sample value to "A3" cell worksheet.Cells["A3"].PutValue(150); //Adding a sample value to "A4" cell worksheet.Cells["A4"].PutValue(200); //Adding a sample value to "B1" cell worksheet.Cells["B1"].PutValue(60); //Adding a sample value to "B2" cell worksheet.Cells["B2"].PutValue(32); //Adding a sample value to "B3" cell worksheet.Cells["B3"].PutValue(50); //Adding a sample value to "B4" cell worksheet.Cells["B4"].PutValue(40); //Adding a sample value to "C1" cell as category data worksheet.Cells["C1"].PutValue("Q1"); //Adding a sample value to "C2" cell as category data worksheet.Cells["C2"].PutValue("Q2"); //Adding a sample value to "C3" cell as category data worksheet.Cells["C3"].PutValue("Y1"); //Adding a sample value to "C4" cell as category data worksheet.Cells["C4"].PutValue("Y2"); //Adding a chart to the worksheet int chartIndex = worksheet.Charts.Add(ChartType.Column, 5, 0, 15, 5); //Accessing the instance of the newly added chart Chart chart = worksheet.Charts[chartIndex]; //Adding NSeries (chart data source) to the chart ranging from "A1" cell to "B4" chart.NSeries.Add("A1:B4", true); //Setting the data source for the category data of NSeries chart.NSeries.CategoryData = "C1:C4"; //adding a linear trendline int index = chart.NSeries[0].TrendLines.Add(TrendlineType.Linear); Trendline trendline = chart.NSeries[0].TrendLines[index]; //Setting the custom name of the trendline. trendline.Name = "Linear"; //Displaying the equation on chart trendline.DisplayEquation = true; //Displaying the R-Squared value on chart trendline.DisplayRSquared = true; //Saving the Excel file workbook.Save("C:\\book1.xls"); [Visual Basic] 'Instantiating a Workbook object Dim workbook As Workbook = New Workbook() 'Adding a new worksheet to the Excel object Dim sheetIndex As Int32 = workbook.Worksheets.Add() 'Obtaining the reference of the newly added worksheet by passing its sheet index Dim worksheet As Worksheet = workbook.Worksheets(sheetIndex) 'Adding a sample value to "A1" cell worksheet.Cells("A1").PutValue(50) 'Adding a sample value to "A2" cell worksheet.Cells("A2").PutValue(100) 'Adding a sample value to "A3" cell worksheet.Cells("A3").PutValue(150) 'Adding a sample value to "A4" cell worksheet.Cells("A4").PutValue(200) 'Adding a sample value to "B1" cell worksheet.Cells("B1").PutValue(60) 'Adding a sample value to "B2" cell worksheet.Cells("B2").PutValue(32) 'Adding a sample value to "B3" cell worksheet.Cells("B3").PutValue(50) 'Adding a sample value to "B4" cell worksheet.Cells("B4").PutValue(40) 'Adding a sample value to "C1" cell as category data worksheet.Cells("C1").PutValue("Q1") 'Adding a sample value to "C2" cell as category data worksheet.Cells("C2").PutValue("Q2") 'Adding a sample value to "C3" cell as category data worksheet.Cells("C3").PutValue("Y1") 'Adding a sample value to "C4" cell as category data worksheet.Cells("C4").PutValue("Y2") 'Adding a chart to the worksheet Dim chartIndex As Int32 = worksheet.Charts.Add(ChartType.Column, 5, 0, 15, 5) 'Accessing the instance of the newly added chart Dim chart As Chart = worksheet.Charts(chartIndex) 'Adding NSeries (chart data source) to the chart ranging from "A1" cell to "B4" chart.NSeries.Add("A1:B4", True) 'Setting the data source for the category data of NSeries Chart.NSeries.CategoryData = "C1:C4" 'adding a linear trendline Dim index As Int32 = chart.NSeries(0).TrendLines.Add(TrendlineType.Linear) Dim trendline As Trendline = chart.NSeries(0).TrendLines(index) 'Setting the custom name of the trendline. trendline.Name = "Linear" 'Displaying the equation on chart trendline.DisplayEquation = True 'Displaying the R-Squared value on chart trendline.DisplayRSquared = True 'Saving the Excel file workbook.Save("C:\\book1.xls") Returns if Microsoft Excel automatically determines the name of the trendline. Returns the trendline type. Returns the name of the trendline. Returns or sets the trendline order (an integer greater than 1) when the trendline type is Polynomial. The order must be between 2 and 6. Returns or sets the period for the moving-average trendline. This value should be between 2 and 255. And it must be less than the number of the chart points in the series Returns or sets the number of periods (or units on a scatter chart) that the trendline extends forward. The number of periods must be greater than and equal to zero. Returns or sets the number of periods (or units on a scatter chart) that the trendline extends backward. The number of periods must be greater than and equal to zero. If the chart type is column ,the number of periods must be between 0 and 0.5 Represents if the equation for the trendline is displayed on the chart (in the same data label as the R-squared value). Setting this property to True automatically turns on data labels. Represents if the R-squared value of the trendline is displayed on the chart (in the same data label as the equation). Setting this property to True automatically turns on data labels. Returns or sets the point where the trendline crosses the value axis. Represents the DataLabels object for the specified ASeries. Gets the legend entry according to this trendline Represents a collection of all the objects for the specified data series. [C#] int chartIndex = excel.Worksheets[0].Charts.Add(ChartType.Column, 3, 3, 15, 10); Chart chart = excel.Worksheets[0].Charts[chartIndex]; chart.NSeries.Add("A1:a3", true); chart.NSeries[0].TrendLines.Add(TrendlineType.Linear, "MyTrendLine"); Trendline line = chart.NSeries[0].TrendLines[0]; line.DisplayEquation = true; line.DisplayRSquared = true; line.Color = Color.Red; [Visual Basic] Dim chartIndex As Integer = excel.Worksheets(0).Charts.Add(ChartType.Column,3,3,15,10) Dim chart As Chart = excel.Worksheets(0).Charts(chartIndex) chart.NSeries.Add("A1:a3", True) chart.NSeries(0).TrendLines.Add(TrendlineType.Linear, "MyTrendLine") Dim line As Trendline = chart.NSeries(0).TrendLines(0) line.DisplayEquation = True line.DisplayRSquared = True line.Color = Color.Red Adds a object to this collection with specified type. Trendline type. object index. Adds a object to this collection with specified type and name. Trendline type. Trendline name. object index. Gets a object by its index. Represents the trendline type. Exponential Linear Logarithmic MovingAverage Polynomial Power Represents the list of . Sets the preset WordArt style. The preset WordArt style. Gets the enumerator of the paragraphs. Appends the text. The text. Insert index at the position. The start index. The text. Replace the text. The start index. The count of characters. The text. Delete some characters. The start index. The count of characters. Format the text with font setting. The start index. The length. The font. The flags of the font. Clear all setting. Represents the alignment setting of the text body. Gets all paragraphs. Gets and sets the text of the shape. Gets and sets the html string which contains data and some formats in this shape. Gets the by the index. The index. Represents the data validation alert style. Information alert style. Stop alert style. Warning alert style. Represents data validation collection. Adds a data validation to the collection. object index. NOTE: This member is now obsolete. Instead, please use ValidationCollection.Add(CellArea) method. This property will be removed 12 months later since JANUARY 2015. Aspose apologizes for any inconvenience you may have experienced. Adds a data validation to the collection. The area contains this validation. object index. Removes all validation setting on the cell. The row index of the cell. The column index of the cell. Removes all validation setting on the range.. The range which contains the validations setting. Gets the validation applied to given cell. The row index. The column index. Returns a object or null if there is no validation for given cell Gets the element at the specified index. The zero based index of the element. The element at the specified index. Represents data validation type. Any value validation type. Whole number validation type. Decimal validation type. List validation type. Date validation type. Time validation type. Text length validation type. Custom validation type. Represents the view type of the worksheet. Encapsulates the object that represents a vertical page break. [C#] //Add a pagebreak at G5 excel.Worksheets[0].HorizontalPageBreaks.Add("G5"); excel.Worksheets[0].VerticalPageBreaks.Add("G5"); [VB] 'Add a pagebreak at G5 excel.Worksheets(0).HorizontalPageBreaks.Add("G5") excel.Worksheets(0).VerticalPageBreaks.Add("G5") Gets the start row index of the vertical page break. Gets the end row index of the vertical page break. Gets the column index of the vertical page break. Encapsulates a collection of objects. Adds a vertical page break to the collection. Start row index, zero based. End row index, zero based. Column index, zero based. object index. This method is used to add a vertical pagebreak within a print area. Adds a vertical page break to the collection. Cell column index, zero based. object index. Page break is added in the top left of the cell. Please set a horizontal page break and a vertical page break concurrently. Adds a vertical page break to the collection. Cell row index, zero based. Cell column index, zero based. object index. Page break is added in the top left of the cell. Please set a horizontal page break and a vertical page break concurrently. Adds a vertical page break to the collection. Cell name. object index. Page break is added in the top left of the cell. Please set a horizontal page break and a vertical page break concurrently. Removes the VPageBreak element at a specified name. Element index, zero based. Gets the element at the specified index. The zero based index of the element. The element at the specified index. Gets the element with the specified cell name. Cell name. The element with the specified cell name. Encapsulates the object that represents the walls of a 3-D chart. Gets the number of cube points after calls Chart.Calculate() method. Gets x-coordinate of the apex point of walls cube after calls Chart.Calculate() method. The number of apex points of walls cube is eight Gets y-coordinate of the apex point of walls cube after calls Chart.Calculate() method. The number of apex points of walls cube is eight. Gets the x coordinate of the left-bottom corner of Wall center in units of 1/4000 of chart's width after calls Chart.Calculate() method. Gets the y coordinate of the left-bottom corner of Wall center in units of 1/4000 of chart's height after calls Chart.Calculate() method. Gets the width of left to right in units of 1/4000 of chart's width after calls Chart.Calculate() method. Gets the depth front to back in units of 1/4000 of chart's width after calls Chart.Calculate() method. Gets the height of top to bottom in units of 1/4000 of chart's height after calls Chart.Calculate() method. Gets the x coordinate of the left-bottom corner of Wall center in units of pixels after calls Chart.Calculate() method. Gets the y coordinate of the left-bottom corner of Wall center in units of pixels after calls Chart.Calculate() method. Gets the width of left to right in units of pixels after calls Chart.Calculate() method. Gets the depth front to back in units of pixels after calls Chart.Calculate() method. Gets the height of top to bottom in units of pixels after calls Chart.Calculate() method. Enumerates the weight types for a picture border or a chart line. Represents the weight of hair line. Represents the weight of medium line. Represents the weight of single line. Represents the weight of wide line. Represents the states for sheet visibility. Indicates the sheet is hidden, but can be shown by the user via the user interface. Indicates the sheet is hidden and cannot be shown in the user interface (UI). This state is only available programmatically. Indicates the sheet is visible. Represents the options for saving xlsb file. Creates xlsb file save options. Creates xlsb file save options. The save format . It must be xlsb. Gets and sets the compression type for ooxml file. The default value is OoxmlCompressionType.Level6. Indicates whether exporting all column indexes for cells. The default value is true. Represents the save options for the Excel 97-2003 file format: xls and xlt. Creates options for saving Excel 97-2003 xls/xlt file. Creates options for saving Excel 97-2003 xls/xlt file. The file format. It must be xls/xlt. The Data provider to provide cells data for saving workbook in light mode. Indicates whether saving a template file. Indicates whether matching font color because there are 56 colors in the standard color palette. Represents the options of saving office open xml file. Creates the options for saving office open xml file. Creates the options for saving office open xml file. The file format. It must be xlsx,xltx,xlsm,xltm. Indicates if export cell name to Excel2007 .xlsx (.xlsm, .xltx, .xltm) file. If the output file may be accessed by SQL Server DTS, this value must be true. Setting the value to false will highly increase the performance and reduce the file size when creating large file. Default value is true. The Data provider to provide cells data for saving workbook in light mode. Indicates whether update scaling factor before saving the file if the PageSetup.FitToPagesWide and PageSetup.FitToPagesTall properties control how the worksheet is scaled. The default value is false for performance. Always use ZIP64 extensions when writing zip archives, even when unnecessary. Indicates whether embedding Ooxml files of OleObject as ole object. Only for OleObject. Gets and sets the compression type for ooxml file. The default value is OoxmlCompressionType.Level2. Represents the additional options when saving the file as the Xps. Creates options for saving xps file. Creates options for saving xps file. The save format, it must be xps format. If OnePagePerSheet is true , all content of one sheet will output to only one page in result. The paper size of pagesetup will be invalid, and the other settings of pagesetup will still take effect. Gets or sets the 0-based index of the first page to save. Default is 0. Gets or sets the number of pages to save. Default is System.Int32.MaxValue which means all pages will be rendered.. Represents Xml Data Binding information. Gets source url of this data binding. Represents Xml map information. Returns or sets the name of the object. Gets root element name. Gets an of this map. A collection of objects that represent XmlMap information. Add a by the url/path of a xml file. url/path of a xml file. object index. Gets the xml map by the specific index. The index. The xml map