Spire.XLS Authorization Blacklist The serial number or the MD5 code of the key that is entered into the authorization blacklist. Class Spire.Doc.LicenseProvider. Provides app key, which will be used for AI Calling. app key. Provides a license by a license file path, which will be used for loading license. License file full path. Provides a license by a license stream, which will be used for loading license. License data stream. Provides a license by a license key, which will be used for loading license. The value of the Key attribute of the element License of you license xml file. Sets the license file name, which will be used for loading license. License file name. Clear all cached license. Load the license provided by current setting to the license cache. Initializes a new instance of the ExcelAI class. Uploads a file to the AI service. The name of the file to be uploaded. The stream containing the file data. result contains the file path on ai server as a string. Uploads workbook to the AI service. workbook. A result contains the file path on ai server as a string. Resets the chat history in the AI service. a string indicating whether the processing was successful or not. Resets the user's all chat history in the AI service. a string indicating whether the processing was successful or not. Merges the data from multiple range into a destination range using AI. Limited by the reasoning ability of AI, the processing results of irregular data may not be ideal. The amount of data processed is alos limited The destination range. The ranges containing the data to merge. The range containing the title. a string indicating whether the processing was successful or not. Fills the Excel worksheet with data extracted from the specified data range, using the specified description range, column indexes, and keys. The range of cells containing the data to fill. The range of cells containing the description for each column. A boolean value indicating whether the data range contains a title row. A list of column indexes in the data range to fill. An optional list of keys to extract specific information from the data. If null, the function will extract information based on the description range. A string indicating the status of the operation. Thrown when any of the parameters is null or invalid. Download a file to the AI service. The name of the file to be uploaded. System.IO.Stream. Performs a question-asking task using AI. The question to be answered. Flag indicating whether to enable chat history. result contains the generated answer as a string. Ask a question using AI. Questions asked. language of answer. Flag indicating whether to enable chat history. result contains the generated answer as a string. Generate images from text using AI. text description about image. the stream of the Image. Generate images from text using AI. text description about image. Image Models for generation. Image Size for generation. the stream of the Image. Performs a question-searching task using the AI service with the specified question, for a file based on server-side path. The question to be searched. The file server path. Flag indicating whether to enable chat history. result contains the generated answer as a string. Performs a question-searching task using the AI service with the specified question. The question to be searched. QA for a file based on server-side path. extra options. Flag indicating whether to enable chat history. result contains the generated answer as a string. Translates the text within the specified worksheets using AI. The list of Worksheets representing the source data. The target language for translation. A boolean indicating whether to translate the sheet names. a string indicating whether the processing was successful or not. Translates the text within the specified cell ranges using AI. The list of CellRanges representing the source data. The target language for translation. a string indicating whether the processing was successful or not. Generates AI-based responses for Excel data processing. The list of CellRanges representing the input data. a string indicating whether the processing was successful or not. Default color variation required on styles change by Daniel in 2019/05/15 将写DLbl的部分抽取出来 B模型的serLabels会存储DefaultDataPoint的DataLabels 是否为默认的DataPoint Represents dictionary for TickMark to Attribute value. Default color variation required on styles Default Chart Style elements used in chartEx on serialization Initialize the members of this class Serialize the chart input XML writer input chart Serialize the chart tag input element input XML writer input chart input relations Serializes plotarea tag and everything inside it. XmlWriter to serialize into. Chart to serialize. input relation collection Serialize the required axes XmlWriter to serialize into. Chart to serialize. chart type of the chart input relation collection Serialzie the single axis input XML writer input axis to be serialized input Chart to serialize. input relation collection axis Id of the axis Serialzie the single axis common properties input XML writer input axis to be serialized input Chart to serialize. input relation collection axis Id of the axis Serialize the axis shape and text properties input XML writer input axis to be serialized input Chart to serialize. input relation collection Serialzie the axis display unit input XML writer input axis to be serialized input Chart to serialize. input relation collection axis Id of the axis Serialize the chart's every pareto line as series input XML writer input chart input chartType Serialize the input serie and everything inside it. input XML writer input chart serie input chart serie Index for data referring chart type input chart relation collection of the chart Serialize the input chart serie layout properties input XML writer input chart serie input chart relation collection of the chart Serialize the subtotal data points of the series input XML writer input serie to subtotal serialized Serialize the bin properties of the chart input XML writer input chart serie data format for binning properties input chart Serialize the single chart serie data labels input XML writer input serie to data labels serialized input chart input chart relations Serializes the input data label settings input XML writer input data labels paret chart of the data labels chart relation collection Serializes number format. XmlWriter to serialize into. dataLabels of data points which have number format to serialize Serialize the data point properties of the chart serie input XML writer input chart serie Serialize the chart serie name input XML writer input chart serie Serialize the single chart serie attributes input XML writer input chart serie chart type of the chart chart serie index boolean value indicates whether the pareto line option is serialized or not Serialize the chart legend input XML writer input chart legend input chart Serialize the chart text area properties for text elements input XML writer input chart text area input chart input relation collection default font size for text area input XML elemet parent boolean value indicates whether the title is auto boolean value indicates whether element is chart title Serialize the chart text element properties for chart title and legend input XML writer input position of element boolean value indicates the layout of element Serialize the chart text area Tx and rich input XML writer input chart text area input chart default font size for text area boolean value indicates whether the title serialized as rich text or not Serialize the chartEx data element input XML writer input chart Individial series data serialized with this. input XML chart input chart serie serie index chart type Serialize the dimension data for series input XML writer input range boolean value indicates whether range is in row number format code Serialize the default style element loaded for chartEx input XML writer Serialize the default style element loaded for chartEx input XML writer input chart object input application object Initialize the chart style color elements Initailze the colloection, needed for chartEx Serialize the Fallback content required for ChartEx input XML writer boolean value indicates whether the chart is sheet or not Extracts chart from XmlReader. XmlReader to serialize into. Chart to serialize. Chart item relations. Parse the chart data from the reader input XML reader the chart data parsed Parse the external Data attributes and store it in chart input XML reader Parse the every Data node of collection and returns the list input XML reader input chart relation the chart data parsed Parse the (string/numeric) dimension data input XML reader input cache Parse the (string/numeric) data values input XML reader input cache boolean value indicates whether the dimension is string or numeric Parse the chart element data from the reader input XML reader input chart input chart relations Chart serie Index and dataId pair Convert the chartExLegend position and returns the chart legend position position short value the chart legend position value Parse the chart title / legend attributes for chart Ex input XML reader output isoverlay boolean value output position value Parse the chart plot area from the reader input XML reader input chart input chart relations excel 2007 parser Chart serie Index and dataId pair Parse the chart plot area region from the reader input XML reader input chart input chart relations excel 2007 parser secondary axis Id The collection of data Id and series index pair Parse the pareto line format input XML reader input Pareto Line format input File Data holder input chart relations Returns the axis id integer value Parse the ChartEx series and set the chart type and format Index input XML reader input chart output pareto line series the output series Parse the chartEx series properties and set the series settings input XML reader input chartEx series input relation collections Parse the binning properties for histogram and pareto charts input XML reader input chart serie data format Parse the chartEx series visibility for series Box and whisker , waterfall chart input XML reader input Serie Data Format Parse the chart plot area surface from the reader input XML reader input chart input chart relations excel 2007 parser Parse the chart axes from the reader input XML Reader input secondaryAxis ID hashCodeList to identify the Parser used to parse the Axis input chart Input File Data Holder Excel 2007 parser input chart relations the hashcode for an axis, which will not be further modified Parse the Axis element and retruns the required axis input axis reader current parsed axis id secondary axis id Parse the data label visibilty settings for chart series input XML reader Data labels visibilty to be set Select and Parse the chartEx axis from the reader input XML reader input secondaryAxisId Extracts display unit from XmlReader. XmlReader to extract data from. Axis to put extracted data into. Parse the Axis attributes return the axis values input XML reader output axis hidden value output axis id value Parse the chart axis (category or value scaling element) attributes input XML reader input chart Axis boolean value indicates whether the axis is value or category Extracts tick mark. XmlReader to extract data from. Extracted value. Provides the data cache information Used at parsing formula referred for category values formula referred for series values Array of values used in series values Array of values used in categories Boolean value indicates category values interpreted in row-wise Boolean value indicates series values interpreted in row-wise format code used in series values format code used in category values Gets/Sets formula referred for category values Gets / Sets formula referred for series values Gets / SetsArray of values used in series values Gets/Sets Array of values used in categories Gets / SetsBoolean value indicates category values interpreted in row-wise Gets / SetsBoolean value indicates series values interpreted in row-wise Gets / Sets the format code for series values Gets / Sets the format code for series categories Copy the current properties to chart serie series in which properties to be copied Parent workbook Main charts namespace. Namespace of the slicer Main charts namespace for Excel 2010 Main charts namespace for Excel 2016 Chart style relation namespace for Excel 2013 Chart style and color style namespace for charts above version 2013 Uri for the pivot chart. Uri for the pivot chart for Excel 2016. prefix for the Excel 2010 chart tag. prefix for the Excel 2016 chart tag. This element specifies a category axis. This element specifies a value axis. This element specifies a series axis. This element specifies a date axis. Value attribute. Some value axis id. Some category axis id. Some series axis id. Some secondary category axis id. Some secondary value axis id. This element contains additional axis settings. This element specifies the logarithmic base for a logarithmic axis. This element specifies the maximum value of the axis. This element specifies the minimum value of the axis. This element specifies the stretching and stacking of the picture on the data point, series, wall, or floor. When specified as a child element of valAx, dateAx, catAx, or serAx, this element specifies the identifier for the axis. When specified as a child element of a chart, this element specifies the identifier of an axis that defines the coordinate space of the chart. Specifies that the values on the axis shall be reversed so they go from maximum to minimum. Specifies that the axis values shall be in the usual order, minimum to maximum. This element specifies the position of the axis on the chart. Specifies that the axis shall be displayed at the left of the plot area. Specifies that the axis shall be displayed at the right of the plot area. Specifies that the axis shall be displayed at the top of the plot area. Specifies that the axis shall be displayed at the bottom of the plot area. This element specifies major gridlines. This element specifies minor gridlines. This element specifies number formatting for the parent element. This element specifies a string representing the format code to apply. Indicates whether number format is applied to the axis. This element specifies the position of the tick labels on the axis. Specifies the axis labels shall be at the high end of the perpendicular axis. Specifies the axis labels shall be at the low end of the perpendicular axis. Specifies the axis labels shall be next to the axis. Specifies the axis labels are not drawn. This element specifies the major tick marks. This element specifies the minor tick marks. Specifies there shall be no tick marks. Specifies the tick marks shall be inside the plot area. Specifies the tick marks shall be outside the plot area. Specifies the tick marks shall cross the axis. This element specifies the ID of axis that this axis crosses. This element specifies whether the value axis crosses the category axis between categories. Specifies the value axis shall cross the category axis between data markers. Specifies the value axis shall cross the category axis at the midpoint of a category. This element specifies the distance between major ticks. This element specifies the distance between minor tick marks. This element specifies the distance of labels from the axis. This element specifies how many tick labels to skip between label that is drawn. This element specifies how many tick marks shall be skipped before the next one shall be drawn. This element specifies whether multi level labels exists or not This element specifies the smallest time unit that is represented on the date axis. This element specifies the time unit for major tick marks. This element specifies the time unit for the minor tick marks. This element specifies the chart. This element specifies the plot area of the chart. This element specifies whether the series form a bar (horizontal) chart or a column (vertical) chart. Specifies that the chart is a bar chart - the data markers are horizontal rectangles. Specifies that the chart is a column chart - the data markers are vertical rectangles. This element specifies the type of grouping for a bar chart. Specifies that the chart series are drawn next to each other along the category axis. Specifies that the chart series are drawn next to each other along the value axis and scaled to total 100%. Specifies that the chart series are drawn next to each other on the value axis. Specifies that the chart series are drawn next to each other on the depth axis. This element specifies that each data marker in the series shall have a different color. This element specifies a series on a chart. This element specifies the index of the containing element. This index shall determine which of the parent's children collection this element applies to. This element specifies the order of the series in the collection. It is 0 based. This element specifies the data values which shall be used to define the location of data markers on a chart. This element specifies the data used for the category axis. This element specifies a reference to numeric data with a cache of the last values used. This element specifies a reference to string data with a cache of the last values used. This element specifies a reference to data for the category axis (or for the x-values in a bubble or scatter chart)), along with a cache of the last values used. This element specifies the last numeric data used for a chart. This element specifies the last string data used for a chart. This element specifies a cache of the labels on the category axis, or the x-values in a bubble or scatter chart. This element specifies a reference to source of the data contained in this chart. This element specifies overall settings for a single chart, and is the root node for the chart part. This element specifies the 3-D area series on this chart. This element specifies the 2-D area series on this chart. This element contains the 2-D bar or column series on this chart. This element contains the 3-D bar or column series on this chart. This element contains the 3-D line chart series. This element contains the 2-D line chart series. This element specifies the space between bar or column clusters, as a percentage of the bar or column width. This element specifies the space between bar or column clusters, as a percentage of the bar or column width. This element specifies how much bars and columns shall overlap on 2-D charts. Specifies the chart shall be drawn as a cone, with the base of the cone on the floor and the point of the cone at the top of the data marker. Specifies the chart shall be drawn with truncated cones such that the point of the cone would be the maximum data value. Specifies the chart shall be drawn as a rectangular pyramid, with the base of the pyramid on the floor and the point of the pyramid at the top of the data marker. Specifies the chart shall be drawn with truncated cones such that the point of the cone would be the maximum data value. Specifies the chart shall be drawn as a cylinder. Specifies the chart shall be drawn with a box shape. This element specifies the shape of a series or a 3-D bar chart. This element contains the bubble series on this chart. This element specifies that the bubbles have a 3-D effect applied to them. Default bubble scale value. This element specifies the scale factor for the bubble chart. This element can be an integer value from 0 to 300, corresponding to a percentage of the default size. This element specifies negative sized bubbles shall be shown on a bubble chart. Specifies the area of the bubbles shall be proportional to the bubble size value. Specifies the radius of the bubbles shall be proportional to the bubble size value. This element specifies how the bubble size values are represented on the chart. This element contains the set of 2-D contour charts. This element contains the set of 3-D surface series. This element specifies the surface chart is drawn as a wireframe. This element specifes the band formats This element contains the radar chart series on this chart. This element specifies what type of radar chart shall be drawn. This element contains the scatter chart series for this chart. This element specifies the type of lines for the scatter chart. This element contains the 2-D pie series for this chart. This element contains the 3-D pie series for this chart. This element specifies the angle of the first pie or doughnut chart slice, in degrees (clockwise from up). This element contains the doughnut chart series. This element specifies the size of the hole in a doughnut chart group. This element contains the pie of pie or bar of pie series on this chart. Specifies that the chart is pie of pie chart, not a bar of pie chart. Specifies that the chart is a bar of pie chart, not a pie of pie chart. This element specifies whether this chart is pie of pie or bar of pie. This element specifies 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. This element specifies the size of the second pie or bar of a pie of pie chart or a bar of pie chart, as a percentage of the size of the first pie. This element specifies how to determine which data points are in the second pie or bar on a pie of pie or bar of pie chart. This element contains the collection of stock chart series. This element serves as a root element that specifies the settings for the data labels for an entire series or the entire chart. It contains child elements that specify the specific formatting and positioning settings. This element specifies the position of the data label. This element specifies that the value shall be shown in a data label. This element specifies that the category name shall be shown in the data label. This element specifies that the percentage shall be shown in a data label. This element specifies the bubble size shall be shown in a data label. This element specifies that the series name shall be shown in a data label. This element specifies legend keys shall be shown in data labels. This element specifies Leader Lines shall be shown in data labels. This element specifies Leader Lines shall be shown in data labels. This element specifies a datalabel range. This element specifies a datalabel cache. This element specifies a cellRange tag. This element specfies a seriesName tag. This element specifies a value tage. This element specifies a category name tag. This element specifies a percentage tag. This element specifies a category x axis tag. This element specifies a value y axis tag. This element specifies text that shall be used to separate the parts of a data label. The default is a comma, except for pie charts showing only category name and percentage, when a line break shall be used instead. This element specifies a data marker. This element specifies the marker that shall be used for the data points. This element specifies the size of the marker in points. This element specifies the floor of a 3D chart. This element specifies the back wall of the chart. This element specifies the side wall. This element specifies a title. This element specifies a trend line. This element specifies the name of the trend line. This element specifies the type of the trend line. This element specifies the order of the polynomial trend line. It is ignored for other trend line types. This element specifies the period of the trend line for a moving average trend line. It is ignored for other trend line types. This element specifies the number of categories (or units on a scatter chart) that the trend line extends after the data for the series that is being trended. On non-scatter charts, the value must be a multiple of 0.5. This element specifies the number of categories (or units on a scatter chart) that the trend line extends before the data for the series that is being trended. On non-scatter charts, the value shall be 0 or 0.5. This element specifies the value where the trend line shall cross the y axis. This property shall be supported only when the trend line type is exp, linear, or poly. This element specifies that the R-squared value of the trend line is displayed on the chart (in the same label as the equation). This element specifies that the equation for the trend line is displayed on the chart (in the same label as the R-squared value). This element specifies error bars. This element specifies the type of the error bars - positive, negative, or both. This element specifies the type of values used to determine the length of the error bars. This element specifies an end cap is not drawn on the error bars. This element specifies a value which is used with the Error Bar Type to determine the length of the error bars. This element specifies the error bar value in the positive direction. It shall be used only when the errValType is cust. This element specifies the error bar value in the negative direction. It shall be used only when the errValType is cust. Specifies that error bars shall be shown in the x direction. Specifies that error bars shall be shown in the y direction. This element specifies the direction of the error bars. This element specifies the 3-D view of the chart. This element specifies the amount a 3-D chart shall be rotated in the X direction. This element specifies the height of a 3-D chart as a percentage of the chart width (between 5 and 500). This element specifies the amount a 3-D chart shall be rotated in the Y direction. This element specifies that the chart axes are at right angles, rather than drawn in perspective. Applies only to 3-D charts. This element specifies the field of view angle for the 3-D chart. This element is ignored if Right Angle Axes is true. This element specifies the depth of a 3-D chart as a percentage of the chart width (between 20 and 2000 percent). This element specifies the legend. This element specifies the position of the legend. This element specifies that other chart elements shall be allowed to overlap this chart element. This element specifies a legend entry. This element specifies that the chart element specified by its containing element shall be deleted from the chart. This element specifies how blank cells shall be plotted on a chart. This element specifies that only visible cells should be plotted on the chart. This element specifies the page margins for a chart. Specifies the contents of this attribute will contain the left page margin in inches. Specifies the contents of this attribute will contain the right page margin in inches. Specifies the contents of this attribute will contain the top page margin in inches. Specifies the contents of this attribute will contain the bottom page margin in inches. Specifies the contents of this attribute will contain the header margin in inches. Specifies the contents of this attribute will contain the footer margin in inches. This element specifies the up and down bars. This element specifies the up bars on the chart. This element specifies the down bars on the chart. This element specifies text to use on a chart, including rich text formatting. This element contains a string with rich text formatting. This is the root element of Sheet Parts that are of type 'chartsheet'. Prefix for chart namespace. Underline the text with a single line of normal thickness. Underline the text with two lines of normal thickness. A single strikethrough is applied to the text. A double strikethrough is applied to the text. Text is not strike through. This element specifies how this axis crosses the perpendicular axis. This element specifies where on the axis the perpendicular axis crosses. The units are dependent on the type of axis. The category axis crosses at the zero point of the value axis (if possible), or the minimum value (if the minimum is greater than zero) or the maximum (if the maximum is less than zero). The axis crosses at the maximum value This element specifies the x values which shall be used to define the location of data markers on a chart. This element specifies the y values which shall be used to define the location of data markers on a chart. This element specifies the data for the sizes of the bubbles on the bubble chart. This element specifies the amount the data point shall be moved from the center of the pie. This element specifies series lines for the chart. This element specifies the line connecting the points on the chart shall be smoothed using Catmull-Rom splines. This element specifies the label for the trend line. This element specifies text for a series name, without rich text formatting. This element specifies a text value for a category axis label or a series name. This element specifies the high-low lines for the series. This element specifies how the chart element is placed on the chart. This element specifies how the chart element is placed on the chart manually This element specifies the chart layout target Represents left element for manual layout Represents top element for manual layout Represents the x location (left) of the chart element as a fraction of width of the chart Represents the y location (top) of the chart element as a fraction of width of the chart Represents the width or horizontal offset Represents the height or a vertical offset Represents the layout mode for the width of the element Represents the layout mode for the height of the element Represents the width of the element Represents the height of the element This element specifies a single data point. This element specifies a data label. This element specifies the logarithmic base for a logarithmic axis. Default value of the logBase tag. This element specifies the scaling value of the display units for the value axis. This element specifies the display unit is one of the built in values. This element specifies a custom value for the display unit. This element specifies a data table. This element specifies the horizontal borders shall be shown in a data table. This element specifies the vertical border shall be shown in a data table. This element specifies the outline shall be shown on a data table. This element specifies the legend keys shall be shown in a data table. This element specifies drop lines. This element contains text properties. This element specifies that this axis is a date or text axis based on the data that is used for the axis labels, not a specific choice. This element specifies the rounded corner tag. This element specifies the style tag. This element specifies the shapes drawn on top of the chart. This element specifies that the shape described here to reside within a chart should be sized based on relative anchor points. This element specifies the relative x coordinate that is used to define the percentage-based horizontal position for a shape within a chart drawing object. This element specifies the relative y coordinate that is used to define the percentage-based vertical position for a shape within a chart drawing object. Multiplier for coordinates transform. This element specifies a set of numbers used for the parent element. This element specifies a set of strings used for the parent element. This element contains the number of values in the cache. This element specifies data for a particular data point. This element specifies the series to invert its colors if the value is negative. Value attribute. Pivot source tag Pivot formats Display units label Zoom to fit Label alignment Print settings Transparency value Size value Blur value Angle value Distance value Bevel value Pivot options tag Pivot options tag 16 Show zone filter tag Show zone category tag Show expand collapse tag 16 Show zone data tag Show zone series tag Show zone visible tag Pivot source name tag Chart format id Alternate content tag Auto title deleted tag Represents the standard Number format attribute. Formual reference Square reference Full reference C15 tag C14 tag xml15web xml14web Filter series uri Invert solid fill format uri Filtered area series Filter bar series Filtered line series Filtered pie series Filtered radar series Filtered scatter series Filtered surface series Filtered bubble series Filtered series title Filtered category title Invert solid fill format This element represents color mapping information. Name of the extention list element Name of the extention element Name of the leader lines element Prevents a default instance of the ChartConstants class from being created. Main chartExs namespace. Prefix for chartEx namespace. Prefix for chartEx1 namespace for required. Namespace used in choice content The element specifies the chart data used for chartEx The element specifies the data used for chartEx The element specifies the text data used for chartEx text The element specifies the value used for chartEx value The element specifies the chart element position The element specifies the chart element alignment The element specifies the chart plot area region The element specifies the chart axis The element specifies the chart series The element specifies the plot surface The element specifies the chart data point The element specifies the chart data labels The element specifies the chart data label of single data point The element specifies the chart data Id used in series The element specifies the chart layout properties used in series The element specifies the chart axis Id used in series The element specifies the chart data Label position The element specifies the data label hidden in setting The element specifies the data label visibility setting The element also specifies the visibility options on box and whisker, waterfall The attribute specifies the data label visibility option of series Name The attribute specifies the data label visibility option of category Name The attribute specifies the data label visibility option of value The attribute specifies the layout Id on series The attribute specifies the series is hidden or not The attribute specifies the owner index on series for refering other series Pareto line series only The attribute specifies the series unique Identifier The attribute specifies the format index for series The element specifies the parent label layout The element specifies the by category option in histogram and pareto chart The element specifies the binning option in histogram and pareto chart The element specifies the statistics for the box and whisker series The element specifies the subtotal for the water fall series This attribute specifies the connector line used in Water fall chart This attribute specifies the mean line used in Box and Whisker chart This attribute specifies the mean marker used in Box and Whisker chart This attribute specifies the mean non outliers used in Box and Whisker chart This attribute specifies the outliers used in Box and Whisker chart This attribute specifies the interval closing in Histogram, Pareto chart This attribute specifies the underflow bin value in Histogram, Pareto chart This attribute specifies the overflow bin value in Histogram, Pareto chart This element specifies the bin width value in Histogram, Pareto chart This element specifies the bin count in Histogram, Pareto chart This attribute specifies the quartile method used in box and whisker chart This value specifies the exclusive quartile method used in box and whisker chart This value specifies the inclusive quartile method used in box and whisker chart This element speifies the category axis scaling This element speifies the value axis scaling This attribute specifies the index of element This string denotes the automatic value on current property This element specifies the display unit axis This element specifies the major tick marks. This element specifies the minor tick marks. Describes the tick marks in the axis Describes the type attribute tag Describes the Display unit label tag Describes the Display unit attribute tag This element describes the external data referenced in chartEx This attibute specifies whether the work book need to be updated or not This element describes the numeric dimension of data This element describes the string dimension of data This element describes the level of data This attibute specifies direction for data dimension Value indicates the diemension is column wise Value indicates the diemension is row wise Number regex used for pattern Read-Only static whitespace characters Convert the string to byte value input string the byte value Convert the string to Int16 value input string the Int16 value Convert the string to Int32 value input string the Int32 value Convert the string to Int64 value input string the Int64 value Convert the string to UInt16 value input string the UInt16 value Convert the string to UInt32 value input string the UInt32 value Trim a string using XML whitespace characters input string value the trimmed string Convert the string to Single value input string the Single value Convert the string to Double value input string the Double value Convert the string to Boolean value input string the Boolean value Try to get the number value from misplaced string the input string the maximum value the extracted value Convert the string to DateTimeOffset value input string the DateTimeOffset value Check whether the string having only whitespace the input string the boolean value Convert the string to DateTime value input string Xsd mode for date time the DateTime value This class contains the required chart style elements It specifies visual and text properties for all elements present on a chart It specifies colors used to resolve StyleColor in a ChartStyle. Element specifies reference to a line style within the style matrix. Element that specifies a multiplier to apply to the line width. Element that specifies a reference to a fill style within the style matrix. Element that specifies a reference to an effect style within the style Element that specifies a reference to a themed font. Element that specifies visual shape properties of the part of the chart associated with this CT_StyleEntry. Element that specifies the default text character properties for a text body on a chart which is associated with this CT_StyleEntry Element that specifies the body properties for a text body on a chart that is associated with this CT_StyleEntry. Attribute that specifies the style matrix index of the style referred to. Attribute that specifies a list of modifiers for this reference. (Accent Color 1) Extra scheme color 1 (Accent Color 2) Extra scheme color 2 (Accent Color 3) Extra scheme color 3 (Accent Color 4) Extra scheme color 4 (Accent Color 5) Extra scheme color 5 (Accent Color 6) Extra scheme color 6 (Background Color 1) Semantic background color (Background Color 2) Semantic additional background color (Dark Color 1) Main dark color 1 (Dark Color 2) Main dark color 2 (Followed Hyperlink Color) Followed Hyperlink Color (Hyperlink Color) Regular Hyperlink Color (Light Color 1) Main Light Color 1 (Light Color 2) Main Light Color 2 (Style Color) A color used in theme definitions which means to use the color of the style. (Text Color 1) Semantic text color (Text Color 2) Semantic additional text color It specifies a list of transforms that are appended to all colors in a ColorStyle to produce a variation of the color style @param listCellValue @param rowIdx current row index @param colIdx the last column index + 1 @param RKTypes @return Digit shaping option: Replace European digits (U+0030...U+0039) by Arabic-Indic digits. Digit shaping option: Replace Arabic-Indic digits by European digits (U+0030...U+0039). Digit shaping option: Replace European digits (U+0030...U+0039) by Arabic-Indic digits if the most recent strongly directional character is an Arabic letter (its Bidi direction value is RIGHT_TO_LEFT_ARABIC). The initial state at the start of the text is assumed to be not an Arabic, letter, so European digits at the start of the text will not change. Compare to DIGITS_ALEN2AN_INIT_AL. Digit shaping option: Replace European digits (U+0030...U+0039) by Arabic-Indic digits if the most recent strongly directional character is an Arabic letter (its Bidi direction value is RIGHT_TO_LEFT_ARABIC). The initial state at the start of the text is assumed to be an Arabic, letter, so European digits at the start of the text will change. Compare to DIGITS_ALEN2AN_INT_LR. Not a valid option value. Bit mask for digit shaping options. Digit type option: Use Arabic-Indic digits (U+0660...U+0669). Digit type option: Use Eastern (Extended) Arabic-Indic digits (U+06f0...U+06f9). Bit mask for digit type options. Does all the line bidirectional processing with PdfChunk assembly. @author Paulo Soares Left-to-right Left-to-Right Embedding Left-to-Right Override Right-to-Left Right-to-Left Arabic Right-to-Left Embedding Right-to-Left Override Pop Directional Format European Number European Number Separator European Number Terminator Arabic Number Common Number Separator Non-Spacing Mark Boundary Neutral Paragraph Separator Segment Separator Whitespace Other Neutrals Minimum bidi type value. Maximum bidi type value. Initialize using an array of direction types. Types range from TYPE_MIN to TYPE_MAX inclusive and represent the direction codes of the characters in the text. @param types the types array Initialize using an array of direction types and an externally supplied paragraph embedding level. The embedding level may be -1, 0, or 1. -1 means to apply the default algorithm (rules P2 and P3), 0 is for LTR paragraphs, and 1 is for RTL paragraphs. @param types the types array @param paragraphEmbeddingLevel the externally supplied paragraph embedding level. The algorithm. Does not include line-based processing (Rules L1, L2). These are applied later in the line-based phase of the algorithm. 1) determining the paragraph level. Rules P2, P3. At the end of this function, the member variable paragraphEmbeddingLevel is set to either 0 or 1. Process embedding format codes. Calls processEmbeddings to generate an embedding array from the explicit format codes. The embedding overrides in the array are then applied to the result types, and the result levels are initialized. @see #processEmbeddings Rules X9. Remove explicit codes so that they may be ignored during the remainder of the main portion of the algorithm. The length of the resulting text is returned. @return the length of the data excluding explicit codes and BN. Reinsert levels information for explicit codes. This is for ease of relating the level information to the original input data. Note that the levels assigned to these codes are arbitrary, they're chosen so as to avoid breaking level runs. @param textLength the length of the data after compression @return the length of the data (original length of types array supplied to constructor) 2) determining explicit levels Rules X1 - X8 The interaction of these rules makes handling them a bit complex. This examines resultTypes but does not modify it. It returns embedding and override information in the result array. The low 7 bits are the level, the high bit is set if the level is an override, and clear if it is an embedding. 3) resolving weak types Rules W1-W7. Note that some weak types (EN, AN) remain after this processing is complete. 6) resolving neutral types Rules N1-N2. 7) resolving implicit embedding levels Rules I1, I2. Return multiline reordering array for a given level array. Reordering does not occur across a line break. Return reordering array for a given level array. This reorders a single line. The reordering is a visual to logical map. For example, the leftmost char is string.CharAt(order[0]). Rule L2. Return the base level of the paragraph. Return true if the type is considered a whitespace type for the line break rules. Return the strong type (L or R) corresponding to the level. Return the limit of the run starting at index that includes only resultTypes in validSet. This checks the value at index, and will return index if that value is not in validSet. Return the start of the run including index that includes only resultTypes in validSet. This assumes the value at index is valid, and does not check it. Set resultTypes from start up to (but not including) limit to newType. Set resultLevels from start up to (but not including) limit to newLevel. Throw exception if type array is invalid. Throw exception if paragraph embedding level is invalid. Special allowance for -1 so that default processing can still be performed when using this API. Throw exception if line breaks array is invalid. Adds the document properties. The doc properties. Printer Command Language (PCL) format. Open Fixed-layout Document (OFD) format. UOF Spreadsheet (UOS) format. Gets or sets the Pdf document's Conformance-level. Represents the security settings of the PDF document. The first step post process in OOX->UOF of SpreadSheet linyaohu 获取自定义列的宽度 sheet*.xml的位置 所有列的实际宽度 获取自定义列的宽度 sheet*.xml的位置 所有列的实际宽度 设置drawing*.xml文件中所有from和to的实际绝对坐标值(非相对值) XLSX文件夹位置 Get the relation comment file from sheet* relation file add the XL/tables/table*.xml to pretreatment1 填充一个hash表 计算每一个函数的RC转换 函数公式 结果所在位置,如O6 返回更改后的公式 把A1:B2中的A1换成相对于currentCell的RC表示 当前的范围 当前单元格地址 RC表达 get the letter get the number 计算字母转换成的数字 计算字母的数字大小,A对应的是1,B对应的是2 字母 数字 Spreadsheet translator linyaohu 获取自定义列的宽度 sheet*.xml的位置 所有列的实际宽度 获取自定义列的宽度 sheet*.xml的位置 所有列的实际宽度 设置drawing*.xml文件中所有from和to的实际绝对坐标值(非相对值) XLSX文件夹位置 The first step pretreatment of spreadsheet from UOF->OOX linyaohu 增加uof到ooxml中分组集相关处理 content.xml路径 返回分组等级 重新整理含有分组集的工作表列和行 把INT数转成字母,A-Z,之后是AA-AZ... 输入一个整数 字母串 把字母转换成数字,AA对应的是27 计算每一个函数的RC转换 函数公式 结果所在位置,如O6 返回更改后的公式 把RC表示转换成A1:B1的形式 RC字符串 行号 列号 正常形式 把数字转换成对应的字母 把数字转换成对应的字母 Preatreatment of Step 2 linwei linyaohu Get the name space of the current document. initiate the namespace dictionary. add new namespace into the namespace dictionary. if exists,change the old value to new value. gets the namespace by fileName and prefix. Prerforms application-defined tasks associated with freeing,releasing, or resetting unmanaged resources. Line spacing before(after)the automatic default distance. Gets the type of the document object. Gets the child objects. The child objects. Returns or sets paragraph text. All internal formatting will be cleared when new text is set. Gets paragraph item by index. Gets paragraph items. The items. gets and sets whether the paragraph has toc field. Gets character format for the break symbol. Gets a value indicating whether this paragraph is start of section. if this paragraph is start of section, set to true. gets whether the paragraph is empty. if paragraph has bookmart and break only,return true,otherwise ,false. Gets a value indicating whether this instance has only break or bookmark. true if this instance has only break or bookmark; otherwise, false. a flag checked whether the paragraph is added for IF field layout; Appends text to end of document. Get the text that the field items have been updated . Integrate the relative format to curr style para uses to keep its format same as format in source document. Specifies the type of a Document object type. The text bodies The text body items The paragraph items Tab, Specifies type of the Style. The style is a paragraph style. The style is a character style. The style is a table style. The style is a list style. The style is other kind of style. Specifies type of the ParagraphBase. ParagraphBase is a text. ParagraphBase is a picture. ParagraphBase is a field. Paragraph item is field mark. Paragraph item is form control field. ParagraphBase is a start of bookmark. ParagraphBase is a end of bookmark. ParagraphBase is a start of Permission ParagraphBase is a end of Permission. ParagraphBase is a comment. Paragraph item is comment mark. ParagraphBase is a footnote. ParagraphBase is a textbox. Tab, PragraphItem is a break. Specifies type of the horizontal alignment. Specifies alignment to the left. Specifies alignment to the center. Specifies alignment to the right. Specifies alignment to both left and right. Specifies that the text shall be justified between both of the text margins in the document. Specifies that the kashida length for text in the current paragraph shall be extended to its wides possible length. Specifies that the kashida length for text in the current paragraph shall be exended to a slightly longer length. This setting shall also be applied to Arabic text when the both setting is applied. Specifies that the kashida length for text in the current paragraph shall be extended to a medium length determined by the consumer. Specifies style of the underline. No underlining. Normal single underline. Underline words only. Double underline. Dotted underline. Heavy underline. Dashed underline. Dot-dash underline. Dot-dot-dash underline. Wavy underline. Heavy dotted underline. Heavy dashed underline. Heavy dot-dash underline. Heavy dot-dot-dash underline. Heavy wavy underline. Long-dash underline. Wavy double underline. Heavy long-dash underline. Specifies type of the SubSuperScript. No sub- or superscript. Specified superscript format. Specified subscript format. Specified baseline format. Specifies the emphasis mark type. No Emphasis Mark Dot Emphasis Mark Above Characters Comma Emphasis Mark Above Characters Circle Emphasis Mark Above Characters Dot Emphasis Mark Below Characters Specifies style of the border line. Specifies type of the list numbering format. Specifies default numbering format. Arabic numbering (1, 2, 3, ...) Specifies UppRoman numbering format. Upper case Roman (I, II, III, ...) Specifies LowRoman numbering format. Lower case Roman (i, ii, iii, ...) Specifies UpLetter numbering format. Upper case Letter (A, B, C, ...) Specifies LowLetter numbering format. Lower case letter (a, b, c, ...) Specifies Ordinal numbering format. Ordinal (1st, 2nd, 3rd, ...) Specifies Cardinal Text numbering format. Numbered (One, Two, Three, ...) Specifies Ordinal Text numbering format. Ordinal (text) (First, Second, Third, ...) Chicago manual of style. Specifies that the sequence shall consist of full-width Arabic numbering. Specifies that the sequence shall consist of half-width Arabic numbering. Specifies that the sequence shall consist of Hebrew letters from the set listed below. Specifies that the sequence shall consist of one or more occurrences of a single character int the Arabic alphabet from the set listed below. Specifies that the sequence shall consist of the Hebrew alphabet. Specifies that the sequence shall consist of one or more occurrences of a single ascending Abjad numerall from the set listed below. Japanese Counting System. Specifies that the sequence shall consist of sequential numbers from the Japanese counting system. Japanese Legal Numbering. Specifies that the sequence shall consist of sequential numbers from the Japanese legal counting system. Japanese Digital Ten Thousand Counting System. Specifies that the sequence shall consist of sequential numbers from the Japanese digital the thousand counting system. Decimal Numbers Enclosed in a Circle. Specifies that the sequence shall consist of sequential numbering enclosed in a circle,using the enclosed character. Specifies LeadingZero numbering format. Specifies Bullet numbering format. Decimal numbers followed by a period. Specifies that the sequence shall consist of decimal numbering followed by a period,using the appropriate character,as described below. Identical to DecimalEnclosedCircle Korean Digital Counting System. Specifies that the sequence shall consist of sequential numbers from the Korean digital counting system. Korean Counting System. Specifies that the sequence shall consist of sequential numbers from the Korean counting system. Korean Legal numbering. Specifies that the sequence shall consist of sequential numbers from the Korean legal numbering system. Korean Digital Counting System Alternate. Specifies that the sequence shall consist of sequential numbers from the Korean digital counting system. Specifies that the sequence shal consist of one or more occurrences of a single full-width katakana character,in the traditonal a-i-u-e-o order. Specifies that the sequence shall consist of one or more occurrences of a single half-width katakana character from the set listed below, in the traditional a-i-u-e-o order. Specifies that the sequence shall consist of the iroha. Specifies that the sequence shall consist of the full-width forms of the iroha. Specifies that the sequence shall consist of sequential numerical traditonal ideographs. Specifies that the sequence shall consist of sequential numerical zodiac ideographs. Specifies that the sequence shall consist of sequential numerical ideographs. Specifies that the sequence shall consist of sequential traditional zodiac ideographs. Specifies that the sequence shall consist of sequential numbers from the Taiwanese counting system. Sperifies that the sequence shall consist of sequential numerical traditional legal ideographs. Specifies that the sequence shall consist of sequential numbers from the Taiwanese counting thousand system. Specifies that the sequence shall consist of sequential numbers from the Taiwanese digital counting system. Specifies that the sequence shall consist of one or more occurrences of a single ascending number from the chinese counting system. Specifies that the sequence shall consist of one or more occurrences of a single sequential number from the Chiness simplified legal format. Specifies that the sequence shall consist of one or more occurrences of a single sequential number from the Chiness counting thousand system. IsSpecial numbering format. Specifies None numbering format. Specifies custom format. Specify object's horizontal origin Specify vertical origin of the object Specify object's line style Single line (of width lineWidth) Double lines of equal width Double lines, one thick, one thin Double lines, reverse order Three lines, thin, thick, thin Specifies the tab justification. Left tab. Centered tab. Right tab. Decimal tab. Bar. Clears any tab stop in this position. Specifies Tab leader. No leader. Dotted leader. Hyphenated leader. Single line leader. Heavy line leader. The leader line is made up from middle-dots. Specifies the possible extents which can be used to calculate the absolute positioning of the positional tab character. Specifies that the absolute positioning of the tab shall be relative to the indents. Specifies that the absolute positioning of the tab shall be relative to the margins. Defaults to This default is AW specific, it is not defined in open xml specification. Document's break type. Page break type. Column break type. Line break type. Restart On NextLine. Restart In Next TextRegion Unblocked on the Left. Restart In Next TextRegion Unblocked on the Right. Restart On Next Full Line. Defines the direction of text. Specifies that text in the parent object shall flow from left to right horizontally, then top to bottom vertically on the page. This means that horizontal lines are filled before the text expands vertically. Specifies that text in the parent object shall flow from right to left horizontally, then top to bottom vertically on the page. This means that horizontal lines are filled before the text expands vertically. Specifies that text in the parent object shall flow from top to bottom vertically, then left to right horizontally on the page. This means that horizontal lines are filled before the text expands vertically. This flow is also rotated such that all text is rotated 90 degrees when displayed on a page. Specifies that text in the parent object shall flow from bottom to top vertically, then from left to right horizontally on the page. Specifies that text in the parent object shall flow from left to right horizontally, then top to bottom vertically on the page. This means that horizontal lines are filled before the text expands vertically. This flow is also rotated such that any East Asian text shall be rotated 270 degrees when displayed on a page. Specifies that text in the parent object shall flow from top to bottom vertically, then right to left horizontally on the page. This means that horizontal lines are filled before the text expands vertically. This flow is also rotated such that all text is rotated 90 degrees when displayed on a page. Banded Row Conditional Formatting. the tag "band1Horz". Banded Column Conditional Formatting. the tag "band1Vert". Even Row Stripe Conditional Formatting. the tag "band2Horz". Even Column Stripe Conditional Formatting. the tag "band2Vert". First Column Conditional Formatting. the tag "firstCol". First Row Conditional Formatting. the tag "firstRow". Last table column formatting. the tag "lastCol". Last table row formatting. the tag "lastRow". Top right table cell formatting. the tag "neCell". Top left table cell formatting. the tag "nwCell". Bottom right table cell formatting. the tag "seCell". Bottom left table cell formatting. the tag "swCell". Whole table formatting. the tag "wholeTable". defines the types of OLE object Type is not defined Adobe Acrobat Document. File has ".pdf" extension. Bitmap Image. File has ".png" extension. Media Clip Equation Graph Chart Excel 97-2003 Worksheet. File has ".xls" extension Excel Binary Worksheet. File has ".xlsb" extension Excel chart. File has ".xls" extension Excel Macro-Enabled Worksheet. File has ".xlsm" extension. Excel Worksheet. File has ".xlsx" extension. PowerPoint 97-2003 Presentation. File has ".ppt" extension. PowerPoint 97-2003 Slide. File has ".sld" extension. PowerPoint Macro-Enabled Presentation. File has ".pptm" extension. PowerPoint Macro-Enabled Slide. File has ".sldm" extension. PowerPoint Presentation. File has ".pptx" extension. PowerPoint Slide. File has ".sldx" extension. Word 97-2003 Document. File has ".doc" extension. Word Document. File has ".docx" extension. Word Macro-Enabled Document. File has ".docm" extension. Visio Deawing MIDI Sequence OpenDocument Presentation OpenDocument Spreadsheet OpenDocument Text OpenOffice.org 1.1 Spreadsheet OpenOffice.org 1.1 Text Package Video Clip Wave Sound WordPad Document OpenOffice spreadsheet OpenOffice Text Visio Deawing for visio 2013. word picture Equation DSMT4 Specifies the image type. Specifies the ligature type. Specifies the number form type. Specifies the number spacing type. Specifies the stylistic set type. Defines the FontTypeHint enumeration. High ANSI Font. East Asian Font. Complex Script Font. Don't add automatic tab stop for hanging indent. Don't add extra space for raised/lowered characters. Print colors as black on noncolor printers. Wrap trailing spaces to next line. Don't balance columns for continuous section starts. Treat \" as "" in mail merge data sources. Suppress Space Before after a hard page or column break. Suppress extra line spacing at top of page. Combine table borders like Word 5.x for the Macintosh. Truncate font height. Show hard page or column breaks in frames. Swap left and right borders on odd facing pages. Convert backslash characters into yen signs. Don't expand character spaces on the line ending Shift+Return. Draw underline on trailing spaces. Balance SBCS characters and DBCS characters. Suppress extra line spacing at top of page like Word 5.x for the Macintosh. Specifies whether line spacing emulates WordPerfect 5.x line spacing Print body text before header/footer. Don't add leading (extra space) between rows of text. Add space for underline. Use larger small caps like Word 5.x for the Macintosh. Suppress extra line spacing like WordPerfect 5.x. Truncate font height. Substitute fonts based on font size. Use printer metrics to lay out document. Use Word 6.x/95 border rules. Don't center "exact line height" lines. Set the width of a space like WordPerfect 5.x. Do full justification like WordPerfect 6.x for Windows. Line wrap like Word 6.0. Lay out autoshapes like Word 97. Lay out footnotes like Word 6.x/95/97. Don't use HTML paragraph auto spacing. Adjust line height to grid height in the table. Forget last tab alignment. Specifies whether to emulate Word for Windows 95 full-width character spacing Slign table rows independently. Lay out tables with raw width. Allow table rows to lay out apart. Use Word 97 line breaking rules for Asian text. Don't break wrapped tables across pages. Don't snap text to grid inside table with inline objects. Select entire field with first or last character. Use line-breaking rules. Don't allow hanging punctuation with character grid. Don't use Asian rules for line breaks with character grid. Use Word 2002 table style rules. Allow tables to extend into margins. Use the Normal style instead of the List Paragraph style for bulleted or numbered lists. Do not use hanging indent as tab stop for bullets and numbering. Use Word 2003 hanging-punctuation rules in Asian langauges. Allow space between paragraphs of the same style in a table. Use Word 2003 indent rules for text next to wrapped objects. Do not autofit tables next to wrapped objects. Use Microsoft Office Word 2003 table autofit rules. Underline the tab character between the number and the text in numbered lists. Do not use proportional width for Korean characters. Split apart page break and paragraph mark. Specifies whether to not vertically align cells containing floating objects Specifies whether to not break table rows around floating tables Specifies whether to ignore vertical alignment in text boxes Specifies whether to use ANSI kerning pairs from fonts instead of the Unicode kerning pair info Specifies whether to use cached paragraph information for column balancing specifies whether to apply the additional preceding rules when determining the font size and justification of text within tables. specifies whether the preceding features are to be used when displaying the font. specifies whether to swap indentation values when displaying paragraphs. conditional formatting of table row headers does apply separately to multi-row table headers Specifies that applications shall not bypass code relating to the layout of East Asian and/or Complex Script characters. Specifies that the parent annotation's placement shall be directly linked with the location of the physical presentation of a custom XML element in the document. Displaced by Next Custom XML Markup Tag. Displaced by Previous Custom XML Markup Tag. Defult This simple type specifies the set of possible aliases (or editing groups) which can be used as aliases to determine if the current user shall be allowed to edit a single range defined by a range permission with in a document. This mechanism simply provides a set of predefined editing groups which can be associated with accounts by applications in any desired manner. No users. The current user. Editors of the documnet. Owners of the documnet. Contributors to the documnet. Members of the administrator group on the computer. All users. Translates an HTML color representation to a GDI+ System.Drawing.Color structure. The string representation of the Html color to translate. Gets the number of items in the collection. The count. Returns an enumerator that iterates through a collection. An object that can be used to iterate through the collection. Removes all items from the collection. Gets or sets the element at the specified index. the index. Gets the number of items in the collection. The count. Returns an enumerator that iterates through a collection. An object that can be used to iterate through the collection. Adds an item to the IList. the item. Removes all items from the IList. Determines whether the IList contains a specific value. The item. Determines the index of a specific item in the IList. The Item. Inserts an item to the IList at the specified index. the index. the item. Removes the first occurrence of a specific object from the IList. the item. Removes the IList item at the specified index. Listening status change. Represents a collection of DLS entities. Gets the at the specified index. Gets the first item. The first item. Gets the last item. The last item. Adds the specified entity. the document object. Removes all items Determines whether a entity is in the collection. the document object. Returns the zero-based index of the specified entity. the document object. Inserts a entity into the collection at the specified index. The index. the document object. Removes the document object from the collection. the document object. Removes the document object at the specified index from the collection. The index. Gets the first item. The type. The documentobject. Gets the last item. The type. The documentobject. Specifies Item DocumentObject type. Eventhandler for DocumentObjectCollection class. DocumentObject type. The DocumentObject. Adds the specified handler. The handler. Removes the specified handler. The handler. Returns an enumerator that iterates through a collection. An object that can be used to iterate through the collection. Sends the specified type. The type. the document object. Represents a collection for child items. Initializes a new instance of the class. The doc. Gets the document. The document. Gets a value indicating whether format is default. true if format is default; otherwise,false. Initializes a new instance of the class. Initializes a new instance of the class. Initializes a new instance of the class. The doc. The owner. Initializes a new instance of the class. The parent. The parent key. Initializing constructor. The parent. The parent key. The parent offset. Checks if Key exists. The key. if the specified key has key, set to true. Clears the formatting. Gets the key. Get the object by the index. Gets or sets font. Returns or sets font name Returns or sets font size Returns or sets bold style Returns or sets italic style Returns or sets strikeout style. Returns or sets double strikeout style. Returns or sets underline style add underline color tiger 2015-01-04 Returns or sets underline color add kern tiger 2015-01-04 Returns or sets kern Returns or sets right-to-left property of text. Returns or sets bold property for right-to-left text. Gets or sets highlight color of text. Gets or setsthe font used for Latin text (characters with character codes from 0 through 127). Gets or sets font name for right-to-left text. Gets or sets East Asian font name. Gets or sets font used for characters with character codes from 128 through 255. Gets or sets the font type hint. Gets or sets the ASCII locale id . The ASCII locale id . Gets or sets the far east locale id . The far east locale id . Default constructor Gets the child objects of the entity. Gets the type of the document object. The type of the document object. Gets the owner of this entity. Get the parent object of the entity. Gets the previous sibling. Gets the next sibling. The next sibling. Gets the document. The document. Initializes a new instance of the class. Initializes a new instance of the class. The doc. The owner. Class represents settings of the document. Gets or sets a value whether compatibility mode of the document. Gets or sets the type of protection of the document. Gets and sets whether to enforce the document protection . set default true value for CompatibilityOptions; the Clone. Initializes a new instance of the class. The doc. The owner. Gets count of child object. Gets the type of the document object. Gets the child entities. The child entities. Closes this instance. Prerforms application-defined tasks associated with freeing,releasing, or resetting unmanaged resources. Creates new paragraph item instance. Paragraph item type Gets/Sets the language id of complex script theme font. Gets/Sets the language id of east asian theme font. Gets/Sets the language id of ascii theme font. default font name. Gets/Sets the ascii font name.Specifies a font which shall be used to format all charachters in the Unicode range (\u000-u007F) within the parent run. Gets/Sets the east asia font name.Specifies a font which shall be used to format all characters in an East Asian Unicode range within the parent run. Gets/Sets the high ansi font name.Specifies a font which shall be used to format all characters in a Unicode range within the parent run. Gets/Sets the complex script font name.Specifies a font which shall be used to format all characters in a complex script Unicode range within the parent run. The theme class. Gets color scheme. Gets minor font. Gets/Sets major font. Gets/Sets xml node stream. Gets language id list. Initialize class. Converter language id to script string. the language id. Class fontScheme. Gets/Sets name value. Gets/Sets type value. Gets/Sets script value. Gets/Sets typeface value. Get typeface string lentht. theme color type enum. Class colorScheme. Gets or sets color object. Gets/Sets color name. Gets/Sets color hex string. Gets/Sets theme color name; Gets/Set object type. set color. The Color Set color hex. Get hex color. Gets the HTML color. The color. The hue. The saturation. The luminance. JAVA TO C# CONVERTER WARNING: The .NET Type.FullName property will not always yield results identical to the Java Class.getName method: Initializes a new instance of the class. The document. Initializes a new instance of the class. The document. The office math element. Initializes a new instance of the class. The document. The office math element. The character format. Gets the type of the document object. The type of the document object. Gets the parent paragraph. The parent paragraph. XSLs the transform. The input XML conent. Content of the inupt XSL. String. Checks the and add MML namespace. The input XML conent. System.String. XSLs the transform. The input XML conent. Content of the inupt XSL. System.String. Mml to omml. The MML code. System.String. Omml to mml. The OMML code. System.String. Latexes to mathML. The latex text. System.String. Froms the mathML code. The Math ML code. Froms the latex math code. The latex math code. Creates the DOM output options. DOMOutputOptions. To the mathML code. System.String. Gets the child objects of the entity. Gets owner paragraph. Gets the style name. a flag checked whether the item is added for IF field layout; Gets the character format. The paragraph item character format. Sets the character format. The character format. Gets or sets a value whether is PTab. Gets or sets a value whether is PTab. Indicates this text range is a temp and blank text range of an empty paragraph Gets the type of the document object. The type of the document object. Returns or sets text. if the text range is added for an empty paragraph ,return true; otherwise,false. if the text range is added for Break ,return true; otherwise,false. a flag specified that whehter the textrange is converted from a field. get the owner of the field Gets the character format. Indicates whether current TextRange can be split Initializes a new instance of the class. The doc. get the total width of punctuations in the textrange. Is not a separator Is a separator, but can not be the first char of a new line Is a separator which can be the first char of a new line Indicates that the character is an opening or initial quotation mark. Letter, whoes code > 0x7ff Gets visual text string. Gets or set a value indicating whether this instance is bidi(RTL). Gets or set a value indicating whether this instance is bidi(RTL). The leader line is made up from middle-dots. Create font object Initializes a new Font using a specified size and style. A string representation of the FontFamily for the new Font. The em-size, in points, of the new font. The new font. Initializes a new Font using a specified size and style. A string representation of the FontFamily for the new Font. The em-size, in points, of the new font. The System.Drawing.FontStyle of the new font. The new font. Initializes a new Font using a specified size and style. The FontFamily of the new Font. The em-size, in points, of the new font. The System.Drawing.FontStyle of the new font. The new font. Checks the underline or strikeout styles. The old font style. The new font sytel. Compares the floating number. The value1. The value2. The accuracy. return 0,val1 equal val2;return 1,val1 greater than val2;return -1,val1 less than val2; Compares the double number. The value1. The value2. The accuracy. return 0,val1 equal val2;return 1,val1 greater than val2;return -1,val1 less than val2; Floating point precision. The value. The number of decimal places, up to 6 decimal places, with a minimum of 0 decimal places. Keeps tow decimal places. The value. Same as Current, but it returns int rather than object to avoid boxing penalty. Gets the index of the current character in the source string. Array of break char which text could be contains Type of file format. Microsoft Word 97 - 2003 Binary Document. Microsoft Word 97 - 2003 Binary Document or Template. Microsoft Word 2007 Document. Microsoft Word 2010 Document Microsoft Word 2013 Document Microsoft Word 2007 Template format. Microsoft Word 2010 Template format. Microsoft Word 2013 Template format. Microsoft Word 2007 macro enabled file format. Microsoft Word 2010 macro enabled file format. Microsoft Word 2013 macro enabled file format. Microsoft Word 2007 macro enabled template format. Microsoft Word 2010 macro enabled template format. Microsoft Word 2013 macro enabled template format. Office Open Xml Word xml format for for word 2003 Word xml format for word 2007-2013 OpenDocument format. OpenDocument Template format PDF format Rtf format Scalable vector graphics format Xml file format. Text file format. Html format. XPS format EPub format The document is in the Word 6 or Word 95 format. Spire.Xls.Core.Converter.General.Word does not currently support loading such documents. PostScript (PS) format. Printer Command Language (PCL) format. Instructs Spire.Xls.Core.Converter.General.Word to recognize the format automatically. Type of the protection in the document Only modify comments in the document. Only enter data in the form fields in the document. Only reading are allowed in the document. Only add revision marks to the document. Not protected Style of the Texture Animation effect for text. specifies no animation. Specifies that this text shall be surrounded by a border consisting of a series of colored lights, which constantly change colors in sequence. Specifies that this text shall be surrounded by a background color which alternates between black and white. Specifies that this text shall have a background consisting of a random pattern of colored lights, which constantly change colors in sequence. Specifies that this text shall be surrounded by an animated black dashed line border. Specifies that this text shall be surrounded by an animated red dashed line border. Specifies that this text shall be animated by alternating between normal and blurry states. The enum, which defines paragraph format's outline level Outline level: "Level 1" Outline level: "Level 2" Outline level: "Level 3" Outline level: "Level 4" Outline level: "Level 5" Outline level: "Level 6" Outline level: "Level 7" Outline level: "Level 8" Outline level: "Level 9" Outline level: "Body" The enum defines the horizontal relation The "Column" horizontal relation The "Margin" horizontal relation The "Page" horizontal relation The enum defines the vertical relation The "Margin" vertical relation The "Page" vertical relation The "Paragraph" vertical relation Specifies the absolute horizontal position. The object is aligned to the left of the reference origin. The object is centered to the reference origin. The object is aligned to the right of the reference origin. "Inside" horizontal position. "Outside" horizontal position. Specifies the absolute vertical position. No vertical positioning "Top" vertical position "Center" vertical position "Bottom" vertical position "Inside" vertical position "Outside" vertical position. Line dashing. Solid (continuous) pen. PS_DASH system dash style. PS_DOT system dash style. PS_DASHDOT system dash style. PS_DASHDOTDOT system dash style. Square dot style. Dash style. Long dash style. Dash short dash. Long dash short dash. Long dash short dash short dash. Specifies horizontal alignment of a floating shape. The object is explicitly positioned using position properties. The object is aligned to the left of the reference origin. The object is centered to the reference origin. The object is aligned to the right of the reference origin. Not documented. Not documented. Specifies vertical alignment of a floating shape. Not documented. The object is explicitly positioned using position properties. The object is aligned to the top of the reference origin. The object is centered relative to the reference origin. The object is aligned to the bottom of the reference origin. Not documented. Not documented. Specifies the type of a text form field. Text form field can contain any text. Text form field can contain only numbers. Text for field can contain only a valid date value. Specifies the Type of the FootNote. Specifies object is a footnote. Specifies object is a endnote. Spanish (Argentina) Spanish (Bolivia) Spanish (Chile) Spanish (Colombia) Spanish (Costa Rica) Spanish (Dominican Republic) Spanish (Ecuador) Spanish (El Salvador) Spanish (Guatemala) Spanish (Honduras) Spanish (Mexico) Spanish (Nicaragua) Spanish (Panama) Spanish (Paraguay) Spanish (Paraguay Spanish (Puerto Rico) Spanish (International Sort) Spanish(Spain ?Traditional Sort) Spanish(United Sates) Spanish (Uruguay) Spanish (Venezuela) Sutu Swahili Swedish (Finland) Swedish (Sweden) Syriac Tajik Tamazight Tamazight (Latin) Tamil Tatar Telugu Thai Tibetan (PRC) Tigrigna (Eritrea) Tigrigna (Ethiopia) Tsonga Turkish Turkmen Ukrainian Urdu Uzbek (Cyrillic) Uzbek (Latin) Venda Vietnamese Welsh Yi Yiddish Yoruba Japanese Dutch Specifies preferred width type No Preffered Width No preferred width is specified. The width is derived from other table measurements where a preferred size is specified, as well as from the size of the table contents, and the constraining size of the container of the table. Preferred table width specified in percentage. The preferred width is measured in units of 1/50th of a percent. The preferred width of the table,indent,cell,cell margin, or cell spacing is an absolute width measured in twips. The preferred cell spacing is an absoute width measured in twips. Character Spacing Control enum. Don't compress punctuation. Compress punctuation. Compress punctuation and japanese kana. Unit conversion between. Font used for the 0..127 characters. This value is not used as , may be it's better to create separate enum for character hints. Font used for the East Asian characters. Also known as East Asian. Font used for the Complex Script characters. Font used for characters that do not fall into any of the above ranges. Also known as High ASCII. Represents the state of the proofing tools in this documnet: clean (no errors found) or dirty (errors present in the document). Represents the color palette of this worksheet. Represents the font script format. Image mimes cache for embedding image. Build body in html. * Returns the inverse of the standard normal cumulative distribution. * The distribution has a mean of zero and a standard deviation of one. * * @param probability a probability corresponding to the normal distribution. * @return the inverse of the standard normal cumulative distribution. Returns the inverse of the normal cumulative distribution for the specified mean and standard deviation. @param probability a probability corresponding to the normal distribution. @param mean the arithmetic mean of the distribution. @param standard_dev the standard deviation of the distribution. @return the inverse of the normal cumulative distribution for the specified mean and standard deviation. You must ensure fA>0.0 and fX>0.0 valid results only if fX less than or equal to fA+1.0 uses power series You must ensure fA>0.0 and fX>0.0) You must ensure fA>0.0 and fX>0.0) 抽象函数:计算积分函数值,必须在派生类中覆盖该函数 @param x - 函数变量 @return double型,对应的函数值 基本构造函数 变步长梯形求积法 调用时,须覆盖计算函数f(x)值的虚函数double Func(double x) @param a - 积分下限 @param b - 积分上限,要求b>a @param eps - 积分精度要求 @return double 型,积分值 变步长辛卜生求积法 调用时,须覆盖计算函数f(x)值的虚函数double Func(double x) @param a - 积分下限 @param b - 积分上限,要求b>a @param eps - 积分精度要求 @return double 型,积分值 自适应梯形求积法 调用时,须覆盖计算函数f(x)值的虚函数double Func(double x) @param a - 积分下限 @param b - 积分上限,要求b>a @param d - 对积分区间进行分割的最小步长,当子区间的宽度 小于d时,即使没有满足精度要求,也不再往下进行分割 @param eps - 积分精度要求 @return double 型,积分值 内部函数 龙贝格求积法 调用时,须覆盖计算函数f(x)值的虚函数double Func(double x) @param a - 积分下限 @param b - 积分上限,要求b>a @param eps - 积分精度要求 @return double 型,积分值 计算一维积分的连分式法 调用时,须覆盖计算函数f(x)值的虚函数double Func(double x) @param a - 积分下限 @param b - 积分上限,要求b>a @param eps - 积分精度要求 @return double 型,积分值 高振荡函数求积法 调用时,须覆盖计算函数f(x)值的虚函数double Func(double x) @param a - 积分下限 @param b - 积分上限,要求b>a @param m - 被积函数中振荡函数的角频率 @param n - 给定积分区间两端点上的导数最高阶数+1 @param fa - 一维数组,长度为n,存放f(x)在积分区间端点x=a处的各阶导数值 @param fb - 一维数组,长度为n,存放f(x)在积分区间端点x=b处的各阶导数值 @param s - 一维数组,长度为2,其中s(1)返回f(x)cos(mx)在积分区间的积分值, s(2) 返回f(x)sin(mx)在积分区间的积分值 @return double 型,积分值 勒让德-高斯求积法 调用时,须覆盖计算函数f(x)值的虚函数double Func(double x) @param a - 积分下限 @param b - 积分上限,要求b>a @param eps - 积分精度要求 @return double 型,积分值 拉盖尔-高斯求积法 调用时,须覆盖计算函数f(x)值的虚函数double Func(double x) @return double 型,积分值 埃尔米特-高斯求积法 调用时,须覆盖计算函数f(x)值的虚函数double Func(double x) @return double 型,积分值 虚函数:计算方程左端函数值,必须在引申类中覆盖该类函数 @param x - 变量 @return 函数值 虚函数:计算方程左端函数值,必须在引申类中覆盖该类函数 @param x - 变量值数组 @return 函数值 虚函数:计算方程左端函数值,必须在引申类中覆盖该类函数 @param x - 变量 @param y - 函数值数组 虚函数:计算方程左端函数值,必须在引申类中覆盖该类函数 @param x - 二元函数的变量 @param y - 二元函数的变量 @return 函数值 虚函数:计算方程左端函数值,必须在引申类中覆盖该类函数 @param x - 二元函数的变量值数组 @param y - 二元函数的变量值数组 @return 函数值 虚函数:计算方程左端函数值,必须在引申类中覆盖该类函数 @param x - 已知变量值数组 @param p - 已知函数值数组 基本构造函数 求非线性方程实根的对分法 调用时,须覆盖计算方程左端函数f(x)值的虚函数 double Func(double x) @param nNumRoots - 在[xStart, xEnd]内实根个数的预估值 @param x - 一维数组,长度为m。返回在区间[xStart, xEnd]内搜索到的实根, 实根个数由函数值返回 @param xStart - 求根区间的左端点 @param xEnd - 求根区间的右端点 @param dblStep - 搜索求根时采用的步长 @param eps - 精度控制参数 @return int 型,求得的实根的数目 求非线性方程一个实根的牛顿法 调用时,须覆盖计算方程左端函数f(x)及其一阶导数f'(x)值的虚函数: void Func(double x, double[] y) y(0) 返回f(x)的值 y(1) 返回f'(x)的值 @param x - 传入迭代初值(猜测解),返回在区间求得的一个实根 @param nMaxIt - 递归次数 @param eps - 精度控制参数 @return bool 型,求解是否成功 求单调函数方程一个实根的Fisher Wang迭代法 求非线性方程一个实根的埃特金迭代法 调用时,须覆盖计算方程左端函数f(x)值的虚函数 double Func(double x) @param x - 传入迭代初值(猜测解),返回在区间求得的一个实根 @param nMaxIt - 递归次数 @param eps - 精度控制参数 @return bool 型,求解是否成功 求非线性方程一个实根的连分式解法 调用时,须覆盖计算方程左端函数f(x)值的虚函数 double Func(double x) @param x - 传入迭代初值(猜测解),返回在区间求得的一个实根 @param eps - 精度控制参数 @return bool 型,求解是否成功 * 求非线性方程实根, 先使用二分法获得 根的大概范围 误差在1之内, 而后使用割线法获得最后的根。 * * 调用时,须覆盖计算方程左端函数f(x)值的虚函数 * double Func(double x) * * @param nNumRoots - 在[xStart, xEnd]内实根个数的预估值 * @param x - 一维数组,长度为m。返回在区间[xStart, xEnd]内搜索到的实根, * 实根个数由函数值返回 * @param xStart - 求根区间的左端点 * @param xEnd - 求根区间的右端点 * @param dblStep - 搜索求根时采用的步长 * @param eps - 精度控制参数 * @return int 型,求得的实根的数目 Class used for defining constants and namespace for drawings. Name of the tag objectPr Store move with cells value Store size with cells value Store the default size value Main spreadsheet drawings namespace ('xdr' abbreviation is used in MS Excel documents). Main drawings namespace ('a' abbreviation is used in MS Excel documents). Svg drawing namespace. Main chartsheet drawings namespace ('cdr' abbreviation is used in MS Excel documents). Prefix used by MS Excel for XdrNamespace definition. Prefix used by MS Excel for CdrNamespace definition. Prefix used by MS Excel for ANamespace definition. Prefix used by MS Excel for A14Namespace definition. This element specifies the camera tool option in pictures. This element specifies the cell range in camera tool option. URI string used by MS Excel for camera tool. Prefix used by MS Excel for ASvgNamespace definition. Attribute used to denote the requires Element specifies the fallback content This element specifies a two cell anchor placeholder for a group, a shape, or a drawing element. It moves with cells and its extents are in EMU units. This element specifies a one cell anchor placeholder for a group, a shape, or a drawing element. It moves with the cell and its extents is in EMU units. This element Specifies the form control element. This element specifies the form control element. Specifies how the DrawingML contents shall be moved and/or resized when the rows and columns between its start and ending anchor (the from and to child elements) are resized, or have additional rows/columns inserted within them, or additional row/columns are added before them. This element specifies the first anchor point for the drawing element. This will be used to anchor the top and left sides of the shape within the spreadsheet. That is when the cell that is specified in the from element is adjusted, the shape will also be adjusted. This element specifies the second anchor point for the drawing element. This will be used to anchor the bottom and right sides of the shape within the spreadsheet. That is when the cell that is specified in the to element is adjusted, the shape will also be adjusted. This element specifies the column that will be used within the from and to elements to specify anchoring information for a shape within a spreadsheet. This element is used to specify the column offset within a cell. This element specifies the row that will be used within the from and to elements to specify anchoring information for a shape within a spreadsheet. This element is used to specify the row offset within a cell. This element specifies the non visual properties for a picture. This allows for additional information that does not affect the appearance of the picture to be stored. This element specifies non-visual canvas properties. This element specifies non-visual group shape properties. This element specifies group shape properties. This element specifies the non-visual connector shape drawing properties This element specifies the non-visual properties for the picture canvas. This element specifies the on-click hyperlink information to be applied to a run of text. When the hyperlink text is clicked the link is fetched. This element specifies the type of picture fill that the picture object will have. Because a picture has a picture fill already by default, it is possible to have two fills specified for a picture object. This element specifies the existence of an image (binary large image or picture) and contains a reference to the image data. It's define the Picture fill option It's define the values of Transparency Specifies the identification information for an embedded picture. This attribute is used to specify an image that resides locally within the file. Specifies the identification information for a linked picture. This attribute is used to specify an image that is added as external link. Specifies that the current start and end positions shall be maintained with respect to the distances from the absolute start point of the worksheet. Specifies that the current drawing shall move with its row and column (i.e. the object is anchored to the actual from row and column), but that the size shall remain absolute. Specifies that the current drawing shall move and resize to maintain its row and column anchors (i.e. the object is anchored to the actual from and to row and column). This element specifies that a BLIP should be stretched to fill the target rectangle. This element specifies that a BLIP should be tiled to fill the available space. This element specifies the portion of the blip used for the fill. This element specifies a fill rectangle. When stretching of an image is specified, a source rectangle, srcRect, is scaled to fit the specified fill rectangle. This element specifies the existence of a picture object within the document. Name of the xml attribute that stores id. Name of the xml attribute that stores shape name. Name of the xml attribute that stores alternative description. This element specifies all locking properties for a graphic frame. Specifies that the generating application should not allow aspect ratio changes for the corresponding connection shape. If this attribute is not specified, then a value of false is assumed. This element specifies the visual shape properties that can be applied to a shape. This element specifies the thickness of the walls or floor as a percentage of the largest dimension of the plot volume. It's define picturefill in shapeproperty. It's define pictureformat options It's define pictureformat options It's define the Pictureformatvalue This element represents 2-D transforms for ordinary shapes. This element specifies the location of the bounding box of an object. This element specifies the size of the bounding box enclosing the referenced object. This element specifies the location of the bounding box of a child object. This element specifies the size of the bounding box enclosing the referenced child object. Specifies a coordinate on the x-axis. Specifies a coordinate on the x-axis. Specifies the length of the extents rectangle in EMUs. Specifies the width of the extents rectangle in EMUs. Specifies the preset geometry that will be used for this shape. Specifies the custom geometry that will be used for this shape. Specifies the EffectTag. Specifies the ShapePropertiesExtensionList. This elemet specifies that the chart has inverted shape elements and that is to be filled with a solid color. This element specifies when a preset geometric shape should be used instead of a custom geometric shape. This element indicates that the sheet contains drawing components built on the drawingML platform. This element specifies all drawing objects within the worksheet. This element specifies the adjust values that will be applied to the specified shape. This element is used to set certain properties related to a drawing element on the client spreadsheet application. This element describes a single graphical object frame for a spreadsheet which contains a graphical object. This element specifies the existence of a single shape. A shape can either be a preset or a custom geometry, defined using the SpreadsheetDrawingML framework. In addition to a geometry each shape can have both visual and non-visual properties attached. Text and corresponding styling information can also be attached to a shape. This shape is specified along with all other shapes within either the shape tree or group shape elements. This element specifies the properties for a connection shape drawing element. A connection shape is a line, etc. that connects two other shapes in this drawing. This element specifies a group shape that represents many shapes grouped together. This shape is to be treated just as if it were a regular shape but instead of being described by a single geometry it is made up of all the shape geometries encompassed within it. Within a group shape each of the shapes that make up the group are specified just as they normally would. The idea behind grouping elements however is that a single transform can apply to many shapes at the same time. This element specifies the custom function associated with the object. This element specifies the existence of a single graphic object. This element specifies the reference to a graphic object within the document. Specifies the URI, or uniform resource identifier that represents the data stored under this tag. The URI is used to identify the correct 'server' that can process the contents of this tag. This element specifies all non-visual properties for a graphic frame. This element defines the body properties for the text body within a shape. This element specifies the list of styles associated with this body of text. This element specifies the presence of a paragraph of text within the containing text body. This element contains all paragraph level text properties for the containing paragraph. These paragraph properties should override any and all conflicting properties that are associated with the paragraph in question. This element contains all default run level text properties for the text runs within a containing paragraph. These properties are to be used when overriding properties have not been defined within the rPr element. This element specifies the presence of a run of text within the containing text body. This element specifies the actual text for this text run. This is the text that will be formatted using all specified body, paragraph and run properties. This element must be present within a run of text. This element contains all run level text properties for the text runs within a containing paragraph. Specifies whether a run of text will be formatted as bold text. If this attribute is omitted, than a value of 0, or false is assumed. Specifies whether a run of text will be formatted as italic text. If this attribute is omitted, than a value of 0, or false is assumed. Specifies whether a run of text will be formatted as strikethrough text. If this attribute is omitted, than no strikethrough is assumed. Specifies the size of text within a text run. Whole points are specified in increments of 100 starting with 100 being a point size of 1. For instance a font point size of 12 would be 1200 and a font point size of 12.5 would be 1250. If this attribute is omitted, than the value in defRPr should be used. Specifies whether a run of text will be formatted as underlined text. If this attribute is omitted, than no underline is assumed. This element is used as an anchor placeholder for a shape or group of shapes. It will anchor the object in the same position relative to sheet position and its extents are in EMU unit. This element describes the position of a drawing element within a spreadsheet. Specifies that the generating application should not allow shape grouping for the corresponding connection shape. This element specifies all locking properties for a graphic frame. This element specifies the non-visual drawing properties for a graphic frame. This element specifies an outline style that can be applied to a number of different objects such as shapes and text. Specifies the width to be used for the underline stroke. If this attribute is omitted, then a value of 0 is assumed. Specifies the compound line type to be used for the underline stroke. If this attribute is omitted, then a value of sng is assumed. This element specifies that no fill will be applied to the parent element. This element specifies a solid color fill. The shape is filled entirely with the specified color. border miter join Tag border bevel join tag This element specifies a color using the red, green, blue RGB color model. Red, green, and blue is expressed as sequence of hex digits, RRGGBB. A perceptual gamma of 2.2 is used. This element specifies a color bound to a user's theme. As with all elements which define a color, it is possible to apply a list of color transforms to the base color defined. This color is based upon the value that this color currently has within the system on which the document is being viewed. Applications shall use the lastClr attribute to determine the absolute value of the last color used if system colors are not supported. This element specifies that a preset line dashing scheme should be used. This element specifies the background color of a Pattern fill. This element specifies the foreground color of a pattern fill. This element specifies a pattern fill. A repeated pattern is used to fill the object. Specifies one of a set of preset patterns to fill the object. This element specifies that lines joined together will have a round join. This element defines a gradient fill. This element specifies decorations which can be added to the head of a line. This element specifies GroupFillTag. This element specifies decorations which can be added to the tail of a line. The list of gradient stops that specifies the gradient colors and their relative positions in the color band. This element specifies a linear gradient. It's define the Tailtag property Specifies the direction of color change for the gradient. To define this angle, let its value be x measured clockwise. Then ( -sin x, cos x ) is a vector parallel to the line of constant color in the gradient fill. Whether the gradient angle scales with the fill region. This element defines that a gradient fill will follow a path vs. a linear line. Specifies the shape of the path to follow. This element defines a gradient stop. A gradient stop consists of a position where the stop appears in the color band. Specifies where this gradient stop should appear in the color band. This element specifies its input color with the specific opacity, but with its color unchanged. This element defines the "focus" rectangle for the center shade, specified relative to the fill tile rectangle. The center shade fills the entire tile except the margins specified by each attribute. This element specifies a Color Change Effect. Instances of clrFrom are replaced with instances of clrTo This element indicates whether the input color use the specific opacity This element specifies a Color From. This element specifies a Color To. Specifies the left edge of the rectangle. Specifies the top edge of the rectangle. Specifies the right edge of the rectangle. Specifies the bottom edge of the rectangle. Specifies the left edge of the rectangle. Specifies the top edge of the rectangle. Specifies the right edge of the rectangle. Specifies the bottom edge of the rectangle. This element specifies a lighter version of its input color. A 10% tint is 10% of the input color combined with 90% white. This element specifies a darker version of its input color. A 10% shade is 10% of the input color combined with 90% black. This element specifies that the output color rendered by the generating application should be the sRGB gamma shift of the input color. This element specifies that the output color rendered by the generating application should be the inverse sRGB gamma shift of the input color. This element specifies the input color with its luminance modulated by the given percentage. /// This element specifies the input color with its hue modulated by the given percentage. This element specifies the input color with its luminance. This element specifies the input color with its saturation modulated by the given percentage. This element specifies the input color with its saturation. This element specifies the input color with its saturation offset. This element specifies shade. This element specified the rotation of text. Specifies that all text in the parent object shall be aligned to the baseline of each character when displayed. This element specifies that a Latin font be used for a specific run of text. Represents font type face. Represents embedded controls in worksheet. Represents a single embedded control. This element specifies the non-visual drawing properties for a shape. These properties are to be used by the generating application to determine how the shape should be dealt with. Specifies that the corresponding shape is a text box and thus should be treated as such by the generating application. If this attribute is omitted then it is assumed that the corresponding shape is not specifically a text box. This element specifies all non-visual properties for a shape. This element is a container for the non-visual identification properties, shape properties and application properties that are to be associated with a shape. This allows for additional information that does not affect the appearance of the shape to be stored. This element specifies the existence of text to be contained within the corresponding shape. All visible text and visible text related properties are contained within this element. There can be multiple paragraphs and within paragraphs multiple runs of text. Default value for subscript baseline value. Default value for superscript baseline value. Specifies the anchoring position of the txBody within the shape. If this attribute is omitted, then a value of t, or top is implied. Specifies if the anchoring position of the txBody is centered within the shape. Determines if the text within the given text body should be displayed vertically. If this attribute is omitted, then a value of horz, or no vertical text is implied. This attribute indicates whether to allow text editing within this drawing object when the parent worksheet is protected. Specifies the alignment that is to be applied to the paragraph. Possible values for this include left, right, centered, justified and distributed. If this attribute is omitted, then a value of left is implied. specifies the capitialization for rich text specifies the normaliztion of heights for text Specifies the shape autofit element tag Apply all caps on the text. Apply small caps to the text. Caps is not applied to the text Determines whether the text can flow out of the bounding box vertically Determines whether the text can flow out of the bounding box horizontally Specifies the left inset of the bounding rectangle attribute Specifies the bottom inset of the bounding rectangle attribute Specifies the top inset of the bounding rectangle attribute Specifies the right inset of the bounding rectangle attribute Specifies the minimum font size at which character kerning occurs for this text run. Specifies the spacing between characters within a text run. Specifies the shape hyperlink element tag Specifies the glow effect, in which a color blurred outline is added outside the edges of the object. Specifies the soft edge effect. The edges of the shape are blurred, while the fill is not affected. Specifies the radius of blur to apply to the edges. Value of the Guid attribute that specifies SVG image. Value of the URI attribute for UseLocalDpi. Value of the URI attribute for Image properties. Specifies the alpha bilevel tag. Specifies the alpha ceiling tag. Specifies the alpha floor tag. Specifies the gray scale tag. Specifies the fill overlay tag. Specifies the alpha mod tag. Specifies the alpha inv tag. Specifies the alpha repl tag. Specifies the bi level tag. Specifies the thresh tag. Specifies the blur value. Speifies the Hsl. Specifies the duo tone. Specifies the image properties. Specifies the local Dpi settings. Specifies the svg blip. Specifies fill reference Specifies the constant value used for converting angle Vertical flip attribute tag Horizontal flip attribute tag Field attribute tag bullet font bullet Char Stores and serialize the chart / shape style entries attribute used as prefix autoshape parent Name space used on serialization mods enum value for the style element style entry is not provided It specifies a reference to a line style within the style matrix. must be initialized for chartStyle It specifies a multiplier to apply to the line width. It reference to an effect style within the style matrix. must be initialized for chartStyle It specifies a reference to a fill style within the style matrix. must be initialized for chartStyle It specifies a reference to a themed font. must be initialized for chartStyle It specifies visual shape properties associated with this StyleEntry It specifies the default text character properties for a text body associated with this StyleEntry. It specifies the body properties for a text body associated with this StyleEntry Gets / Sets the value of member StyleElementMod Gets / Sets the line reference style entry Gets / Sets the line width of style entry Gets / Sets the effect reference of style entry Gets / Sets the Fill reference of style entry Gets / Sets the Font reference of style entry Gets / Sets the shape properties of style entry Gets / Sets the Default paragraph run properties of style entry Gets / Sets the text body properties of style entry Default constructor Constructor used for auto shape input shape input attribute Constructor used for chart style input attribute value input namespace value input style modifier enum value Serialize the Style or font reference for entry input XML writer input style entry reference style entry reference name boolean value indicates whether thr reference is font or not Serialize the input color and its values input XML writer color model type color value string luminance modulation value luminance offset 1 value luminance offset 2 value shade value on color Serialize the shape properties current object input XML writer Serialize the Default run paragraph properties input XML writer Serialize the current shape style and its member input XML writer input parent element of chart style Stores the information required for each style entries lineRef, fillRef, effectRef, fontRef, Style entry Index integer for lineRef, fillRef, effectRef style elements enum integer value for fontRef style elements Color model value Its stores the value of color respect to color model hexa color or schema color information luminace modulation value for scheme color luminance offset value 1 for scheme color luminance offset value 2 for scheme color stores the shade value Gets / Sets the value of member index Gets / Sets the value of member ColorModelType Gets / Sets the value of member ColorValue Gets / Sets the value of member LumModValue Gets / Sets the value of member LumOffValue1 Gets / Sets the value of member LumOffValue2 Gets / Sets the value of member Shade value Initialize the member with its values Index value colorModel value color value luminance modulation value luminance offset 1 value luminance offset value 2 shade value of color Stores the information of shape properties of style entry Indicates whether the options are enabled. Bit position 0-Shape fill 1-Line fill 2-line width (if set to 0, no fill) 3-line cap 4-line cmpd 5-line align enum indicates the fill type of shape s indicates the line width shape fill color model value Its stores the value of shape fill color respect to color model hexa color or schema color information luminace modulation value for scheme color of shape fill luminance offset value 1 for scheme color of shape fill luminance offset value 2 for scheme color of shape fill Color model value Its stores the value of border color respect to color model hexa color or schema color information luminace modulation value for scheme color of border luminance offset value 1 for scheme color of border luminance offset value 2 for scheme color of border Specifies the compound line type to be used for the underline stroke. Indicates that lines joined together have a round join. Specifies the ending caps that should be used for this line. Specifies the alignment to be used for the underline stroke. Gets / Sets the shapefillType member Gets / Sets the Border Weight member Gets / Sets the ShapeFillColorModel member Gets / Sets the ShapeFillColorValue member Gets / Sets the ShapeFill Luminance Modulation member Gets / Sets the shapefill luminace offset 1 member Gets / Sets the shapefill luminace offset 2 member Gets / Sets the Border Fill ColorModelType member Gets / Sets the BorderFill Color member Gets / Sets the BorderFill Luminance Modulation member Gets / Sets the borderFill Luminace Offset Value1 member Gets / Sets the borderFill Luminace Offset Value2 member Gets / Sets the shapeLineStyle member Gets / Sets the BorderIsRound member Gets / Sets the LineCap member Gets / Sets the IsInsetPen member Get the options enabled flags Default constructor Class that stores that text body properties text vertical overflow type text horizontal overflow type text direction enum left margin point of text top margin point of text right margin point of text bottom margin of text boolean value indicates whether the text to be wrapped in text struct type of columns vertical alignment of text horizontal alignment of text Boolean value indicates whether the text is to be auto sized Boolean value indicates whether margin is automatically generated Gets / Sets the TextVertOverflowType member Gets / Sets the TextHorzOverflowType member Gets / Sets the TextDirection member Gets / Sets the LeftMarginPt member Gets / Sets the TopMarginPt member Gets / Sets the RightMarginPt member Gets / Sets the BottomMarginPt member Gets / Sets the WrapTextInShape member Gets / Sets the VerticalAlignment member Gets / Sets the HorizontalAlignment member Gets / Sets the IsAutoSize member Gets / Sets the IsAutoMargins member Gets / Sets the number of column Gets / Sets the spacingPt of column Get the anchor position from text direction and alignment input text Direction of the text body input text body vertical alignment input text body horizontal alignment output anchor Update the anchor value. Text direction vertical alignment horizontal alignment alignment string true Get the string formatted text direction from enum input text direction enum output string formatted text direction Get Left margin value of text body converted left margin value Set Left margin value of text body converted left margin value Get Top margin value of text body converted Top margin value Set Top margin value of text body converted Top margin value Get Right margin value of text body converted right margin value Set Right margin value of text body converted right margin value Get Bottom margin value of text body converted Bottom margin value Set Bottom margin value of text body converted Bottom margin value Get anchor position value of text body from current object properties anchor position value Serializes the text body properties attributes input XML writer prefix of the element namespace of the element Represent columns in the Text frame. Gets or sets the number of the text frame columns. Gets or sets the spacing point of the text frame columns. Represents the TextSettings Font name. Underline style. Font size. Value indicating whether font is bold. Value indicating whether text Value indicating whether text is striked. Language used to display text. Font color. Represents the baseline properties default -1, it was non negative on chart style Has Latin Has Complex Scripts Has East and Asian Font Actual Font Show Title Bold Specifies the minimum font size at which character kerning occurs for this text run. default -1, it was non negative on chart style Specifies the spacing between characters within a text run. default -1, it was non negative True if bins generated by category values. otherwise False Applies only to Histogram and Pareto charts. True if bins generated are automatic. otherwise False Applies only to Histogram and Pareto charts. Get or set the Number of Bins in the axis Applies only to Histogram and Pareto charts.Can be a value from 1 through 31999. Get or Set the number of data points in each range. Applies only to Histogram and Pareto charts. Get or Set the UnderFlow Bin value Applies only to Histogram and Pareto charts. Get or Set the OverFlow Bin value Applies only to Histogram and Pareto charts. returns an Object that holds the information required for Histogram series Indicates the position and alignment of chart title Indicates the chart title included in chart Gets / Sets the Auto update member variable Gets / Sets the ChartEx relation Id member variable True if the chart type is treemap or sunburst. Otherwise false True if the chart type is histogram or pareto. Otherwise false Bug_761 add by Daniel in 2019/05/15 增加一个属性与A模型对应 True if the data point is considered as Subtotals or Totals. otherwise False. Applies only to Waterfall charts. Set the data point as total Used only in waterfall chart Represents the Excel 2016 Funnel Chart Represents the Excel 2016 Water Fall Chart Represents the Excel 2016 Box and Whisker Chart Represents the Excel 2016 Histogram Chart Represents the Excel 2016 Pareto Chart Represents the Excel 2016 Tree Map Chart Represents the Excel 2016 Sun Burst Chart Represents whether the connector lines shown between data points Used only in waterfall Chart It represents the label position in tree map chart Object that holds the information required for Box and whisker series Object that holds the information required for Histogram series Gets/ Sets the histogram axis format property for individual series Gets or sets a boolean value indicating whether to display Connector Lines between data points Applies only to Waterfall Charts Gets / Sets the Display label position in Tree map chart By Default the Label is overlapped Gets or sets a boolean value indicating whether to display Mean Line in Box and Whisker chart Gets or sets a boolean value indicating whether to display Mean Marker in Box and Whisker chart Gets or sets a boolean value indicating whether to display Inner Points in Box and Whisker chart Gets or sets a boolean value indicating whether to display Outlier Points in Box and Whisker chart Gets / Sets whether the Quartile calculation is Exclusive or Inclusive Applies only to Box and Whisker Charts Get or Set the isBinning by Category member value Get or Set the is Automatic Bin member value Get or Set the number of Bins member value Get or Set the Bin width member value Get or Set the overflow bin member value Get or Set the underflow bin member value Get or Set the value for interval is closed in left or right Represents TenThousands display Unit Represents HundredThousands display Unit Represents TenMillions display Unit Represents HundredMillions display Unit Represents the displayUnit which is only avail at paret chart axis Represents Custom display Unit Indicates the position and alignment of chart legend short value indicates the chartEx element position Indicates the format index of chart pareto line Used only in loaded chart Reprsent the Filter option Indicates whether the pareto line is hidden Objects that holds the pareto line settings Boolean value indicates category values interpreted in row-wise Boolean value indicates series values interpreted in row-wise format code used in series values format code used in category values ShowLeaderLines for the series. Border settings for ShowleaderLines. Gets / Sets the pareto line is hidden Gets / Sets the series is hidden or not Gets / Sets the format index of chart pareto line Used only in loaded chart Gets / SetsBoolean value indicates category values interpreted in row-wise Gets / SetsBoolean value indicates series values interpreted in row-wise Gets / Sets the format code for series values Gets / Sets the format code for series categories Represents excel version 2007 xlsb Represents excel version 2010 xlsb OpenOffice Spreadsheet documents Represents excel version 97-2003. Represents excel version 2007 Represents excel version 2013. Represents excel version 2016. Converts binary formula to string. Parameters are same with {@link FormulaTokenVisitor#resetFormula(byte[], int, int)}. @param buffer binary formula data @param startPos @param endPos @return String formula string starts with '='. @throws UnsupportedEncodingException Checks whether given string needs to be quoted for ODS file. @param str string to be checked. @return true if there are special characters in given string and the string needs to be quoted. Parse criteria from given node. @param criteria node which represents the criteria. @param relInfo FormulaRelInfo @return null if the criteria will be always false. Get the double values of given param list. @param arrParam @param relInfo @param int offset the offset in param list from which to convert values. @return If there is error param in given param list, returns this error param; If the param's value is invalid, returns #VALUE; Otherwise returns null. Get the double values of given param list. @param params @param relInfo @param int offset the offset in param list from which to convert values. @return If there is error param in given param list, returns this error param; If the param's value is invalid, returns #VALUE; Otherwise returns null. Get the double values of given param list. @param arrParam @param relInfo @param int offset the offset in param list from which to convert values. @return If there is error param in given param list, returns this error param; If the param's value is invalid, returns #VALUE; Otherwise returns null. Get the datetime values of given param list. @param arrParam @param relInfo @param int offset the offset in param list from which to convert values. @return If there is error param in given param list, returns this error param; If the param's value is invalid, returns #VALUE; Otherwise returns null. Converts this node itself to String. Does not convert its children. @param sb buffer to append content. Sets parameter nodes for this function. @param arrParams parameters. Every element is a parameter of this function. Resets formula data for this iterator. @param formula the buffer that holds formula data. @param startPos start offset of formula data(inclusive), data at startPos should be tokenID(endPos is non-negative) or formula size(endPos is -1). @param endPos end offset of formula data(exclusive). -1 means data at startPos is formula's size. Reads the CellRange from current token. If a valid CellRange has been read, the pointer will be moved to the next token. @param relInfo the relevant information of this formula. Such as Workbook/Worksheet, base position, owner such as Cell, Validation, ..., etc. @return CellRange if current token is a valid CellRange. Returns null if current token is not for CellRange or is AreaErr. Reads the data from current additional part. After read the pointer for additional data will be moved to the part of next token. @return the additional data. Reads the String value from current token. If String value is in token's data, after read the pointer will be moved to the next token. If String value is in token's additional data, after read the additional data pointer will be moved to the next sub-token. @return String if current token is for String. Returns null if current token is not for String. Gets the position of current token in the formula. @return the position of current token in the formula. Gets the position of current additional data in the formula. @return the position of current additional data in the formula. Checks whether there is a token can be processed. @return false if this iterator has reached the end of formula. Moves cursor from current token to the next token in formula. @return whether current token can be recognized. Reads Name object from current token. If current token is for Name, after read the pointer will be moved to the next token. @param wb Workbook the formula is in. @return Name if current token is for Name. Returns null if current token is not for Name or Name is of external workbook. Checks whether current token is CellAddress, inclues RefErr. @return true if current token is CellAddress. Checks whether current token is CellRange, includes AreaErr. @return true if current token is CellRange. Checks whether current token is Name, inclues NameX. @return true if current token is Name. Gets number of the column data. @return Add signature line to range. None. Lowercase alphabetical characters with a period. Uppercase alphabetical characters with a period. Arabic numerals with closing parenthesis. Arabic numerals with a period. Lowercase Roman numerals with both parentheses. Lowercase Roman numerals with closing parenthesis. Lowercase Roman numerals with period. Uppercase Roman numerals with period. Lowercase alphabetical characters with both parentheses. Lowercase alphabetical characters with closing parenthesis. Uppercase alphabetical characters with both parentheses. Uppercase alphabetical characters with closing parenthesis. Arabic numerals with both parentheses. Arabic numerals. Uppercase Roman numerals with both parentheses. Uppercase Roman numerals with closing parenthesis. Simplified Chinese without a period. Simplified Chinese with a period. Double-byte circled number for values up to 10. Text colored number with same color circle drawn around it. Shadow color number with circular background of normal text color. Traditional Chinese without a period. Traditional Chinese with a period. Arabic language alphabetical characters with a dash. Arabic Abjad alphabets with a dash. Hebrew language alphabetical characters with a dash. Japanese/Korean numbers without a period. Japanese/Korean numbers with a period. Double-byte Arabic numbering scheme (no punctuation). Double-byte Arabic numbering scheme with double-byte period. Thai Alpha period. Thai Alpha Paren right. Thai Alpha Paren both. Thai Num period. Thai Num Paren right. Thai Num Paren both. Hindi Alpha period. Hindi Num period. Kanji Simple Chinese DBPeriod. Hindi Num Paren right. Hindi Alpha1 period. Sysmbol bullets. Numbered bullets. Picture bullets. Represents the Excel 2016 Tree Map Chart Represents the Excel 2016 Sun Burst Chart Represents the Excel 2016 Histogram Represents the Excel 2016 Pareto Chart Represents the Excel 2016 Box and Whisker Chart Represents the Excel 2016 Water Fall Chart Represents the Excel 2016 Funnel Chart Gets or sets a boolean value indicating whether to display Mean Line in Box and Whisker chart Gets or sets a boolean value indicating whether to display Mean Marker in Box and Whisker chart Gets or sets a boolean value indicating whether to display Inner Points in Box and Whisker chart Gets or sets a boolean value indicating whether to display Outlier Points in Box and Whisker chart Gets / Sets whether whether contain mean value when Quartile calculation Applies only to Box and Whisker Charts Gets or sets a boolean value indicating whether to display Connector Lines between data points Applies only to Waterfall Charts Gets / Sets the Display label position in Tree map chart Gets or sets a boolean value indicating whether to display Mean Line in Box and Whisker chart Gets or sets a boolean value indicating whether to display Mean Marker in Box and Whisker chart Gets or sets a boolean value indicating whether to display Inner Points in Box and Whisker chart Gets or sets a boolean value indicating whether to display Outlier Points in Box and Whisker chart Gets / Sets whether whether contain mean value when Quartile calculation Applies only to Box and Whisker Charts Gets or sets a boolean value indicating whether to display Connector Lines between data points Applies only to Waterfall Charts Gets / Sets the Display label position in Tree map chart Gets or sets a boolean value indicating whether to display Mean Line in Box and Whisker chart Gets or sets a boolean value indicating whether to display Mean Marker in Box and Whisker chart Gets or sets a boolean value indicating whether to display Inner Points in Box and Whisker chart Gets or sets a boolean value indicating whether to display Outlier Points in Box and Whisker chart Gets / Sets whether whether contain mean value when Quartile calculation Applies only to Box and Whisker Charts Gets or sets a boolean value indicating whether to display Connector Lines between data points Applies only to Waterfall Charts Gets / Sets the Display label position in Tree map chart It represents the Label position in Tree Map chart No Parent labels are shown The Parent label layout is a Banner above the category The Parent label is laid out within the category py add Processes one chunk in png file. Default behavior is move to next chunk directly. When calling this method, the pointer in png stream is just at the begin of data block of current chunk. After this call, the pointer in png stream must be at the end of this chunk(after the crc block). @return whether continue to process following chunks. If false be returned, visitor will stop to read and process following chunks. Gets the start position of current chunk in the png data. @return the start position of current chunk in the png data(data size, chunk code, chunk data, crc). Gets current chunk code. @return current chunk code. Gets current chunk's data size. @return current chunk's data size(crc is not included). Builds year/month/day pattern in corresponding locale's default order. @param patternY pattern of year field, such as "yyyy" or "yy" @param suffixY suffix following year field @param patternM pattern of month field, such as "MM" @param suffixM suffix following month field @param patternD pattern of day field, such as "dd" @param suffixD suffix following day field. @param buffer buffer for appending resultant built pattern, can be null. @return if buffer is not null, then append the resultant pattern into and return it. Otherwise create new one and append resultant pattern into and return the new one. Indicates whether collection contains specified property. Property id. True if collection contains specified property. Gets/Sets title document property. Gets/Sets version of the file. Gets/Sets subject document property. Gets/Sets author document property. Gets/Sets keywords document property. Gets/Sets comments document property. Gets/Sets template document property. Gets/Sets LastAuthor document property. Gets/Sets revision number document property. Gets/Sets EditTime document property. Gets/Sets LastPrinted document property. Gets/Sets CreationDate document property. Gets/Sets LastSaveDate document property. Gets/Sets PageCount document property. Gets/Sets WordCount document property. Gets/Sets CharCount document property. Gets/Sets ApplicationName document property. Gets/Sets Security document property. Gets/Sets Category document proerty. Gets/Sets Target format document property. Gets/Sets ByteCount document property. Gets/Sets LineCount document property. Gets/Sets ParagrahpCount document property. Gets/Sets SlideCount document property. Gets/Sets NoteCount document property. Gets/Sets HiddenCount document property. Gets/Sets MmclipCount document property. Gets/Sets SacleCrop document property. Gets/Sets Manager document property. Gets/Sets Company document property. Indicate whether the custom links are hampered. Returns hyperlinks for this ranges collection. Gets and sets the html string which contains data and some formattings in this cell. Activages a single cell, scroll to it and activates the respective sheet To select a range of cells, use the Select method. True to scroll to the cell Autofits all rows. Autofits all columns. Sets around border for current range. Represents border line. Represents border color as ExcelColors. Sets inside border for current range. Sets inside border for current range. Represents border line. Represents border color as ExcelColors. Clears conditional formats. Clears collection Add a NotPrimitive shape to prstgeomshape collection; shape's first row number in worksheet shape's first column number in worksheet shape's width, in unit of pixel. shape's height, in unit of pixel. Add a preset shape to prstgeomshape collection; shape's first row number in worksheet shape's first column number in worksheet shape's width, in unit of pixel. shape's height, in unit of pixel. shape's type Remove a shape in collection; the shape to remove Returns single item from the collection. Gets single item from the collection. Adds Option button default Dimension returns option button shape Adds the Shape with default size Top row for the new shape. Left column for the new shape Adds new RadioButton to the collection. Top row for the new shape. Left column for the new shape. Height in pixels of the new shape. Width in pixels of the new shape. Newly created TextBox object. Adds comment to the specified range. Row of the cell to add comment to. Column of the cell to add comment to. Newly created comment shape. Adds new add-in function. File name. Function name. Index of the new function. Adds new add-in function. Function to add. Index of the added function. Removes add-in function with specified index. Item index to remove. Returns or sets the primary excel color of the object. Returns or sets the primary color of the object. Returns or sets the line style for the border. Vertical position of the prompt box. Vertical position of the prompt box. Indicates whehter prompt box is visible.. Indicates whehter prompt box has fixed position.. Gets manual breaks count. Read-only. Creates copy of the collection. Parent for new collection. A clone of the current collection. Creates a new object that is a copy of the current instance. Parent object for a copy of this instance. A new object that is a copy of this instance. Creates hyperlink styles. Gets hyperlinks for the specified range. range object. Check collection contains style with specified name. Style name Removes style from the colleciton. Style to remove. Gets manual breaks count. Read-only. Returns code of the biff storage. Read-only. Indicates whether data array is required by this record. Creates a collection and sets its Application and Parent properties. Application object for the collection. Parent object for the collection. Indicates whether all created range objects should be cached. Toggles worksheet search algorithm when searching worksheet by name. Removes specified worksheet from the collection. Name of the sheet to remove. Removes specified worksheet from the collection. Index of the sheet to remove. Removes specified worksheet from the collection. Index of the sheet to remove. Adds copy of worksheet. Worksheet to copy. Copy of worksheet that was added. Add a copy of the specified worksheet to the worksheet collection. Index of the workbook that should be copied Represents copy options flags. Returns copied sheet. Creates copy of the collection. Parent object for the new collection. A copy of the collection. Enlarges internal storage if necessary. Required size. Gets addres of filtered range in R1C1 style. Read only. Get auto filter item.. Finds parent worksheet. Add new cell value condition to the collection. The Comparison operator for conditional formatting in Excel. The first value The second value .If the operatorTypy is Equal or NotEqual or Greater or Less or GreaterOrEqual or LessOrEqual, then this parameter must use string.Empty or null Add new cell value condition to the collection. The Comparison operator for conditional formatting in Excel. The first value The second value.If the operatorTypy is Equal or NotEqual or Greater or Less or GreaterOrEqual or LessOrEqual, then this parameter must use ***double.NaN***.Don't use null Add new begin with condition to the collection. begin with text Add new contain condition to the collection. contain text Add new end with condition to the collection. end with text Add new not contain condition to the collection. not contain text Add new contain blanks condition to the collection. Add new contain errors condition to the collection. Add new duplicate values condition to the collection. Add new not contain blanks condition to the collection. Add new not contain errors condition to the collection. Add new unique values condition to the collection. Add new time period condition to the collection. type of the time period Add new above or below the average condition to the collection. type of the average Add new TopN or BottomN condition to the collection. type of the Top or Bottom rank of the Top or Bottom Gets and sets the author. Gets whether this workbook is write protected. Sets the protected password to modify the file. Gets or sets whether the Read Only Recommended option is selected. Change the chart to chart ex type Indicates the old chart type input chart type to be modified boolean value indicates whether the series is created or not DataRange for the chart series. from the data range it detects and assign the series and its values input chart type Calculate and retruns the range after removing the input series name range The complete input range to calculate Input series name range Input series name range modified the axis range from given information it creates series and its values required rows count used series creation required columns count used series creation boolean value indicates whether the series ranges have any space input series Ranges input seriesName ranges output modified serie value ranges output modified serie named ranges output axis ranges the boolean value indicates whether the series in rows or not Calculate and retruns count of the required cells inside the range input migrant range last index in the column or row wise index in the column or row wise constant column or row value boolean value indicates whether the iteration in row or not the number of required cells count True if the chart type is treemap or sunburst. Otherwise false Calculate the serie name range by empty spaces Input data range to calculate Input Data Range without series name range boolean value indicates whether the chart is Excel 2016 or not series name range Checks serie range for min serie count of custom chart type. @param serieValue Represents range, that contain serie values. @param type Represents chart type. Indicates whether this chart supports walls and floor. Read-only. Indicates wheather the chart has title Indicates whether chart has chart area. True if the chart has a data table. The following code illustrates how data table can be set for charts: //Create worksheet Workbook workbook = new Workbook(); Worksheet worksheet = workbook.Worksheets[0]; //Add data worksheet.Range["A1"].Text = "Jan"; worksheet.Range["B1"].Text = "Feb"; worksheet.Range["C1"].Text = "Mar"; worksheet.Range["A2"].Text = "10"; worksheet.Range["B2"].Text = "20"; worksheet.Range["C2"].Text = "30"; //Create chart and range Chart chart = worksheet.Charts.Add(); chart.DataRange = worksheet.Range["A1:C2"]; //Set Chart data table chart.HasDataTable = true; //Save to file workbook.SaveToFile("Chart.xlsx"); Gets value indicating whether floor object was created. Gets value indicating whether floor object was created. True if the chart has a legend object. The following code illustrates how to set HasLegend property: //Create worksheet Workbook workbook = new Workbook(); Worksheet worksheet = workbook.Worksheets[0]; //Add data worksheet.Range["A1"].Text = "Jan"; worksheet.Range["B1"].Text = "Feb"; worksheet.Range["C1"].Text = "Mar"; worksheet.Range["A2"].Text = "10"; worksheet.Range["B2"].Text = "20"; worksheet.Range["C2"].Text = "30"; //Create chart and range Chart chart = worksheet.Charts.Add(); chart.DataRange = worksheet.Range["A1:C2"]; //Set hasLegend chart.HasLegend = false; //Save to file workbook.SaveToFile("Chart.xlsx"); Indicates whether contains pivot table. Returns or sets the rotation of the 3-D chart view (the rotation of the plot area around the z-axis, in degrees).(0 to 360 degrees). The following code illustrates how to set Rotation for 3-D charts: //Create worksheet Workbook workbook = new Workbook(); Worksheet worksheet = workbook.Worksheets[0]; //Add data worksheet.Range["A1"].Text = "Jan"; worksheet.Range["B1"].Text = "Feb"; worksheet.Range["C1"].Text = "Mar"; worksheet.Range["A2"].Text = "10"; worksheet.Range["B2"].Text = "20"; worksheet.Range["C2"].Text = "30"; //Create chart and range Chart chart = worksheet.Charts.Add(); chart.DataRange = worksheet.Range["A1:C2"]; //Set Chart rotation chart.ChartType = ExcelChartType.Column3DClustered; chart.Rotation = 50; //Save to file workbook.SaveToFile("Chart.xlsx"); Returns or sets the elevation of the 3-D chart view, in degrees (?0 to +90 degrees). The following code illustrates how to set Rotation for 3-D charts: //Create worksheet Workbook workbook = new Workbook(); Worksheet worksheet = workbook.Worksheets[0]; //Add data worksheet.Range["A1"].Text = "Jan"; worksheet.Range["B1"].Text = "Feb"; worksheet.Range["C1"].Text = "Mar"; worksheet.Range["A2"].Text = "10"; worksheet.Range["B2"].Text = "20"; worksheet.Range["C2"].Text = "30"; //Create chart and range Chart chart = worksheet.Charts.Add(); chart.DataRange = worksheet.Range["A1:C2"]; //Set Chart elevation chart.ChartType = ExcelChartType.Column3DClustered; chart.Elevation = 50; //Save to file workbook.SaveToFile("Chart.xlsx"); Returns or sets the perspective for the 3-D chart view (0 to 100). The following code illustrates how to set Perspective for the charts: //Create worksheet Workbook workbook = new Workbook(); Worksheet worksheet = workbook.Worksheets[0]; //Add data worksheet.Range["A1"].Text = "Jan"; worksheet.Range["B1"].Text = "Feb"; worksheet.Range["C1"].Text = "Mar"; worksheet.Range["A2"].Text = "10"; worksheet.Range["B2"].Text = "20"; worksheet.Range["C2"].Text = "30"; //Create chart and range Chart chart = worksheet.Charts.Add(); chart.DataRange = worksheet.Range["A1:C2"]; //Set Chart perspective chart.ChartType = ExcelChartType.Column3DClustered; chart.Perspective = 70; //Save to file workbook.SaveToFile("Chart.xlsx"); Gets the chart's sub-title. Only for ODS format file. Represents the title of the specified chart. Title of the category axis. Title of the value axis. Title of the secondary value axis. Title of the series axis. Indicates whether chart is displayed right to left. Returns chart format collection in primary axis. Returns chart format collection in secondary axis. Creates a clone of the current shape. New parent for the shape object. Hashtable with new worksheet names. Dictionary with new font indexes. A copy of the current shape. Gets and sets the html string which contains data and some formattings in this shape. Specifies all possible settings for how drawing object shall be resized when the rows and columns between its start and ending anchor are resized or inserted Represents line format properties. Read only. Compress the Picture quality for reduce file size picture quality.Range is 0~100 line color BeginArrowHeadStyle Height of object. Width of object. Type of shape , Read Only. True means that is relative to original size of picture. Gets and sets the html string which contains data and some formattings in this shape. Returns or sets the descriptive (alternative) text string for a Shape object when the object is saved to a Web page. Read/write String Represents fill properties. Returns or sets if the shape flips Horizontal.false is default; Returns or sets if the shape flips Vertical.false is default; This shape is group shape. This shape is child shape of group shape. Returns or sets the descriptive (alternative) text title string for a Shape object when the object is saved to a Web page. Read/write String Specifies all possible settings for how drawing object shall be resized when the rows and columns between its start and ending anchor are resized or inserted(ComboBoxShape and CheckBoxShape and RadioButtonShape set MoveAndResize type value is invalid) Bottom row. Bottom row offset. Left column. Left column offset. 1024 means whole column offset Right column. Right column offset. Top row. Top row offset.256 means whole row offset Returns or sets the rotation of the shape, in degrees. Removes object. Scales the shape. Width scale in percent. Height scale in percent. Save shape to image. Created image. Save shape to image. Output stream. It is ignored if null. Type of the image to create. Save shape to image. Output file name. Type of the image to create. Save shape to image. Output stream. It is ignored if null. Save shape to image. Output file name. Creates a clone of the current shape. New parent for the shape object. A copy of the current shape. Creates a clone of the current shape. New parent for the shape object. Hashtable with new worksheet names. Dictionary with new font indexes. A copy of the current shape. Indicates whether join is round. Gets or sets bottom border color. Gets or sets top border color. Gets or sets left border color. Gets or sets right border color. Gets or sets horizontal border color. Gets or sets vertical border color. Gets or sets diagonal border color. Gets or sets line style of the left border. Gets or sets line style of the right border. Gets or sets line style of the top border. Gets or sets line style of the bottom border. Gets or sets line style of the diagonal border. Gets or sets line style of the diagonal border. Gets or sets line style of the Horizontal border. Gets or sets line style of the Vertical border. Indicates whether DiagonalUp line is visible. Indicates whether diagonal down line is visible. Gets or Sets fill pattern type. Gets extended format index. Gets or Sets index of fill background excel color. Gets or Sets fill background color. Gets or Sets fill foreground excel color. Gets or Sets fill foreground color. Gets or Sets format index. Returns or sets the horizontal alignment for the specified object. True if the style includes the AddIndent, HorizontalAlignment, VerticalAlignment, WrapText, and Orientation properties. True if the style includes the Color, KnownColor, LineStyle, and Weight border properties True if the style includes the Background, Bold, Color, KnownColor, FontStyle, Italic, Name, OutlineFont, Shadow, Size, Strikethrough, Subscript, Superscript, and Underline font properties. True if the style includes the NumberFormat property. True if the style includes the Color, KnownColor, InvertIfNegative, Pattern, PatternColor, and PatternKnownColor interior properties. True if the style includes the FormulaHidden and Locked protection properties. Returns or sets the indent level for the style. True if the formula will be hidden when the worksheet is protected. True if the object is locked; False if the object can be modified when the sheet is protected. Represents justify text alignment Returns or sets the format code for the object. Returns or sets the format code for the object as a string in the language of the user. Returns object that describes number format. Read-only. Returns or sets the reading order for the specified object. The text orientation. Can be an integer value from 1 to 180 degrees True if text automatically shrinks to fit in the available column width. Returns or sets the vertical alignment of the specified object. True if Microsoft Excel wraps the text in the object. If true then first symbol in cell is apostrophe. Returns or sets the excel color of the interior. Returns or sets the color of the interior pattern. Gets or sets the cell shading excel color. Gets or sets the cell shading color. Indicates the position and alignment of chart title Indicates the chart title included in chart Gets / Sets the Auto update member variable Gets / Sets the ChartEx relation Id member variable True if the chart type is treemap or sunburst. Otherwise false True if the chart type is histogram or pareto. Otherwise false Moves chartsheet into new position. Destination index. True if series are in rows in DataRange; False otherwise. Gets chart type after type change. Returns True if chart can have bubble data labels. Read-only. Returns True if chart can have series lines. Read-only. Returns True if chart can have percentage data labels. Read-only. Title of the category axis. Returns start type of chart type. Read-only. Title of the chart. Returns default line pattern for the chart. Read-only. Gets font which used for displaying axis text . Indicates whether chart has a category axis. Read-only. Returns True if chart is 100%. Read-only. Returns True if chart is 3D. Read-only. Returns True if chart is a bar chart. Read-only. Returns True if chart is a bubble chart. Read-only. Returns True if chart is a conical shape. Read-only. Returns True if chart is a cylinder shape. Read-only. Returns True if chart is a doughnut chart. Read-only. Returns True if chart is exploded. Read-only. Returns True if chart has floor. Read-only. Returns True if chart is line. Read-only. Returns True if chart is a pie chart. Read-only. Returns True if chart is a pyramid shape. Read-only. Returns True if chart is a radar chart. Read-only. Returns True if chart is a scatter chart. Read-only. Returns True if chart has smoothed lines. Read-only. Returns True if this is a stock chart. Read-only. Returns True if chart should have a different color for each series value. Read-only. Returns True if chart is a stock chart with volume. Read-only. Returns True if chart has walls. Read-only. Returns True if chart is a clustered chart. Read-only. Gets value indicating whether chart is embeded into worksheet. Returns True if chart has perspective. Read-only. Gets a value indicating whether this instance is pivot 3D chart . Returns True if chart has series lines. Read-only. Returns True if chart needs special data labels serialization. Read-only. Returns True if chart is stacked. Read-only. Indicates whehter chart has a value axis. Read-only. Returns True if chart needs data format to be saved. Read-only. Returns True if chart needs drop bars to be saved. Read-only. Returns True if chart needs marker format to be saved. Read-only. Returns True if chart has no plot area. Read-only. Style index for Excel 2007 chart. Indicates whether this chart supports walls and floor. Read-only. Gets or sets zoomToFit value. Title of the secondary category axis. Title of the secondary value axis. Title of the series axis. Title of the value axis. Indicates whether chart has chart area. Indicates wheather the chart has title Gets value indicating whether floor object was created. Gets value indicating whether floor object was created. Indicates whether contains pivot table. Clones current instance. Parent object. Returns clone of current object. Type of the axis. True if this is primary axis. Title of the axis. Returns text area for the axis title. Read-only. Return frame format of Axis. Read-only. Indicates wheather the axis has title True if the axis has minor gridlines. Only axes in the primary axis group can have gridlines. True if the axis has major gridlines. Only axes in the primary axis group can have gridlines. Gets or sets format index. Gets or sets number format string. Represents tick label position. Axis is show Multi-level category lables. Indicates is axis is visible. Represents alignment for the tick label. True if plots data points from last to first. Gets axis id. Represents the Shadow.Read-only axis's text direction Color of line. Line pattern. Weight of line. Indicates if custom line color. Line excel color. Value of category axis crosses. Represents the point on the axis another axis crosses it. Value axis crosses at the far right category. Represents the point on the axis another axis crosses it. Frequency of labels. Represents the number of categories or series between tick-mark labels. Frequency of tick marks. Represents the number of categories or series between tick marks. True if the value axis crosses the category axis between categories Categories in reverse order. Entered directly category labels for the chart. Represents axis category type. Represents distance between the labels and axis line. The value can be from 0 through 1000. Represents base unit for the specified category axis. True if use automatic base units for the specified category axis. Automatic major selected. Automatic minor selected. Automatic category crossing point selected. Automatic maximum selected. Automatic minimum selected. Value of major increment. Value of minor increment. Represens the major unit scale value for the category axis when the CategoryType property is set to TimeScale. Represens the minor unit scale value for the category axis when the CategoryType property is set to TimeScale. True if bins generated by category values. otherwise False Applies only to Histogram and Pareto charts. True if bins generated are automatic. otherwise False Applies only to Histogram and Pareto charts. Get or set the Number of Bins in the axis Applies only to Histogram and Pareto charts.Can be a value from 1 through 31999. Get or Set the number of data points in each range. Applies only to Histogram and Pareto charts. Get or Set the UnderFlow Bin value Applies only to Histogram and Pareto charts. Get or Set the OverFlow Bin value Applies only to Histogram and Pareto charts. returns an Object that holds the information required for Histogram series True if the font is bold. Read / write Boolean. Returns or sets the primary color of the object. Gets or sets color. True if the font style is italic. Read / write Boolean. Returns or sets the size of the font. Read / write Variant. True if the font is struck through with a horizontal line. Read / write Boolean True if the font is formatted as subscript. False by default. Read / write Boolean. True if the font is formatted as superscript. False by default. Read/write Boolean Returns or sets the type of underline applied to the font. Returns or sets the font name. Read / write string. Returns or sets font vertical alignment. Indicates whether color has automatic color. Read-only. Gets or sets text. Text rotation angle. between -90 and 90. Display mode of the background. True if background is set to automatic. Gets or sets a value indicating whether this instance has formula. Indicates whether border formatting object was created. Read-only. True if the font is bold. Read / write Boolean. Returns or sets the primary color of the object. Gets or sets color. True if the font style is italic. Read / write Boolean. Returns or sets the size of the font. Read / write Variant. True if the font is struck through with a horizontal line. Read / write Boolean True if the font is formatted as subscript. False by default. Read / write Boolean. True if the font is formatted as superscript. False by default. Read/write Boolean Returns or sets the type of underline applied to the font. Returns or sets the font name. Read / write string. Returns or sets font vertical alignment. Indicates whether color has automatic color. Read-only. Gets or sets text. Text rotation angle. between -90 and 90. Display mode of the background. True if background is set to automatic. Set Range for value. above Excel 2013 false value Specifies that the Width shall be interpreted as the Right of the chart element.. false value Specifies that the Height shall be interpreted as the Bottom of the chart element.. true value Specifies that the X shall be interpreted as the Left of the chart element.. true value Specifies that the Y shall be interpreted as the Top of the chart element.. X-position of upper-left corner. 1/4000 of chart plot. IsXMode Shall set to True Y-position of upper-left corner. 1/4000 of chart plot. IsYMode Shall set to True Text of area. Y-size. 1/4000 of chart plot. IsHMode Shall set to True X-size. 1/4000 of chart plot. IsWMode Shall set to True Gets or sets index of the point in the points collection. True if the data point is considered as Subtotals or Totals. otherwise False. Applies only to Waterfall charts. Indicates whether data table has horizontal border. Indicates whether data table has vertical border. Indicate whether data table has borders. Indicates whehter series keys in the data table. Display mode of the background. True if the font is bold. Read / write Boolean. Returns or sets the primary color of the object. Gets or sets color. True if the font style is italic. Read / write Boolean. Returns or sets the size of the font. Read / write Variant. True if the font is struck through with a horizontal line. Read / write Boolean True if the font is formatted as subscript. False by default. Read / write Boolean. True if the font is formatted as superscript. False by default. Read/write Boolean Returns or sets the type of underline applied to the font. Returns or sets the font name. Read / write string. Returns or sets font vertical alignment. Indicates whether color has automatic color. Read-only. Gets or sets foreground color. Gets or sets background color. Gets or sets background color. Gets pattern. Gets if use automatic format. Gets or sets visiblity. Returns or sets the depth of a 3-D chart as a percentage of the chart width (between 20 and 2000 percent). Drawing order (0 = bottom of the z-order). Gets or sets the elevation of the 3-D chart view, in degrees (0 to +90 degrees). True if Microsoft Excel scales a 3-D chart so that it's closer in size to the equivalent 2-D chart.. Returns or sets the distance between the data series in a 3-D chart, as a percentage of the marker width.( 0 - 500 ) True if this line has a shadow. True if this pie has a shadow. True if this radar series has a shadow. True if bubble series has a shadow. Returns or sets the height of a 3-D chart as a percentage of the chart width If true - serie 3D; otherwise serie 2D. Read-only. True if this surface chart has shading. This area has a shadow. If true - format contains series line. Read-only. Indicates whether elevation has default value. Indicates whether rotation has default value. If true - format contains drop bar record. Read-only. If true - format has marker; otherwise false. Read-only. If true - format has smothed line; otherwise false. Read-only. Returns or sets the perspective for the 3-D chart view.( 0 - 100 ) True if the chart axes are at right angles, independent of chart rotation or elevation. Returns or sets the rotation of the 3-D chart view (the rotation of the plot area around the z-axis, in degrees).(0 to 360 degrees). Gets or sets if border corners is round. Gets chart border. Read only. Indicates whether interior object was created. Read-only. Indicates whether border formatting object was created. Read-only. Gets the chart3 D properties. The following code illustrates the use of Shadow property: //Create worksheet Workbook workbook = new Workbook(); workbook.LoadFromFile("Sample.xlsx"); Worksheet worksheet = workbook.Worksheets[0]; //Create chart and set range IChart chart = worksheet.Charts.Add(); chart.DataRange = worksheet.Range["B2:C6"]; //Set chart type chart.ChartType = ExcelChartType.Column3DClustered; //Gets shadow formatting properties for the chart element ChartShadow shadowChart = chart.ChartArea.Shadow; shadowChart.ShadowPrespectiveType = XLSXChartPrespectiveType.Below; shadowChart.Color = Color.Aqua; shadowChart.Blur = 22; //Save to file workbook.SaveToFile("Chart.xlsx"); The chart3 D properties. Represents XlsFill gradient format. Read only. The following code illustrates the use of Fill property: //Create worksheet Workbook workbook = new Workbook(); workbook.LoadFromFile("Sample.xlsx"); Worksheet worksheet = workbook.Worksheets[0]; //Create chart and set range IChart chart = worksheet.Charts.Add(); chart.DataRange = worksheet.Range["B2:C6"]; //Set chart type chart.ChartType = ExcelChartType.Column3DClustered; //Gets fill options for the chart element IShapeFill fillChart = chart.ChartArea.Fill; fillChart.FillType = ShapeFillType.Gradient; fillChart.BackColor = Color.FromArgb(205, 217, 234); fillChart.ForeColor = Color.White; //Save to file workbook.SaveToFile("Chart.xlsx"); Gets the shadow properties. The following code illustrates the use of Shadow property: //Create worksheet Workbook workbook = new Workbook(); workbook.LoadFromFile("Sample.xlsx"); Worksheet worksheet = workbook.Worksheets[0]; //Create chart and set range IChart chart = worksheet.Charts.Add(); chart.DataRange = worksheet.Range["B2:C6"]; //Set chart type chart.ChartType = ExcelChartType.Column3DClustered; //Gets shadow formatting properties for the chart element ChartShadow shadowChart = chart.ChartArea.Shadow; shadowChart.ShadowPrespectiveType = XLSXChartPrespectiveType.Below; shadowChart.Color = Color.Aqua; shadowChart.Blur = 22; //Save to file workbook.SaveToFile("Chart.xlsx"); The shadow properties. Gets chart border. Read-only. Calculates size automatically. Calculates position automatically. X-position of upper-left corner. 1/4000 of chart plot. IsXMode Shall set to True Y-position of upper-left corner. 1/4000 of chart plot. IsYMode Shall set to True X-size. 1/4000 of chart plot. IsWMode Shall set to True Y-size. 1/4000 of chart plot. IsHMode Shall set to True false value Specifies that the Width shall be interpreted as the Right of the chart element.. false value Specifies that the Height shall be interpreted as the Bottom of the chart element.. true value Specifies that the X shall be interpreted as the Left of the chart element.. true value Specifies that the Y shall be interpreted as the Top of the chart element.. Gets or sets axis line type. Gets line border. Indicates whether line formatting object was created. Gets line border. Foreground color (RGB). Background color (RGB). Foreground color. Background color. Area pattern. The following code illustrates the use of Pattern property: //Create worksheet Workbook workbook = new Workbook(); workbook.LoadFromFile("Sample.xlsx"); Worksheet worksheet = workbook.Worksheets[0]; //Create chart and set range IChart chart = worksheet.Charts.Add(); chart.DataRange = worksheet.Range["B2:C6"]; //Set chart type chart.ChartType = ExcelChartType.Cone3DClustered; //Set the pattern of the chart chart.ChartArea.Interior.Pattern = ExcelPatternType.Angle; //Save to file workbook.SaveToFile("Chart.xlsx"); Foreground excel color. Background excel color. Indicates whether use default format. Foreground and background are swapped when the data value is negative. Automatic positioning . X-position of upper-left corner. 1/4000 of chart plot. IsXMode Shall set to True Y-position of upper-left corner. 1/4000 of chart plot. IsYMode Shall set to True Legend position type. Indicates whether if vertical legend. Show legend without overlapping. Default is True. false value Specifies that the Width shall be interpreted as the Right of the chart element.. false value Specifies that the Height shall be interpreted as the Bottom of the chart element.. true value Specifies that the X shall be interpreted as the Left of the chart element.. true value Specifies that the Y shall be interpreted as the Top of the chart element.. X-size. 1/4000 of chart plot. IsWMode Shall set to True Y-size. 1/4000 of chart plot. IsHMode Shall set to True X positioning is automatic. Y positioning is automatic. True if chart contains data table. True if the font is bold. Read / write Boolean. Returns or sets the primary color of the object. Gets or sets color. True if the font style is italic. Read / write Boolean. Returns or sets the size of the font. Read / write Variant. True if the font is struck through with a horizontal line. Read / write Boolean True if the font is formatted as subscript. False by default. Read / write Boolean. True if the font is formatted as superscript. False by default. Read/write Boolean Returns or sets the type of underline applied to the font. Returns or sets the font name. Read / write string. Returns or sets font vertical alignment. Indicates whether color has automatic color. Read-only. Gets or sets text. Text rotation angle. between -90 and 90. Display mode of the background. True if background is set to automatic. Returns FontImpl for current font. Read-only. Represents index in collection. Legend-entry index. Indicates whether the legend entry has been formatted. Display mode of the background. Number of the series. Gets parent serie collection. Read - only. Returns number of points in the series. Read-only. Returns serie start type. Read-only. Represents Y error bars. Read only. Indicates if serie contains Y error bars. Represents X error bars. Read only. Indicates if serie contains X error bars. Represents serie trend lines collection. Read only. Indicates wheter to invert its colors if the value is negative. Represents index of the series. Gets / Sets the pareto line is hidden Gets / Sets the format index of chart pareto line Used only in loaded chart Gets / SetsBoolean value indicates category values interpreted in row-wise Gets / SetsBoolean value indicates series values interpreted in row-wise Gets / Sets the format code for series values Gets / Sets the format code for series categories Gets common serie format. Returns common serie format. Update the row wise or column wise members of chart series for chart Ex boolean values indicates whether the property of values need to be changed or not. Gets object that holds marker background color. Gets object that holds marker foreground color. True = "background = none". True = "foreground = none". If true - format has smothed line; otherwise false. Read-only. True if the line series has a smoothed line. Gets serie type. Read only. Indicats whether chart supports transparency. Get fill object of the marker. The following code illustrates how to fill a marker . var markerFill = chart.Series[0].Format.MarkerFill; //fill by defined Texture markerFill.Texture = GradientTextureType.GreenMarble; //fill by defined Pattern markerFill.Pattern = GradientPatternType.PatLargeCheckerBoard; //Pattern need set fore/background color markerFill.ForeColor = Color.Blue; markerFill.BackColor = Color.Red; //fill by a picture markerFill.CustomPicture("type1.png") //set transparency: value from 0.0 (Clear) through 1.0(Opaque) markerFill.Transparency = 0.5; Represents foreground color. Represents foreground color. Gets or sets the transparency of the line marker. The transparency. Represents foreground color object. Represents background excel color. Represents background color. Represents background color. Represents pattern. Indicates, if automatic format is used. Represents visiblity. Indicates whether dataformat has PieExplosion. Indicates whether chart has border. Indicates whethers chart has border line. Indicates whether border object is supported. Read-only. Indicate if data format is formatted. Indicates whether interior object is supported. Read-only. If true - format has marker; otherwise false. Read-only. Marker border weight(unit pt). Gets/ Sets the histogram axis format property for individual series Gets or sets a boolean value indicating whether to display Connector Lines between data points Applies only to Waterfall Charts Gets / Sets the Display label position in Tree map chart By Default the Label is overlapped Gets or sets a boolean value indicating whether to display Mean Line in Box and Whisker chart Gets or sets a boolean value indicating whether to display Mean Marker in Box and Whisker chart Gets or sets a boolean value indicating whether to display Inner Points in Box and Whisker chart Gets or sets a boolean value indicating whether to display Outlier Points in Box and Whisker chart Gets / Sets whether the Quartile calculation is Exclusive or Inclusive Applies only to Box and Whisker Charts Get or Set the isBinning by Category member value Get or Set the is Automatic Bin member value Get or Set the number of Bins member value Get or Set the Bin width member value Get or Set the overflow bin member value Get or Set the underflow bin member value Get or Set the value for interval is closed in left or right Class provide the options for Box and Whisker series It provide the options used for Box and Whisker series Indicates whether the show mean line option is enabled Bit position - 0 Indicates whether the show mean marker option is enabled Bit position - 1 Indicates whether the show inner points option is enabled Bit position - 2 Indicates whether the show outlier points option is enabled Bit position - 3 Indicates quartile calculation is exclusive or inclusive Bit position - 4 Gets / Sets the options for the charts Class provide the options for Histogram and Pareto Chart axis byte value used as flag and boolean property for the values Indicates the number of bins in the axis Indicates the bin width for axis Indicates the overflow bin value Indicates the underflow bin value Indicates whether the underflow value set or not. Get or Set the is Automatic Bin member value Bit Position - 0 Get or Set the isBinning by Category member value Bit position - 1 Get or Set the Bin width member value flag Bit position - 2 Get or Set the number of Bins member value Flag Bit position - 3 Get or Set the overflow bin member value Flag Bit Position - 4 Get or Set the underflow bin member value Flag Bit position - 5 Get or Set the value for interval is closed in left or right Flag Bit position - 6 Byte value shows the options used in this class Get or Set the value for automatic value has been used in overflow Flag Bit position - 7 Used only in parsed workbook Get or Set the value for automatic value has been used in underflow Used only in parsed workbook Reset the member values respect to input value Input Bit position changed Clones the value from input object input object Check for the equals an object input another histogram object the boolean value indicates whether the objects are equal or not. Represents the number of categories or series between tick-mark labels. Represents the number of categories or series between tick-mark labels. Represents the number of categories or series between tick marks. Display categories in reverse order. True if the font is bold. Read / write Boolean. Returns or sets the primary color of the object. Gets or sets color. True if the font style is italic. Read / write Boolean. Returns or sets the size of the font. Read / write Variant. True if the font is struck through with a horizontal line. Read / write Boolean True if the font is formatted as subscript. False by default. Read / write Boolean. True if the font is formatted as superscript. False by default. Read/write Boolean Returns or sets the type of underline applied to the font. Returns or sets the font name. Read / write string. Returns or sets font vertical alignment. Indicates whether color has automatic color. Read-only. Gets or sets text. Text rotation angle. between -90 and 90. Display mode of the background. True if background is set to automatic. Returns FontImpl for current font. Read-only. Return trendline formula. Read only. Represents the logarithmic base. Minimum value on axis. Value of minor increment. Value of category axis crosses. Represents the point on the axis another axis crosses it. Automatic major selected. Automatic minor selected. Automatic category crossing point selected. Logarithmic scale. Values in reverse order. Represents custom unit to display. Returns or sets the unit label for the specified axis. True if the label is displayed on the specified axis. Represents foreground color. Represents foreground color. Represents foreground color. Represents background color. Represents background color. Represents background color. Represents pattern. Represents if use automatic format. Represents visible. Boolean value indicates whether the format is enabled for pareto chart Gets / Sets the Is Pareto format variable Returns true if this collection is primary and contain series that need secondary axis. Removes all elements from the collection. Clears error bars. Add pivot table condition format. Add pivot field condition format. Add pivot data field condition format. Gets/sets pivot field custom name. Represent the report filter of PivotTable Indicated whether multiple select the filter field . use only for PivotReportFilter(string fieldName, bool isNew) Represent the filter items string collection,the possible value must be from field values . use only for PivotReportFilter(string fieldName, bool isNew) Represent the fld attribute of pagefield. use only for PivotReportFilter(string fieldName, bool isNew) Represent the index of the pagefield's item attribute. use only for PivotReportFilter(string fieldName, bool isNew) Represent the page field string Creat an instance of reportfilter The field name of this reportfilter it is true if this reportfilter does not exist in the pivottable Creat an instance of reportfilter The field name of this reportfilter pivottable Creat an instance of reportfilter The field name of this reportfilter Indicated whether multiple select the filter field Represent the filter field string collection.When IsMultipleSelect is false,Only the first value of string array will be used. The possible value must be from field values Represent the page field string of pivottable Represents the name of filter field Represent the fld attribute of pagefield or the index of pivotfield. Represent the index of the pagefield's item attribute. Indicates whether the PivotTable has an autoformat applied. Checkbox "autofit column width on update"which in pivot table Options :Layout Format for Excel 2007 This property specifies layout settings of the pivot table This property specifies layout settings of the pivot table row Specifies a boolean value that indicates whether the cache is scheduled for version upgrade. Specifies whether the cache's data source supports subqueries Specifies a boolean value that indicates whether the pivot records are saved with the cache. Specifies a boolean value that indicates whether the application will apply optimizations to the cache to reduce memory usage Specifies a boolean value that indicates whether the user can refresh the cache. Specifies a boolean value that indicates whether the application should query and retrieve records asynchronously from the cache. Specifies the version of the application that created the cache. This attribute is application-dependent. Specifies the earliest version of the application that is required to refresh the cache. Specifies the version of the application that last refreshed the cache. This attribute depends on whether the application exposes mechanisms via the user interface whereby the end-user can refresh the cache. Specifies a boolean value that indicates whether the cache needs to be refreshed. Specifies a boolean value that indicates whether the application will refresh the cache Contains the name of the pivot cache NamedRange Indicates whether the pivot cache has named range Indicates the field is formula field Specifies the caption of the cache field Represents the cache field is Field group Gets/sets pivot field custom name. Specifies the custom text that is displayed for the subtotals caption. Get or set whether show Autoshow is enabled. User can remove field from fiew. Specifies a boolean value that indicates whether manual filter is in inclusive mode. Specifies a boolean value that indicates whether new items that appear after a refresh should be hidden by default. True if a blank row is inserted after the specified row field in a PivotTable report. True if a page break is inserted after each field. Specifies the number of items showed per page in the PivotTable. Specifies a boolean value that indicates whether the field can have multiple items selected in the page field. Show all items for this field. Specifies a boolean value that indicates whether the items in this field should be shown in Outline form. If the parameter is true, the field layout is "Show item labels in outline form". If the parameter is false, the field layout is "Show item labels in tabular form". True if the flag for the specified PivotTable field or PivotTable item is set to "drilled" (expanded, or visible). Specifies a boolean value that indicates whether to show the property as a member caption. Specifies a boolean value that indicates whether to show the member property value in a tooltip on the appropriate PivotTable cells. Specifies the type of sort that is applied to this field. Specifies the unique name of the member property to be used as a caption for the field and field items. Specifies a boolean value that indicates whether the application will display fields compactly in the sheet on which this PivotTable resides Specifies the formula for the calculated field Indicates whether this field is formula field True if the field repeat item labels. Preserves the sorting elements of the field Represents the index of item and itemoptions key pairs Indicates whether the specific PivotItem is hidden detail. Must call after pivottable CalculateData function. 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. Must call after pivottable CalculateData function. 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. Must call after pivottable CalculateData function. the value 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. Must call after pivottable CalculateData function. whether DetailItems is hidden Indicates whether the specific PivotItem is hidden. Must call after pivottable CalculateData function. 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. Must call after pivottable CalculateData function. the index of the pivotItem in the pivotField. whether the specific PivotItem is hidden Sets whether the all PivotItem in a data field is hidden. Must call after pivottable CalculateData function. whether the specific PivotItem is hidden Sets whether the specific PivotItem in a data field is hidden. Must call after pivottable CalculateData function. the value of the pivotItem in the pivotField. whether the specific PivotItem is hidden Sort row fildes or col fields by data field. Indicated whether diplay all subtotal at top of group Specifies the first column of the PivotTable data, relative to the top left cell in the ref value Specifies the first column of the PivotTable data, relative to the top left cell in the ref value Specifies the first row of the PivotTable header, relative to the top left cell in the ref value. Specifies a boolean value that indicates whether to show column headers for the table. Specifies a boolean value that indicates whether to show column stripe formatting for the table. Specifies a boolean value that indicates whether to show the last column. Specifies a boolean value that indicates whether to show row headers for the table. Specifies a boolean value that indicates whether to show row stripe formatting for the table. Represents the pivot table to add the Calculated Data field in rows Gets or sets report filter collection Indicated whether diplay all subtotal at top of group, Change will cover every field's setting Represent the custom Style for this PivotTable Apply style to range in pivot table. Range in pivot table. Style that apply to range. Change the data source of pivotTable. New data source range. Name of encryption info stream. Creates new list object and adds it to the collection. Name of the new list object. Destination range. Newly created object. Indicates whether show header row. Gets or sets name of the column. Gets column index. Gets or sets function used for totals calculation. Gets or sets label of the totals row. Gets or sets calculated formula value. Contains black color. Contains white color. Contains empty color. Contains red color. Contains blue color. Contains dark gray color. Contains yellow color. Contains cyan color. Contains magenta color. Contains gray color. Chart foreground color. Chart background color. Chart neutral color. Converts Int32 value into Color. Value to convert. Converted value. Size of the Double value in bytes. True if the font is bold. Returns or sets the primary excel color of the object. Returns or sets the primary color of the font. True if the font style is italic. Read / write Boolean. True if the font is an outline font. Read / write Boolean. True if the font is a shadow font or if the object has a shadow. Read / write Boolean. Returns or sets the size of the font. Read / write integer. True if the font is struck through with a horizontal line. Read / write Boolean True if the font is formatted as subscript. False by default. Read / write Boolean. True if the font is formatted as superscript. False by default. Read/write Boolean Returns or sets the type of underline applied to the font. Returns or sets the font name. Read / write string. Returns index of the font. Read-only. Returns internal font. Indicates whether font is read-only. Returns workbook. Gets or sets the Image Location type. GlobalAbsolute or Relative to Table If false,indicates exporting the image as a single file; If true, embedding the image into the html code using Data URI scheme. The default value is false. Note: Internet Explorer 8 limits data URIs to a maximum length of 32KB. The value of the HTML export image style sheet. where is the style defined; default : head Gets or sets whether the width of td is fixed : If true, the width of td is fixed, same as width of column in excel view. If false, the width of td is not fixed. Default is false. Returns parent object. Read-only. Indicates whether to perform case sensitive sort. Indicates whether the cell range has title. Represents the column to be sorted on. Represents the sort by in the range. Represents the sort order. Represents the custom sort order data. Represents the color to sort. Throws exception when SortOn type is Values. Initialize the sort field. Represents the sort column collection. Adds the item in the collection. Column Index to sort the data. Compare value type. To order the sorted data. Added sort column. Adds the item in the collection. Column Index to sort the data. To order the sorted data. Added sort column. Adds the item in the collection. Column Index to sort the data. Custom order to order the sorted data. Added sort column. Remvoes the Sort item in the collection. Field index to remove. Gets or sets book index. Name index. Name of add-in function. Creates a new object that is a copy of the current instance. Parent object for a copy of this instance. A new object that is a copy of this instance. Returns or sets a ExcelColors value that represents the color of the border Returns or sets the primary color of the object, as shown in the table in the remarks section. Use the RGB function to create a color value. Read/write Color. Returns or sets the line style for the border. Read/write LineStyleType. Indicates whether shows diagonal line. Gets the row index. Type of the page break. Gets the start column index of this horizontal page break Gets the end column index of this horizontal page break. Returns page break extent. Returns color object. True if the font is an outline font. Read/write Boolean. True if the font is a shadow font or if the object has a shadow. Read/write Boolean. Creates a new object that is a copy of the current instance. Parent object for a copy of this instance. A new object that is a copy of this instance. Returns or sets the text to be displayed for the specified hyperlink. The default value is the address of the hyperlink. Gets/sets an optional string of Unicode characters that specifies the complete file path. When the property Type is not HyperLinkType.File, this property is invalid. Creates a new object that is a copy of the current instance. Parent object for a copy of this instance. A new object that is a copy of this instance. Returns the calculated value of a formula. Gets cell range. Read-only. Collection of conditional formats. Gets and sets the html string which contains data and some formattings in this cell. Indicates is current range has external formula. Read-only. Represents ignore error options. If not single cell returs concatenateed flags. Indicates whether all values in the range are preserved as strings. Reference to Parent object. Read-only. Dispose object and free resources. Method which can be overriden by users to take any specific actions when object is disposed. Class used as message sender on Property value change. Class provides old and new values which allow user to create advanced logic. New property value.Read-only. Old property value. Read-only. Name of the property. Read-only. If more than one property must be changed on one send message, attach it to the ValueChangeEventArgs to create a one way directed list of property changes. Main constructor. Old property value. New property value. Unique Identifier of object whose value changed. Main constructor. Old property value. New property value. Unique Identifier of object whose value changed. Next property which must be changed. Gets / sets relation id to the printer settings part. Gets or sets default row height. Gets or sets horizontal resolution in dpi. Represents full header string. Read only. Gets footer full string. Read only. Represents first page header string. Read only. Gets first page footer string. Read only. Gets Odd page header string. Read only. Gets Odd page footer string. Read only. Gets Even page header string. Read only. Gets OddEven page footer string. Read only. Indicates whether align header footer margins with page margins.default is 1 Indicates whether different odd and even page headers and footers.default is 0 Indicates whether scale header and footer with document scaling.default is 1 Indicates whether different first page header and footer.default is 0 Gets or sets vertical resolution in dpi. Sets the custom paper size. Unit mm. Returns or sets the name of custom paper that is from printer. Returns whether paper size is automatic. Read only. Gets or set width of picture for center part of the footer. Gets or set height of picture for center part of the footer. Gets or set width of picture for center part of the header. Gets or set height of picture for center part of the header. Gets or set height of picture for left part of the footer. Gets or set width of picture for left part of the header. Gets or set height of picture for left part of the header. Gets or set width of picture for right part of the footer. Gets or set height of picture for right part of the footer. Gets or set width of picture for right part of the header. Gets or set height of picture for right part of the header. Returns ods page background. Read-only. Returns page width in points. Read-only. Returns page width in points. Read-only. Returns or sets the bool value of the specified range. The following code illustrates how to access Boolean property of the Range: //Create worksheet Workbook workbook = new Workbook(); Worksheet worksheet = workbook.Worksheets[0]; //Set and get BooleanValue worksheet.Range[2, 4].BooleanValue = true; bool boolean = worksheet.Range[2, 4].BooleanValue; Gets/sets built in style. The following code illustrates how to access BuiltInStyle property: //Create worksheet Workbook workbook = new Workbook(); Worksheet worksheet = workbook.Worksheets[0]; //Set text worksheet["C2"].Text = "Sample"; //Set built in style worksheet["C2"].BuiltInStyle = BuiltInStyles.Accent3; //Save to file workbook.SaveToFile("BuiltInStyle.xlsx"); Gets/sets name of the style for the current range. The following code illustrates how to access CellStyleName of the specified range: //Create worksheet Workbook workbook = new Workbook(); Worksheet worksheet = workbook.Worksheets[0]; //Add and set style CellStyle style = workbook.Styles.Add("CustomStyle"); worksheet["C2"].Style = style; //Check Style name Console.Write(worksheet["C2"].CellStyleName); Returns the number of the first column in the first area in the specified range. The following code illustrates how to access Column property of the Range: //Create worksheet Workbook workbook = new Workbook(); Worksheet worksheet = workbook.Worksheets[0]; //Get specified column int firstColumn = worksheet["E1:R3"].Column; Column group level. -1 - column group is not same. 0 - Not group 1 - 7 - group level. Returns or sets the width of all columns in the specified range. The following code illustrates how to set the width of all columns in the specified range: //Create worksheet Workbook workbook = new Workbook(); Worksheet worksheet = workbook.Worksheets[0]; //Set the ColumnWidth worksheet["A1"].Text = "This cell contains sample text"; worksheet["A1"].ColumnWidth = 25; //Save to file workbook.SaveToFile("ColumnWidth.xlsx"); Returns a Comment object that represents the comment associated with the cell in the upper-left corner of the range. Returns the number of objects in the collection. Get the range associated with a range. Get dataValidation of the sheet. Read Only. The following code illustrates how to access DataValidation property of the Range: //Create worksheet Workbook workbook = new Workbook(); Worksheet worksheet = workbook.Worksheets[0]; //Data validation for number IDataValidation validation = worksheet.Range["A3"].DataValidation; validation.AllowType = CellDataType.Integer; //Value between 0 to 10 validation.CompareOperator = ValidationComparisonOperator.Between; validation.Formula1 = "0"; validation.Formula2 = "10"; //Save to file workbook.SaveToFile("DataValidation.xlsx"); Gets/sets DateTime value of the range. The following code illustrates how to set and access DateTimeValue property of the Range: //Create worksheet Workbook workbook = new Workbook(); Worksheet worksheet = workbook.Worksheets[0]; //Set and get the DateTimeValue of specified range worksheet.Range[2, 4].DateTimeValue = DateTime.Now; DateTime dateTime = worksheet.Range[2, 4].DateTimeValue; //Save to file workbook.SaveToFile("DateTimeValue.xlsx"); Returns a Range object that represents the entire row (or rows) that contains the specified range. Read-only. Returns the calculated value of a formula. The following code illustrates how to access a calculated value: //Create worksheet Workbook workbook = new Workbook(); workbook.LoadFromFile("Sample.xlsx"); Worksheet worksheet = workbook.Worksheets[0]; //Returns the calculated value of a formula using the most current inputs string calculatedValue = worksheet["C1"].EnvalutedValue; Console.WriteLine(calculatedValue); Gets or sets error value of this range. Returns or sets the object's formula in A1-style notation and in the language of the macro. Returns or sets the array formula of a range. The following code illustrates how to set and access FormulaArray property of the range: //Create worksheet Workbook workbook = new Workbook(); Worksheet worksheet = workbook.Worksheets[0]; //Assign array formula worksheet.Range["A1:D1"].FormulaArray = "{1,2,3,4}"; //Adding a named range for the range A1 to D1 worksheet.Names.Add("ArrayRange", worksheet.Range["A1:D1"]); //Assign formula array with named range worksheet.Range["A2:D2"].FormulaArray = "ArrayRange+100"; //Save to file workbook.SaveToFile("FormulaArray.xlsx"); Returns or sets the formula for the object, using R1C1-style notation in the language of the macro Gets or sets bool value of the formula. Gets or sets error value of the formula. Gets or sets double value of the formula. Returns or sets the formula for the object, using R1C1-style notation in the language of the macro Gets or sets string value of the range. Gets formula value. Indicates whether range contains bool value. The following code illustrates how to set and access HasBoolean property of the Range: //Create worksheet Workbook workbook = new Workbook(); Worksheet worksheet = workbook.Worksheets[0]; //Assigning Value2 property of the Range worksheet["A3"].Value2 = false; //Checking Range types bool isboolean = worksheet["A3"].HasBoolean; //Save to file workbook.SaveToFile("HasBoolean.xlsx"); Gets number of columns. Gets number of rows. Indicates whether specified range object has data validation. If Range is not single cell, then returns true only if all cells have data validation. Read-only. Determines if all cells in the range contain datetime. The following code illustrates how to set and access HasDateTime property of the Range: //Create worksheet Workbook workbook = new Workbook(); Worksheet worksheet = workbook.Worksheets[0]; //Assigning Value2 property of the Range worksheet["A1"].Value2 = DateTime.Now; //Checking Range types bool isDateTime = worksheet["A1"].HasDateTime; //Save to file workbook.SaveToFile("HasDateTime.xlsx"); Indicates whether range contains error value. Check if the formula in the range has external links. Read-only. True if all cells in the range contain formulas; Determines if all cells in the range contain array-entered formula. Determines if all cells in the range contain formula bool value.. Indicates if current range has formula value formatted as DateTime. Read-only. Determines if all cells in the range contain error value. Indicates whether current range has formula number value. Indicates whether this range is part of merged range. The following code illustrates how to access HasMerged property: //Create worksheet Workbook workbook = new Workbook(); Worksheet worksheet = workbook.Worksheets[0]; //Set text worksheet["A1"].Text = "Sample text in cell"; //Set merge worksheet["A1:B1"].Merge(); //Check merge Console.Write(worksheet["A1:B1"].HasMerged); Determines if any one cell in the range contain number. The following code illustrates how to set and access Value2 property of the Range: //Create worksheet Workbook workbook = new Workbook(); Worksheet worksheet = workbook.Worksheets[0]; //Assigning Value2 property of the Range worksheet["A2"].Value2 = 45; //Checking Range types bool isNumber = worksheet["A2"].HasNumber; //Save to file workbook.SaveToFile("HasNumber.xlsx"); Indicates whether the range is blank. Determines if all cells in the range contain rich text string. The following code illustrates how to access HasRichText property: //Create worksheet Workbook workbook = new Workbook(); Worksheet worksheet = workbook.Worksheets[0]; //Create style IStyle style = workbook.Styles.Add("CustomStyle"); //Set rich text IRichTextString richText = worksheet["C2"].RichText; richText.Text = "Sample"; IFont font = style.Font; font.Color = Color.Red; richText.SetFont(0, 5, font); //Check HasRichText Console.Write(worksheet["C2"].HasRichText); //Save to file workbook.SaveToFile("HasRichText.xlsx"); Determines if all cells in the range contain string. Determines if all cells in the range contain differs from default style. The following code illustrates how to access HasStyle property: //Create worksheet Workbook workbook = new Workbook(); Worksheet worksheet = workbook.Worksheets[0]; //Add style CellStyle style = workbook.Styles.Add("CustomStyle"); //Set color and style style.Color = Color.Red; worksheet["C2"].Style = style; //Check HasStyle Console.Write(worksheet["C2"].HasStyle); //Save to file workbook.SaveToFile("HasStyle.xlsx"); Returns or sets the horizontal alignment for the specified object. The following code illustrates how to set and access HasStyle property: //Create worksheet Workbook workbook = new Workbook(); Worksheet worksheet = workbook.Worksheets[0]; //Set text worksheet["A1"].Text = "Test"; //Set alignment worksheet["A1"].HorizontalAlignment = HorizontalAlignType.Right; //Save to file workbook.SaveToFile("HorizontalAlignment.xlsx"); Returns hyperlinks for this range. Represents ignore error options. If not single cell returs concatenateed flags. Returns or sets the indent level for the cell or range. value should be 0 between 15. The following code illustrates how to set indent level for a cell: //Create worksheet Workbook workbook = new Workbook(); Worksheet worksheet = workbook.Worksheets[0]; //Set text worksheet["C2"].Text = "Sample"; //Set indent level worksheet["C2"].IndentLevel = 2; //Save to file workbook.SaveToFile("IndentLevel.xlsx"); Determines if all cells in the range contain number. Indicates whether the range is blank. Determines if the formula will be hidden when the worksheet is protected. Indicates whether this range is grouped by column. Indicates whether this range is grouped by row. Indicates whether range has been initialized. Indicates whether all values in the range are preserved as strings. Determines if Microsoft Excel wraps the text in the object. The following code illustrates how to access WrapText property: //Create worksheet Workbook workbook = new Workbook(); Worksheet worksheet = workbook.Worksheets[0]; //Set text worksheet["A1"].Text = "This cell contains sample text"; //Set wrap text worksheet["A1"].IsWrapText = true; //Save to file workbook.SaveToFile("IsWrapText.xlsx"); Gets or sets last column of the range. Gets or sets last row of the range. Gets cell displayed text. Indicates whether each cell of the range has some conditional formatting. Returns or sets the format code for the object. The following code illustrates how to set NumberFormat property: //Create worksheet Workbook workbook = new Workbook(); Worksheet worksheet = workbook.Worksheets[0]; //Set data worksheet["C2"].Value = "3100.23"; //Set number format worksheet["C2"].NumberFormat = "#,##1.##"; //Save to file workbook.SaveToFile("NumberFormat.xlsx"); Returns cell text for number format. The following code illustrates how to access NumberText property of the Range: //Create worksheet Workbook workbook = new Workbook(); Worksheet worksheet = workbook.Worksheets[0]; //Gets cell value with its number format CellRange range= worksheet.Range[3, 1]; range.Value = "1/1/2015"; range.NumberFormat = "dd-MMM-yyyy"; string numberText = range.NumberText; //Save to file workbook.SaveToFile("NumberText.xlsx"); Gets or sets number value of the range. Returns the range reference in the language of the macro. Read-only String. The following code illustrates how to access Address property of the Range: //Create worksheet Workbook workbook = new Workbook(); Worksheet worksheet = workbook.Worksheets[0]; //Get RangeAddress string address = worksheet.Range[3, 4].RangeAddress; Returns the range reference for the specified range in the language of the user. The following code illustrates how to access AddressLocal property of the Range: //Create worksheet Workbook workbook = new Workbook(); Worksheet worksheet = workbook.Worksheets[0]; //Get RangeAddressLocal string address = worksheet.Range[3, 4].RangeAddressLocal; Return global address without worksheet name. Returns the range reference in the language of the macro. The following code illustrates how to access AddressGlobal property of the Range: //Create worksheet Workbook workbook = new Workbook(); Worksheet worksheet = workbook.Worksheets[0]; //Get RangeAddress string address = worksheet.Range[3, 4].RangeGlobalAddress; Returns the range reference using R1C1 notation. The following code illustrates how to access AddressR1C1 property of the Range: //Create worksheet Workbook workbook = new Workbook(); Worksheet worksheet = workbook.Worksheets[0]; //Get RangeR1C1Address string address = worksheet.Range[3, 4].RangeR1C1Address; Returns the range reference using R1C1 notation. The following code illustrates how to access AddressR1C1Local property of the Range: //Create worksheet Workbook workbook = new Workbook(); Worksheet worksheet = workbook.Worksheets[0]; //Get RangeR1C1AddressLocal string address = worksheet.Range[3, 4].RangeR1C1Address; Gets and sets the html string which contains data and some formattings in this cell. Returns the number of the first row of the first area in the range. Row group level. -1 - column group is not same. 0 - Not group 1 - 7 - group level. Returns the height of all the rows in the range specified, measured in points. The following code illustrates how to set row height: //Create worksheet Workbook workbook = new Workbook(); Worksheet worksheet = workbook.Worksheets[0]; //Set text worksheet["A1"].Text = "Test"; //Set row height worksheet["A1"].RowHeight = 30; //Save to file workbook.SaveToFile("RowHeight.xlsx"); Gets / sets text of range. Gets or sets timespan value of cell. Returns or sets the value of the specified range. The following code illustrates how to set Value of the specified range: //Create worksheet Workbook workbook = new Workbook(); Worksheet worksheet = workbook.Worksheets[0]; //Set value of the range CellRange range= worksheet.Range[3, 1]; range.Value = "1/1/2015"; //Save to file workbook.SaveToFile("Value.xlsx"); Returns or sets the cell value. It's not use for current and datetime types. The following code illustrates how to access Value2 property of the Range: //Create worksheet Workbook workbook = new Workbook(); Worksheet worksheet = workbook.Worksheets[0]; //Assigning Value2 property of the Range worksheet["A1"].Value2 = DateTime.Now; worksheet["A3"].Value2 = false; //Checking Range types Console.WriteLine(worksheet["A1"].HasDateTime); Console.WriteLine(worksheet["A3"].HasBoolean); Returns or sets the vertical alignment of the specified object. The following code illustrates how to set vertical alignment type: //Create worksheet Workbook workbook = new Workbook(); Worksheet worksheet = workbook.Worksheets[0]; //Set text worksheet["A1"].Text = "Test"; //Set alignment worksheet["A1"].VerticalAlignment = VerticalAlignType.Top; //Save to file workbook.SaveToFile("VerticalAlignment.xlsx"); Returns a worksheet object that represents the worksheet containing the specified range. Gets new range location. Worksheet names. New worksheet name. New name. Clears conditional formats. Gets rectangle information of current range. Rectangles information Returns number of rectangles.. Number of rectangles. Returns name of the parent worksheet. Gets number of cells. Gets address global in the format required by Excel 2007. Caculate all formula for the specified range Activates a single cell, scroll to it and activates the corresponding sheet. To select a range of cells, use the Select method. The following code illustrates how to activate a Range with scroll flag: //Create worksheet Workbook workbook = new Workbook(); Worksheet worksheet = workbook.Worksheets[0]; //Activates 'F1' cell. worksheet.Range["F1"].Activate(true); //Save to file workbook.SaveToFile("Activate.xlsx"); True to scroll to the cell Returns the active cell. Active single cell in the worksheet Returns the active cell. Adds a comment to the range. Created comment or exists one. Changes the width of the columns in the range in the range to achieve the best fit. The following code illustrates how to auto-size column width to its cell content: //Create worksheet Workbook workbook = new Workbook(); Worksheet worksheet = workbook.Worksheets[0]; //Auto-fit columns worksheet.Range["B4"].Text = "Fit the content to column"; worksheet.Range["B4"].AutoFitColumns(); //Save to file workbook.SaveToFile("AutoFitRows.xlsx"); Changes the width of the height of the rows in the range to achieve the best fit. The following code illustrates how to auto-size row height to its cell content: //Create worksheet Workbook workbook = new Workbook(); Worksheet worksheet = workbook.Worksheets[0]; //Auto-fit rows worksheet.Range["A2"].Text = "Fit the content to row"; worksheet.Range["A2"].IsWrapText = true; worksheet.Range["A2"].AutoFitRows(); //Save to file workbook.SaveToFile("AutoFitRows.xlsx"); Sets around border for current range. The following code illustrates how to apply border around the Range: //Create worksheet Workbook workbook = new Workbook(); Worksheet worksheet = workbook.Worksheets[0]; //Set text worksheet["C2"].Text = "Sample"; worksheet["D2"].Text = "text"; worksheet["C3"].Text = "in"; worksheet["D3"].Text = "cell"; //Set border worksheet["C2:D3"].BorderAround(); //Save to file workbook.SaveToFile("BorderAround.xlsx"); Sets around border for current range. The following code illustrates how to apply border around the Range: //Create worksheet Workbook workbook = new Workbook(); Worksheet worksheet = workbook.Worksheets[0]; //Set text worksheet["C2"].Text = "Sample"; worksheet["D2"].Text = "text"; worksheet["C3"].Text = "in"; worksheet["D3"].Text = "cell"; //Set border worksheet["C2:D3"].BorderAround(LineStyleType.Thick); //Save to file workbook.SaveToFile("BorderAround.xlsx"); Represents border line. Sets around border for current range. The following code illustrates how to apply border around the Range with color from System.Drawing.Color structure: //Create worksheet Workbook workbook = new Workbook(); Worksheet worksheet = workbook.Worksheets[0]; //Set text worksheet["C2"].Text = "Sample"; worksheet["D2"].Text = "text"; worksheet["C3"].Text = "in"; worksheet["D3"].Text = "cell"; //Set border worksheet["C2:D3"].BorderAround(LineStyleType.Thick , Color.Red); //Save to file workbook.SaveToFile("BorderAround.xlsx"); Represents border line. Represents border color. Sets around border for current range. The following code illustrates how to apply border around the Range with color from Spire.Xls.ExcelColors structure: //Create worksheet Workbook workbook = new Workbook(); Worksheet worksheet = workbook.Worksheets[0]; //Set text worksheet["C2"].Text = "Sample"; worksheet["D2"].Text = "text"; worksheet["C3"].Text = "in"; worksheet["D3"].Text = "cell"; //Set border worksheet["C2:D3"].BorderAround(LineStyleType.Thick , ExcelColors.Red); //Save to file workbook.SaveToFile("BorderAround.xlsx"); Represents border line. Represents border color as ExcelColors. Sets inside border for current range. The following code illustrates how to apply border inside the Range: //Create worksheet Workbook workbook = new Workbook(); Worksheet worksheet = workbook.Worksheets[0]; //Set text worksheet["C2"].Text = "Sample"; worksheet["D2"].Text = "text"; worksheet["C3"].Text = "in"; worksheet["D3"].Text = "cell"; //Set border worksheet["C2:D3"].BorderInside(); //Save to file workbook.SaveToFile("BorderInside.xlsx"); Sets inside border for current range. The following code illustrates how to apply border inside the Range: //Create worksheet Workbook workbook = new Workbook(); Worksheet worksheet = workbook.Worksheets[0]; //Set text worksheet["C2"].Text = "Sample"; worksheet["D2"].Text = "text"; worksheet["C3"].Text = "in"; worksheet["D3"].Text = "cell"; //Set border worksheet["C2:D3"].BorderInside(LineStyleType.Thick); //Save to file workbook.SaveToFile("BorderInside.xlsx"); Represents border line. Sets inside border for current range. The following code illustrates how to apply border inside the Range with color from System.Drawing.Color structure: //Create worksheet Workbook workbook = new Workbook(); Worksheet worksheet = workbook.Worksheets[0]; //Set text worksheet["C2"].Text = "Sample"; worksheet["D2"].Text = "text"; worksheet["C3"].Text = "in"; worksheet["D3"].Text = "cell"; //Set border worksheet["C2:D3"].BorderInside(LineStyleType.Thick , Color.Red); //Save to file workbook.SaveToFile("BorderInside.xlsx"); Represents border line. Represents border color. Sets inside border for current range. The following code illustrates how to apply border inside the Range with color from Spire.Xls.ExcelColors structure: //Create worksheet Workbook workbook = new Workbook(); Worksheet worksheet = workbook.Worksheets[0]; //Set text worksheet["C2"].Text = "Sample"; worksheet["D2"].Text = "text"; worksheet["C3"].Text = "in"; worksheet["D3"].Text = "cell"; //Set border worksheet["C2:D3"].BorderInside(LineStyleType.Thick , ExcelColors.Red); //Save to file workbook.SaveToFile("BorderInside.xlsx"); Represents border line. Represents border color as ExcelColors. Sets none border for current range. The following code illustrates how to remove borders in the Range: //Create worksheet Workbook workbook = new Workbook(); workbook.LoadFromFile("Sample.xlsx"); Worksheet worksheet = workbook.Worksheets[0]; //Remove borders worksheet["C2"].BorderNone(); //Save to file workbook.SaveToFile("BorderNone.xlsx"); Clears the cell based on clear options. The following code illustrates how to clear the Range with clear options: //Create worksheet Workbook workbook = new Workbook(); workbook.LoadFromFile("Sample.xlsx"); Worksheet worksheet = workbook.Worksheets[0]; //Clears the Range C2 with its clear options worksheet.Range["C2"].Clear(ExcelClearOptions.ClearAll); //Save to file workbook.SaveToFile("ClearContents.xlsx"); Represents the clear options. Clears the entire object. Clear the contents of the Range. The following code illustrates how to clear the Range: //Create worksheet Workbook workbook = new Workbook(); workbook.LoadFromFile("Sample.xlsx"); Worksheet worksheet = workbook.Worksheets[0]; //Clears the Range C2 worksheet.Range["C2"].ClearContents(); //Save to file workbook.SaveToFile("ClearContents.xlsx"); Groups columns. Indicates whether group should be collapsed. Groups row. Indicates whether group should be collapsed. Ungroups column. Ungroups row. Collapses current group. The following code illustrates how to remove borders in the Range: //Create worksheet Workbook workbook = new Workbook(); workbook.LoadFromFile("Sample.xlsx"); Worksheet worksheet = workbook.Worksheets[0]; //Collapse group worksheet.Range["A5:A15"].CollapseGroup(GroupByType.ByRows); //Save to file workbook.SaveToFile("CollapseGroup.xlsx"); This parameter specifies whether the grouping should be performed by rows or by columns. Expands current group. The following code illustrates how to expand the group in the Range: //Create worksheet Workbook workbook = new Workbook(); workbook.LoadFromFile("Sample.xlsx"); Worksheet worksheet = workbook.Worksheets[0]; //Expand group with flag set to expand parent worksheet.Range["A5:A15"].ExpandGroup(GroupByType.ByRows); //Save to file workbook.SaveToFile("ExpandGroup.xlsx"); This parameter specifies whether the grouping should be performed by rows or by columns. Expands current group. The following code illustrates how to perform ExpandGroup in the Range with collapse option: //Create worksheet Workbook workbook = new Workbook(); workbook.LoadFromFile("Sample.xlsx"); Worksheet worksheet = workbook.Worksheets[0]; //Expand group with flag set to expand parent worksheet.Range["A5:A15"].ExpandGroup(GroupByType.ByRows, ExpandCollapseFlags.ExpandParent); //Save to file workbook.SaveToFile("ExpandGroup.xlsx"); This parameter specifies whether the grouping should be performed by rows or by columns. Additional option flags. Freezes panes at the current range in the worksheet. current range should be single cell range. The following code illustrates how to freeze a pane in the Range: //Create worksheet Workbook workbook = new Workbook(); Worksheet worksheet = workbook.Worksheets[0]; //Applying Freeze Pane to the sheet by specifying a cell worksheet.Range["B2"].FreezePanes(); //Save to file workbook.SaveToFile("FreezePanes.xlsx"); Creates a merged cell from the specified Range object. The Range to merge with. Merged ranges or null if wasn't able to merge ranges. Returns intersection of this range with the specified one. The following code illustrates how to perform intersectwith in the Range: //Create worksheet Workbook workbook = new Workbook(); Worksheet worksheet = workbook.Worksheets[0]; //Get intersect range IXLSRange range = worksheet.Range["A16:C16"]; IXLSRange commonRange = worksheet.Range["B16:D16"].Intersect(range); //Save to file workbook.SaveToFile("Intersect.xlsx"); The Range with which to intersect. Range intersection. If there is no intersection, NULL is returned. Measures size of the string. String to measure. Size of the string. Creates a merged cell from the specified Range object. The following code illustrates how to merge the Range: //Create worksheet Workbook workbook = new Workbook(); Worksheet worksheet = workbook.Worksheets[0]; //Set text worksheet["A1"].Text = "Merged cell"; //Merge cells worksheet["A1:B1"].Merge(); //Save to file workbook.SaveToFile("Merge.xlsx"); Creates a merged cell from the specified Range object. The following code illustrates how to merge the Range with clear option: //Create worksheet Workbook workbook = new Workbook(); Worksheet worksheet = workbook.Worksheets[0]; //Set text worksheet["A1"].Text = "Merged cell"; worksheet["B1"].Text = "sample"; //Merge cells worksheet["A1:B1"].Merge(true); //Save to file workbook.SaveToFile("Merge.xlsx"); Indicates whether to clear unnecessary cells. Partially clear range. Replaces cell's part text and reserve text's format. Part value of cell's text to search for. The replacement value. Returns the combined range reference in the language. Read-only String. Separates a merged area into individual cells. The following code illustrates how to UnMerge the merged cells: //Create worksheet Workbook workbook = new Workbook(); Worksheet worksheet = workbook.Worksheets[0]; //Set text worksheet["A1"].Text = "Merged cell"; //Merge cells worksheet["A1:B1"].Merge(true); //Unmerge cells worksheet["A1:B1"].UnMerge(); //Save to file workbook.SaveToFile("UnMerge.xlsx"); Reparses formula. Replaces cells' values with new data. Value to search for. The replacement value. Indicates whether to insert values vertically or horizontally. Replaces cells' values with new data. Value to search for. The replacement value. Replaces cells' values with new data. Value to search for. DataColumn to replace. Indicates whether to insert values vertically or horizontally. Replaces cells' values with new data. Value to search for. The replacement value. Indicates whether to insert values vertically or horizontally. Replaces cells' values with new data. Value to search for. The replacement value. Indicates whether to insert values vertically or horizontally. Replaces cells' values with new data. Value to search for. The replacement value. Replaces cells' values with new data. Value to search for. The replacement value. Replaces cells' values with new data. Value to search for. DataColumn to replace. Indicates whether to insert values vertically or horizontally. Converts cell name to row and column index. Name of the cell. Row index. Column index. Update region of range first Row first Column last Row last Column Convert number that stored as text to number Get the calculated condition format style of current Range. If style of every cell is not same, return null. If current range without condition format, return null. Gets or sets the old value. The old value. Gets or sets the new value. The new value. Gets or sets the range. The range. Title of the input box. Message of the input box. Title of the error box. Message of the error box. Represents a vertical page break. Type of the page break. Gets the column index of the vertical page break. Gets the start row index of the vertical page break. Gets the end row index of the vertical page break. Closes the object and saves changes into specified file. File name in which workbook will be saved if SaveChanges is true. Represents a collection of Table style definitions for PivotTable styles. Represents the Collection of protected ranges. Represents the Collection of protected ranges. Gets the OLE objects. The following code illustrates how to access the IListObjects collection in the worksheet to add a new IOleObject: //Create worksheet Workbook workbook = new Workbook(); Worksheet worksheet = workbook.Worksheets[0]; //Create image stream System.Drawing.Image image = System.Drawing.Image.FromFile("image.png"); //Add ole object IOleObject oleObject = worksheet.OleObjects.Add("Shapes.xlsx", image, OleLinkType.Embed); //Save to file workbook.SaveToFile("OLEObjects.xlsx"); The OLE objects. True if page breaks (both automatic and manual) on the specified worksheet are displayed. Name range used by macros to access to workbook items. Returns collection with all conditional formats in the worksheet. Read-only. Gets or sets default height of all the rows in the worksheet, in points.Read/write Double. The following code illustrates how to get the default row height: //Create worksheet Workbook workbook = new Workbook(); Worksheet worksheet = workbook.Worksheets[0]; //Get row height Console.Write(worksheet.DefaultRowHeight); //Set default height worksheet.DefaultRowHeight = 40; //Save to file workbook.SaveToFile("DefaultRowHeight.xlsx"); Return default row height. Gets or sets the view mode of the sheet. Returns or sets the default width of all the columns in the worksheet. Read/write Double. The following code illustrates how to get the default column width: //Create worksheet Workbook workbook = new Workbook(); Worksheet worksheet = workbook.Worksheets[0]; //Get column width Console.Write(worksheet.DefaultColumnWidth); //Set default width worksheet.DefaultColumnWidth = 40; //Save to file workbook.SaveToFile("DefaultColumnWidth.xlsx"); Zoom factor of document. The following code illustrates how to set zoom level of the sheet: //Create worksheet Workbook workbook = new Workbook(); Worksheet worksheet = workbook.Worksheets[0]; //Set zoom worksheet.Zoom = 200; //Save to file workbook.SaveToFile("Zoom.xlsx"); Value of zoom should be between 10 and 400. Gets or sets the zoom scale of normal view of the sheet. Gets or sets the zoom scale of page break preview of the sheet. Gets or sets the zoom scale of page layout view of the sheet. Indicates whether IsHidden property is set. Gets or sets excel file version. Gets or sets the standard (default) height option flag, which defines that standard (default) row height and book default font height do not match. Bool. TopLeftCell of this worksheet,different of TopLeftCell property Gets top left cell of the worksheet. Indicates whether all created range objects should be cached. Default value is true. Gets or sets index of the active pane. Updates last column index. Column index. Updates first row index. Row index. Updates last row index. Row index. Shows a column. Column index. stream. One-based index of the first row to convert. One-based index of the first column to convert. One-based index of the last row to convert. One-based index of the last column to convert. True if gridlines are visible; False otherwise. The following code illustrates how to set visibility for grid lines: //Create worksheet Workbook workbook = new Workbook(); Worksheet worksheet = workbook.Worksheets[0]; //Set grid line visibility worksheet.GridLinesVisible = false; //Save to file workbook.SaveToFile("GridLinesVisible.xlsx"); Indicates whether worksheet has merged cells. Indicats whether there is OLE object. The following code illustrates how to access the IListObjects collection in the worksheet to add a new IOleObject and check Ole Object: //Create worksheet Workbook workbook = new Workbook(); Worksheet worksheet = workbook.Worksheets[0]; //Create image stream System.Drawing.Image image = System.Drawing.Image.FromFile("image.png"); //Add ole object IOleObject oleObject = worksheet.OleObjects.Add("Shapes.xlsx", image, OleLinkType.Embed); //Check HasOleObject.Output will be true. Console.Write(worksheet.HasOleObjects); //Save to file workbook.SaveToFile("HasOleObjects.xlsx"); true if this instance is OLE object; otherwise, false. Indicates whether zero values to be displayed Indicates whether worksheet is empty. Read-only. Indicates whether freezed panes are applied. Indicates if all values in the workbook are preserved as strings. AddAllowEditRange : add a range of cells that allow editing title range password AddAllowEditRange : add a range of cells that allow editing title range Returns all list objects in the worksheet. True if row and column headers are visible. False otherwise. Indicates whether current sheet is protected. Returns charts collection. Read-only. Returns quoted name of the worksheet. Caculate all formula for the specified worksheet Imports an array of datetimes into worksheet. The following code illustrates how to Imports an array of DateTime values into a worksheet with the specified row and colum: //Create worksheet Workbook workbook = new Workbook(); Worksheet worksheet = workbook.Worksheets[0]; //Initialize the DateTime Array DateTime[] arrayDate = new DateTime[4] { DateTime.Parse("06:45"), DateTime.Parse("08:30"), DateTime.Parse("09:40"), DateTime.Parse("10:30") }; //Insert the DateTime Array to Sheet worksheet.InsertArray(arrayDate, 1, 1, true); //Save to file workbook.SaveToFile(InsertArray.xlsx"); Datetime 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 doubles into a worksheet. The following code illustrates how to Imports an array of Double values into a worksheet with the specified row and column: //Create worksheet Workbook workbook = new Workbook(); Worksheet worksheet = workbook.Worksheets[0]; //Initialize the double Array double[] arrayDouble = new double[4] { 344.0045, 345.0045, 346.0045, 347.0045 }; //Insert the double Array to Sheet worksheet.InsertArray(arrayDouble, 1, 1, true); //Save to file workbook.SaveToFile(InsertArray.xlsx"); 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. Imports an array of objects into a worksheet. Object 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 integer into a worksheet. The following code illustrates how to Imports an array of integer values into a worksheet with the specified row and column: //Create worksheet Workbook workbook = new Workbook(); Worksheet worksheet = workbook.Worksheets[0]; //Initialize the integer Array int[] arrayInt = new int[4] {1000, 2000, 3000, 4000}; //Insert the integer Array to Sheet worksheet.InsertArray(arrayInt, 1, 1, true); //Save to file workbook.SaveToFile(InsertArray.xlsx"); 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 an array of objects into a worksheet. The following code illustrates how to Imports a two-dimensional array of Object into a worksheet with the specified row and column: //Create worksheet Workbook workbook = new Workbook(); Worksheet worksheet = workbook.Worksheets[0]; //Initialize the Object Array object[,] arrayTwoDimen = new object[3, 2] { { "AND", "OR" }, { "NAND", "XOR" },{ "NOR", "NOT" } }; //Insert the Object Array to Sheet worksheet.InsertArray(arrayTwoDimen, 1, 1); //Save to file workbook.SaveToFile(InsertArray.xlsx"); Object 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 objects into a worksheet. Object array. The row number of the first cell to import in. The column number of the first cell to import in. Whether others type inputted as string type need to be converted, such as number, datetime. Imports an array of strings into a worksheet. The following code illustrates how to Imports an array of String into a worksheet with specified row and column: //Create worksheet Workbook workbook = new Workbook(); Worksheet worksheet = workbook.Worksheets[0]; //Initialize the string Array string[] arrayString = new string[4] { "Total Income", "Actual Expense", "Expected Expenses", "Profit" }; //Insert the string Array to Sheet worksheet.InsertArray(arrayString, 1, 1, true); //Save to file workbook.SaveToFile(InsertArray.xlsx"); 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 an array of objects into a worksheet. The following code illustrates how to Imports an array of Object into a worksheet with specified alignment: //Create worksheet Workbook workbook = new Workbook(); Worksheet worksheet = workbook.Worksheets[0]; //Initialize the Object Array object[] array = new object[4] { "Total Income", "Actual Expense", "Expected Expenses", "Profit" }; //Insert the Object Array to Sheet worksheet.InsertArray(array, 1, 1, true); //Save to file workbook.SaveToFile(InsertArray.xlsx"); Array to import. The row number of the first cell to import in. The column number of the first cell to import in. TRUE if array should be imported vertically; FALSE - horizontally. Number of imported elements. 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 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. Specifies to import data as text or not. Imports data column. The following code illustrates how to Imports data from a DataColumn into a worksheet with the specified row and column: //Create worksheet Workbook workbook = new Workbook(); Worksheet worksheet = workbook.Worksheets[0]; //Create a DataTable System.Data.DataTable table = new System.Data.DataTable(); table.Columns.Add("ID", typeof(int)); table.Columns.Add("Item", typeof(string)); table.Columns.Add("Name", typeof(string)); table.Rows.Add(1, "Soap", "David"); table.Rows.Add(2, "Paste", "Sam"); table.Rows.Add(3, "Cream", "Christoff"); //Insert the DataColumn to worksheet System.Data.DataColumn column = table.Columns[2]; worksheet.InsertDataColumn(column, true, 1, 1); //Save to file workbook.SaveToFile(InsertDataColumn.xlsx"); Data column to import. Indicates whether to import field names. Index of the first row. Index of the first column Imports array of data columns. Data columns to import. Indicates whether to import field names. Index to the first row. Index to the first column. Imports data from a DataTable into worksheet. The following code illustrates how to Imports data from a DataTable into a worksheet with the specified row and column: //Create worksheet Workbook workbook = new Workbook(); Worksheet worksheet = workbook.Worksheets[0]; //Create a DataTable System.Data.DataTable table = new System.Data.DataTable(); table.Columns.Add("ID", typeof(int)); table.Columns.Add("Item", typeof(string)); table.Columns.Add("Name", typeof(string)); table.Rows.Add(1, "Soap", "David"); table.Rows.Add(2, "Paste", "Sam"); table.Rows.Add(3, "Cream", "Christoff"); //Insert the DataTable to worksheet worksheet.InsertDataTable(table, true, 1, 1); //Save to file workbook.SaveToFile(InsertDataTable.xlsx"); DataTable Indicates whether to import field names. The row number of the first cell to import in. The column number of the first cell to import in. Imports data from a DataTable into worksheet. The following code illustrates how to Imports data from a DataTable into a worksheet with the specified row and column along with the preserve type: //Create worksheet Workbook workbook = new Workbook(); Worksheet worksheet = workbook.Worksheets[0]; //Create a DataTable System.Data.DataTable table = new System.Data.DataTable(); table.Columns.Add("ID", typeof(int)); table.Columns.Add("Item", typeof(string)); table.Columns.Add("Name", typeof(string)); table.Rows.Add(1, "Soap", "David"); table.Rows.Add(2, "Paste", "Sam"); table.Rows.Add(3, "Cream", "Christoff"); //Insert the DataTable to worksheet worksheet.InsertDataTable(table, true, 1, 1 , true); //Save to file workbook.SaveToFile(InsertDataTable.xlsx"); DataTable Indicates whether to import field names. The row number of the first cell to import in. The column number of the first cell to import in. Indicates if preserve types when insert data into worksheet Imports data from a DataTable into worksheet. The following code illustrates how to Imports data from a DataTable into a worksheet with the specified range: //Create worksheet Workbook workbook = new Workbook(); Worksheet worksheet = workbook.Worksheets[0]; //Create a DataTable System.Data.DataTable table = new System.Data.DataTable(); table.Columns.Add("ID", typeof(int)); table.Columns.Add("Item", typeof(string)); table.Columns.Add("Name", typeof(string)); table.Rows.Add(1, "Soap", "David"); table.Rows.Add(2, "Paste", "Sam"); table.Rows.Add(3, "Cream", "Christoff"); //Insert the DataTable to worksheet worksheet.InsertDataTable(table, true, 1 , 1 , 2 , 2); //Save to file workbook.SaveToFile(InsertDataTable.xlsx"); DataTable Indicates whether to import field names. The row number of the first cell to import in. The column number of the first cell to import in. Maximum number of rows to import Maximum number of columns to import Imports data from a DataTable into worksheet. The following code illustrates how to Imports data from a DataTable into a worksheet with specified range along with preserve type: //Create worksheet Workbook workbook = new Workbook(); Worksheet worksheet = workbook.Worksheets[0]; //Create a DataTable System.Data.DataTable table = new System.Data.DataTable(); table.Columns.Add("ID", typeof(int)); table.Columns.Add("Item", typeof(string)); table.Columns.Add("Name", typeof(string)); table.Rows.Add(1, "Soap", "David"); table.Rows.Add(2, "Paste", "Sam"); table.Rows.Add(3, "Cream", "Christoff"); //Insert the DataTable to worksheet worksheet.InsertDataTable(table, true, 1 , 1 , 2 , 2 , true); //Save to file workbook.SaveToFile(InsertDataTable.xlsx"); Datatable Indicates whether to import field names. The row number of the first cell to import in. The column number of the first cell to import in. Maximum number of rows to import Maximum number of columns to import Indicates if preserve types when insert data into worksheet Imports data from a DataTable into worksheet DataTable Indicates whether to import field names. The row number of the first cell to import in. The column number of the first cell to import in. Maximum number of rows to import Maximum number of columns to import Array of columns to import. Indicates if preserve types when insert data into worksheet.true is default Imports data from a DataView into worksheet. The following code illustrates how to Imports data from a DataView into a worksheet with the specified row and column: //Create worksheet Workbook workbook = new Workbook(); Worksheet worksheet = workbook.Worksheets[0]; //Create a DataTable System.Data.DataTable table = new System.Data.DataTable(); table.Columns.Add("ID", typeof(int)); table.Columns.Add("Item", typeof(string)); table.Columns.Add("Name", typeof(string)); table.Rows.Add(1, "Soap", "David"); table.Rows.Add(2, "Paste", "Sam"); table.Rows.Add(3, "Cream", "Christoff"); //Initialize dataview of datatable System.Data.DataView view = table.DefaultView; //Import data from DataView worksheet.InsertDataView(view, true, 1, 1); //Save to file workbook.SaveToFile(InsertDataView.xlsx"); Data view object Indicates whether to import field names. The row number of the first cell to import in. The column number of the first cell to import in. Imports data from a DataView into worksheet. The following code illustrates how to Imports data from a DataView into a worksheet with the specified row and column along with preserve type: //Create worksheet Workbook workbook = new Workbook(); Worksheet worksheet = workbook.Worksheets[0]; //Create a DataTable System.Data.DataTable table = new System.Data.DataTable(); table.Columns.Add("ID", typeof(int)); table.Columns.Add("Item", typeof(string)); table.Columns.Add("Name", typeof(string)); table.Rows.Add(1, "Soap", "David"); table.Rows.Add(2, "Paste", "Sam"); table.Rows.Add(3, "Cream", "Christoff"); //Initialize dataview of datatable System.Data.DataView view = table.DefaultView; //Import data from DataView worksheet.InsertDataView(view, true, 1, 1 , true); //Save to file workbook.SaveToFile(InsertDataView.xlsx"); Dataview object. Indicates whether to import field names. The row number of the first cell to import in. The column number of the first cell to import in. Indicates if preserve types when insert data into worksheet. Imports data from a DataView into worksheet. The following code illustrates how to Imports data from a DataView into a worksheet with the specified range: //Create worksheet Workbook workbook = new Workbook(); Worksheet worksheet = workbook.Worksheets[0]; //Create a DataTable System.Data.DataTable table = new System.Data.DataTable(); table.Columns.Add("ID", typeof(int)); table.Columns.Add("Item", typeof(string)); table.Columns.Add("Name", typeof(string)); table.Rows.Add(1, "Soap", "David"); table.Rows.Add(2, "Paste", "Sam"); table.Rows.Add(3, "Cream", "Christoff"); //Initialize dataview of datatable System.Data.DataView view = table.DefaultView; //Import data from DataView worksheet.InsertDataView(view, true, 1, 1 , 2 , 2); //Save to file workbook.SaveToFile(InsertDataView.xlsx"); Dataview object. Indicates whether to import field names. The row number of the first cell to import in. The column number of the first cell to import in. Maximum number of rows to import. Maximum number of columns to import. Imports data from a DataView into worksheet. The following code illustrates how to Imports data from a DataView into a worksheet with the specified range along with preserve type: //Create worksheet Workbook workbook = new Workbook(); Worksheet worksheet = workbook.Worksheets[0]; //Create a DataTable System.Data.DataTable table = new System.Data.DataTable(); table.Columns.Add("ID", typeof(int)); table.Columns.Add("Item", typeof(string)); table.Columns.Add("Name", typeof(string)); table.Rows.Add(1, "Soap", "David"); table.Rows.Add(2, "Paste", "Sam"); table.Rows.Add(3, "Cream", "Christoff"); //Initialize dataview of datatable System.Data.DataView view = table.DefaultView; //Import data from DataView worksheet.InsertDataView(view, true, 1, 1 , 2 , 2 , true); //Save to file workbook.SaveToFile(InsertDataView.xlsx"); Dataview object. Indicates whether to import field names. The row number of the first cell to import in. The column number of the first cell to import in. Maximum number of rows to import. Maximum number of columns to import. Indicates if preserve types when insert data into worksheet. Indicates whether column is visible. Column index. true - visible, otherwise false. Indicates is formula in cell is formula to external workbook. Represents row index. Represents column index. If contain extern formula returns true; otherwise false. Indicates whether row is visible. Row index. true - visible, otherwise false. Autofit the column width. The following code illustrates how to Auto-fit the column: //Create worksheet Workbook workbook = new Workbook(); Worksheet worksheet = workbook.Worksheets[0]; //Set text worksheet["A1"].Text = "Sample text in cell"; //Set auto fit worksheet.AutoFitColumn(1); //Save to file workbook.SaveToFile("AutoFitColumn.xlsx"); Column index. Autofit the column width. Column index. auto fit options Autofit the column width. Column index. One-based index of the first row to be used for autofit operation. One-based index of the last row to be used for autofit operation. Autofit the column width. Column index. One-based index of the first row to be used for autofit operation. One-based index of the last row to be used for autofit operation. auto fit options Autofit the row height. The following code illustrates how to Auto-fit the row: //Create worksheet Workbook workbook = new Workbook(); Worksheet worksheet = workbook.Worksheets[0]; //Set text worksheet["C2"].Value = "Sample text"; //Set Style CellStyle style = workbook.Styles.Add("CustomStyle"); IFont font = style.Font; font.Size = 18; worksheet["C2"].Style = style; //Set auto fit worksheet.AutoFitRow(2); //Save to file workbook.SaveToFile("AutoFitRow.xlsx"); Row index Autofit the row height. Row index One-based index of the first column to be used for autofit operation. One-based index of the last column to be used for autofit operation. auto fit options Autofit the row height. Row index One-based index of the first column to be used for autofit operation. One-based index of the last column to be used for autofit operation. If true then raise events. Autofit the row height. Row index One-based index of the first column to be used for autofit operation. One-based index of the last column to be used for autofit operation. If true then raise events. auto fit options Indicates whether cell has been initialized. The following code illustrates if the cells was initialized or accessed by the user: //Create worksheet Workbook workbook = new Workbook(); Worksheet worksheet = workbook.Worksheets[0]; //Set text worksheet.Range["A1"].Text = "Hello"; //Check the cell.Output will be true. Console.Write(worksheet.CheckExistence(1, 1)); //Save to file workbook.SaveToFile("CheckExistence.xlsx"); Row index. Column index. Value indicating whether the cell was initialized or accessed by the user. Clears data the worksheet. Clears contents of a range. Gets cell type from current column. Indicates row. Indicates column. Indicates is need to indified formula sub type. Returns cell type. Returns string value corresponding to the cell. Cell index to get value from. String contained by the cell. Returns string value corresponding to the cell. Represents row index. Represents column index. String contained by the cell. Returns TextWithFormat object corresponding to the specified cell. Cell index. Object corresponding to the specified cell. Returns TextWithFormat object corresponding to the specified cell. Represents row index. Represents column index. Object corresponding to the specified cell. Indicates whether cell contains array-entered formula. cell index. Indicates is has array formula. Represents row index. Represents column index. Indicates is contain array formula record. Insert a cell range into worksheet the cell range first row index the cell range first column index the number of rows the number of columns Insert options. Move the cell on the right to right or Move the cell below down return the range that insert into worksheet Insert cut range into worksheet at specified position. the cut range the dest range first row index the dest range first column index insert options. Indicates whether cell contains array-entered formula. Represents row index. Represents column index. True if cell contains array-entered formula. Deletes a column. Column index to remove.. Removes specified column. One-based column index to remove. Number of columns to remove. Delete a row. Row index to remove Removes specified row. One-based row index to remove Number of rows to delete. Removes specified rows. Index of all row that need to remove Inserts a new column into the worksheet. Column index Inserts specified number column into the worksheet. Column index Number of columns to insert. Inserts a new row into the worksheet. Index at which new row should be inserted Inserts multiple rows into the worksheet. Index at which new row should be inserted Number of rows to be inserted. Gets bool value from cell. Represents row index. Represents column index. Returns found bool value. If cannot found returns false. Gets the width of the specified column Column index Width of column Gets the width of the specified column, in units of pixel. The following code illustrates how to get the column width for a particular column: //Create worksheet Workbook workbook = new Workbook(); Worksheet worksheet = workbook.Worksheets[0]; //Set text worksheet["A1"].Text = "Sample text in cell"; //Set auto fit worksheet.AutoFitColumn(1); //Get column width Console.WriteLine(worksheet.GetColumnWidthPixels(1)); //Save to file workbook.SaveToFile("UsedRange.xlsx"); Column index. Width of column Gets error value from cell. Row index. Column index. Returns error value or null. Gets formula error value from cell. Row index. Column index. Returns error value or null. Returns formula number value corresponding to the cell. One-based row index of the cell to get value from. One-based column index of the cell to get value from. Number contained by the cell. Returns formula string value corresponding to the cell. One-based row index of the cell to get value from. One-based column index of the cell to get value from. String contained by the cell. Gets formula bool value from cell. Represents row index. Represents column index. Returns found bool value. If cannot found returns false. Returns number value corresponding to the cell. One-based row index of the cell to get value from. One-based column index of the cell to get value from. Number contained by the cell. Gets the height of a specified row. Row index. Height of row Indicates whether the column is hidden. Column index. Indicates whether the row is hidden. Row index. Hides a column. Column index. Hides columns. Column index. Column count. Hides a row. Row index. Hides a row. Row index. Row count. Gets the height of a specified row in unit of pixel. The following code illustrates how to get the row height for a particular row: //Create worksheet Workbook workbook = new Workbook(); Worksheet worksheet = workbook.Worksheets[0]; //Set text worksheet["C2"].Text = "Sample text"; worksheet["C2"].Style.Font.Size = 18; //Set auto fit worksheet.AutoFitRow(2); //Get row height Console.WriteLine(worksheet.GetRowHeightPixels(2)); //Save to file workbook.SaveToFile("UsedRange.xlsx"); Row index. Height of row Returns string value corresponding to the cell. One-based row index of the cell to get value from. One-based column index of the cell to get value from. String contained by the cell. delete a range in worksheet the range to be deleted Choose to move the right range to left or move the below range to above Moves worksheet into new position. Destination index. Removes worksheet from parernt worksheets collection. Removes panes from a worksheet. Replaces cells' values with new data. The following code snippet illustrates how to replace the string value with data column: //Create worksheet Workbook workbook = new Workbook(); workbook.LoadFromFile("Sample.xlsx"); Worksheet worksheet = workbook.Worksheets[0]; //Replace the oldValue by data column string oldValue = "Find"; System.Data.DataTable table = new System.Data.DataTable(); table.Columns.Add("Dosage", typeof(int)); table.Rows.Add(1); System.Data.DataColumn dataColumn = table.Columns[0]; worksheet.Replace(oldValue, dataColumn, true); //Save to file workbook.SaveToFile("Replace.xlsx"); String value to replace. Data table with new data. Indicates whether to import field names. This can be long operation (needs iteration through all cells in the worksheet). Better use named ranges instead and call Import function instead of placeholders. Replaces cells' values with new data. The following code snippet illustrates how to replace the string value with data table: //Create worksheet Workbook workbook = new Workbook(); workbook.LoadFromFile("Sample.xlsx"); Worksheet worksheet = workbook.Worksheets[0]; //Replace the oldValue by data table string oldValue = "Find"; System.Data.DataTable table = new System.Data.DataTable(); table.Columns.Add("Dosage", typeof(int)); table.Rows.Add(1); worksheet.Replace(oldValue, table, true); //Save to file workbook.SaveToFile("Replace.xlsx"); String value to replace. Data table with new data. Indicates whether to import field names. This can be long operation (needs iteration through all cells in the worksheet). Better use named ranges instead and call Import function instead of placeholders. Replaces cells' values with new data. The following code illustrates how to replace the string value with datetime: //Create worksheet Workbook workbook = new Workbook(); workbook.LoadFromFile("Sample.xlsx"); Worksheet worksheet = workbook.Worksheets[0]; //Replace the oldValue by dateTime string oldValue = "Find"; DateTime dateTime = DateTime.Now; worksheet.Replace(oldValue, dateTime); //Save to file workbook.SaveToFile("Replace.xlsx"); String value to replace. New value for the range with specified string. This can be long operation (needs iteration through all cells in the worksheet). Better use named ranges instead and call Import function instead of placeholders. Replaces cells' values with new data. The following code snippet illustrates how to replace the string with double: //Create worksheet Workbook workbook = new Workbook(); workbook.LoadFromFile("Sample.xlsx"); Worksheet worksheet = workbook.Worksheets[0]; //Replace the oldValue by double string oldValue = "Ten"; worksheet.Replace(oldValue, 10.0); //Save to file workbook.SaveToFile("Replace.xlsx"); String value to replace. New value for the range with specified string. Replaces cells' values with new data. The following code snippet illustrates how to replace the string with array of double values: //Create worksheet Workbook workbook = new Workbook(); workbook.LoadFromFile("Sample.xlsx"); Worksheet worksheet = workbook.Worksheets[0]; //Replace the oldValue by array of double values string oldValue = "Find"; double[] newValues = { 1.0, 2.0 }; worksheet.Replace(oldValue, newValues, true); //Save to file workbook.SaveToFile("Replace.xlsx"); String value to replace. Array of new values. Indicates whether array should be inserted vertically. This can be long operation (needs iteration through all cells in the worksheet). Better use named ranges instead and call Import function instead of placeholders. Replaces cells' values with new data. The following code snippet illustrates how to replace the string with array of int values: //Create worksheet Workbook workbook = new Workbook(); workbook.LoadFromFile("Sample.xlsx"); Worksheet worksheet = workbook.Worksheets[0]; //Replace the oldValue by array of int values string oldValue = "Find"; int[] newValues = { 1, 2 }; worksheet.Replace(oldValue, newValues, true); //Save to file workbook.SaveToFile("Replace.xlsx"); String value to replace. Array of new values. Indicates whether array should be inserted vertically. This can be long operation (needs iteration through all cells in the worksheet). Better use named ranges instead and call Import function instead of placeholders. Replaces cells' values with new data. The following code snippet illustrates how to replace the string with another string: //Create worksheet Workbook workbook = new Workbook(); workbook.LoadFromFile("Sample.xlsx"); Worksheet worksheet = workbook.Worksheets[0]; //Replace the oldValue by newValue string oldValue = "Find"; string newValue = "NewValue"; worksheet.Replace(oldValue, newValue); //Save to file workbook.SaveToFile("Replace.xlsx"); String value to replace. New value for the range with specified string. This can be long operation (needs iteration through all cells in the worksheet). Better use named ranges instead and call Import function instead of placeholders. Replaces cells' values with new data and style. String value to replace. Cell style to replace. New value for the range with specified string. New cell style for the range. Replaces cells' values with new data. The following code snippet illustrates how to replace the string with array of string values: //Create worksheet Workbook workbook = new Workbook(); workbook.LoadFromFile("Sample.xlsx"); Worksheet worksheet = workbook.Worksheets[0]; //Replace the oldValue by array of string values string oldValue = "Find"; string[] newValues = { "X values", "Y values" }; worksheet.Replace(oldValue, newValues , true); //Save to file workbook.SaveToFile("Replace.xlsx"); String value to replace. Array of new values. Indicates whether array should be inserted vertically. This can be long operation (needs iteration through all cells in the worksheet). Better use named ranges instead and call Import function instead of placeholders. Save worksheet to image. file Name Save worksheet to image. file Name file name file format One-based index of the first row to convert. One-based index of the first column to convert. One-based index of the last row to convert. One-based index of the last column to convert. Save worksheet into image. The following code illustrates how to convert the specified range into image with the specified type: //Create worksheet Workbook workbook = new Workbook(); workbook.LoadFromFile("Sample.xlsx"); Worksheet worksheet = workbook.Worksheets[0]; //Creat stream Stream stream = new MemoryStream(); //Save to image System.Drawing.Image image = worksheet.SaveToImage(stream,1, 1, 10, 20, Spire.Xls.ImageType.Bitmap); image.Save("Sample.png", System.Drawing.Imaging.ImageFormat.Png); Output stream. It is ignored if null. One-based index of the first row to convert. One-based index of the first column to convert. One-based index of the last row to convert. One-based index of the last column to convert. Type of the image to create. Created image. Converts range into image. Output stream. It is ignored if null. One-based index of the first row to convert. One-based index of the first column to convert. One-based index of the last row to convert. One-based index of the last column to convert. Metafile EmfType. Created image. Converts range into image. One-based index of the first row to convert. One-based index of the first column to convert. One-based index of the last row to convert. One-based index of the last column to convert. Type of the image to create. Output stream. It is ignored if null. Metafile EmfType. Created image. Save to HTML stream. The following code snippets illustrates how to save as html as stream: //Create worksheet Workbook workbook = new Workbook(); workbook.LoadFromFile("Sample.xlsx"); Worksheet worksheet = workbook.Worksheets[0]; //Creat stream Stream stream = new MemoryStream(); //Save to HTML stream worksheet.SaveToHtml(stream); Stream object Saves work sheet to HTML. The following code snippets illustrates how to save as html as stream with Save option: //Create worksheet Workbook workbook = new Workbook(); workbook.LoadFromFile("Sample.xlsx"); Worksheet worksheet = workbook.Worksheets[0]; //Creat stream Stream stream = new MemoryStream(); //Save to HTML stream worksheet.SaveToHtml(stream, Spire.Xls.Core.Spreadsheet.HTMLOptions.Default); The stream The option Save to HTML file. The following code snippets illustrates how to save as html to the specified file name: //Create worksheet Workbook workbook = new Workbook(); workbook.LoadFromFile("Sample.xlsx"); Worksheet worksheet = workbook.Worksheets[0]; //Save to HTML file worksheet.SaveToHtml("Output.html"); File name Saves as HTML. The following code snippets illustrates how to save as html to the specified file name and save option: //Create worksheet Workbook workbook = new Workbook(); workbook.LoadFromFile("Sample.xlsx"); Worksheet worksheet = workbook.Worksheets[0]; //Save to HTML file worksheet.SaveToHtml("Sample.html" , Spire.Xls.Core.Spreadsheet.HTMLOptions.Default); The filename The option Save worksheet to file. The following code illustrates how to saves the worksheet in a different file with separator: //Create worksheet Workbook workbook = new Workbook(); workbook.LoadFromFile("Sample.xlsx"); Worksheet worksheet = workbook.Worksheets[0]; //Save to file worksheet.SaveToFile("SaveToFile.csv" , ","); File name. Seperator. Save worksheet to file. File name. Seperator. retain hidden data Save worksheet to file.. File name. Seperator. Encoding to use. Save worksheet to file.. File name. Seperator. Encoding to use. Add double Quotation marks for string value. Save worksheet to stream. The following code illustrates how to saves the worksheet as stream with separator: //Create worksheet Workbook workbook = new Workbook(); workbook.LoadFromFile("Sample.xlsx"); Worksheet worksheet = workbook.Worksheets[0]; //Create stream Stream stream = new MemoryStream(); //Save to stream worksheet.SaveToStream(stream , ","); Stream object. Seperator. Save worksheet to stream. Stream object. Seperator. retain hidden data Save worksheet to stream. Stream to save. Current seperator. Encoding to use. Save worksheet to stream. Stream to save. Current seperator. Encoding to use. Add double Quotation marks for string value. Saves specific worksheet to xps. File name. Save worksheet to pdf. File name. Save worksheet to pdf. File name. Save worksheet to pdf Stream. Stream. Convert CellRange to Svg stream stream. One-based index of the first row to convert. One-based index of the first column to convert. One-based index of the last row to convert. One-based index of the last column to convert. Sets blank in specified cell. One-based row index of the cell to set value. One-based column index of the cell to set value. Sets value in the specified cell. One-based row index of the cell to set value. One-based column index of the cell to set value. Value to set. Sets column width in pixels. The following code illustrates how to set width for a column: //Create worksheet Workbook workbook = new Workbook(); Worksheet worksheet = workbook.Worksheets[0]; //Set column width worksheet.SetColumnWidthInPixels(2, 160); //Save to file workbook.SaveToFile("SetColumnWidthInPixels.xlsx"); One-based column index. Width in pixels to set. Set solumn width Column index. Width to set. Sets the width of the specified columns. Column index count Value Sets default style for column. Column index. Default style. Sets error in the specified cell. One-based row index of the cell to set value. One-based column index of the cell to set value. Error to set. Sets formula in the specified cell. One-based row index of the cell to set value. One-based column index of the cell to set value. Formula to set. Sets formula in the specified cell. One-based row index of the cell to set value. One-based column index of the cell to set value. Formula to set. Indicates is formula in R1C1 notation. Sets formula bool value. One based row index. One based column index. Represents formula bool value for set. Sets formula error value. One based row index. One based column index. Represents formula error value for set. Sets formula number value. One based row index. One based column index. Represents formula number value for set. Sets formula string value. One based row index. One based column index. Represents formula string value for set. Sets value in the specified cell. One-based row index of the cell to set value. One-based column index of the cell to set value. Value to set. Set Row height from Start Row index Row index count Value Sets the height of the specified row. Row index. Height. Sets the height of the specified row. The following code illustrates how to set height for a row: //Create worksheet Workbook workbook = new Workbook(); Worksheet worksheet = workbook.Worksheets[0]; //Set row height worksheet.SetRowHeightPixels(3, 150); //Save to file workbook.SaveToFile("SetRowHeightPixels.xlsx"); Row index. Height. Sets text in the specified cell. One-based row index of the cell to set value. One-based column index of the cell to set value. Text to set. Sets value in the specified cell. Row index. Column index. Value to set. Sets value in the specified cell. Row index Column index. Value to set. Groups columns. The first column index to be grouped. The last column index to be grouped. Indicates whether group should be collapsed. Groups rows. The first row index to be grouped. The last row index to be grouped. Indicates whether group should be collapsed. Ungroups columns. The first column index to be grouped. The last column index to be grouped. Ungroups rows. The first row index to be grouped. The last row index to be grouped. Save option specify shapes to image. Save option specify shapes to image, and get option specify shapes together. Apply style to whole sheet. style to apply true means apply style to all rows true means apply style to all columns Creates subtotals for the range. The range The field index to group by, offset from zero An array of zero-based field index offsets, indicating the fields to which the subtotals are added. The subtotal type. Creates subtotals for the range. The range The field index to group by, offset from zero An array of zero-based field index offsets, indicating the fields to which the subtotals are added. The subtotal type. Indicates whether replace the current subtotals Indicates whether add page break between groups Indicates whether add summarry below data. Get GetRowIsAutoFit By rowIndex If the row is null Return false,else if the row height is Autofit Return true, the row height is CustomHeight Return false Get ColumnIsAutofit By columnIndex If the column is null Return false,else if the column width is Autofit Return true, the column width is CustomWidth Return false Represents allow edit range Represents protected range name. Represents protected range range. Represents protected range password. Represents protected range name. Represents protected range range. Represents protected range password. Returns or sets the name of the object. Read / write String. Name used by macros to access workbook items. Zoom factor of document. Value of zoom should be between 10 and 400. Controls end user visibility of worksheet. Grid line color. The following code illustrates how to set the grid line color: //Create worksheet Workbook workbook = new Workbook(); Worksheet worksheet = workbook.Worksheets[0]; //Set grid lines color worksheet.GridLineColor = ExcelColors.Red; //Save to file workbook.SaveToFile("GridLineColor.xlsx"); Indicates whether worksheet has vml shapes. Read-only. Header / footer shapes collection. Indicates whether gridline color has default value. Gets / sets index of the first row of the worksheet. Gets or sets index of the first column of the worksheet. Gets index of the first data row of the worksheet. Gets index of the first data column of the worksheet. Gets or sets one-based index of the last row of the worksheet. Gets or sets index of the last column of the worksheet. Gets index of the last data row of the worksheet. Gets index of the last data column of the worksheet. Moves sheet into new position, including chartsheet and worksheet. Destination index. Returns the index number of the object within the collection of objects. Gets/sets left visible column of the worksheet. The following code illustrates how to set the left visible column: //Create worksheet Workbook workbook = new Workbook(); Worksheet worksheet = workbook.Worksheets[0]; //Set left visible column worksheet.LeftVisibleColumn = 3; //Get left visible column Console.Write(worksheet.LeftVisibleColumn); //Save to file workbook.SaveToFile("LeftVisibleColumn.xlsx"); Gets or sets sheetId for this sheet. Gets or sets whether the worksheet will display row and column headers. Default is true. Indicates whether worksheet is displayed right to left. Get group shapes in worksheet. Returns inner textboxes collection. Read-only. Indicates whether tab of this sheet is selected. Read-only. Indicates is current sheet is protected. True if objects are protected. Read only. True if the scenarios of the current sheet are protected. Read only. Tab color. Tab excel color. Gets/sets top visible row of the worksheet. The following code illustrates how to set the top visible row: //Create worksheet Workbook workbook = new Workbook(); Worksheet worksheet = workbook.Worksheets[0]; //Set top visible row worksheet.TopVisibleRow = 5; //Get top visible row Console.Write(worksheet.TopVisibleRow); //Save to file workbook.SaveToFile("TopVisibleRow.xlsx"); Returns inner lines collection. Read-only. Returns inner rects collection. Read-only. Returns inner ovals collection. Read-only. Returns inner buttons collection. Read-only. Returns inner gourpboxes collection. Read-only. Returns inner labels collection. Read-only. Returns inner listboxes collection. Read-only. Returns inner scollbars collection. Read-only. Returns inner spinners collection. Read-only. Returns inner textboxes collection. Read-only. Returns inner pictures collection. Read-only. Indicates whether worksheet contains some unknown vml shapes. Makes the current sheet the active sheet. Equivalent to clicking the sheet's tab in MS Excel. Protects worksheet with password. Protection password. Password should be less than 15 symbols. Protects worksheet with password.protect the sheet except select lock/unlock cells. The following code illustrates how to protect the sheet except select lock/unlock cells: //Create worksheet Workbook workbook = new Workbook(); Worksheet worksheet = workbook.Worksheets[0]; //Protects the first worksheet's content with password worksheet.Protect("123456"); //Save to file workbook.SaveToFile("Protect.xlsx"); Protection password. Password should be less than 15 symbols. Unprotects this wokrsheet. Unprotects this worksheet using specified password. Password to unprotect. Shapes collection. Gets and sets the filter operator type. Gets and sets the criteria. Indicates whether the two criterias have an "and" relationship. Gets the custom filter in the specific index. The index. Gets and sets the dynamic filter type. Gets and sets the dynamic filter value. Gets and sets the dynamic filter max value. Indicates whether the AutoFilter button for this column is visible. number of items display in Top10Items mode. Highest-valued 10 items displayed True if the second condition is a simple equality. True if the first condition is a simple equality. Highest-valued 10 items displayed (percentage specified in condition) Logical AND of FirstCondtion and SecondCondition. Second condition of autofilter. First condition used. Second condition used Indicates whether auto fit row height when the cells is merged in a row. The default value is false. Indicates whether only fit the rows which height are not customed. The default value is false. Ingored the hidden rows/columns. The default value is false. Remove a date in the filter. Excel color of the left line. Left border line style. Color of the right line. Color of the right line. Right border line style. Excel color of the top line. Top border line style. Excel color of the bottom line. Color of the bottom line. Bottom border line style. First formula. Second formula. The text value in a "text contains" conditional formatting rule. Valid only for FormatType = containsText, notContainsText, beginsWith and endsWith. The default value is null. Type of the comparison operator. Indicates whether font is bold. Indicates whether font is italic. Font excel color. Underline type. Indicates whether font is striked through. Indicates whether font is superscript. Indicates whether font is subscript. Pattern foreground excel color. Pattern foreground color. Pattern background excel color. Pattern background color. XlsFill pattern type. Indicates whether contains font formatting. Indicates whether contains border formatting. Indicates whether contains pattern formatting. Indicates whether format color present. Indicates whether presents pattern color. Indicates whether pattern style was modified. Indicates whether background color present. Indicates whether left border style and color are modified. Indicates right border style and color modified. Indicates whether top border style and color are modified. Indicates whether bottom border style and color are modified. Get the conditional formatting's "ColorScale" instance. The default instance is a "green-red" 2ColorScale . Valid only for type = ColorScale. ColorScale instance Creates a new object that is a copy of the current instance. Parent object for a copy of this instance. A new object that is a copy of this instance. Conditional format color. Read-only. Conditional format background color. Read-only. Conditional format top border color. Read-only. Conditional format bottom border color. Read-only. Conditional format left border color. Read-only. Conditional format right border color. Read-only. Conditional format font color. Read-only. Returns an IconCriteria collection which represents the set of criteria for an icon set conditional formatting rule. Returns or sets an IconSets collection which specifies the icon set used in the conditional format. Returns or sets a Boolean value indicating if the thresholds for an icon set conditional format are determined using percentiles. Returns or sets a Boolean value indicating if the order of icons is reversed for an icon set. Returns or sets a Boolean value indicating if only the icon is displayed for an icon set conditional format. Read all page breaks Image mimes cache for embedding image. Group shapes. UnGroup all group shape. Group shape. UnGroup current group shape. Represents a DigitalSignature in Excel. Certificate object that was used to sign. Signature Comments. Sign Time. Indicates whether this digital signature is valid. Represents a Collection of DigitalSignature in Excel. create a signature and add to DigitalSignatureCollection. Certificate object that was used to sign Signature Comments Sign Time Indicates whehter prompt box has fixed position.. Indicates whehter prompt box is visible.. Vertical position of the prompt box. Vertical position of the prompt box. Removes range from the collection. Range to remove. Returns item by index from the collection. Indicates whether the PivotTable has an autoformat applied. Checkbox "autofit column width on update"which in pivot table Options :Layout Format for Excel 2007 Adds new ole object to the collection. File name. File image. Link type. Returns single item from the collection. Item's index to get. Single item from the collection. Adds new item to the collection. One-based row index of the top-left corner of the new item. One-based column index of the top-left corner of the new item. Height in pixels of the new item. Width in pixels of the new item. Newly added item. Adds new text line to the collection. startPoint endPoint lineShapeType Newly created line. Add new oval shape in the collection. 0-1000 0-1000 0-1000 0-1000 Returns single item from the collection. Item's index to get. Single item from the collection. Adds new item to the collection. One-based row index of the top-left corner of the new item. One-based column index of the top-left corner of the new item. Height in pixels of the new item. Width in pixels of the new item. Newly added item. line color Begin Arrow Head Style Begin Arrow head Length Begin Arrow head Width End Arrow Head Style End Arrow head Length End Arrow head Width DashStyle Style Weight Represents a chart sheet in the workbook. Type of the chart. The following code illustrates how to set ExcelChartType.PyramidBarStacked to ChartType property: //Create worksheet Workbook workbook = new Workbook(); Worksheet worksheet = workbook.Worksheets[0]; //Add data worksheet.Range["A1"].Text = "Jan"; worksheet.Range["B1"].Text = "Feb"; worksheet.Range["C1"].Text = "Mar"; worksheet.Range["A2"].Text = "10"; worksheet.Range["B2"].Text = "20"; worksheet.Range["C2"].Text = "30"; //Create chart and set chart type IChart chart = workbook.Charts.Add(); chart.DataRange = worksheet.Range["A1:C2"]; chart.ChartType = ExcelChartType.PyramidBarStacked; //Save to file workbook.SaveToFile("Chart.xlsx"); DataRange for the chart series. The following code illustrates how to set the data range for the chart: //Create worksheet Workbook workbook = new Workbook(); Worksheet worksheet = workbook.Worksheets[0]; //Add data worksheet.Range["A1"].Text = "Jan"; worksheet.Range["B1"].Text = "Feb"; worksheet.Range["C1"].Text = "Mar"; worksheet.Range["A2"].Text = "10"; worksheet.Range["B2"].Text = "20"; worksheet.Range["C2"].Text = "30"; //Create chart and set range IChart chart = workbook.Charts.Add(); chart.DataRange = worksheet.Range["A1:C2"]; //Save to file workbook.SaveToFile("Chart.xlsx"); True if series are in rows in DataRange;False otherwise. The following code illustrates how to set SeriesDataFromRange property for charts: //Create worksheet Workbook workbook = new Workbook(); Worksheet worksheet = workbook.Worksheets[0]; //Add data worksheet.Range["A1"].Text = "Jan"; worksheet.Range["B1"].Text = "Feb"; worksheet.Range["C1"].Text = "Mar"; worksheet.Range["A2"].Text = "10"; worksheet.Range["B2"].Text = "20"; worksheet.Range["C2"].Text = "30"; //Create chart and set SeriesDataFromRange IChart chart = workbook.Charts.Add(); chart.DataRange = worksheet.Range["A1:C2"]; chart.SeriesDataFromRange = false; //Save to file workbook.SaveToFile("Chart.xlsx"); Page setup for the chart. Read-only. The following code illustrates how to set paper size: //Create worksheet Workbook workbook = new Workbook(); Worksheet worksheet = workbook.Worksheets[0]; //Add data worksheet.Range["A1"].Text = "Jan"; worksheet.Range["B1"].Text = "Feb"; worksheet.Range["C1"].Text = "Mar"; worksheet.Range["A2"].Text = "10"; worksheet.Range["B2"].Text = "20"; worksheet.Range["C2"].Text = "30"; //Create chart and range IChart chart = workbook.Charts.Add(); chart.DataRange = worksheet.Range["A1:C2"]; //Set chart page setup and paper size IChartPageSetup pageSetup = chart.PageSetup; pageSetup.PaperSize = PaperSizeType.A3TransversePaper; //Save to file workbook.SaveToFile("Chart.xlsx"); X coordinate of the upper-left corner of the chart in points (1/72 inch). Y coordinate of the upper-left corner of the chart in points (1/72 inch). Width of the chart in points (1/72 inch). Height of the chart in points (1/72 inch). Name of the chart's worksheet. Primary category axis. Read-only. The following code illustrates how to set the visibility of PrimaryCategoryAxis: //Create worksheet Workbook workbook = new Workbook(); Worksheet worksheet = workbook.Worksheets[0]; //Add data worksheet.Range["A1"].Text = "Jan"; worksheet.Range["B1"].Text = "Feb"; worksheet.Range["C1"].Text = "Mar"; worksheet.Range["A2"].Text = "10"; worksheet.Range["B2"].Text = "20"; worksheet.Range["C2"].Text = "30"; //Create chart and range IChart chart = workbook.Charts.Add(); chart.DataRange = worksheet.Range["A1:C2"]; //Chart category axis IChartCategoryAxis categoryAxis = chart.PrimaryCategoryAxis; //Set visibility categoryAxis.Visible = false; //Save to file workbook.SaveToFile("Chart.xlsx"); Primary value axis. Read-only. The following code illustrates how to set the visibility of PrimaryValueAxis: //Create worksheet Workbook workbook = new Workbook(); Worksheet worksheet = workbook.Worksheets[0]; //Add data worksheet.Range["A1"].Text = "Jan"; worksheet.Range["B1"].Text = "Feb"; worksheet.Range["C1"].Text = "Mar"; worksheet.Range["A2"].Text = "10"; worksheet.Range["B2"].Text = "20"; worksheet.Range["C2"].Text = "30"; //Create chart and range IChart chart = workbook.Charts.Add(); chart.DataRange = worksheet.Range["A1:C2"]; //Chart value axis IChartValueAxis valueAxis = chart.PrimaryValueAxis; //Set visibility valueAxis.Visible = false; //Save to file workbook.SaveToFile("Chart.xlsx"); Primary serie axis. Read-only. The following code illustrates how to set the visibility of PrimarySerieAxis: //Create worksheet Workbook workbook = new Workbook(); Worksheet worksheet = workbook.Worksheets[0]; //Add data worksheet.Range["A1"].Text = "Jan"; worksheet.Range["B1"].Text = "Feb"; worksheet.Range["C1"].Text = "Mar"; worksheet.Range["A2"].Text = "10"; worksheet.Range["B2"].Text = "20"; worksheet.Range["C2"].Text = "30"; //Create chart and range IChart chart = workbook.Charts.Add(); chart.DataRange = worksheet.Range["A1:C2"]; //Set chart type chart.ChartType = ExcelChartType.Surface3D; //Chart series axis IChartSeriesAxis seriesAxis = chart.PrimarySerieAxis; //Set visibility seriesAxis.Visible = false; //Save to file workbook.SaveToFile("Chart.xlsx"); Secondary category axis. Read-only. The following code illustrates how to disable PrimaryCategoryAxis and set SecondaryCategoryAxis for charts: //Create worksheet Workbook workbook = new Workbook(); Worksheet worksheet = workbook.Worksheets[0]; //Add data worksheet.Range["A1"].Text = "Jan"; worksheet.Range["B1"].Text = "Feb"; worksheet.Range["C1"].Text = "Mar"; worksheet.Range["A2"].Text = "10"; worksheet.Range["B2"].Text = "20"; worksheet.Range["C2"].Text = "30"; worksheet.Range["A3"].Value = "100"; worksheet.Range["B3"].Value = "200"; worksheet.Range["C3"].Value = "300"; //Create chart and range Chart chart = worksheet.Charts.Add(); chart.DataRange = worksheet.Range["A1:C3"]; //Set secondary axis IChartSerie serie = chart.Series[1]; serie.UsePrimaryAxis = false; chart.SecondaryCategoryAxis.Visible = true; //Save to file workbook.SaveToFile("Chart.xlsx"); Secondary value axis. Read-only. The following code illustrates how to disable PrimaryValueAxis and set SecondaryValueAxis for charts: //Create worksheet Workbook workbook = new Workbook(); Worksheet worksheet = workbook.Worksheets[0]; //Add data worksheet.Range["A1"].Text = "Jan"; worksheet.Range["B1"].Text = "Feb"; worksheet.Range["C1"].Text = "Mar"; worksheet.Range["A2"].Text = "10"; worksheet.Range["B2"].Text = "20"; worksheet.Range["C2"].Text = "30"; worksheet.Range["A3"].Value = "100"; worksheet.Range["B3"].Value = "200"; worksheet.Range["C3"].Value = "300"; //Create chart and range Chart chart = worksheet.Charts.Add(); chart.DataRange = worksheet.Range["A1:C3"]; //Set secondary axis IChartSerie serie = chart.Series[1]; serie.UsePrimaryAxis = false; chart.SecondaryValueAxis.Visible = true; //Save to file workbook.SaveToFile("Chart.xlsx"); Returns an object that represents the complete chart area for the chart. Read-only. The following code illustrates how to access IChartFrameFormat using ChartArea property and set foreground color for the ChartArea: //Create worksheet Workbook workbook = new Workbook(); Worksheet worksheet = workbook.Worksheets[0]; //Add data worksheet.Range["A1"].Text = "Jan"; worksheet.Range["B1"].Text = "Feb"; worksheet.Range["C1"].Text = "Mar"; worksheet.Range["A2"].Text = "10"; worksheet.Range["B2"].Text = "20"; worksheet.Range["C2"].Text = "30"; //Create chart and range Chart chart = worksheet.Charts.Add(); chart.DataRange = worksheet.Range["A1:C2"]; //Set chart frame format IChartFrameFormat frameFormat = chart.ChartArea; //Set color frameFormat.Fill.ForeColor = System.Drawing.Color.Red; //Save to file workbook.SaveToFile("Chart.xlsx"); Returns plot area frame format. Read-only. The following code illustrates how to access IChartFrameFormat using PlotArea property and set foreground color for the chart's PlotArea: //Create worksheet Workbook workbook = new Workbook(); Worksheet worksheet = workbook.Worksheets[0]; //Add data worksheet.Range["A1"].Text = "Jan"; worksheet.Range["B1"].Text = "Feb"; worksheet.Range["C1"].Text = "Mar"; worksheet.Range["A2"].Text = "10"; worksheet.Range["B2"].Text = "20"; worksheet.Range["C2"].Text = "30"; //Create chart and range Chart chart = worksheet.Charts.Add(); chart.DataRange = worksheet.Range["A1:C2"]; //Set chart frame format IChartFrameFormat frameFormat = chart.PlotArea; //Set color frameFormat.Fill.ForeColor = System.Drawing.Color.Red; //Save to file workbook.SaveToFile("Chart.xlsx"); Represents chart walls. Read-only. The following code illustrates how to access IChartWallOrFloor using Walls property and set foreground color for the chart's Walls: //Create worksheet Workbook workbook = new Workbook(); workbook.LoadFromFile("Sample.xlsx"); Worksheet worksheet = workbook.Worksheets[0]; //Get chart Chart chart = worksheet.Charts[0]; //Set chart wall IChartWallOrFloor wall = chart.Walls; //Set color wall.Fill.FillType = ShapeFillType.SolidColor; wall.Fill.ForeColor = System.Drawing.Color.Red; //Save to file workbook.SaveToFile("Chart.xlsx"); Represents chart floor. Read-only. The following code illustrates how to access IChartWallOrFloor using Floor property and set foreground color for the chart's Floor: //Create worksheet Workbook workbook = new Workbook(); workbook.LoadFromFile("Sample.xlsx"); Worksheet worksheet = workbook.Worksheets[0]; //Get chart Chart chart = worksheet.Charts[0]; //Set chart wall IChartWallOrFloor floor = chart.Floor; //Set color floor.Fill.FillType = ShapeFillType.SolidColor; floor.Fill.ForeColor = System.Drawing.Color.Red; //Save to file workbook.SaveToFile("Chart.xlsx"); Represents charts dataTable object. The following code illustrates how to set HasDataTable to "true" to enable data table and set IChartDataTable.HasBorders to "false" to hide the borders of data table: //Create worksheet Workbook workbook = new Workbook(); Worksheet worksheet = workbook.Worksheets[0]; //Add data worksheet.Range["A1"].Text = "Jan"; worksheet.Range["B1"].Text = "Feb"; worksheet.Range["C1"].Text = "Mar"; worksheet.Range["A2"].Text = "10"; worksheet.Range["B2"].Text = "20"; worksheet.Range["C2"].Text = "30"; //Create chart and range Chart chart = worksheet.Charts.Add(); chart.DataRange = worksheet.Range["A1:C2"]; //Set Chart data table chart.HasDataTable = true; IChartDataTable dataTable = chart.DataTable; //Set border dataTable.HasBorders = false; //Save to file workbook.SaveToFile("Chart.xlsx"); True if the chart has a data table. The following code illustrates how data table can be set for charts: //Create worksheet Workbook workbook = new Workbook(); Worksheet worksheet = workbook.Worksheets[0]; //Add data worksheet.Range["A1"].Text = "Jan"; worksheet.Range["B1"].Text = "Feb"; worksheet.Range["C1"].Text = "Mar"; worksheet.Range["A2"].Text = "10"; worksheet.Range["B2"].Text = "20"; worksheet.Range["C2"].Text = "30"; //Create chart and range Chart chart = worksheet.Charts.Add(); chart.DataRange = worksheet.Range["A1:C2"]; //Set Chart data table chart.HasDataTable = true; //Save to file workbook.SaveToFile("Chart.xlsx"); Represents chart legend. The following code illustrates how to access IChartLegend using IChart.Legend property and set IChartLegend.Position to LegendPositionType.Left: //Create worksheet Workbook workbook = new Workbook(); Worksheet worksheet = workbook.Worksheets[0]; //Add data worksheet.Range["A1"].Text = "Jan"; worksheet.Range["B1"].Text = "Feb"; worksheet.Range["C1"].Text = "Mar"; worksheet.Range["A2"].Text = "10"; worksheet.Range["B2"].Text = "20"; worksheet.Range["C2"].Text = "30"; //Create chart and range Chart chart = worksheet.Charts.Add(); chart.DataRange = worksheet.Range["A1:C2"]; //Set chart legend and legend position IChartLegend legend = chart.Legend; legend.Position = LegendPositionType.Left; //Save to file workbook.SaveToFile("Chart.xlsx"); True if the chart has a legend object. The following code illustrates how to set HasLegend property: //Create worksheet Workbook workbook = new Workbook(); Worksheet worksheet = workbook.Worksheets[0]; //Add data worksheet.Range["A1"].Text = "Jan"; worksheet.Range["B1"].Text = "Feb"; worksheet.Range["C1"].Text = "Mar"; worksheet.Range["A2"].Text = "10"; worksheet.Range["B2"].Text = "20"; worksheet.Range["C2"].Text = "30"; //Create chart and range Chart chart = worksheet.Charts.Add(); chart.DataRange = worksheet.Range["A1:C2"]; //Set hasLegend chart.HasLegend = false; //Save to file workbook.SaveToFile("Chart.xlsx"); Returns or sets the rotation of the 3-D chart view (the rotation of the plot area around the z-axis, in degrees).(0 to 360 degrees). The following code illustrates how to set Rotation for 3-D charts: //Create worksheet Workbook workbook = new Workbook(); Worksheet worksheet = workbook.Worksheets[0]; //Add data worksheet.Range["A1"].Text = "Jan"; worksheet.Range["B1"].Text = "Feb"; worksheet.Range["C1"].Text = "Mar"; worksheet.Range["A2"].Text = "10"; worksheet.Range["B2"].Text = "20"; worksheet.Range["C2"].Text = "30"; //Create chart and range Chart chart = worksheet.Charts.Add(); chart.DataRange = worksheet.Range["A1:C2"]; //Set Chart rotation chart.ChartType = ExcelChartType.Column3DClustered; chart.Rotation = 50; //Save to file workbook.SaveToFile("Chart.xlsx"); Returns or sets the elevation of the 3-D chart view, in degrees (?0 to +90 degrees). The following code illustrates how to set Rotation for 3-D charts: //Create worksheet Workbook workbook = new Workbook(); Worksheet worksheet = workbook.Worksheets[0]; //Add data worksheet.Range["A1"].Text = "Jan"; worksheet.Range["B1"].Text = "Feb"; worksheet.Range["C1"].Text = "Mar"; worksheet.Range["A2"].Text = "10"; worksheet.Range["B2"].Text = "20"; worksheet.Range["C2"].Text = "30"; //Create chart and range Chart chart = worksheet.Charts.Add(); chart.DataRange = worksheet.Range["A1:C2"]; //Set Chart elevation chart.ChartType = ExcelChartType.Column3DClustered; chart.Elevation = 50; //Save to file workbook.SaveToFile("Chart.xlsx"); Returns or sets the perspective for the 3-D chart view (0 to 100). The following code illustrates how to set Perspective for the charts: //Create worksheet Workbook workbook = new Workbook(); Worksheet worksheet = workbook.Worksheets[0]; //Add data worksheet.Range["A1"].Text = "Jan"; worksheet.Range["B1"].Text = "Feb"; worksheet.Range["C1"].Text = "Mar"; worksheet.Range["A2"].Text = "10"; worksheet.Range["B2"].Text = "20"; worksheet.Range["C2"].Text = "30"; //Create chart and range Chart chart = worksheet.Charts.Add(); chart.DataRange = worksheet.Range["A1:C2"]; //Set Chart perspective chart.ChartType = ExcelChartType.Column3DClustered; chart.Perspective = 70; //Save to file workbook.SaveToFile("Chart.xlsx"); Returns or sets the height of a 3-D chart as a percentage of the chart width (between 5 and 500 percent). The following code illustrates how to set HeightPercent to a Column 3D chart: //Create worksheet Workbook workbook = new Workbook(); Worksheet worksheet = workbook.Worksheets[0]; //Add data worksheet.Range["A1"].Text = "Jan"; worksheet.Range["B1"].Text = "Feb"; worksheet.Range["C1"].Text = "Mar"; worksheet.Range["A2"].Text = "10"; worksheet.Range["B2"].Text = "20"; worksheet.Range["C2"].Text = "30"; //Create chart and range Chart chart = worksheet.Charts.Add(); chart.DataRange = worksheet.Range["A1:C2"]; //Set Chart height percent chart.ChartType = ExcelChartType.Column3DClustered; chart.AutoScaling = false; chart.HeightPercent = 50; //Save to file workbook.SaveToFile("Chart.xlsx"); Returns or sets the depth of a 3-D chart as a percentage of the chart width (between 20 and 2000 percent). The following code illustrates how to set DepthPercent to a Column 3D chart: //Create worksheet Workbook workbook = new Workbook(); Worksheet worksheet = workbook.Worksheets[0]; //Add data worksheet.Range["A1"].Text = "Jan"; worksheet.Range["B1"].Text = "Feb"; worksheet.Range["C1"].Text = "Mar"; worksheet.Range["A2"].Text = "10"; worksheet.Range["B2"].Text = "20"; worksheet.Range["C2"].Text = "30"; //Create chart and range Chart chart = worksheet.Charts.Add(); chart.DataRange = worksheet.Range["A1:C2"]; //Set Chart depth percent chart.ChartType = ExcelChartType.Column3DClustered; chart.DepthPercent = 500; //Save to file workbook.SaveToFile("Chart.xlsx"); Returns or sets the distance between the data series in a 3-D chart, as a percentage of the marker width.( 0 - 500 ) The following code illustrates how to set GapDepth to a Column 3D chart: //Create worksheet Workbook workbook = new Workbook(); Worksheet worksheet = workbook.Worksheets[0]; //Add data worksheet.Range["A1"].Text = "Jan"; worksheet.Range["B1"].Text = "Feb"; worksheet.Range["C1"].Text = "Mar"; worksheet.Range["A2"].Text = "10"; worksheet.Range["B2"].Text = "20"; worksheet.Range["C2"].Text = "30"; //Create chart and range Chart chart = worksheet.Charts.Add(); chart.DataRange = worksheet.Range["A1:C2"]; //Set gap depth chart.ChartType = ExcelChartType.Column3DClustered; chart.GapDepth = 450; //Save to file workbook.SaveToFile("Chart.xlsx"); True if the chart axes are at right angles, independent of chart rotation or elevation. The following code illustrates how RightAngleAxes can be set for charts: //Create worksheet Workbook workbook = new Workbook(); Worksheet worksheet = workbook.Worksheets[0]; //Add data worksheet.Range["A1"].Text = "Jan"; worksheet.Range["B1"].Text = "Feb"; worksheet.Range["C1"].Text = "Mar"; worksheet.Range["A2"].Text = "10"; worksheet.Range["B2"].Text = "20"; worksheet.Range["C2"].Text = "30"; //Create chart and range Chart chart = worksheet.Charts.Add(); chart.DataRange = worksheet.Range["A1:C2"]; //Set Chart rotation and RightAngleAxes chart.ChartType = ExcelChartType.Column3DClustered; chart.Rotation = 50; chart.RightAngleAxes = true; //Save to file workbook.SaveToFile("Chart.xlsx"); True if Microsoft Excel scales a 3-D chart so that it's closer in size to the equivalent 2-D chart. The following code illustrates how to set auto scaling for charts: //Create worksheet Workbook workbook = new Workbook(); Worksheet worksheet = workbook.Worksheets[0]; //Add data worksheet.Range["A1"].Text = "Jan"; worksheet.Range["B1"].Text = "Feb"; worksheet.Range["C1"].Text = "Mar"; worksheet.Range["A2"].Text = "10"; worksheet.Range["B2"].Text = "20"; worksheet.Range["C2"].Text = "30"; //Create chart and range Chart chart = worksheet.Charts.Add(); chart.DataRange = worksheet.Range["A1:C2"]; //Set auto scaling chart.ChartType = ExcelChartType.Column3DClustered; chart.HeightPercent = 50; chart.AutoScaling = true; //Save to file workbook.SaveToFile("Chart.xlsx"); True if gridlines are drawn two-dimensionally on a 3-D chart. Indicates whether chart has plot area. Represents the way that blank cells are plotted on a chart. True if only visible cells are plotted. False if both visible and hidden cells are plotted. The following code illustrates how to set PlotVisibleOnly to "true" so that chart plots all the cells within the chart's DataRange: //Create worksheet Workbook workbook = new Workbook(); Worksheet worksheet = workbook.Worksheets[0]; //Add data worksheet.Range["A1"].Text = "Jan"; worksheet.Range["B1"].Text = "Feb"; worksheet.Range["C1"].Text = "Mar"; worksheet.Range["A2"].Text = "10"; worksheet.Range["B2"].Text = "20"; worksheet.Range["C2"].Text = "30"; //Hide column and create chart worksheet.Columns[2].ColumnWidth = 0; Chart chart = worksheet.Charts.Add(); chart.DataRange = worksheet.Range["A1:C2"]; //Set Plot visible only chart.PlotVisibleOnly = true; //Save to file workbook.SaveToFile("Chart.xlsx"); True if Microsoft Excel resizes the chart to match the size of the chart sheet window. False if the chart size isn't attached to the window size. Applies only to chart sheets. Gets or sets the pivot source. The pivot source. Gets or sets the type of the pivot chart. The type of the pivot chart. Gets or sets a value indicating whether [show all field buttons]. true if [show all field buttons]; otherwise, false. Gets or sets a value indicating whether [show value field buttons]. true if [show value field buttons]; otherwise, false. Gets or sets a value indicating whether [show axis field buttons]. true if [show axis field buttons]; otherwise, false. Gets or sets a value indicating whether [show legend field buttons]. true if [show legend field buttons]; otherwise, false. Gets or sets a value indicating whether [show report filter field buttons]. true if [show report filter field buttons]; otherwise, false. Represents an axis on the chart. Gets or sets number format string. The following code illustrates how to set currency format "$#,##0_);($#,##0)" to NumberFormat to display value in the PrimaryValueAxis as currency: //Create worksheet Workbook workbook = new Workbook(); Worksheet worksheet = workbook.Worksheets[0]; //Add data worksheet.Range["A1"].Text = "Jan"; worksheet.Range["B1"].Text = "Feb"; worksheet.Range["C1"].Text = "Mar"; worksheet.Range["A2"].Text = "10000"; worksheet.Range["B2"].Text = "20000"; worksheet.Range["C2"].Text = "30000"; //Create chart and set range Chart chart = worksheet.Charts.Add(); chart.DataRange = worksheet.Range["A1:C2"]; //Set chart value axis IChartAxis chartAxis = chart.PrimaryValueAxis; //Set number format chartAxis.NumberFormat = @"$#,##0_);($#,##0)"; //Save to file workbook.SaveToFile("Chart.xlsx"); Returns type of the axis. Read-only. The following code illustrates how to access the AxisType property: //Create worksheet Workbook workbook = new Workbook(); Worksheet worksheet = workbook.Worksheets[0]; //Add data worksheet.Range["A1"].Text = "Jan"; worksheet.Range["B1"].Text = "Feb"; worksheet.Range["C1"].Text = "Mar"; worksheet.Range["A2"].Text = "10000"; worksheet.Range["B2"].Text = "20000"; worksheet.Range["C2"].Text = "30000"; //Create chart and set range Chart chart = worksheet.Charts.Add(); chart.DataRange = worksheet.Range["A1:C2"]; //Set chart value axis IChartAxis chartAxis = chart.PrimaryValueAxis; //Get axis type Console.WriteLine(chartAxis.AxisType); //Save to file workbook.SaveToFile("Chart.xlsx"); Axis title. The following code illustrates how to set Title for the IChart.PrimaryCategoryAxis: //Create worksheet Workbook workbook = new Workbook(); Worksheet worksheet = workbook.Worksheets[0]; //Add data worksheet.Range["A1"].Text = "Jan"; worksheet.Range["B1"].Text = "Feb"; worksheet.Range["C1"].Text = "Mar"; worksheet.Range["A2"].Text = "10"; worksheet.Range["B2"].Text = "20"; worksheet.Range["C2"].Text = "30"; //Create chart and set range Chart chart = worksheet.Charts.Add(); chart.DataRange = worksheet.Range["A1:C2"]; //Set chart category axis IChartAxis categoryAxis = chart.PrimaryCategoryAxis; //Set category title categoryAxis.Title = "Categories"; //Save to file workbook.SaveToFile("Chart.xlsx"); Text rotation angle. Should be integer value between -90 and 90. The following code illustrates how to set TextRotationAngle for IChart.PrimaryCategoryAxis: //Create worksheet Workbook workbook = new Workbook(); Worksheet worksheet = workbook.Worksheets[0]; //Add data worksheet.Range["A1"].Text = "Jan"; worksheet.Range["B1"].Text = "Feb"; worksheet.Range["C1"].Text = "Mar"; worksheet.Range["A2"].Text = "10"; worksheet.Range["B2"].Text = "20"; worksheet.Range["C2"].Text = "30"; //Create chart and set range Chart chart = worksheet.Charts.Add(); chart.DataRange = worksheet.Range["A1:C2"]; //Set chart category axis IChartAxis chartAxis = chart.PrimaryCategoryAxis; //Set text rotation angle chartAxis.TextRotationAngle = 90; //Save to file workbook.SaveToFile("Chart.xlsx"); Returns text area for the axis title. Read-only. The following code illustrates how to set foreground color to IChart.PrimaryCategoryAxis's title area using TitleArea property: //Create worksheet Workbook workbook = new Workbook(); Worksheet worksheet = workbook.Worksheets[0]; //Add data worksheet.Range["A1"].Text = "Jan"; worksheet.Range["B1"].Text = "Feb"; worksheet.Range["C1"].Text = "Mar"; worksheet.Range["A2"].Text = "10"; worksheet.Range["B2"].Text = "20"; worksheet.Range["C2"].Text = "30"; //Create chart and set range Chart chart = worksheet.Charts.Add(); chart.DataRange = worksheet.Range["A1:C2"]; //Set chart category axis IChartAxis categoryAxis = chart.PrimaryCategoryAxis; //Set category title categoryAxis.Title = "Categories"; //Set title area IChartTextArea titleArea = categoryAxis.TitleArea; //Set color titleArea.FrameFormat.Fill.ForeKnownColor = ExcelColors.Red; //Save to file workbook.SaveToFile("Chart.xlsx"); Returns font used for axis text displaying. Read-only. The following code illustrates how to set font color to the IChart.PrimaryCategoryAxis's category labels using Font property: //Create worksheet Workbook workbook = new Workbook(); Worksheet worksheet = workbook.Worksheets[0]; //Add data worksheet.Range["A1"].Text = "Jan"; worksheet.Range["B1"].Text = "Feb"; worksheet.Range["C1"].Text = "Mar"; worksheet.Range["A2"].Text = "10"; worksheet.Range["B2"].Text = "20"; worksheet.Range["C2"].Text = "30"; //Create chart and set range Chart chart = worksheet.Charts.Add(); chart.DataRange = worksheet.Range["A1:C2"]; //Set chart axis IChartAxis chartAxis = chart.PrimaryCategoryAxis; //Set font color chartAxis.Font.Color = Color.Red; //Save to file workbook.SaveToFile("Chart.xlsx"); Represents major gridLines. Read-only. The following code illustrates how to access MajorGridLines of IChart.PrimaryCategoryAxis and set colors to it: //Create worksheet Workbook workbook = new Workbook(); Worksheet worksheet = workbook.Worksheets[0]; //Add data worksheet.Range["A1"].Text = "Jan"; worksheet.Range["B1"].Text = "Feb"; worksheet.Range["C1"].Text = "Mar"; worksheet.Range["A2"].Text = "10"; worksheet.Range["B2"].Text = "20"; worksheet.Range["C2"].Text = "30"; //Create chart and set range Chart chart = worksheet.Charts.Add(); chart.DataRange = worksheet.Range["A1:C2"]; //Set chart axis IChartAxis chartAxis = chart.PrimaryCategoryAxis; //Set visibility chartAxis.HasMajorGridLines = true; //Set grid lines IChartGridLine gridLine = chartAxis.MajorGridLines; gridLine.LineProperties.Color = Color.Red; //Save to file workbook.SaveToFile("Chart.xlsx"); Represents minor gridLines. Read-only. The following code illustrates how to access MinorGridLines of IChart.PrimaryCategoryAxis and set colors to it: //Create worksheet Workbook workbook = new Workbook(); Worksheet worksheet = workbook.Worksheets[0]; //Add data worksheet.Range["A1"].Text = "Jan"; worksheet.Range["B1"].Text = "Feb"; worksheet.Range["C1"].Text = "Mar"; worksheet.Range["A2"].Text = "10"; worksheet.Range["B2"].Text = "20"; worksheet.Range["C2"].Text = "30"; //Create chart and set range Chart chart = worksheet.Charts.Add(); chart.DataRange = worksheet.Range["A1:C2"]; //Set chart axis IChartAxis chartAxis = chart.PrimaryCategoryAxis; //Set visibility chartAxis.HasMinorGridLines = true; //Set grid lines IChartGridLine gridLine = chartAxis.MinorGridLines; gridLine.LineProperties.Color = Color.Red; //Save to file workbook.SaveToFile("Chart.xlsx"); Gets or sets if axis has minor gridlines. The following code illustrates how to set visibility of MinorGridLines of IChart.PrimaryCategoryAxis: //Create worksheet Workbook workbook = new Workbook(); Worksheet worksheet = workbook.Worksheets[0]; //Add data worksheet.Range["A1"].Text = "Jan"; worksheet.Range["B1"].Text = "Feb"; worksheet.Range["C1"].Text = "Mar"; worksheet.Range["A2"].Text = "10"; worksheet.Range["B2"].Text = "20"; worksheet.Range["C2"].Text = "30"; //Create chart and set range Chart chart = worksheet.Charts.Add(); chart.DataRange = worksheet.Range["A1:C2"]; //Set chart axis IChartAxis chartAxis = chart.PrimaryCategoryAxis; //Set visibility chartAxis.HasMinorGridLines = true; //Save to file workbook.SaveToFile("Chart.xlsx"); Gets or sets if axis has major gridlines. The following code illustrates how to set visibility of MajorGridLines of IChart.PrimaryCategoryAxis: //Create worksheet Workbook workbook = new Workbook(); Worksheet worksheet = workbook.Worksheets[0]; //Add data worksheet.Range["A1"].Text = "Jan"; worksheet.Range["B1"].Text = "Feb"; worksheet.Range["C1"].Text = "Mar"; worksheet.Range["A2"].Text = "10"; worksheet.Range["B2"].Text = "20"; worksheet.Range["C2"].Text = "30"; //Create chart and set range Chart chart = worksheet.Charts.Add(); chart.DataRange = worksheet.Range["A1:C2"]; //Set chart axis IChartAxis chartAxis = chart.PrimaryCategoryAxis; //Set visibility chartAxis.HasMajorGridLines = true; //Save to file workbook.SaveToFile("Chart.xlsx"); Represents minor tick marks. The following code illustrates how to set TickMarkType.TickMarkCross to MinorTickMark: //Create worksheet Workbook workbook = new Workbook(); Worksheet worksheet = workbook.Worksheets[0]; //Add data worksheet.Range["A1"].Text = "Jan"; worksheet.Range["B1"].Text = "Feb"; worksheet.Range["C1"].Text = "Mar"; worksheet.Range["A2"].Text = "10"; worksheet.Range["B2"].Text = "20"; worksheet.Range["C2"].Text = "30"; //Create chart and set range Chart chart = worksheet.Charts.Add(); chart.DataRange = worksheet.Range["A1:C2"]; //Set chart category axis IChartAxis categoryAxis = chart.PrimaryCategoryAxis; //Set category minor tick type categoryAxis.MinorTickMark = TickMarkType.TickMarkCross; //Save to file workbook.SaveToFile("Chart.xlsx"); Represents major tick marks. The following code illustrates how to set TickMarkType.TickMarkCross to MajorTickMark: //Create worksheet Workbook workbook = new Workbook(); Worksheet worksheet = workbook.Worksheets[0]; //Add data worksheet.Range["A1"].Text = "Jan"; worksheet.Range["B1"].Text = "Feb"; worksheet.Range["C1"].Text = "Mar"; worksheet.Range["A2"].Text = "10"; worksheet.Range["B2"].Text = "20"; worksheet.Range["C2"].Text = "30"; //Create chart and set range Chart chart = worksheet.Charts.Add(); chart.DataRange = worksheet.Range["A1:C2"]; //Set chart category axis IChartAxis categoryAxis = chart.PrimaryCategoryAxis; //Set category minor tick type categoryAxis.MajorTickMark = TickMarkType.TickMarkCross; //Save to file workbook.SaveToFile("Chart.xlsx"); Represents chart border. Read only. The following code illustrates how to set color to IChart.PrimaryCategoryAxis's border using Border property: //Create worksheet Workbook workbook = new Workbook(); Worksheet worksheet = workbook.Worksheets[0]; //Add data worksheet.Range["A1"].Text = "Jan"; worksheet.Range["B1"].Text = "Feb"; worksheet.Range["C1"].Text = "Mar"; worksheet.Range["A2"].Text = "10"; worksheet.Range["B2"].Text = "20"; worksheet.Range["C2"].Text = "30"; //Create chart and set range Chart chart = worksheet.Charts.Add(); chart.DataRange = worksheet.Range["A1:C2"]; //Set chart category axis IChartAxis categoryAxis = chart.PrimaryCategoryAxis; //Set border and color IChartBorder border = categoryAxis.Border; border.Color = Color.Red; //Save to file workbook.SaveToFile("Chart.xlsx"); Represents tick label position. The following code illustrates how to set TickLabelPositionType.TickLabelPositionHigh to TickLabelPosition property: //Create worksheet Workbook workbook = new Workbook(); Worksheet worksheet = workbook.Worksheets[0]; //Add data worksheet.Range["A1"].Text = "Jan"; worksheet.Range["B1"].Text = "Feb"; worksheet.Range["C1"].Text = "Mar"; worksheet.Range["A2"].Text = "10"; worksheet.Range["B2"].Text = "20"; worksheet.Range["C2"].Text = "30"; //Create chart and set range Chart chart = worksheet.Charts.Add(); chart.DataRange = worksheet.Range["A1:C2"]; //Set chart category axis IChartAxis categoryAxis = chart.PrimaryCategoryAxis; //Set category tick labels position categoryAxis.TickLabelPosition = TickLabelPositionType.TickLabelPositionHigh; //Save to file workbook.SaveToFile("Chart.xlsx"); Indicates is axis is visible. The following code illustrates how to set visibility of IChart.PrimaryCategoryAxis: //Create worksheet Workbook workbook = new Workbook(); Worksheet worksheet = workbook.Worksheets[0]; //Add data worksheet.Range["A1"].Text = "Jan"; worksheet.Range["B1"].Text = "Feb"; worksheet.Range["C1"].Text = "Mar"; worksheet.Range["A2"].Text = "10"; worksheet.Range["B2"].Text = "20"; worksheet.Range["C2"].Text = "30"; //Create chart and set range Chart chart = worksheet.Charts.Add(); chart.DataRange = worksheet.Range["A1:C2"]; //Set chart axis IChartAxis chartAxis = chart.PrimaryCategoryAxis; //Set visibility chartAxis.Visible = false; //Save to file workbook.SaveToFile("Chart.xlsx"); Represents alignment for the tick label. Returns the Shadow properties.Read-only. Gets the three_ D. The three_ D. axis's text direction Represents chart border. Provides Border options for Chart Area and Plot Area. Color of line. The following code illustrates the use of Color property: //Create worksheet Workbook workbook = new Workbook(); workbook.LoadFromFile("Sample.xlsx"); Worksheet worksheet = workbook.Worksheets[0]; //Create chart and set range IChart chart = worksheet.Charts.Add(); chart.DataRange = worksheet.Range["B2:C6"]; //Set line color for chart area border chart.ChartArea.Border.Color = Color.DarkOrange; //Save to file workbook.SaveToFile("Chart.xlsx"); Line pattern. The following code illustrates the use of LinePattern property: //Create worksheet Workbook workbook = new Workbook(); workbook.LoadFromFile("Sample.xlsx"); Worksheet worksheet = workbook.Worksheets[0]; //Create chart and set range IChart chart = worksheet.Charts.Add(); chart.DataRange = worksheet.Range["B2:C6"]; //Set line pattern for plot area border chart.ChartArea.Border.Pattern = ChartLinePatternType.DashDotDot; //Save to file workbook.SaveToFile("Chart.xlsx"); Weight of line. The following code illustrates the use of Weight property: //Create worksheet Workbook workbook = new Workbook(); workbook.LoadFromFile("Sample.xlsx"); Worksheet worksheet = workbook.Worksheets[0]; //Create chart and set range IChart chart = worksheet.Charts.Add(); chart.DataRange = worksheet.Range["B2:C6"]; //Set line weight for plot area border chart.ChartArea.Border.Weight = ChartLineWeightType.Wide; //Save to file workbook.SaveToFile("Chart.xlsx"); If true - default format; otherwise custom. Custom format for line color. Line color index. Returns the transparency level of the specified Solid color shaded XlsFill as a floating-point value from 0.0 (Clear) through 1.0(Opaque). The following code illustrates the use of Weight property: //Create worksheet Workbook workbook = new Workbook(); workbook.LoadFromFile("Sample.xlsx"); Worksheet worksheet = workbook.Worksheets[0]; //Create chart and set range IChart chart = worksheet.Charts.Add(); chart.DataRange = worksheet.Range["B2:C6"]; //Set the transparency level of the solid color chart.ChartArea.Border.Transparency =0.85; chart.ChartArea.Border.Color = Color.Red; //Save to file workbook.SaveToFile("Chart.xlsx"); Represents category axis of the chart. Value axis / category crossing point (2D charts only). Frequency of labels. Frequency of tick marks. Represents the number of categories or series between tick-mark labels. The following code illustrates how to set TickLabelSpacing for chart axis: //Create worksheet Workbook workbook = new Workbook(); workbook.LoadFromFile("Sample.xlsx"); Worksheet worksheet = workbook.Worksheets[0]; //Create chart and set range IChart chart = worksheet.Charts.Add(); chart.DataRange = worksheet.Range["A1:F2"]; //Set chart category axis IChartCategoryAxis categoryAxis = chart.PrimaryCategoryAxis; //Set tick label spacing categoryAxis.TickLabelSpacing = 2; //Save to file workbook.SaveToFile("Chart.xlsx"); Represents the number of categories or series between tick marks. The following code illustrates how to set TickMarkSpacing for chart axis: //Create worksheet Workbook workbook = new Workbook(); workbook.LoadFromFile("Sample.xlsx"); Worksheet worksheet = workbook.Worksheets[0]; //Create chart and set range IChart chart = worksheet.Charts.Add(); chart.DataRange = worksheet.Range["A1:F2"]; //Set chart category axis IChartCategoryAxis categoryAxis = chart.PrimaryCategoryAxis; //Set tick mark spacing categoryAxis.TickMarkSpacing = 2; //Save to file workbook.SaveToFile("Chart.xlsx"); If true - cuts unused plot area. Default for area, surface charts. The following code illustrates how to set AxisBetweenCategories to "false" so that chart serie would be plotted on the tick marks: //Create worksheet Workbook workbook = new Workbook(); workbook.LoadFromFile("Sample.xlsx"); Worksheet worksheet = workbook.Worksheets[0]; //Create chart and set range IChart chart = worksheet.Charts.Add(); chart.DataRange = worksheet.Range["A1:C2"]; //Set chart category axis IChartCategoryAxis categoryAxis = chart.PrimaryCategoryAxis; //Set category axis IsBetween categoryAxis.AxisBetweenCategories = false; //Save to file workbook.SaveToFile("Chart.xlsx"); Category labels for the chart. The following code illustrates how to access the category labels range: //Create worksheet Workbook workbook = new Workbook(); workbook.LoadFromFile("Sample.xlsx"); Worksheet worksheet = workbook.Worksheets[0]; //Create chart and set range IChart chart = worksheet.Charts.Add(); chart.DataRange = worksheet.Range["A1:C2"]; //Set chart category axis IChartCategoryAxis categoryAxis = chart.PrimaryCategoryAxis; //Get category label range . Output will be A1:C1 Console.WriteLine(categoryAxis.CategoryLabels.RangeAddressLocal); //Save to file workbook.SaveToFile("Chart.xlsx"); Entered directly category labels for the chart. Represents axis category type. The following code illustrates how to set CategoryType.Time to CategoryType: //Create worksheet Workbook workbook = new Workbook(); workbook.LoadFromFile("Sample.xlsx"); Worksheet worksheet = workbook.Worksheets[0]; //Create chart and set range IChart chart = worksheet.Charts.Add(); chart.DataRange = worksheet.Range["A1:C2"]; //Set chart category axis IChartCategoryAxis categoryAxis = chart.PrimaryCategoryAxis; //Set category type categoryAxis.CategoryType = CategoryType.Time; //Set base unit categoryAxis.BaseUnit = ChartBaseUnitType.Year; //Save to file workbook.SaveToFile("Chart.xlsx"); Represents distance between the labels and axis line. The value can be from 0 through 1000. Represents base unit for the specified category axis. The following code illustrates how to set BaseUnit for IChartCategoryAxis: //Create worksheet Workbook workbook = new Workbook(); workbook.LoadFromFile("Sample.xlsx"); Worksheet worksheet = workbook.Worksheets[0]; //Create chart and set range IChart chart = worksheet.Charts.Add(); chart.DataRange = worksheet.Range["A1:C2"]; //Set chart category axis IChartCategoryAxis categoryAxis = chart.PrimaryCategoryAxis; //Set category type categoryAxis.CategoryType = CategoryType.Time; //Set base unit categoryAxis.BaseUnit = ChartBaseUnitType.Year; //Save to file workbook.SaveToFile("Chart.xlsx"); True if use automatic base units for the specified category axis. Represens the major unit scale value for the category axis when the CategoryType property is set to TimeScale. Represens the minor unit scale value for the category axis when the CategoryType property is set to TimeScale. Represents a collection of chart data labels. Indicates whether series name is in data labels. The following code illustrates how to access the IChartDataLabels and set to shows the serie name: //Create worksheet Workbook workbook = new Workbook(); workbook.LoadFromFile("Sample.xlsx"); Worksheet worksheet = workbook.Worksheets[0]; //Create chart and set range Chart chart = worksheet.Charts.Add(); chart.DataRange = worksheet.Range["A1:C3"]; //Set chart type chart.ChartType = ExcelChartType.ColumnClustered; //Get the chart serie IChartSerie serie = chart.Series[0]; //Get serie data labels IChartDataLabels dataLabels = serie.DataPoints.DefaultDataPoint.DataLabels; //Set the data label to show the serie name dataLabels.HasSeriesName = true; //Save to file workbook.SaveToFile("Chart.xlsx"); Indicates whether category name is in data labels. The following code illustrates how to access the IChartDataLabels and set to shows the categories: //Create worksheet Workbook workbook = new Workbook(); workbook.LoadFromFile("Sample.xlsx"); Worksheet worksheet = workbook.Worksheets[0]; //Create chart and set range Chart chart = worksheet.Charts.Add(); chart.DataRange = worksheet.Range["A1:C3"]; //Set chart type chart.ChartType = ExcelChartType.ColumnClustered; //Get the chart serie IChartSerie serie = chart.Series[0]; //Get serie data labels IChartDataLabels dataLabels = serie.DataPoints.DefaultDataPoint.DataLabels; //Set the data label to show the category names dataLabels.HasCategoryName = true; //Save to file workbook.SaveToFile("Chart.xlsx"); Indicates whether value is in data labels. The following code illustrates how to access the IChartDataLabels and set to shows the values: //Create worksheet Workbook workbook = new Workbook(); workbook.LoadFromFile("Sample.xlsx"); Worksheet worksheet = workbook.Worksheets[0]; //Create chart and set range Chart chart = worksheet.Charts.Add(); chart.DataRange = worksheet.Range["A1:C3"]; //Set chart type chart.ChartType = ExcelChartType.ColumnClustered; //Get the chart serie IChartSerie serie = chart.Series[0]; //Get serie data labels IChartDataLabels dataLabels = serie.DataPoints.DefaultDataPoint.DataLabels; //Set the data label to show the values dataLabels.HasValue = true; //Save to file workbook.SaveToFile("Chart.xlsx"); Indicates whether percentage is in data labels. The following code illustrates how to access the IChartDataLabels and set to shows the percentage values: //Create worksheet Workbook workbook = new Workbook(); workbook.LoadFromFile("Sample.xlsx"); Worksheet worksheet = workbook.Worksheets[0]; //Create chart and set range Chart chart = worksheet.Charts.Add(); chart.DataRange = worksheet.Range["A1:C2"]; //Set chart type chart.ChartType = ExcelChartType.Pie; //Get the chart serie IChartSerie serie = chart.Series[0]; //Get serie data labels IChartDataLabels dataLabels = serie.DataPoints.DefaultDataPoint.DataLabels; //Set the data label to show the percentage values dataLabels.HasPercentage = true; //Save to file workbook.SaveToFile("Chart.xlsx"); Indicates whether bubble size is in data labels. The following code illustrates how to access the IChartDataLabels and set to shows the bubble sizes: //Create worksheet Workbook workbook = new Workbook(); workbook.LoadFromFile("Sample.xlsx"); Worksheet worksheet = workbook.Worksheets[0]; //Create chart and set range Chart chart = worksheet.Charts.Add(); chart.DataRange = worksheet.Range["A1:C3"]; //Set chart type chart.ChartType = ExcelChartType.Bubble; //Get the chart serie IChartSerie serie = chart.Series[0]; //Get serie data labels IChartDataLabels dataLabels = serie.DataPoints.DefaultDataPoint.DataLabels; //Set the data label to show the bubble sizes dataLabels.HasBubbleSize = true; //Save to file workbook.SaveToFile("Chart.xlsx"); Delimeter. The following code illustrates how to access the IChartDataLabels and set delimiter for data labels: //Create worksheet Workbook workbook = new Workbook(); workbook.LoadFromFile("Sample.xlsx"); Worksheet worksheet = workbook.Worksheets[0]; //Create chart and set range Chart chart = worksheet.Charts.Add(); chart.DataRange = worksheet.Range["A1:C3"]; //Set chart type chart.ChartType = ExcelChartType.ColumnClustered; //Get the chart serie IChartSerie serie = chart.Series[0]; //Get serie data labels IChartDataLabels dataLabels = serie.DataPoints.DefaultDataPoint.DataLabels; //Set ' ' symbol as separator for data labels dataLabels.HasValue = true; dataLabels.HasSeriesName = true; dataLabels.Delimiter =" "; //Save to file workbook.SaveToFile("Chart.xlsx"); Indicates whether legend key is in data labels. The following code illustrates how to access the IChartDataLabels and set to shows the legend keys: //Create worksheet Workbook workbook = new Workbook(); workbook.LoadFromFile("Sample.xlsx"); Worksheet worksheet = workbook.Worksheets[0]; //Create chart and set range Chart chart = worksheet.Charts.Add(); chart.DataRange = worksheet.Range["A1:C3"]; //Set chart type chart.ChartType = ExcelChartType.ColumnClustered; //Get the chart serie IChartSerie serie = chart.Series[0]; //Get serie data labels IChartDataLabels dataLabels = serie.DataPoints.DefaultDataPoint.DataLabels; //Set the data label to show the legend key dataLabels.HasValue = true; dataLabels.HasLegendKey = true; //Save to file workbook.SaveToFile("Chart.xlsx"); Represents data labels position. The following code illustrates how to access the IChartDataLabels and set to the position for labels: //Create worksheet Workbook workbook = new Workbook(); workbook.LoadFromFile("Sample.xlsx"); Worksheet worksheet = workbook.Worksheets[0]; //Create chart and set range Chart chart = worksheet.Charts.Add(); chart.DataRange = worksheet.Range["A1:C2"]; //Set chart type chart.ChartType = ExcelChartType.Pie; //Get the chart serie IChartSerie serie = chart.Series[0]; //Get serie data labels IChartDataLabels dataLabels = serie.DataPoints.DefaultDataPoint.DataLabels; //Set the data label to show the leader lines dataLabels.HasValue = true; dataLabels.Position = DataLabelPositionType.Outside; //Save to file workbook.SaveToFile("Chart.xlsx"); Indicates whether Leader Lines is in data labels. The following code illustrates how to access the IChartDataLabels and set to leader lines to show: //Create worksheet Workbook workbook = new Workbook(); workbook.LoadFromFile("Sample.xlsx"); Worksheet worksheet = workbook.Worksheets[0]; //Create chart and set range Chart chart = worksheet.Charts.Add(); chart.DataRange = worksheet.Range["A1:C2"]; //Set chart type chart.ChartType = ExcelChartType.Pie; //Get the chart serie IChartSerie serie = chart.Series[0]; //Get serie data labels IChartDataLabels dataLabels = serie.DataPoints.DefaultDataPoint.DataLabels; //Set the data label to show the leader lines dataLabels.HasValue = true; dataLabels.Position = DataLabelPositionType.Outside; dataLabels.ShowLeaderLines = true; //Save to file workbook.SaveToFile("Chart.xlsx"); Represents trend line label number format. Represents data point in the chart. Returns data labels object for the data point. Read-only. The following code illustrates how to access the IChartDataLabels for a particular IChartDataPoint: //Create worksheet Workbook workbook = new Workbook(); workbook.LoadFromFile("Sample.xlsx"); Worksheet worksheet = workbook.Worksheets[0]; //Create chart and set range Chart chart = worksheet.Charts.Add(); chart.DataRange = worksheet.Range["A1:C2"]; //Get the chart serie IChartSerie serie = chart.Series[0]; //Set data labels value visibility serie.DataPoints.DefaultDataPoint.DataLabels.HasValue = true; //Save to file workbook.SaveToFile("Chart.xlsx"); Gets index of the point in the points collection. The following code illustrates how to access the Index of a IChartDataPoint in the IChartDataPoints collection: //Create worksheet Workbook workbook = new Workbook(); workbook.LoadFromFile("Sample.xlsx"); Worksheet worksheet = workbook.Worksheets[0]; //Create chart and set range Chart chart = worksheet.Charts.Add(); chart.DataRange = worksheet.Range["A1:C2"]; //Set serie IChartSerie serie = chart.Series[0]; //Get index Console.WriteLine(serie.DataPoints[0].Index); Gets / sets data format. The following code illustrates how to access DataFormat and set ChartMarkerType.star to IChartSerieDataFormat.MarkerStyle: //Create worksheet Workbook workbook = new Workbook(); workbook.LoadFromFile("Sample.xlsx"); Worksheet worksheet = workbook.Worksheets[0]; //Create chart and set range Chart chart = worksheet.Charts.Add(); chart.DataRange = worksheet.Range["A1:C2"]; //Set chart type chart.ChartType = ExcelChartType.Line; //Set serie format IChartSerieDataFormat format = chart.Series[0].DataFormat; //Set marker style format.MarkerStyle = ChartMarkerType.Star; //Save to file workbook.SaveToFile("Chart.xlsx"); Indicates whether this data point is default data point. Read-only. The following code illustrates how to access the IChartDataLabels for a particular IChartDataPoint: //Create worksheet Workbook workbook = new Workbook(); workbook.LoadFromFile("Sample.xlsx"); Worksheet worksheet = workbook.Worksheets[0]; //Create chart and set range Chart chart = worksheet.Charts.Add(); chart.DataRange = worksheet.Range["A1:C2"]; //Set serie format IChartDataPoints dataPoints = chart.Series[0].DataPoints; //Check default Datapoint Console.WriteLine(dataPoints.DefaultDataPoint.IsDefault); Console.WriteLine(dataPoints[0].IsDefault); Represents the chart data table. True if data table has horizontal border. The following code illustrates how to remove horizontal border for IChartDataTable object: //Create worksheet Workbook workbook = new Workbook(); workbook.LoadFromFile("Sample.xlsx"); Worksheet worksheet = workbook.Worksheets[0]; //Create chart and set range IChart chart = worksheet.Charts.Add(); chart.DataRange = worksheet.Range["A1:F2"]; //Set chart type chart.ChartType = ExcelChartType.ColumnClustered; //Enabling the data table chart.HasDataTable = true; //Get data table of the chart IChartDataTable dataTable = chart.DataTable; //Set false to remove the horizontal border in data table dataTable.HasHorzBorder = false; //Save to file workbook.SaveToFile("Chart.xlsx"); True if data table has vertical border. The following code illustrates how to remove vertical border for IChartDataTable object: //Create worksheet Workbook workbook = new Workbook(); workbook.LoadFromFile("Sample.xlsx"); Worksheet worksheet = workbook.Worksheets[0]; //Create chart and set range IChart chart = worksheet.Charts.Add(); chart.DataRange = worksheet.Range["A1:F2"]; //Set chart type chart.ChartType = ExcelChartType.ColumnClustered; //Enabling the data table chart.HasDataTable = true; //Get data table of the chart IChartDataTable dataTable = chart.DataTable; //Set false to remove the vertical border in data table dataTable.HasVertBorder = false; //Save to file workbook.SaveToFile("Chart.xlsx"); True if data table has borders. The following code illustrates how to outline borders of IChartDataTable object: //Create worksheet Workbook workbook = new Workbook(); workbook.LoadFromFile("Sample.xlsx"); Worksheet worksheet = workbook.Worksheets[0]; //Create chart and set range IChart chart = worksheet.Charts.Add(); chart.DataRange = worksheet.Range["A1:F2"]; //Set chart type chart.ChartType = ExcelChartType.ColumnClustered; //Enabling the data table chart.HasDataTable = true; //Get data table of the chart IChartDataTable dataTable = chart.DataTable; //Set false to remove the borders in data table dataTable.HasBorders = false; //Save to file workbook.SaveToFile("Chart.xlsx"); True if there is series keys in the data table. The following code illustrates how to show series keys in the IChartDataTable object: //Create worksheet Workbook workbook = new Workbook(); workbook.LoadFromFile("Sample.xlsx"); Worksheet worksheet = workbook.Worksheets[0]; //Create chart and set range IChart chart = worksheet.Charts.Add(); chart.DataRange = worksheet.Range["A1:F2"]; //Set chart type chart.ChartType = ExcelChartType.ColumnClustered; //Enabling the data table chart.HasDataTable = true; //Get data table of the chart IChartDataTable dataTable = chart.DataTable; //Set true to show series keys in the data table dataTable.ShowSeriesKeys = true; //Save to file workbook.SaveToFile("Chart.xlsx"); Represent error bars on the chart series. Error bars indicate the degree of uncertainty for chart data. Only series in area, bar, column, line, and scatter groups on a 2-D chart can have error bars. Only series in scatter groups can have x and y error bars. Represents border object. Read only. The following code illustrates how to access and format the IChartBorder for IChartErrorBars: //Create worksheet Workbook workbook = new Workbook(); workbook.LoadFromFile("Sample.xlsx"); Worksheet worksheet = workbook.Worksheets[0]; //Create chart and set range IChart chart = worksheet.Charts.Add(); chart.DataRange = worksheet.Range["A1:C3"]; //Set chart type chart.ChartType = ExcelChartType.ColumnClustered; //Get chart serie IChartSerie serie = chart.Series[0]; //Enabling the Y Error bars serie.ErrorBar(true,ErrorBarIncludeType.Both,ErrorBarType.Percentage,10); IChartErrorBars errorBars = serie.ErrorBarsY; //Set Error bars border color errorBars.Border.Color = Color.Red; //Save to file workbook.SaveToFile("Chart.xlsx"); Reprsents error bar include type. The following code illustrates how to set include type for IChartErrorBars: //Create worksheet Workbook workbook = new Workbook(); workbook.LoadFromFile("Sample.xlsx"); Worksheet worksheet = workbook.Worksheets[0]; //Create chart and set range IChart chart = worksheet.Charts.Add(); chart.DataRange = worksheet.Range["A1:C3"]; //Set chart type chart.ChartType = ExcelChartType.ColumnClustered; //Get chart serie IChartSerie serie = chart.Series[0]; //Enabling the Y Error bars serie.ErrorBar(true,ErrorBarIncludeType.Both,ErrorBarType.Percentage,10); IChartErrorBars errorBars = serie.ErrorBarsY; //Set negative error only to include errorBars.Include = ErrorBarIncludeType.Minus; //Save to file workbook.SaveToFile("Chart.xlsx"); Indicates if error bar has cap. The following code illustrates how to remove end style for IChartErrorBars: //Create worksheet Workbook workbook = new Workbook(); workbook.LoadFromFile("Sample.xlsx"); Worksheet worksheet = workbook.Worksheets[0]; //Create chart and set range IChart chart = worksheet.Charts.Add(); chart.DataRange = worksheet.Range["A1:C3"]; //Set chart type chart.ChartType = ExcelChartType.ColumnClustered; //Get chart serie IChartSerie serie = chart.Series[0]; //Enabling the Y Error bars serie.ErrorBar(true,ErrorBarIncludeType.Both,ErrorBarType.Percentage,10); IChartErrorBars errorBars = serie.ErrorBarsY; //Set false to remove the end style errorBars.HasCap = false; //Save to file workbook.SaveToFile("Chart.xlsx"); Represents excel error bar type. The following code illustrates how to set the error bar type for IChartErrorBars: //Create worksheet Workbook workbook = new Workbook(); workbook.LoadFromFile("Sample.xlsx"); Worksheet worksheet = workbook.Worksheets[0]; //Create chart and set range IChart chart = worksheet.Charts.Add(); chart.DataRange = worksheet.Range["A1:C3"]; //Set chart type chart.ChartType = ExcelChartType.ColumnClustered; //Get chart serie IChartSerie serie = chart.Series[0]; //Enabling the Y Error bars serie.ErrorBar(true,ErrorBarIncludeType.Both,ErrorBarType.Percentage,10); IChartErrorBars errorBars = serie.ErrorBarsY; //Set error amount to standard deviation errorBars.Type = ErrorBarType.StandardDeviation; //Save to file workbook.SaveToFile("Chart.xlsx"); Represents number value. The following code illustrates how to set the error value for IChartErrorBars: //Create worksheet Workbook workbook = new Workbook(); workbook.LoadFromFile("Sample.xlsx"); Worksheet worksheet = workbook.Worksheets[0]; //Create chart and set range IChart chart = worksheet.Charts.Add(); chart.DataRange = worksheet.Range["A1:C3"]; //Set chart type chart.ChartType = ExcelChartType.ColumnClustered; //Get chart serie IChartSerie serie = chart.Series[0]; //Enabling the Y Error bars serie.ErrorBar(true,ErrorBarIncludeType.Both,ErrorBarType.Percentage,10); IChartErrorBars errorBars = serie.ErrorBarsY; //Set error value errorBars.NumberValue = 3.0; //Save to file workbook.SaveToFile("Chart.xlsx"); Represents custom plus value. The following code illustrates how to set the plus range for IChartErrorBars: //Create worksheet Workbook workbook = new Workbook(); workbook.LoadFromFile("Sample.xlsx"); Worksheet worksheet = workbook.Worksheets[0]; //Create chart and set range IChart chart = worksheet.Charts.Add(); chart.DataRange = worksheet.Range["A1:C3"]; //Set chart type chart.ChartType = ExcelChartType.ColumnClustered; //Get chart serie IChartSerie serie = chart.Series[0]; //Enabling the Y Error bars serie.ErrorBar(true,ErrorBarIncludeType.Both,ErrorBarType.Percentage,10); IChartErrorBars errorBars = serie.ErrorBarsY; //Set plus range errorBars.PlusRange = worksheet["D2"]; //Save to file workbook.SaveToFile("Chart.xlsx"); Represents custom minus value. The following code illustrates how to set the minus range for IChartErrorBars: //Create worksheet Workbook workbook = new Workbook(); workbook.LoadFromFile("Sample.xlsx"); Worksheet worksheet = workbook.Worksheets[0]; //Create chart and set range IChart chart = worksheet.Charts.Add(); chart.DataRange = worksheet.Range["A1:C3"]; //Set chart type chart.ChartType = ExcelChartType.ColumnClustered; //Get chart serie IChartSerie serie = chart.Series[0]; //Enabling the Y Error bars serie.ErrorBar(true,ErrorBarIncludeType.Both,ErrorBarType.Percentage,10); IChartErrorBars errorBars = serie.ErrorBarsY; //Set minus range errorBars.MinusRange = worksheet["D2"]; //Save to file workbook.SaveToFile("Chart.xlsx"); Gets the shadow. The following code illustrates how to access and format the IShadow for IChartErrorBars: //Create worksheet Workbook workbook = new Workbook(); workbook.LoadFromFile("Sample.xlsx"); Worksheet worksheet = workbook.Worksheets[0]; //Create chart and set range IChart chart = worksheet.Charts.Add(); chart.DataRange = worksheet.Range["A1:C3"]; //Set chart type chart.ChartType = ExcelChartType.ColumnClustered; //Get chart serie IChartSerie serie = chart.Series[0]; //Enabling the Y Error bars serie.ErrorBar(true,ErrorBarIncludeType.Both,ErrorBarType.Percentage,10); IChartErrorBars errorBars = serie.ErrorBarsY; //Set Error bars shadow color errorBars.Shadow.Color = Color.Red; //Set Error bars shadow outer presets errorBars.Shadow.ShadowOuterType = XLSXChartShadowOuterType.OffsetDiagonalTopRight; //Save to file workbook.SaveToFile("Chart.xlsx"); The shadow. Gets the chart3 D options. The chart3 D options. Clears current error bar. Delete current error bar. Provides formatting options for area elements in the chart. This property indicates whether interior object was created. Read-only. The following code illustrates the use of HasInterior property: //Create worksheet Workbook workbook = new Workbook(); workbook.LoadFromFile("Sample.xlsx"); Worksheet worksheet = workbook.Worksheets[0]; //Create chart and set range IChart chart = worksheet.Charts.Add(); chart.DataRange = worksheet.Range["B2:C6"]; //Set chart type chart.ChartType = ExcelChartType.Column3DClustered; //Create a fill border and set interior value IChartFillBorder fillBorder = chart.ChartArea; chart.ChartArea.Interior.ForegroundColor = Color.Yellow; //True if the chart element has interior formatting if (fillBorder.HasInterior){//Your Code Here} //Save to file workbook.SaveToFile("Chart.xlsx"); This property indicates whether line formatting object was created. Read-only. The following code illustrates the use of HasLineProperties property: //Create worksheet Workbook workbook = new Workbook(); workbook.LoadFromFile("Sample.xlsx"); Worksheet worksheet = workbook.Worksheets[0]; //Create chart and set range IChart chart = worksheet.Charts.Add(); chart.DataRange = worksheet.Range["B2:C6"]; //Set chart type chart.ChartType = ExcelChartType.Column3DClustered; //Create a fill border and set line border value IChartFillBorder fillBorder = chart.ChartArea; chart.ChartArea.Border.Color = Color.Yellow; //True if the chart element has line formatting if (fillBorder.HasLineProperties){//Your Code Here} //Save to file workbook.SaveToFile("Chart.xlsx"); Gets a value indicating whether [has3d properties]. The following code illustrates the use of HasFormat3D property: //Create worksheet Workbook workbook = new Workbook(); workbook.LoadFromFile("Sample.xlsx"); Worksheet worksheet = workbook.Worksheets[0]; //Create chart and set range IChart chart = worksheet.Charts.Add(); chart.DataRange = worksheet.Range["B2:C6"]; //Set chart type chart.ChartType = ExcelChartType.Column3DClustered; //Create a fill border and set 3D formatting value IChartFillBorder fillBorder = chart.ChartArea; chart.ChartArea.Format3D.BevelTopType = XLSXChartBevelType.Slope; //True if the chart element has 3D formatting if (fillBorder.HasFormat3D){//Your Code Here} //Save to file workbook.SaveToFile("Chart.xlsx"); true if [has3d properties]; otherwise, false. Gets a value indicating whether this instance has shadow properties. The following code illustrates the use of HasShadowProperties property: //Create worksheet Workbook workbook = new Workbook(); workbook.LoadFromFile("Sample.xlsx"); Worksheet worksheet = workbook.Worksheets[0]; //Create chart and set range IChart chart = worksheet.Charts.Add(); chart.DataRange = worksheet.Range["B2:C6"]; //Set chart type chart.ChartType = ExcelChartType.Column3DClustered; //Create a fill border and set line border value IChartFillBorder fillBorder = chart.ChartArea; chart.ChartArea.Shadow.ShadowOuterType = XLSXChartShadowOuterType.OffsetBottom; //True if the chart element has 3D formatting if (fillBorder.HasShadow){//Your Code Here} //Save to file workbook.SaveToFile("Chart.xlsx"); true if this instance has shadow properties; otherwise, false. Returns object, that represents line properties. Read-only. The following code illustrates the use of LineProperties: //Create worksheet Workbook workbook = new Workbook(); workbook.LoadFromFile("Sample.xlsx"); Worksheet worksheet = workbook.Worksheets[0]; //Create chart and set range IChart chart = worksheet.Charts.Add(); chart.DataRange = worksheet.Range["B2:C6"]; //Set chart type chart.ChartType = ExcelChartType.Column3DClustered; //Gets line formatting properties for the chart element IChartBorder border = chart.PlotArea.Border; border.Pattern = ChartLinePatternType.DashDotDot; border.Color = Color.Orange; //Save to file workbook.SaveToFile("Chart.xlsx"); Returns object, that represents area properties. Read-only. The following code illustrates the use of Interior property: //Create worksheet Workbook workbook = new Workbook(); workbook.LoadFromFile("Sample.xlsx"); Worksheet worksheet = workbook.Worksheets[0]; //Create chart and set range IChart chart = worksheet.Charts.Add(); chart.DataRange = worksheet.Range["B2:C6"]; //Set chart type chart.ChartType = ExcelChartType.Column3DClustered; //Gets interior formatting properties for the chart element IChartInterior chartInterior = chart.ChartArea.Interior; chartInterior.BackgroundColor = Color.Beige; chartInterior.Pattern = ExcelPatternType.DarkDownwardDiagonal; //Save to file workbook.SaveToFile("Chart.xlsx"); Represents XlsFill options. Read-only. The following code illustrates the use of Fill property: //Create worksheet Workbook workbook = new Workbook(); workbook.LoadFromFile("Sample.xlsx"); Worksheet worksheet = workbook.Worksheets[0]; //Create chart and set range IChart chart = worksheet.Charts.Add(); chart.DataRange = worksheet.Range["B2:C6"]; //Set chart type chart.ChartType = ExcelChartType.Column3DClustered; //Gets fill options for the chart element IShapeFill fillChart = chart.ChartArea.Fill; fillChart.FillType = ShapeFillType.Gradient; fillChart.BackColor = Color.FromArgb(205, 217, 234); fillChart.ForeColor = Color.White; //Save to file workbook.SaveToFile("Chart.xlsx"); Gets the chart3 D properties. The following code illustrates the use of Format3D property: //Create worksheet Workbook workbook = new Workbook(); workbook.LoadFromFile("Sample.xlsx"); Worksheet worksheet = workbook.Worksheets[0]; //Create chart and set range IChart chart = worksheet.Charts.Add(); chart.DataRange = worksheet.Range["B2:C6"]; //Set chart type chart.ChartType = ExcelChartType.Column3DClustered; //Gets 3D-effect properties for the chart element Format3D threeDFromat = chart.ChartArea.Format3D; threeDFromat.BevelTopType = XLSXChartBevelType.Slope; threeDFromat.BevelTopHeight = 16; threeDFromat.BevelTopWidth = 7; //Save to file workbook.SaveToFile("Chart.xlsx"); The chart3 D properties. Gets the shadow properties. The following code illustrates the use of Shadow property: //Create worksheet Workbook workbook = new Workbook(); workbook.LoadFromFile("Sample.xlsx"); Worksheet worksheet = workbook.Worksheets[0]; //Create chart and set range IChart chart = worksheet.Charts.Add(); chart.DataRange = worksheet.Range["B2:C6"]; //Set chart type chart.ChartType = ExcelChartType.Column3DClustered; //Gets shadow formatting properties for the chart element ChartShadow shadowChart = chart.ChartArea.Shadow; shadowChart.ShadowPrespectiveType = XLSXChartPrespectiveType.Below; shadowChart.Color = Color.Aqua; shadowChart.Blur = 22; //Save to file workbook.SaveToFile("Chart.xlsx"); The shadow properties. Provides access to the formatting options for chart elements. Vary color for each data point. The following code illustrates how to set IsVaryColor for charts: //Create worksheet Workbook workbook = new Workbook(); workbook.LoadFromFile("Sample.xlsx"); Worksheet worksheet = workbook.Worksheets[0]; //Create chart and set range IChart chart = worksheet.Charts.Add(); chart.DataRange = worksheet.Range["A1:C2"]; //Set chart format IChartFormat format = chart.Series[0].Format.Options; //Set vary color format.IsVaryColor = true; //Save to file workbook.SaveToFile("Chart.xlsx"); Space between bars ( -100 : 100 ). The following code illustrates how to set Overlap for charts: //Create worksheet Workbook workbook = new Workbook(); workbook.LoadFromFile("Sample.xlsx"); Worksheet worksheet = workbook.Worksheets[0]; //Create chart and set range IChart chart = worksheet.Charts.Add(); chart.DataRange = worksheet.Range["A1:C3"]; //Set chart type chart.ChartType = ExcelChartType.ColumnStacked; //Set chart format IChartFormat format = chart.Series[0].Format.Options; //Set overlap format.Overlap = 20; //Save to file workbook.SaveToFile("Chart.xlsx"); Space between categories (percent of bar width), default = 50. The following code illustrates how to set GapWidth for ExcelChartType.Column3DStacked chart: //Create worksheet Workbook workbook = new Workbook(); workbook.LoadFromFile("Sample.xlsx"); Worksheet worksheet = workbook.Worksheets[0]; //Create chart and set range IChart chart = worksheet.Charts.Add(); chart.DataRange = worksheet.Range["A1:C3"]; //Set chart type chart.ChartType = ExcelChartType.Column3DStacked; //Set chart format IChartFormat format = chart.Series[0].Format.Options; //Set Gap width format.GapWidth = 400; //Save to file workbook.SaveToFile("Chart.xlsx"); Angle of the first pie slice expressed in degrees. ( 0 - 360 ). The following code illustrates how to set FirstSliceAngle for ExcelChartType.Pie chart: //Create worksheet Workbook workbook = new Workbook(); workbook.LoadFromFile("Sample.xlsx"); Worksheet worksheet = workbook.Worksheets[0]; //Create chart and set range IChart chart = worksheet.Charts.Add(); chart.DataRange = worksheet.Range["A1:C2"]; //Set chart type chart.ChartType = ExcelChartType.Pie; //Set chart format IChartFormat format = chart.Series[0].Format.Options; //Set Gap width format.FirstSliceAngle = 60; //Save to file workbook.SaveToFile("Chart.xlsx"); Size of center hole in a doughnut chart (as a percentage).( 10 - 90 ). The following code illustrates how to set DoughnutHoleSize for ExcelChartType.Doughnut chart: //Create worksheet Workbook workbook = new Workbook(); workbook.LoadFromFile("Sample.xlsx"); Worksheet worksheet = workbook.Worksheets[0]; //Create chart and set range IChart chart = worksheet.Charts.Add(); chart.DataRange = worksheet.Range["A1:C2"]; //Set chart type chart.ChartType = ExcelChartType.Doughnut; //Set chart format IChartFormat format = chart.Series[0].Format.Options; //Set Doughnut hole size format.DoughnutHoleSize = 60; //Save to file workbook.SaveToFile("Chart.xlsx"); Percent of largest bubble compared to chart in general. ( 0 - 300 ). The following code illustrates how to set BubbleScale for ExcelChartType.Bubble3D chart: //Create worksheet Workbook workbook = new Workbook(); workbook.LoadFromFile("Sample.xlsx"); Worksheet worksheet = workbook.Worksheets[0]; //Create chart and set range IChart chart = worksheet.Charts.Add(ExcelChartType.Bubble3D); chart.DataRange = worksheet.Range["A1:C2"]; chart.Series[0].Bubbles = worksheet.Range["A2:C3"]; //Set chart format IChartFormat format = chart.Series[0].Format.Options; //Set bubble scale format.BubbleScale = 50; //Save to file workbook.SaveToFile("Chart.xlsx"); Returns or sets what the bubble size represents on a bubble chart. The following code illustrates how to set BubbleSizeType.Width to SizeRepresents property: //Create worksheet Workbook workbook = new Workbook(); workbook.LoadFromFile("Sample.xlsx"); Worksheet worksheet = workbook.Worksheets[0]; //Create chart and set range IChart chart = worksheet.Charts.Add(ExcelChartType.Bubble3D); chart.DataRange = worksheet.Range["A1:C2"]; chart.Series[0].Bubbles = worksheet.Range["A2:C3"]; //Set chart format IChartFormat format = chart.Series[0].Format.Options; //Set bubble scale and size represents format.BubbleScale = 50; format.SizeRepresents = BubbleSizeType.Width; //Save to file workbook.SaveToFile("Chart.xlsx"); True to show negative bubbles. The following code illustrates how to load negative values to ExcelChartType.Bubble3D chart value axis and set ShowNegativeBubbles to "true": //Create worksheet Workbook workbook = new Workbook(); workbook.LoadFromFile("Sample.xlsx"); Worksheet worksheet = workbook.Worksheets[0]; //Create chart and set range IChart chart = worksheet.Charts.Add(ExcelChartType.Bubble3D); chart.DataRange = worksheet.Range["A1:D2"]; chart.Series[0].Bubbles = worksheet.Range["A2:C3"]; //Set chart format IChartFormat format = chart.Series[0].Format.Options; //Set negative bubble visibility format.ShowNegativeBubbles = true; //Save to file workbook.SaveToFile("Chart.xlsx"); True if a radar chart has axis labels. Applies only to radar charts. The following code illustrates how to hide the axis labels of radar charts: //Create worksheet Workbook workbook = new Workbook(); workbook.LoadFromFile("Sample.xlsx"); Worksheet worksheet = workbook.Worksheets[0]; //Create chart and set range IChart chart = worksheet.Charts.Add(); chart.DataRange = worksheet.Range["A1:C2"]; //Set chart type chart.ChartType = ExcelChartType.Radar; //Set chart format IChartFormat format = chart.Series[0].Format.Options; //Set radar label visibility format.HasRadarAxisLabels = false; //Save to file workbook.SaveToFile("Chart.xlsx"); Returns or sets the way the two sections of either a pie of pie chart or a bar of pie chart are split. The following code illustrates how to set SplitType.Value to SplitType: //Create worksheet Workbook workbook = new Workbook(); workbook.LoadFromFile("Sample.xlsx"); Worksheet worksheet = workbook.Worksheets[0]; //Create chart and set range IChart chart = worksheet.Charts.Add(); chart.DataRange = worksheet.Range["A1:F2"]; //Set chart type chart.ChartType = ExcelChartType.PieOfPie; //Set chart format IChartFormat format = chart.Series[0].Format.Options; //Set split type format.SplitType = SplitType.Value; //Save to file workbook.SaveToFile("Chart.xlsx"); Returns or sets the threshold value separating the two sections of either a pie of pie chart or a bar of pie chart. The following code illustrates how to set SplitValue for charts: //Create worksheet Workbook workbook = new Workbook(); workbook.LoadFromFile("Sample.xlsx"); Worksheet worksheet = workbook.Worksheets[0]; //Create chart and set range IChart chart = worksheet.Charts.Add(); chart.DataRange = worksheet.Range["A1:F2"]; //Set chart type chart.ChartType = ExcelChartType.PieOfPie; //Set chart format IChartFormat format = chart.Series[0].Format.Options; //Set split value format.SplitValue = 20; //Save to file workbook.SaveToFile("Chart.xlsx"); 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. ( 5 - 200 ). The following code illustrates how to set PieSecondSize for charts: //Create worksheet Workbook workbook = new Workbook(); workbook.LoadFromFile("Sample.xlsx"); Worksheet worksheet = workbook.Worksheets[0]; //Create chart and set range IChart chart = worksheet.Charts.Add(); chart.DataRange = worksheet.Range["A1:F2"]; //Set chart type chart.ChartType = ExcelChartType.PieOfPie; //Set chart format IChartFormat format = chart.Series[0].Format.Options; //Set second pie size format.PieSecondSize = 40; //Save to file workbook.SaveToFile("Chart.xlsx"); Returns object that represents first drop bar. The following code illustrates how to access FirstDropBar: //Create worksheet Workbook workbook = new Workbook(); workbook.LoadFromFile("Sample.xlsx"); Worksheet worksheet = workbook.Worksheets[0]; //Create chart and set range IChart chart = worksheet.Charts.Add(); chart.DataRange = worksheet.Range["A1:C3"]; //Set chart type chart.ChartType = ExcelChartType.Line; //Set chart drop bar IChartDropBar dropBar = chart.Series[0].Format.Options.FirstDropBar; Returns object that represents second drop bar. The following code illustrates how to access SecondDropBar: //Create worksheet Workbook workbook = new Workbook(); workbook.LoadFromFile("Sample.xlsx"); Worksheet worksheet = workbook.Worksheets[0]; //Create chart and set range IChart chart = worksheet.Charts.Add(); chart.DataRange = worksheet.Range["A1:C3"]; //Set chart type chart.ChartType = ExcelChartType.Line; //Set chart first drop bar IChartDropBar dropBar = chart.Series[0].Format.Options.FirstDropBar; //Set chart second drop bar dropBar = chart.Series[0].Format.Options.SecondDropBar; Represents series line properties. ( For pie of pie or pie of bar chart types only. ) Read only. The following code illusrates how to set color to IChartBorder.Color property for ExcelChartType.PieOfPie chart using PieSeriesLine property: //Create worksheet Workbook workbook = new Workbook(); workbook.LoadFromFile("Sample.xlsx"); Worksheet worksheet = workbook.Worksheets[0]; //Create chart and set range IChart chart = worksheet.Charts.Add(); chart.DataRange = worksheet.Range["A1:F2"]; //Set chart type chart.ChartType = ExcelChartType.PieOfPie; //Set pie series line border IChartBorder border = chart.Series[0].Format.Options.PieSeriesLine; //Set color border.Color = Color.Red; //Save to file workbook.SaveToFile("Chart.xlsx"); Represent the borders and layout options of the chart elements. Gets or sets flag if border corners is round. The following code illustrates use of IsBorderCornersRound property: //Create worksheet Workbook workbook = new Workbook(); workbook.LoadFromFile("Sample.xlsx"); Worksheet worksheet = workbook.Worksheets[0]; //Create chart and set range IChart chart = worksheet.Charts.Add(); chart.DataRange = worksheet.Range["B2:C6"]; //Set chart type chart.ChartType = ExcelChartType.Cone3DClustered; //True if the chart area has rounded corners IChartFrameFormat chartArea = chart.ChartArea; chartArea.IsBorderCornersRound = true; //Save to file workbook.SaveToFile("Chart.xlsx"); Represents chart border. Read only. The following code illustrates use of Border property: //Create worksheet Workbook workbook = new Workbook(); workbook.LoadFromFile("Sample.xlsx"); Worksheet worksheet = workbook.Worksheets[0]; //Create chart and set range IChart chart = worksheet.Charts.Add(); chart.DataRange = worksheet.Range["B2:C6"]; //Set chart type chart.ChartType = ExcelChartType.Cone3DClustered; //border of the chart element chart.ChartTitleArea.Text = "Sample Chart"; chart.ChartTitleArea.FrameFormat.Border.Color = Color.Red; chart.ChartTitleArea.FrameFormat.Border.Pattern = ChartLinePatternType.DashDotDot; //Save to file workbook.SaveToFile("Chart.xlsx"); Clear curent plot area. Represent grid lines of the chart. Gets line border. Read only. The following code illustrates use of Border property: //Create worksheet Workbook workbook = new Workbook(); workbook.LoadFromFile("Sample.xlsx"); Worksheet worksheet = workbook.Worksheets[0]; //Create chart and set range IChart chart = worksheet.Charts.Add(); chart.DataRange = worksheet.Range["A1:C2"]; //Set value axis minor gridLines to visible chart.PrimaryValueAxis.HasMinorGridLines = true; //Get value axis minor gridlines IChartGridLine gridLine = chart.PrimaryValueAxis.MinorGridLines; Set minor gridlines broder properties gridLine.Border.Color = Color.Red; //Save to file workbook.SaveToFile("Chart.xlsx"); Gets the chart3 D properties. The chart3 D properties. Gets the shadow properties. The shadow properties. Returns object, that represents line properties. Read-only. Returns object, that represents area properties. Read-only. Represents XlsFill options. Read-only. Represents the chart interior. Interior of chart is supported in Chart area and Plot area only. Foreground color (RGB). The following code illustrates the use of ForegroundColor property: //Create worksheet Workbook workbook = new Workbook(); workbook.LoadFromFile("Sample.xlsx"); Worksheet worksheet = workbook.Worksheets[0]; //Create chart and set range IChart chart = worksheet.Charts.Add(); chart.DataRange = worksheet.Range["B2:C6"]; //Set chart type chart.ChartType = ExcelChartType.Cone3DClustered; //Set the foreground color of the chart chart.ChartArea.Interior.ForegroundColor = Color.Blue; //Save to file workbook.SaveToFile("Chart.xlsx"); Background color (RGB). The following code illustrates the use of BackgroundColor property: //Create worksheet Workbook workbook = new Workbook(); workbook.LoadFromFile("Sample.xlsx"); Worksheet worksheet = workbook.Worksheets[0]; //Create chart and set range IChart chart = worksheet.Charts.Add(); chart.DataRange = worksheet.Range["B2:C6"]; //Set chart type chart.ChartType = ExcelChartType.Cone3DClustered; //Set the backgroundColor color of the chart chart.ChartArea.Interior.BackgroundColor = Color.Pink; //Save to file workbook.SaveToFile("Chart.xlsx"); Area pattern. The following code illustrates the use of Pattern property: //Create worksheet Workbook workbook = new Workbook(); workbook.LoadFromFile("Sample.xlsx"); Worksheet worksheet = workbook.Worksheets[0]; //Create chart and set range IChart chart = worksheet.Charts.Add(); chart.DataRange = worksheet.Range["B2:C6"]; //Set chart type chart.ChartType = ExcelChartType.Cone3DClustered; //Set the pattern of the chart chart.ChartArea.Interior.Pattern = ExcelPatternType.Angle; //Save to file workbook.SaveToFile("Chart.xlsx"); Index of foreground color. The following code illustrates the use of ForegroundKnownColor property: //Create worksheet Workbook workbook = new Workbook(); workbook.LoadFromFile("Sample.xlsx"); Worksheet worksheet = workbook.Worksheets[0]; //Create chart and set range IChart chart = worksheet.Charts.Add(); chart.DataRange = worksheet.Range["B2:C6"]; //Set chart type chart.ChartType = ExcelChartType.Cone3DClustered; //Set the index of foreground color chart.ChartArea.Interior.ForegroundKnownColor = ExcelColors.Red; //Save to file workbook.SaveToFile("Chart.xlsx"); Background color index. The following code illustrates the use of BackgroundKnownColor property: //Create worksheet Workbook workbook = new Workbook(); workbook.LoadFromFile("Sample.xlsx"); Worksheet worksheet = workbook.Worksheets[0]; //Create chart and set range IChart chart = worksheet.Charts.Add(); chart.DataRange = worksheet.Range["B2:C6"]; //Set chart type chart.ChartType = ExcelChartType.Cone3DClustered; //Set the index of background color chart.ChartArea.Interior.BackgroundKnownColor = ExcelColors.Red; //Save to file workbook.SaveToFile("Chart.xlsx"); If true - use automatic format; otherwise custom. The following code illustrates the use of UseDefaultFormat property: //Create worksheet Workbook workbook = new Workbook(); workbook.LoadFromFile("Sample.xlsx"); Worksheet worksheet = workbook.Worksheets[0]; //Create chart and set range IChart chart = worksheet.Charts.Add(); chart.DataRange = worksheet.Range["B2:C6"]; //Set chart type chart.ChartType = ExcelChartType.Cone3DClustered; //True to use default format for interior chart.ChartArea.Interior.UseDefaultFormat = true; //Save to file workbook.SaveToFile("Chart.xlsx"); Foreground and background are swapped when the data value is negative. The following code illustrates the use of SwapColorsOnNegative property: //Create worksheet Workbook workbook = new Workbook(); workbook.LoadFromFile("Sample.xlsx"); Worksheet worksheet = workbook.Worksheets[0]; //Create chart and set range IChart chart = worksheet.Charts.Add(); chart.DataRange = worksheet.Range["B2:C6"]; //Set chart type chart.ChartType = ExcelChartType.Cone3DClustered; //True if foreground and background colors are swapped when the data value is negative chart.Series[0].Format.Interior.SwapColorsOnNegative = true; //Save to file workbook.SaveToFile("Chart.xlsx"); Represents the legend of the chart. Return text area of legend. The following code illustrates use of TextArea property: //Create worksheet Workbook workbook = new Workbook(); workbook.LoadFromFile("Sample.xlsx"); Worksheet worksheet = workbook.Worksheets[0]; //Create chart and set range IChart chart = worksheet.Charts.Add(); chart.DataRange = worksheet.Range["B2:C6"]; //Set chart type chart.ChartType = ExcelChartType.Cone3DClustered; //Set text area for the legend chart.Legend.TextArea.Color = Color.Gray; chart.Legend.TextArea.Size = 10; chart.Legend.TextArea.FontName = "Bernard MT Condensed"; //Save to file workbook.SaveToFile("Chart.xlsx"); X-position of upper-left corner. 1/4000 of chart plot. The following code illustrates use of X co-ordinate of upper-left corner of the legend: //Create worksheet Workbook workbook = new Workbook(); workbook.LoadFromFile("Sample.xlsx"); Worksheet worksheet = workbook.Worksheets[0]; //Create chart and set range IChart chart = worksheet.Charts.Add(); chart.DataRange = worksheet.Range["B2:C6"]; //Set chart type chart.ChartType = ExcelChartType.Cone3DClustered; //X co-ordinate of upper-left corner of the legend chart.Legend.X = -80; //Save to file workbook.SaveToFile("Chart.xlsx"); Y-position of upper-left corner. 1/4000 of chart plot. The following code illustrates use of Y co-ordinate of upper-left corner of the legend: //Create worksheet Workbook workbook = new Workbook(); workbook.LoadFromFile("Sample.xlsx"); Worksheet worksheet = workbook.Worksheets[0]; //Create chart and set range IChart chart = worksheet.Charts.Add(); chart.DataRange = worksheet.Range["B2:C6"]; //Set chart type chart.ChartType = ExcelChartType.Cone3DClustered; //Y co-ordinate of upper-left corner of the legend chart.Legend.Y = 30; //Save to file workbook.SaveToFile("Chart.xlsx"); Type: 0 = bottom 1 = corner 2 = top 3 = right 4 = left 7 = not docked or inside the plot area. The following code illustrates use of Position property: //Create worksheet Workbook workbook = new Workbook(); workbook.LoadFromFile("Sample.xlsx"); Worksheet worksheet = workbook.Worksheets[0]; //Create chart and set range IChart chart = worksheet.Charts.Add(); chart.DataRange = worksheet.Range["B2:C6"]; //Set chart type chart.ChartType = ExcelChartType.Cone3DClustered; //Set the position of legend on the chart chart.Legend.Position = LegendPositionType.Top; //Save to file workbook.SaveToFile("Chart.xlsx"); True if vertical legend (a single column of entries); False if horizontal legend (multiple columns of entries). Manual-sized legends always have this bit set to False. The following code illustrates use of IsVerticalLegend property: //Create worksheet Workbook workbook = new Workbook(); workbook.LoadFromFile("Sample.xlsx"); Worksheet worksheet = workbook.Worksheets[0]; //Create chart and set range IChart chart = worksheet.Charts.Add(); chart.DataRange = worksheet.Range["B2:C6"]; //Set chart type chart.ChartType = ExcelChartType.Cone3DClustered; //True if the legend is vertical if(chart.Legend.IsVerticalLegend){ //Your code here } //Save to file workbook.SaveToFile("Chart.xlsx"); Represents legend entries collection. Read only. The following code illustrates use of LegendEntries property: //Create worksheet Workbook workbook = new Workbook(); workbook.LoadFromFile("Sample.xlsx"); Worksheet worksheet = workbook.Worksheets[0]; //Create chart and set range IChart chart = worksheet.Charts.Add(); chart.DataRange = worksheet.Range["B2:C6"]; //Set chart type chart.ChartType = ExcelChartType.Cone3DClustered; //Get the count of legend entries int legendEntriesCount = chart.Legend.LegendEntries.Count; if(legendEntriesCount != 0){ //Your code here } //Save to file workbook.SaveToFile("Chart.xlsx"); Show legend without overlapping. Default is True. The following code illustrates use of IncludeInLayout property: //Create worksheet Workbook workbook = new Workbook(); workbook.LoadFromFile("Sample.xlsx"); Worksheet worksheet = workbook.Worksheets[0]; //Create chart and set range IChart chart = worksheet.Charts.Add(); chart.DataRange = worksheet.Range["B2:C6"]; //Set chart type chart.ChartType = ExcelChartType.Cone3DClustered; //True to show legend without overlapping the chart IChartLegend chartLegend = chart.Legend; chartLegend.IncludeInLayout = true; //Save to file workbook.SaveToFile("Chart.xlsx"); false value Specifies that the Width shall be interpreted as the Right of the chart element. false value Specifies that the Height shall be interpreted as the Bottom of the chart element. true value Specifies that the X shall be interpreted as the Left of the chart element. true value Specifies that the Y shall be interpreted as the Top of the chart element. X-size. 1/4000 of chart plot. IsWMode Shall set to True Y-size. 1/4000 of chart plot. IsHMode Shall set to True X positioning is automatic. Y positioning is automatic. Clears chart legend. The following code illustrates how to use the Clear method for legend of chart: //Create worksheet Workbook workbook = new Workbook(); workbook.LoadFromFile("Sample.xlsx"); Worksheet worksheet = workbook.Worksheets[0]; //Clears the legend of chart worksheet.Charts[0].Legend.Clear(); //Save to file workbook.SaveToFile("Chart.xlsx"); Deletes chart legend. The following code illustrates how to use the Delete method for legend of chart: //Create worksheet Workbook workbook = new Workbook(); workbook.LoadFromFile("Sample.xlsx"); Worksheet worksheet = workbook.Worksheets[0]; //Create chart and set range IChart chart = worksheet.Charts.Add(); chart.DataRange = worksheet.Range["B2:C6"]; //Clears the legend of chart worksheet.Charts[0].Legend.Delete(); //Save to file workbook.SaveToFile("Chart.xlsx"); Represents a legend entry in a chart legend. If true then this entry deleted. otherwise false. The following code illustrates use of IsDeleted property: //Create worksheet Workbook workbook = new Workbook(); workbook.LoadFromFile("Sample.xlsx"); Worksheet worksheet = workbook.Worksheets[0]; //Create chart and set range IChart chart = worksheet.Charts.Add(); chart.DataRange = worksheet.Range["B2:C6"]; //Set chart type chart.ChartType = ExcelChartType.Cone3DClustered; //Create a chartLegend IChartLegend chartLegend = chart.Legend; chartLegend.LegendEntries[0].Delete(); //True if the entry is deleted bool isDeletedEntry = chartLegend.LegendEntries[0].IsDeleted; if(isDeletedEntry){ //Your code here } //Save to file workbook.SaveToFile("Chart.xlsx"); True if the legend entry has been formatted. The following code illustrates use of IsFormatted property: //Create worksheet Workbook workbook = new Workbook(); workbook.LoadFromFile("Sample.xlsx"); Worksheet worksheet = workbook.Worksheets[0]; //Create chart and set range IChart chart = worksheet.Charts.Add(); chart.DataRange = worksheet.Range["B2:C6"]; //Set chart type chart.ChartType = ExcelChartType.Cone3DClustered; //Create a chartLegend IChartLegend chartLegend = chart.Legend; chartLegend.LegendEntries[1].TextArea.Color = Color.Blue; //True if the legend entry is formatted bool isEntryFromatted = chartLegend.LegendEntries[1].IsFormatted; if(isEntryFromatted){ //Your code here } //Save to file workbook.SaveToFile("Chart.xlsx"); Represents text area. The following code illustrates use of TextArea property: //Create worksheet Workbook workbook = new Workbook(); workbook.LoadFromFile("Sample.xlsx"); Worksheet worksheet = workbook.Worksheets[0]; //Create chart and set range IChart chart = worksheet.Charts.Add(); chart.DataRange = worksheet.Range["B2:C6"]; //Set chart type chart.ChartType = ExcelChartType.Cone3DClustered; //Create a chartLegend IChartLegend chartLegend = chart.Legend; chartLegend.LegendEntries[1].TextArea.Color = Color.Blue; chartLegend.LegendEntries[1].TextArea.Size = 10; chartLegend.LegendEntries[1].TextArea.FontName = "Bernard MT Condensed"; //Save to file workbook.SaveToFile("Chart.xlsx"); Display mode of the background. Deletes current legend entry. The following code illustrates how to use Delete method for legend: //Create worksheet Workbook workbook = new Workbook(); workbook.LoadFromFile("Sample.xlsx"); Worksheet worksheet = workbook.Worksheets[0]; //Create chart and set range IChart chart = worksheet.Charts.Add(); chart.DataRange = worksheet.Range["B2:C6"]; //Set chart type chart.ChartType = ExcelChartType.Cone3DClustered; //Create a chartLegend IChartLegend chartLegend = chart.Legend; //Delete the first legend entry out of five entires chartLegend.LegendEntries[0].Delete(); //Save to file workbook.SaveToFile("Chart.xlsx"); Represent page setup options for the chart sheet. Returns or sets the number of pages tall the worksheet will be scaled to when it is printed. Applies only to worksheets. Read / write Boolean. Returns or sets the number of pages wide the worksheet will be scaled to when it is printed. Applies only to worksheets. Read / write Boolean. Represents a series in the chart. Values range for the series. The following code illustrates how to set values for IChartSerie in charts: //Create worksheet Workbook workbook = new Workbook(); workbook.LoadFromFile("Sample.xlsx"); Worksheet worksheet = workbook.Worksheets[0]; //Create chart IChart chart = worksheet.Charts.Add(); //Set serie IChartSerie serie = chart.Series.Add(); //Set category labels and values serie.CategoryLabels = worksheet.Range["A1:C1"]; serie.Values = worksheet.Range["A2:C2"]; //Save to file workbook.SaveToFile("Chart.xlsx"); Category labels for the series. The following code illustrates how to set category labels for IChartSerie in charts: //Create worksheet Workbook workbook = new Workbook(); workbook.LoadFromFile("Sample.xlsx"); Worksheet worksheet = workbook.Worksheets[0]; //Create chart IChart chart = worksheet.Charts.Add(); //Set serie IChartSerie serie = chart.Series.Add(); //Set category labels and values serie.CategoryLabels = worksheet.Range["A1:C1"]; serie.Values = worksheet.Range["A2:C2"]; //Save to file workbook.SaveToFile("Chart.xlsx"); Bubble sizes for the series. The following code illustrates how to set Bubbles for IChartSerie in charts: //Create worksheet Workbook workbook = new Workbook(); workbook.LoadFromFile("Sample.xlsx"); Worksheet worksheet = workbook.Worksheets[0]; //Create chart IChart chart = worksheet.Charts.Add(); //Set serie IChartSerie serie = chart.Series.Add(ExcelChartType.Bubble); //Set values and bubble chart range serie.Values = worksheet.Range["A1:C1"];; serie.Bubbles = worksheet.Range["A2:C2"]; //Save to file workbook.SaveToFile("Chart.xlsx"); Name of the series. The following code illustrates how to access the name of the IChartSerie: //Create worksheet Workbook workbook = new Workbook(); workbook.LoadFromFile("Sample.xlsx"); Worksheet worksheet = workbook.Worksheets[0]; //Create chart IChart chart = worksheet.Charts.Add(); //Set serie IChartSerie serie = chart.Series.Add("BarSerie"); //Set category labels and values serie.CategoryLabels = worksheet.Range["A1:C1"]; serie.Values = worksheet.Range["A2:C2"]; //Get Serie name Console.Write(serie.Name); //Save to file workbook.SaveToFile("Chart.xlsx"); Series Name range for the series. Indicates whether to use primary axis for series drawing. The following code illustrates how the secondary axis can be used by disabling primary axis: //Create worksheet Workbook workbook = new Workbook(); workbook.LoadFromFile("Sample.xlsx"); Worksheet worksheet = workbook.Worksheets[0]; //Create chart IChart chart = worksheet.Charts.Add(); //Set range chart.DataRange = worksheet["A1:C3"]; //Set secondary axis IChartSerie serie = chart.Series[1]; serie.UsePrimaryAxis = false; chart.SecondaryCategoryAxis.Visible = true; //Save to file workbook.SaveToFile("Chart.xlsx"); Returns collection of data points. Read-only. The following code illustrates how to access the IChartDataPoints collection from IChartSerie: //Create worksheet Workbook workbook = new Workbook(); workbook.LoadFromFile("Sample.xlsx"); Worksheet worksheet = workbook.Worksheets[0]; //Create chart IChart chart = worksheet.Charts.Add(); //Set range chart.DataRange = worksheet["A1:C3"]; //Set data points IChartDataPoints dataPoints = chart.Series[0].DataPoints; //Set data labels value visibility dataPoints.DefaultDataPoint.DataLabels.HasValue = true; //Save to file workbook.SaveToFile("Chart.xlsx"); Returns format of current serie. The following code illustrates how to access the IChartSerieDataFormat from IChartSerie: //Create worksheet Workbook workbook = new Workbook(); workbook.LoadFromFile("Sample.xlsx"); Worksheet worksheet = workbook.Worksheets[0]; //Create chart IChart chart = worksheet.Charts.Add(); //Set range chart.DataRange = worksheet["A1:C2"]; //Set chart type chart.ChartType = ExcelChartType.Line; //Set serie format IChartSerieDataFormat format = chart.Series[0].Format; //Set marker style format.MarkerStyle = ChartMarkerType.Star; //Save to file workbook.SaveToFile("Chart.xlsx"); Represents serie type. The following code illustrates how to set SerieType for charts: //Create worksheet Workbook workbook = new Workbook(); workbook.LoadFromFile("Sample.xlsx"); Worksheet worksheet = workbook.Worksheets[0]; //Create chart IChart chart = worksheet.Charts.Add(); //Set range chart.DataRange = worksheet["A1:C2"]; //Set chart type chart.Series[0].SerieType = ExcelChartType.Line; //Save to file workbook.SaveToFile("Chart.xlsx"); Represents value as entered directly. The following code illustrates how series data can be directly given for charts: //Create worksheet Workbook workbook = new Workbook(); Worksheet worksheet = workbook.Worksheets[0]; //Create chart IChart chart = worksheet.Charts.Add(); //Set serie IChartSerie serie = chart.Series.Add(ExcelChartType.Pie); //Set direct values serie.EnteredDirectlyValues = new object[] { 2000, 1000, 1000 }; //Set direct category label serie.EnteredDirectlyCategoryLabels = new object[] { "Total Income", "Expenses", "Profit" }; //Save to file workbook.SaveToFile("Chart.xlsx"); Represents category values as entered directly. The following code illustrates how series category labels can be directly given for charts: //Create worksheet Workbook workbook = new Workbook(); Worksheet worksheet = workbook.Worksheets[0]; //Create chart IChart chart = worksheet.Charts.Add(); //Set serie IChartSerie serie = chart.Series.Add(ExcelChartType.Pie); //Set direct values serie.EnteredDirectlyValues = new object[] { 2000, 1000, 1000 }; //Set direct category label serie.EnteredDirectlyCategoryLabels = new object[] { "Total Income", "Expenses", "Profit" }; //Save to file workbook.SaveToFile("Chart.xlsx"); Represents bubble values as entered directly. The following code illustrates how series data for second value axis of ExcelChartType.Bubble charts can be directly given for charts: //Create worksheet Workbook workbook = new Workbook(); Worksheet worksheet = workbook.Worksheets[0]; //Create chart IChart chart = worksheet.Charts.Add(); //Set serie IChartSerie serie = chart.Series.Add(ExcelChartType.Bubble); //Set direct values serie.EnteredDirectlyValues = new object[] { 10, 20, 30 }; //Set bubble chart direct values serie.EnteredDirectlyBubbles = new object[] { 1, 4, 2 }; //Save to file workbook.SaveToFile("Chart.xlsx"); Represents Y error bars. Read only. The following code illustrates how IChartErrorBars on Y-axis can be accessed: //Create worksheet Workbook workbook = new Workbook(); workbook.LoadFromFile("Sample.xlsx"); Worksheet worksheet = workbook.Worksheets[0]; //Create chart IChart chart = worksheet.Charts.Add(); //Set chart type chart.ChartType = ExcelChartType.ScatterLine; //Set range chart.DataRange = worksheet.Range["A1:C2"]; //Set error bar chart.Series[0].HasErrorBarsY = true; IChartErrorBars errorBar = chart.Series[0].ErrorBarsY; //Set error bar type errorBar.Type = ErrorBarType.Percentage; //Save to file workbook.SaveToFile("Chart.xlsx"); Indicates if serie contains Y error bars. The following code illustrates how HasErrorBarsY property can be used: //Create worksheet Workbook workbook = new Workbook(); workbook.LoadFromFile("Sample.xlsx"); Worksheet worksheet = workbook.Worksheets[0]; //Create chart IChart chart = worksheet.Charts.Add(); //Set chart type chart.ChartType = ExcelChartType.ScatterLine; //Set range chart.DataRange = worksheet.Range["A1:C2"]; //Set error bar chart.Series[0].HasErrorBarsY = true; //Save to file workbook.SaveToFile("Chart.xlsx"); Represents X error bars. Read only. The following code illustrates how IChartErrorBars in X-axis can be accessed: //Create worksheet Workbook workbook = new Workbook(); workbook.LoadFromFile("Sample.xlsx"); Worksheet worksheet = workbook.Worksheets[0]; //Create chart IChart chart = worksheet.Charts.Add(); //Set chart type chart.ChartType = ExcelChartType.ScatterLine; //Set range chart.DataRange = worksheet.Range["A1:C2"]; //Set error bar chart.Series[0].HasErrorBarsX = true; IChartErrorBars errorBar = chart.Series[0].ErrorBarsX; //Set error bar type errorBar.Type = ErrorBarType.Percentage; //Save to file workbook.SaveToFile("Chart.xlsx"); Indicates if serie contains X error bars. The following code illustrates how HasErrorBarsX property can be used: //Create worksheet Workbook workbook = new Workbook(); workbook.LoadFromFile("Sample.xlsx"); Worksheet worksheet = workbook.Worksheets[0]; //Create chart IChart chart = worksheet.Charts.Add(); //Set chart type chart.ChartType = ExcelChartType.ScatterLine; //Set range chart.DataRange = worksheet.Range["A1:C2"]; //Set error bar chart.Series[0].HasErrorBarsX = true; //Save to file workbook.SaveToFile("Chart.xlsx"); Represents serie trend lines collection. Read only. The following code illustrates how IChartTrendLines collection can be accessed from a particular IChartSerie: //Create worksheet Workbook workbook = new Workbook(); workbook.LoadFromFile("Sample.xlsx"); Worksheet worksheet = workbook.Worksheets[0]; //Create chart IChart chart = worksheet.Charts.Add(); //Set range chart.DataRange = worksheet.Range["A1:C2"]; //Set trend line IChartTrendLines trendLines = chart.Series[0].TrendLines; IChartTrendLine trendLine = trendLines.Add(TrendLineType.Linear); //Save to file workbook.SaveToFile("Chart.xlsx"); Creates error bar object. The following code illustrates how to set IChartErrorBars on Y-axis of a particular IChartSerie: //Create worksheet Workbook workbook = new Workbook(); workbook.LoadFromFile("Sample.xlsx"); Worksheet worksheet = workbook.Worksheets[0]; //Create chart IChart chart = worksheet.Charts.Add(); //Set range chart.DataRange = worksheet.Range["A1:C2"]; //Set error bar chart.Series[0].ErrorBar(true); //Save to file workbook.SaveToFile("Chart.xlsx"); If true - on Y axis; otherwise on X axis. Return error bar objcet. Creates error bar object. The following code illustrates how to set IChartErrorBars with ErrorBarIncludeType.Plus on Y-axis of a particular IChartSerie: //Create worksheet Workbook workbook = new Workbook(); workbook.LoadFromFile("Sample.xlsx"); Worksheet worksheet = workbook.Worksheets[0]; //Create chart IChart chart = worksheet.Charts.Add(); //Set range chart.DataRange = worksheet.Range["A1:C2"]; //Set error bar chart.Series[0].ErrorBar(true, ErrorBarIncludeType.Plus); //Save to file workbook.SaveToFile("Chart.xlsx"); If true - on Y axis; otherwise on X axis. Represents include type. Return error bar objcet. Creates error bar object. The following code illustrates how to set IChartErrorBars with ErrorBarIncludeType.Plus and ErrorBarType.Percentage on Y-axis of a particular IChartSerie: //Create worksheet Workbook workbook = new Workbook(); workbook.LoadFromFile("Sample.xlsx"); Worksheet worksheet = workbook.Worksheets[0]; //Create chart IChart chart = worksheet.Charts.Add(); //Set range chart.DataRange = worksheet.Range["A1:C2"]; //Set error bar chart.Series[0].ErrorBar(true, ErrorBarIncludeType.Plus, ErrorBarType.Percentage); //Save to file workbook.SaveToFile("Chart.xlsx"); If true - on Y axis; otherwise on X axis. Represents include type. Represents error bar type. Return error bar objcet. Creates error bar object. The following code illustrates how to set IChartErrorBars with ErrorBarIncludeType.Plus , ErrorBarType.Percentage and number value of "50" on Y-axis of a particular IChartSerie: //Create worksheet Workbook workbook = new Workbook(); workbook.LoadFromFile("Sample.xlsx"); Worksheet worksheet = workbook.Worksheets[0]; //Create chart IChart chart = worksheet.Charts.Add(); //Set range chart.DataRange = worksheet.Range["A1:C2"]; //Set error bar chart.Series[0].ErrorBar(true, ErrorBarIncludeType.Plus, ErrorBarType.Percentage, 50); //Save to file workbook.SaveToFile("Chart.xlsx"); If true - on Y axis; otherwise on X axis. Represents include type. Represents error bar type. Represents number value. Return error bar objcet. Sets custom error bar type. The following code illustrates how an IChartErrorBars can be created on X-axis with IChartErrorBars.PlusRange and IChartErrorBars.MinusRange: //Create worksheet Workbook workbook = new Workbook(); workbook.LoadFromFile("Sample.xlsx"); Worksheet worksheet = workbook.Worksheets[0]; //Create chart IChart chart = worksheet.Charts.Add(); //Set chart type chart.ChartType = ExcelChartType.ScatterLine; //Set range chart.DataRange = worksheet.Range["A1:C2"]; //Set error bar chart.Series[0].ErrorBar(false, worksheet.Range["A3"], worksheet.Range["B3"]); //Save to file workbook.SaveToFile("Chart.xlsx"); If true - on Y axis; otherwise on X axis. Represents plus range. Represents minus range. Returns error bar object. Represents formatting options for the series data. Returns object, that represents aera properties. Read only. The following code illustrates how to access AreaProperties properties and set color to IChartInterior.ForegroundColorIndex property: //Create worksheet Workbook workbook = new Workbook(); workbook.LoadFromFile("Sample.xlsx"); Worksheet worksheet = workbook.Worksheets[0]; //Create chart IChart chart = worksheet.Charts.Add(); //Set range chart.DataRange = worksheet.Range["A1:C2"]; //Set interior IChartInterior interior = chart.Series[0].Format.AreaProperties; //Set color interior.ForegroundColor = Color.Red; //Save to file workbook.SaveToFile("Chart.xlsx"); Represents the base data format. The following code illustrates how to set BaseFormatType.Circle to BarShapeBase: //Create worksheet Workbook workbook = new Workbook(); workbook.LoadFromFile("Sample.xlsx"); Worksheet worksheet = workbook.Worksheets[0]; //Create chart IChart chart = worksheet.Charts.Add(); //Set range chart.DataRange = worksheet.Range["A1:C2"]; //Set chart type chart.ChartType = ExcelChartType.Bar3DStacked; //Set Bar shape base chart.Series[0].Format.BarType = BaseFormatType.Circle; //Save to file workbook.SaveToFile("Chart.xlsx"); Represents the top data format. The following code illustrates how to set ExcelTopFormat.Sharp to BarShapeTop property: //Create worksheet Workbook workbook = new Workbook(); workbook.LoadFromFile("Sample.xlsx"); Worksheet worksheet = workbook.Worksheets[0]; //Create chart IChart chart = worksheet.Charts.Add(); //Set range chart.DataRange = worksheet.Range["A1:C2"]; //Set chart type chart.ChartType = ExcelChartType.Bar3DStacked; //Set Bar shape base chart.Series[0].Format.BarTopType = TopFormatType.Sharp; //Save to file workbook.SaveToFile("Chart.xlsx"); Foreground color: RGB value (high byte = 0). The following code illustrates how to set color to markers in charts: //Create worksheet Workbook workbook = new Workbook(); workbook.LoadFromFile("Sample.xlsx"); Worksheet worksheet = workbook.Worksheets[0]; //Create chart IChart chart = worksheet.Charts.Add(); //Set range chart.DataRange = worksheet.Range["A1:C2"]; //Set chart type chart.ChartType = ExcelChartType.Line; //Set serie format IChartSerieDataFormat format = chart.Series[0].Format; //Set marker style format.MarkerStyle = ChartMarkerType.Circle; //Set color format.MarkerBackgroundColor = Color.Red; format.MarkerForegroundColor = Color.Black; //Save to file workbook.SaveToFile("Chart.xlsx"); Background color: RGB value (high byte = 0). The following code illustrates how to set color for markers in charts: //Create worksheet Workbook workbook = new Workbook(); workbook.LoadFromFile("Sample.xlsx"); Worksheet worksheet = workbook.Worksheets[0]; //Create chart IChart chart = worksheet.Charts.Add(); //Set range chart.DataRange = worksheet.Range["A1:C2"]; //Set chart type chart.ChartType = ExcelChartType.Line; //Set serie format IChartSerieDataFormat format = chart.Series[0].Format; //Set marker style format.MarkerStyle = ChartMarkerType.Circle; //Set color format.MarkerBackgroundColor = Color.Red; format.MarkerForegroundColor = Color.Black; //Save to file workbook.SaveToFile("Chart.xlsx"); Type of marker. The following code illustrates how marker style can be applied to charts: //Create worksheet Workbook workbook = new Workbook(); workbook.LoadFromFile("Sample.xlsx"); Worksheet worksheet = workbook.Worksheets[0]; //Create chart IChart chart = worksheet.Charts.Add(); //Set range chart.DataRange = worksheet.Range["A1:C2"]; //Set chart type chart.ChartType = ExcelChartType.Line; //Set serie format IChartSerieDataFormat format = chart.Series[0].Format; //Set marker style format.MarkerStyle = ChartMarkerType.Star; //Save to file workbook.SaveToFile("Chart.xlsx"); Index to color of marker border. The following code illustrates how to set a color from ExcelColors enumeration to marker applied: //Create worksheet Workbook workbook = new Workbook(); workbook.LoadFromFile("Sample.xlsx"); Worksheet worksheet = workbook.Worksheets[0]; //Create chart IChart chart = worksheet.Charts.Add(); //Set range chart.DataRange = worksheet.Range["A1:C2"]; //Set chart type chart.ChartType = ExcelChartType.Line; //Set serie format IChartSerieDataFormat format = chart.Series[0].Format; //Set marker style format.MarkerStyle = ChartMarkerType.Circle; //Set color format.MarkerBackgroundKnownColor = ExcelColors.Red; format.MarkerForegroundKnownColor = ExcelColors.Black; //Save to file workbook.SaveToFile("Chart.xlsx"); Index to color of marker XlsFill. The following code illustrates how to set a color from ExcelColors enumeration to marker applied: //Create worksheet Workbook workbook = new Workbook(); workbook.LoadFromFile("Sample.xlsx"); Worksheet worksheet = workbook.Worksheets[0]; //Create chart IChart chart = worksheet.Charts.Add(); //Set range chart.DataRange = worksheet.Range["A1:C2"]; //Set chart type chart.ChartType = ExcelChartType.Line; //Set serie format IChartSerieDataFormat format = chart.Series[0].Format; //Set marker style format.MarkerStyle = ChartMarkerType.Circle; //Set color format.MarkerBackgroundKnownColor = ExcelColors.Red; format.MarkerForegroundKnownColor = ExcelColors.Black; //Save to file workbook.SaveToFile("Chart.xlsx"); Size of line markers. The following code illustrates how to set MarkerSize for applied markers in charts: //Create worksheet Workbook workbook = new Workbook(); workbook.LoadFromFile("Sample.xlsx"); Worksheet worksheet = workbook.Worksheets[0]; //Create chart IChart chart = worksheet.Charts.Add(); //Set range chart.DataRange = worksheet.Range["A1:C2"]; //Set chart type chart.ChartType = ExcelChartType.Line; //Set serie format IChartSerieDataFormat format = chart.Series[0].Format; //Set marker style format.MarkerStyle = ChartMarkerType.Circle; //Set marker size format.MarkerSize = 10; //Save to file workbook.SaveToFile("Chart.xlsx"); Automatic color. The following code illustrates how IsAutoMarker property can be used: //Create worksheet Workbook workbook = new Workbook(); workbook.LoadFromFile("Sample.xlsx"); Worksheet worksheet = workbook.Worksheets[0]; //Create chart IChart chart = worksheet.Charts.Add(); //Set range chart.DataRange = worksheet.Range["A1:F2"]; //Set chart type chart.ChartType = ExcelChartType.LineMarkers; //Set serie data format IChartSerieDataFormat format = chart.Series[0].DataPoints.DefaultDataPoint.DataFormat; //Check auto marker Console.Write(format.IsAutoMarker); //Save to file workbook.SaveToFile("Chart.xlsx"); Distance of pie slice from center of pie. The following code illustrates how to set Percent property: //Create worksheet Workbook workbook = new Workbook(); workbook.LoadFromFile("Sample.xlsx"); Worksheet worksheet = workbook.Worksheets[0]; //Create chart IChart chart = worksheet.Charts.Add(); //Set range chart.DataRange = worksheet.Range["A1:C2"]; //Set chart type chart.ChartType = ExcelChartType.Pie; //Set percent chart.Series[0].Format.Percent = 30; //Save to file workbook.SaveToFile("Chart.xlsx"); True to draw bubbles with 3D effects. The following code illustrates how Is3DBubbles property can be used: //Create worksheet Workbook workbook = new Workbook(); workbook.LoadFromFile("Sample.xlsx"); Worksheet worksheet = workbook.Worksheets[0]; //Create chart IChart chart = worksheet.Charts.Add(); //Set range chart.DataRange = worksheet.Range["A1:C2"]; //Set chart type chart.ChartType = ExcelChartType.Bubble3D; //Set serie format IChartSerieDataFormat format = chart.Series[0].Format; //Check type Console.WriteLine(format.Is3DBubbles); //Save to file workbook.SaveToFile("Chart.xlsx"); Gets common serie options. Read-only. The following code illustrates how IChartFormat.GapWidth can be set by accessing CommonSerieOptions property: //Create worksheet Workbook workbook = new Workbook(); workbook.LoadFromFile("Sample.xlsx"); Worksheet worksheet = workbook.Worksheets[0]; //Create chart IChart chart = worksheet.Charts.Add(); //Set range chart.DataRange = worksheet.Range["A1:C2"]; //Set chart type chart.ChartType = ExcelChartType.Column3DStacked; //Set options IChartFormat options = chart.Series[0].Format.Options; //Set Gap width options.GapWidth = 400; //Save to file workbook.SaveToFile("Chart.xlsx"); Indicates whether marker is supported by this chart/series. The following code illustrates how set ExcelTreeMapLabelOption.Banner to TreeMapLabelOption: //Create worksheet Workbook workbook = new Workbook(); workbook.LoadFromFile("Sample.xlsx"); Worksheet worksheet = workbook.Worksheets[0]; //Create chart IChart chart = worksheet.Charts.Add(); //Set range chart.DataRange = worksheet.Range["A1:C2"]; //Set chart type chart.ChartType = ExcelChartType.Pie; //Set serie format IChartSerieDataFormat format = chart.Series[0].Format; //Check marker support Console.WriteLine(format.IsMarkerSupported); //Save to file workbook.SaveToFile("Chart.xlsx"); Represents the chart series Axis. Frequency of labels. The following code illustrates how to set LabelsFrequency for IChartSeriesAxis: //Create worksheet Workbook workbook = new Workbook(); workbook.LoadFromFile("Sample.xlsx"); Worksheet worksheet = workbook.Worksheets[0]; //Create chart IChart chart = worksheet.Charts.Add(); //Set range chart.DataRange = worksheet.Range["A1:C3"]; //Set chart type chart.ChartType = ExcelChartType.Column3D; //Set LabelsFrequency chart.PrimarySerieAxis.LabelsFrequency = 2; //Save to file workbook.SaveToFile("Chart.xlsx"); Represents the number of categories or series between tick-mark labels. The following code illustrates how to set TickLabelSpacing for IChartSeriesAxis: //Create worksheet Workbook workbook = new Workbook(); workbook.LoadFromFile("Sample.xlsx"); Worksheet worksheet = workbook.Worksheets[0]; //Create chart IChart chart = worksheet.Charts.Add(); //Set range chart.DataRange = worksheet.Range["A1:C3"]; //Set chart type chart.ChartType = ExcelChartType.Column3D; //Set tick label spacing chart.PrimarySerieAxis.TickLabelSpacing = 2; //Save to file workbook.SaveToFile("Chart.xlsx"); Frequency of tick marks. The following code illustrates how to set TickMarksFrequency for IChartSeriesAxis: //Create worksheet Workbook workbook = new Workbook(); workbook.LoadFromFile("Sample.xlsx"); Worksheet worksheet = workbook.Worksheets[0]; //Create chart IChart chart = worksheet.Charts.Add(); //Set range chart.DataRange = worksheet.Range["A1:C3"]; //Set chart type chart.ChartType = ExcelChartType.Column3D; //Set tick mark frequency chart.PrimarySerieAxis.TickMarksFrequency = 2; //Save to file workbook.SaveToFile("Chart.xlsx"); Top row of the chart in the worksheet. Bottom row of the chart in the worksheet. Left column of the chart in the worksheet. Right column of the chart in the worksheet. Represents the Text Area in a chart. Area's text.Some items(such as legend,axis...) maybe invalid. The following code illustrates the use of Text property: //Create worksheet Workbook workbook = new Workbook(); workbook.LoadFromFile("Sample.xlsx"); Worksheet worksheet = workbook.Worksheets[0]; //Create chart IChart chart = worksheet.Charts.Add(); //Set range chart.DataRange = worksheet.Range["B2:C6"]; //Set chart type chart.ChartType = ExcelChartType.Cone3DClustered; //Set the Area's text in the chart chart.ChartTitleArea.Text = "Student Chart"; //Save to file workbook.SaveToFile("Chart.xlsx"); Text rotation angle. The following code illustrates the use of TextRotationAngle property: //Create worksheet Workbook workbook = new Workbook(); workbook.LoadFromFile("Sample.xlsx"); Worksheet worksheet = workbook.Worksheets[0]; //Create chart IChart chart = worksheet.Charts.Add(); //Set range chart.DataRange = worksheet.Range["B2:C6"]; //Set chart type chart.ChartType = ExcelChartType.Cone3DClustered; //Set the Area's text in the chart chart.ChartTitleArea.Text = "Student Chart"; //Set the Text rotation angle chart.ChartTitleArea.TextRotationAngle = 30; //Save to file workbook.SaveToFile("Chart.xlsx"); Return format of the text area. The following code illustrates the use of FrameFormat property: //Create worksheet Workbook workbook = new Workbook(); workbook.LoadFromFile("Sample.xlsx"); Worksheet worksheet = workbook.Worksheets[0]; //Create chart IChart chart = worksheet.Charts.Add(); //Set range chart.DataRange = worksheet.Range["B2:C6"]; //Set chart type chart.ChartType = ExcelChartType.Cone3DClustered; //Get the formatting options of the chart for text area chart.ChartTitleArea.Text = "Student Chart"; chart.ChartTitleArea.FrameFormat.Border.Color = Color.Brown; chart.ChartTitleArea.FrameFormat.Interior.Pattern = ExcelPatternType.Percent25; //Save to file workbook.SaveToFile("Chart.xlsx"); Display mode of the background. The following code illustrates the use of BackgroundMode property: //Create worksheet Workbook workbook = new Workbook(); workbook.LoadFromFile("Sample.xlsx"); Worksheet worksheet = workbook.Worksheets[0]; //Create chart IChart chart = worksheet.Charts.Add(); //Set range chart.DataRange = worksheet.Range["B2:C6"]; //Set chart type chart.ChartType = ExcelChartType.Cone3DClustered; //Set the Area's text in the chart chart.ChartTitleArea.Text = "Student Chart"; //Set the Display mode of the background chart.ChartTitleArea.BackgroundMode = ChartBackgroundMode.Opaque; //Save to file workbook.SaveToFile("Chart.xlsx"); True if background is set to automatic. The following code illustrates the use of IsAutoMode property: //Create worksheet Workbook workbook = new Workbook(); workbook.LoadFromFile("Sample.xlsx"); Worksheet worksheet = workbook.Worksheets[0]; //Create chart IChart chart = worksheet.Charts.Add(); //Set range chart.DataRange = worksheet.Range["B2:C6"]; //Set chart type chart.ChartType = ExcelChartType.Cone3DClustered; //Set the Area's text in the chart chart.ChartTitleArea.Text = "Student Chart"; //True if background is set to automatic Console.WriteLine(chart.ChartTitleArea.IsAutoMode); //Save to file workbook.SaveToFile("Chart.xlsx"); Represents ChartTrendLine interface. Gets the IThreeDFormat object. Read-only.[Deprecated] Gets the shadow.Read-only. The following code illustrates how to access and format the IShadow for IChartTrendLine: //Create worksheet Workbook workbook = new Workbook(); workbook.LoadFromFile("Sample.xlsx"); Worksheet worksheet = workbook.Worksheets[0]; //Create chart Chart chart = worksheet.Charts.Add(ExcelChartType.ScatterMarkers); //Add serie and set serie Y and X Values IChartSerie serie = chart.Series.Add(); serie.Values = worksheet.Range["A2:C2"]; serie.CategoryLabels = worksheet.Range["A1:C1"]; //Get chart trendlines collection and Add trendline IChartTrendLines trendLines = serie.TrendLines; IChartTrendLine trendline = trendLines.Add(); //Set trendline shadow color trendline.Shadow.Color = Color.Red; //Set trendline shadow outer presets trendline.Shadow.ShadowOuterType = XLSXChartShadowOuterType.OffsetDiagonalTopRight; //Save to file workbook.SaveToFile("Chart.xlsx"); Represents border object. Read only. The following code illustrates how to access and format the IChartBorder for IChartTrendLine: //Create worksheet Workbook workbook = new Workbook(); workbook.LoadFromFile("Sample.xlsx"); Worksheet worksheet = workbook.Worksheets[0]; //Create chart IChart chart = worksheet.Charts.Add(); //Add serie and set serie Y and X Values IChartSerie serie = chart.Series.Add(); serie.Values = worksheet.Range["A2:C2"]; serie.CategoryLabels = worksheet.Range["A1:C1"]; //Get chart trendlines collection IChartTrendLines trendLines = serie.TrendLines; //Add trendline IChartTrendLine trendline = trendLines.Add(); //Set trendline broder properties trendline.Border.Color = Color.Red; //Save to file workbook.SaveToFile("Chart.xlsx"); Represents number of periods that the trendline extends backward. The following code illustrates how to set backward forecast value for IChartTrendLine object: //Create worksheet Workbook workbook = new Workbook(); workbook.LoadFromFile("Sample.xlsx"); Worksheet worksheet = workbook.Worksheets[0]; //Create chart Chart chart = worksheet.Charts.Add(ExcelChartType.ScatterMarkers); //Add serie and set serie Y and X Values IChartSerie serie = chart.Series.Add(); serie.Values = worksheet.Range["A2:C2"]; serie.CategoryLabels = worksheet.Range["A1:C1"]; //Set X axis minimum and maximum values chart.PrimaryCategoryAxis.MinValue = -2; chart.PrimaryCategoryAxis.MaxValue = 2; //Get chart trendlines collection and Add trendline IChartTrendLines trendLines = serie.TrendLines; IChartTrendLine trendline = trendLines.Add(); //Set backward forecast value trendline.Backward = 3; //Save to file workbook.SaveToFile("Chart.xlsx"); Represents number of periods that the trendline extends forward. The following code illustrates how to set Forward forecast value for IChartTrendLine object: //Create worksheet Workbook workbook = new Workbook(); workbook.LoadFromFile("Sample.xlsx"); Worksheet worksheet = workbook.Worksheets[0]; //Create chart Chart chart = worksheet.Charts.Add(ExcelChartType.ScatterMarkers); //Add serie and set serie Y and X Values IChartSerie serie = chart.Series.Add(); serie.Values = worksheet.Range["A2:C2"]; serie.CategoryLabels = worksheet.Range["A1:C1"]; //Set X axis minimum and maximum values chart.PrimaryCategoryAxis.MinValue = -2; chart.PrimaryCategoryAxis.MaxValue = 2; //Get chart trendlines collection and Add trendline IChartTrendLines trendLines = serie.TrendLines; IChartTrendLine trendline = trendLines.Add(); //Set backward forecast value trendline.Forward = 3; //Save to file workbook.SaveToFile("Chart.xlsx"); True if the equation for the trendline is displayed on the chart. The following code illustrates how to display equation for IChartTrendLine object: //Create worksheet Workbook workbook = new Workbook(); workbook.LoadFromFile("Sample.xlsx"); Worksheet worksheet = workbook.Worksheets[0]; //Create chart and Get chart serie Chart chart = worksheet.Charts.Add(ExcelChartType.ColumnClustered); chart.DataRange = worksheet.Range["A1:C3"]; IChartSerie serie = chart.Series[0]; //Get chart trendlines collection and Add trendline IChartTrendLines trendLines = serie.TrendLines; IChartTrendLine trendline = trendLines.Add(); //Set equation in trendline trendline.DisplayEquation = true; //Save to file workbook.SaveToFile("Chart.xlsx"); True if the R-squared value of the trendline is displayed on the chart. The following code illustrates how to display RSquared for IChartTrendLine object: //Create worksheet Workbook workbook = new Workbook(); workbook.LoadFromFile("Sample.xlsx"); Worksheet worksheet = workbook.Worksheets[0]; //Create chart and Get chart serie Chart chart = worksheet.Charts.Add(ExcelChartType.ColumnClustered); chart.DataRange = worksheet.Range["A1:C3"]; IChartSerie serie = chart.Series[0]; //Get chart trendlines collection and Add trendline IChartTrendLines trendLines = serie.TrendLines; IChartTrendLine trendline = trendLines.Add(); //Set RSquared value for trendline trendline.DisplayRSquared = true; //Save to file workbook.SaveToFile("Chart.xlsx"); Represents point where the trendline crosses the value axis. The following code illustrates how to set intercept value for IChartTrendLine object: //Create worksheet Workbook workbook = new Workbook(); workbook.LoadFromFile("Sample.xlsx"); Worksheet worksheet = workbook.Worksheets[0]; //Create chart Chart chart = worksheet.Charts.Add(ExcelChartType.ScatterMarkers); //Add serie and set serie Y and X Values IChartSerie serie = chart.Series.Add(); serie.Values = worksheet.Range["A2:C2"]; serie.CategoryLabels = worksheet.Range["A1:C1"]; //Get chart trendlines collection and Add trendline IChartTrendLines trendLines = serie.TrendLines; IChartTrendLine trendline = trendLines.Add(); //Set intercept value trendline.Intercept = 10; //Save to file workbook.SaveToFile("Chart.xlsx"); True if the point where the trendline crosses the value axis is automatically determined by the regression. The following code illustrates how to check whether the IChartTrendLine object intercept value is automatic or not: //Create worksheet Workbook workbook = new Workbook(); workbook.LoadFromFile("Sample.xlsx"); Worksheet worksheet = workbook.Worksheets[0]; //Create chart Chart chart = worksheet.Charts.Add(ExcelChartType.ScatterMarkers); //Add serie and set serie Y and X Values IChartSerie serie = chart.Series.Add(); serie.Values = worksheet.Range["A2:C2"]; serie.CategoryLabels = worksheet.Range["A1:C1"]; //Get chart trendlines collection and Add trendline IChartTrendLines trendLines = serie.TrendLines; IChartTrendLine trendline = trendLines.Add(); //Set intercept value trendline.Intercept = 10; //Check trendline intercept is automatic Console.WriteLine("Is Trendline Intercept value is automatic:" + trendline.InterceptIsAuto.ToString()); //Save to file workbook.SaveToFile("Chart.xlsx"); Represents trend line type. The following code illustrates how to set TrendLineType for IChartTrendLine object: //Create worksheet Workbook workbook = new Workbook(); workbook.LoadFromFile("Sample.xlsx"); Worksheet worksheet = workbook.Worksheets[0]; //Create chart and Get chart serie Chart chart = worksheet.Charts.Add(ExcelChartType.ColumnClustered); chart.DataRange = worksheet.Range["A1:C3"]; IChartSerie serie = chart.Series[0]; //Get chart trendlines collection and Add trendline IChartTrendLines trendLines = serie.TrendLines; IChartTrendLine trendline = trendLines.Add(); //Set trendline type trendline.Type = TrendLineType.Polynomial; //Save to file workbook.SaveToFile("Chart.xlsx"); Represents for Moving Averange and Polynomial trend line type order value. The following code illustrates how to set order value for IChartTrendLine object: //Create worksheet Workbook workbook = new Workbook(); workbook.LoadFromFile("Sample.xlsx"); Worksheet worksheet = workbook.Worksheets[0]; //Create chart Chart chart = worksheet.Charts.Add(ExcelChartType.ColumnClustered); //Add serie and set serie Y and X Values IChartSerie serie = chart.Series.Add(); serie.Values = worksheet.Range["A2:C2"]; serie.CategoryLabels = worksheet.Range["A1:C1"]; //Get chart trendlines collection and Add trendline IChartTrendLines trendLines = serie.TrendLines; IChartTrendLine trendline = trendLines.Add(); //Set trendline type trendline.Type = TrendLineType.Polynomial; //Set trendline order trendline.Order = 6; //Save to file workbook.SaveToFile("Chart.xlsx"); Indicates if name is default. The following code illustrates how to check whether the IChartTrendLine object name is default or not: //Create worksheet Workbook workbook = new Workbook(); workbook.LoadFromFile("Sample.xlsx"); Worksheet worksheet = workbook.Worksheets[0]; //Create chart and Get chart serie Chart chart = worksheet.Charts.Add(ExcelChartType.ColumnClustered); chart.DataRange = worksheet.Range["A1:C3"]; IChartSerie serie = chart.Series[0]; //Get chart trendlines collection and Add trendline IChartTrendLines trendLines = serie.TrendLines; IChartTrendLine trendline = trendLines.Add(TrendLineType.Logarithmic); //Set trendline name trendline.Name = "Trendline 1"; //Check trendline name is automatic Console.WriteLine(trendline.NameIsAuto); //Save to file workbook.SaveToFile("Chart.xlsx"); Represents trendline name. The following code illustrates how to access name from IChartTrendLine object: //Create worksheet Workbook workbook = new Workbook(); workbook.LoadFromFile("Sample.xlsx"); Worksheet worksheet = workbook.Worksheets[0]; //Create chart and Get chart serie Chart chart = worksheet.Charts.Add(ExcelChartType.ColumnClustered); chart.DataRange = worksheet.Range["A1:C3"]; IChartSerie serie = chart.Series[0]; //Get chart trendlines collection and Add trendline IChartTrendLines trendLines = serie.TrendLines; IChartTrendLine trendline = trendLines.Add(TrendLineType.Logarithmic); //Get trendline Name Console.WriteLine(trendline.Name); //Save to file workbook.SaveToFile("Chart.xlsx"); Returns data label. Read only. The following code illustrates how to enable and set IChartTextArea text for IChartTrendLine object: //Create worksheet Workbook workbook = new Workbook(); workbook.LoadFromFile("Sample.xlsx"); Worksheet worksheet = workbook.Worksheets[0]; //Create chart and Get chart serie Chart chart = worksheet.Charts.Add(ExcelChartType.ColumnClustered); chart.DataRange = worksheet.Range["A1:C3"]; IChartSerie serie = chart.Series[0]; //Get chart trendlines collection and Add trendline IChartTrendLines trendLines = serie.TrendLines; IChartTrendLine trendline = trendLines.Add(); //Enable trendline data label by DisplayRSquared trendline.DisplayRSquared = true; //Set data label text trendline.DataLabel.Text = "y=10*x"; //Save to file workbook.SaveToFile("Chart.xlsx"); Return trendline formula. Read only. Clears current trend line. Represents the chart value axis. Maximum value on axis. The following code illustrates how to set MinValue and MaxValue for charts: //Create worksheet Workbook workbook = new Workbook(); workbook.LoadFromFile("Sample.xlsx"); Worksheet worksheet = workbook.Worksheets[0]; //Create chart Chart chart = worksheet.Charts.Add(); chart.DataRange = worksheet.Range["A1:C2"]; //Set chart value axis IChartValueAxis valueAxis = chart.PrimaryValueAxis; //Set min and max value valueAxis.MinValue = -20; valueAxis.MaxValue = 60; //Save to file workbook.SaveToFile("Chart.xlsx"); Maximum value on axis. The following code illustrates how to set MinValue and MaxValue for charts: //Create worksheet Workbook workbook = new Workbook(); workbook.LoadFromFile("Sample.xlsx"); Worksheet worksheet = workbook.Worksheets[0]; //Create chart Chart chart = worksheet.Charts.Add(); chart.DataRange = worksheet.Range["A1:C2"]; //Set chart value axis IChartValueAxis valueAxis = chart.PrimaryValueAxis; //Set min and max value valueAxis.MinValue = -20; valueAxis.MaxValue = 60; //Save to file workbook.SaveToFile("Chart.xlsx"); Value of major increment. The following code illustrates how to set major axis increment unit for charts: //Create worksheet Workbook workbook = new Workbook(); workbook.LoadFromFile("Sample.xlsx"); Worksheet worksheet = workbook.Worksheets[0]; //Create chart Chart chart = worksheet.Charts.Add(); chart.DataRange = worksheet.Range["A1:C2"]; //Set chart value axis IChartValueAxis valueAxis = chart.PrimaryValueAxis; //Set major unit valueAxis.MajorUnit = 20; //Save to file workbook.SaveToFile("Chart.xlsx"); Value of minor increment. The following code illustrates how to set minor axis increment unit for charts: //Create worksheet Workbook workbook = new Workbook(); workbook.LoadFromFile("Sample.xlsx"); Worksheet worksheet = workbook.Worksheets[0]; //Create chart Chart chart = worksheet.Charts.Add(); chart.DataRange = worksheet.Range["A1:C2"]; //Set chart value axis IChartValueAxis valueAxis = chart.PrimaryValueAxis; //Set major unit valueAxis.MinorUnit = 8; //Save to file workbook.SaveToFile("Chart.xlsx"); Value where category axis crosses. The following code illustrates how to set CrossValue for charts: //Create worksheet Workbook workbook = new Workbook(); workbook.LoadFromFile("Sample.xlsx"); Worksheet worksheet = workbook.Worksheets[0]; //Create chart Chart chart = worksheet.Charts.Add(); chart.DataRange = worksheet.Range["A1:C2"]; //Set chart value axis IChartValueAxis valueAxis = chart.PrimaryValueAxis; //Set CrossValue valueAxis.CrossValue = 15; //Save to file workbook.SaveToFile("Chart.xlsx"); Represents the point on the axis another axis crosses it. The following code illustrates how to set CrossesAt for charts: //Create worksheet Workbook workbook = new Workbook(); workbook.LoadFromFile("Sample.xlsx"); Worksheet worksheet = workbook.Worksheets[0]; //Create chart Chart chart = worksheet.Charts.Add(); chart.DataRange = worksheet.Range["A1:C2"]; //Set chart value axis IChartValueAxis valueAxis = chart.PrimaryValueAxis; //Set CrossAt valueAxis.CrossesAt = 15; //Save to file workbook.SaveToFile("Chart.xlsx"); Automatic minimum selected. The following code illustrates how to access IsAutoMin: //Create worksheet Workbook workbook = new Workbook(); workbook.LoadFromFile("Sample.xlsx"); Worksheet worksheet = workbook.Worksheets[0]; //Create chart Chart chart = worksheet.Charts.Add(); chart.DataRange = worksheet.Range["A1:C2"]; //Set chart value axis IChartValueAxis valueAxis = chart.PrimaryValueAxis; //Check IsAutoMin Console.WriteLine(valueAxis.IsAutoMin); //Save to file workbook.SaveToFile("Chart.xlsx"); Automatic maximum selected. The following code illustrates how to access IsAutoMax: //Create worksheet Workbook workbook = new Workbook(); workbook.LoadFromFile("Sample.xlsx"); Worksheet worksheet = workbook.Worksheets[0]; //Create chart Chart chart = worksheet.Charts.Add(); chart.DataRange = worksheet.Range["A1:C2"]; //Set chart value axis IChartValueAxis valueAxis = chart.PrimaryValueAxis; //Check IsAutoMax Console.WriteLine(valueAxis.IsAutoMax); //Save to file workbook.SaveToFile("Chart.xlsx"); Automatic major selected. The following code illustrates how to access IsAutoMajor: //Create worksheet Workbook workbook = new Workbook(); workbook.LoadFromFile("Sample.xlsx"); Worksheet worksheet = workbook.Worksheets[0]; //Create chart Chart chart = worksheet.Charts.Add(); chart.DataRange = worksheet.Range["A1:C2"]; //Set chart value axis IChartValueAxis valueAxis = chart.PrimaryValueAxis; //Check IsAutoMajor Console.WriteLine(valueAxis.IsAutoMajor); //Save to file workbook.SaveToFile("Chart.xlsx"); Automatic minor selected. The following code illustrates how to access IsAutoMinor: //Create worksheet Workbook workbook = new Workbook(); workbook.LoadFromFile("Sample.xlsx"); Worksheet worksheet = workbook.Worksheets[0]; //Create chart Chart chart = worksheet.Charts.Add(); chart.DataRange = worksheet.Range["A1:C2"]; //Set chart value axis IChartValueAxis valueAxis = chart.PrimaryValueAxis; //Check IsAutoMinor Console.WriteLine(valueAxis.IsAutoMinor); //Save to file workbook.SaveToFile("Chart.xlsx"); Automatic category crossing point selected. The following code illustrates how to access IsAutoCross: //Create worksheet Workbook workbook = new Workbook(); workbook.LoadFromFile("Sample.xlsx"); Worksheet worksheet = workbook.Worksheets[0]; //Create chart Chart chart = worksheet.Charts.Add(); chart.DataRange = worksheet.Range["A1:C2"]; //Set chart value axis IChartValueAxis valueAxis = chart.PrimaryValueAxis; //Set CrossAt valueAxis.CrossesAt = 15; //Check IsAutoCross Console.WriteLine(valueAxis.IsAutoCross); //Save to file workbook.SaveToFile("Chart.xlsx"); Logarithmic scale. The following code illustrates how to set IsLogScale for charts: //Create worksheet Workbook workbook = new Workbook(); workbook.LoadFromFile("Sample.xlsx"); Worksheet worksheet = workbook.Worksheets[0]; //Create chart Chart chart = worksheet.Charts.Add(); chart.DataRange = worksheet.Range["A1:C2"]; //Set chart value axis IChartValueAxis valueAxis = chart.PrimaryValueAxis; //Set IsLogScale valueAxis.IsLogScale = true; //Save to file workbook.SaveToFile("Chart.xlsx"); Values in reverse order. The following code illustrates how to set IsReverseOrder for charts: //Create worksheet Workbook workbook = new Workbook(); workbook.LoadFromFile("Sample.xlsx"); Worksheet worksheet = workbook.Worksheets[0]; //Create chart Chart chart = worksheet.Charts.Add(); chart.DataRange = worksheet.Range["A1:C2"]; //Set chart value axis IChartValueAxis valueAxis = chart.PrimaryValueAxis; //Set IsReverseOrder valueAxis.IsReverseOrder = true; //Save to file workbook.SaveToFile("Chart.xlsx"); Category axis to cross at maximum value. The following code illustrates how to access IsMaxCross: //Create worksheet Workbook workbook = new Workbook(); workbook.LoadFromFile("Sample.xlsx"); Worksheet worksheet = workbook.Worksheets[0]; //Create chart Chart chart = worksheet.Charts.Add(); chart.DataRange = worksheet.Range["A1:C2"]; //Set chart value axis IChartValueAxis valueAxis = chart.PrimaryValueAxis; //Get IsMaxCross Console.WriteLine(valueAxis.IsMaxCross); //Save to file workbook.SaveToFile("Chart.xlsx"); Interface that represents chart wall or floor. Represents foreground excel color. Returns textarea's color object. Read-only. Gets value indicating whether TextRotation was changed. Read-only. Represents the Legend Paragraph line color Begin Arrow Head Style Begin Arrow head Length Begin Arrow head Width End Arrow Head Style End Arrow head Length End Arrow head Width DashStyle Style Transparency value 0---1 Weight MiddleOffsetPercent Set middle point value , when middle point localed at back of start point value is less than 0 when middle point localed at start point value is 0 when middle point localed at end point value is 1 when middle point localed at back of end point value is greater than 0 Gets or sets the location. The location. Gets or sets the size. The size. Gets or sets the picture. The picture. Gets or sets picture shape object that defines look and position of the OleObject inside parent worksheet. Gets or sets a value indicating whether [display as icon]. true if [display as icon]; otherwise, false. Gets or sets the type of the object. Gets or sets the native data. Warning : It's not recommend use set method,because this property decision by width and height Gets and sets the html string which contains data and some formattings in this shape. Specifies all possible settings for how drawing object shall be resized when the rows and columns between its start and ending anchor are resized or inserted(ComboBoxShape and CheckBoxShape and RadioButtonShape set MoveAndResize type value is invalid) Gets or sets the range linked to the shape's value. Creates new list object and adds it to the collection. Name of the new list object. Destination range. Newly created object. Supports cloning, which creates a new instance of a class with the same value as an existing instance. Creates a new object that is a copy of the current instance. Parent object for a copy of this instance. A new object that is a copy of this instance. Represents a table on a worksheet. Gets or sets name of the list object. The following code illustrates how to access Name property of the table: //Create worksheet Workbook workbook = new Workbook(); workbook.LoadFromFile("Sample.xlsx"); Worksheet worksheet = workbook.Worksheets[0]; //Create table IListObject table1 = worksheet.ListObjects.Create("Table1", worksheet["A1:C6"]); //Set Table Name table1.Name = "Products"; //Get Table Name Console.WriteLine(table1.Name); //Save to file workbook.SaveToFile("Table.xlsx"); Gets or sets list object's location. The following code illustrates how table range can be set and accessed: //Create worksheet Workbook workbook = new Workbook(); workbook.LoadFromFile("Sample.xlsx"); Worksheet worksheet = workbook.Worksheets[0]; //Create table IListObject table1 = worksheet.ListObjects.Create("Table1", worksheet["A1:C6"]); //Set Table Range table1.Location = worksheet.Range["A1:C7"]; //Get Table Range Console.WriteLine(table1.Location.RangeAddressLocal.ToString()); //Save to file workbook.SaveToFile("Table.xlsx"); Gets collection of all columns of the list object. The following code illustrates how to access Columns property of the table: //Create worksheet Workbook workbook = new Workbook(); workbook.LoadFromFile("Sample.xlsx"); Worksheet worksheet = workbook.Worksheets[0]; //Create table IListObject table1 = worksheet.ListObjects.Create("Table1", worksheet["A1:C6"]); //Total row table1.DisplayTotalRow = true; table1.Columns[0].TotalsRowLabel = "Total"; table1.Columns[1].TotalsCalculation = ExcelTotalsCalculation.Sum; table1.Columns[2].TotalsCalculation = ExcelTotalsCalculation.Sum; //Save to file workbook.SaveToFile("Table.xlsx"); Gets index of the current list object. The following code illustrates how to access the index of the table: //Create worksheet Workbook workbook = new Workbook(); workbook.LoadFromFile("Sample.xlsx"); Worksheet worksheet = workbook.Worksheets[0]; //Create table IListObject table1 = worksheet.ListObjects.Create("Table1", worksheet["A1:C6"]); //Print Table index Console.WriteLine(table1.Index); //Save to file workbook.SaveToFile("Table.xlsx"); Gets or sets the built-in table style for the specified ListObject object. The following code illustrates how to set TableBuiltInStyles.TableStyleMedium9 to BuiltInTableStyle property: //Create worksheet Workbook workbook = new Workbook(); workbook.LoadFromFile("Sample.xlsx"); Worksheet worksheet = workbook.Worksheets[0]; //Create table IListObject table1 = worksheet.ListObjects.Create("Table1", worksheet["A1:C6"]); //Apply builtin style table1.BuiltInTableStyle = TableBuiltInStyles.TableStyleMedium9; //Save to file workbook.SaveToFile("Table.xlsx"); Gets parent worksheet object. The following code illustrates how the parent worksheet can be accessed: //Create worksheet Workbook workbook = new Workbook(); workbook.LoadFromFile("Sample.xlsx"); Worksheet worksheet = workbook.Worksheets[0]; //Create table IListObject table1 = worksheet.ListObjects.Create("Table1", worksheet["A1:C6"]); //Get parent worksheet's name Console.WriteLine(table1.Worksheet.Name); //Save to file workbook.SaveToFile("Table.xlsx"); Gets or sets list object name. The following code illustrates how the get the DisplayName and print it to console: //Create worksheet Workbook workbook = new Workbook(); workbook.LoadFromFile("Sample.xlsx"); Worksheet worksheet = workbook.Worksheets[0]; //Create table IListObject table1 = worksheet.ListObjects.Create("Table1", worksheet["A1:C6"]); //Get Table display name Console.WriteLine(table1.DisplayName); //Save to file workbook.SaveToFile("Table.xlsx"); Gets number of totals rows. The following code illustrates how to get the totals rows count: //Create worksheet Workbook workbook = new Workbook(); workbook.LoadFromFile("Sample.xlsx"); Worksheet worksheet = workbook.Worksheets[0]; //Create table IListObject table1 = worksheet.ListObjects.Create("Table1", worksheet["A1:C6"]); //Check totals row count Console.WriteLine(table1.TotalsRowCount); //Save to file workbook.SaveToFile("Table.xlsx"); Gets or sets a value indicating whether the Total row is visible. The following code illustrates how to enable it by setting it to "True" and show the sum of values in second and third columns in the totals row: //Create worksheet Workbook workbook = new Workbook(); workbook.LoadFromFile("Sample.xlsx"); Worksheet worksheet = workbook.Worksheets[0]; //Create table IListObject table1 = worksheet.ListObjects.Create("Table1", worksheet["A1:C6"]); //Show total row table1.DisplayTotalRow = true; table1.Columns[0].TotalsRowLabel = "Total"; table1.Columns[1].TotalsCalculation = ExcelTotalsCalculation.Sum; table1.Columns[2].TotalsCalculation = ExcelTotalsCalculation.Sum; //Save to file workbook.SaveToFile("Table.xlsx"); Gets or sets a value indicating whether row stripes should be present. The following code illustrates how to set ShowTableStyleRowStripes to "False" and set ShowTableStyleColumnStripes to "True" to enable table formatting in columns only: //Create worksheet Workbook workbook = new Workbook(); workbook.LoadFromFile("Sample.xlsx"); Worksheet worksheet = workbook.Worksheets[0]; //Create table IListObject table1 = worksheet.ListObjects.Create("Table1", worksheet["A1:C6"]); //Set Row Column Stripe Visiblity table1.ShowTableStyleRowStripes = false; table1.ShowTableStyleColumnStripes = true; //Apply builtin style table1.BuiltInTableStyle = TableBuiltInStyles.TableStyleMedium9; //Create style for table number format IStyle style1 = workbook.Styles.Add("CurrencyFormat"); style1.NumberFormat = "_($* #,##0.00_);_($* (#,##0.00);_($* \" - \"??_);_(@_)"; //Apply number format worksheet["B2:C6"].CellStyleName = "CurrencyFormat"; //Save to file workbook.SaveToFile("Table.xlsx"); Gets or sets a value indicating whether column stripes should be present. The following code illustrates how to set ShowTableStyleRowStripes to "False" and set ShowTableStyleColumnStripes to "True" to change the default formatting of the table: //Create worksheet Workbook workbook = new Workbook(); workbook.LoadFromFile("Sample.xlsx"); Worksheet worksheet = workbook.Worksheets[0]; //Create table IListObject table1 = worksheet.ListObjects.Create("Table1", worksheet["A1:C6"]); //Set Row Column Stripe Visiblity table1.ShowTableStyleRowStripes = false; table1.ShowTableStyleColumnStripes = true; //Apply builtin style table1.BuiltInTableStyle = TableBuiltInStyles.TableStyleMedium9; //Create style for table number format IStyle style1 = workbook.Styles.Add("CurrencyFormat"); style1.NumberFormat = "_($* #,##0.00_);_($* (#,##0.00);_($* \" - \"??_);_(@_)"; //Apply number format worksheet["B2:C6"].CellStyleName = "CurrencyFormat"; //Save to file workbook.SaveToFile("Table.xlsx"); Gets or sets a value indicating whether last column is present. The following code illustrates how to set DisplayLastColumn to "true" to enable the format for the last column: //Create worksheet Workbook workbook = new Workbook(); workbook.LoadFromFile("Sample.xlsx"); Worksheet worksheet = workbook.Worksheets[0]; //Create table IListObject table1 = worksheet.ListObjects.Create("Table1", worksheet["A1:C6"]); //Set Column Visiblity table1.DisplayFirstColumn = true; table1.DisplayLastColumn = true; //Save to file workbook.SaveToFile("Table.xlsx"); Gets or sets a value indicating whether first column is present. The following code illustrates how to set DisplayFirstColumn to "true" to enable the format for the first column: //Create worksheet Workbook workbook = new Workbook(); workbook.LoadFromFile("Sample.xlsx"); Worksheet worksheet = workbook.Worksheets[0]; //Create table IListObject table1 = worksheet.ListObjects.Create("Table1", worksheet["A1:C6"]); //Set Column Visiblity table1.DisplayFirstColumn = true; table1.DisplayLastColumn = true; //Save to file workbook.SaveToFile("Table.xlsx"); Gets or sets a Boolean value indicating whether to hide/display header row. The following code illustrates how to hide the header row of the table: //Create worksheet Workbook workbook = new Workbook(); workbook.LoadFromFile("Sample.xlsx"); Worksheet worksheet = workbook.Worksheets[0]; //Create table IListObject table1 = worksheet.ListObjects.Create("Table1", worksheet["A1:C6"]); //Set Header Visiblity table1.DisplayHeaderRow = true; //Save to file workbook.SaveToFile("Table.xlsx"); Gets the AutoFiltersCollection collection in the table. Read-only. Represents a column in the table. Gets or sets name of the column. The following code illustrates how create table using the data in the range "A1:C6" and print first column's name,id and index: //Create worksheet Workbook workbook = new Workbook(); workbook.LoadFromFile("Sample.xlsx"); Worksheet worksheet = workbook.Worksheets[0]; //Create table IListObject table1 = worksheet.ListObjects.Create("Table1", worksheet["A1:C6"]); //Print Column Name, ID, Index Console.WriteLine("Column Name " + table1.Columns[0].Name); Console.WriteLine("Column ID " + table1.Columns[0].Id); Console.WriteLine("Column Index " + table1.Columns[0].Index); //Save to file workbook.SaveToFile("Table.xlsx"); Gets column index. The following code illustrates how create table using the data in the range "A1:C6" and print first column's name,id and index: //Create worksheet Workbook workbook = new Workbook(); workbook.LoadFromFile("Sample.xlsx"); Worksheet worksheet = workbook.Worksheets[0]; //Create table IListObject table1 = worksheet.ListObjects.Create("Table1", worksheet["A1:C6"]); //Print Column Name, ID, Index Console.WriteLine("Column Name " + table1.Columns[0].Name); Console.WriteLine("Column ID " + table1.Columns[0].Id); Console.WriteLine("Column Index " + table1.Columns[0].Index); //Save to file workbook.SaveToFile("Table.xlsx"); Gets column id of current column. Read-only. The following code illustrates how create table using the data in the range "A1:C6" and print first column's name,id and index: //Create worksheet Workbook workbook = new Workbook(); workbook.LoadFromFile("Sample.xlsx"); Worksheet worksheet = workbook.Worksheets[0]; //Create table IListObject table1 = worksheet.ListObjects.Create("Table1", worksheet["A1:C6"]); //Print Column Name, ID, Index Console.WriteLine("Column Name " + table1.Columns[0].Name); Console.WriteLine("Column ID " + table1.Columns[0].Id); Console.WriteLine("Column Index " + table1.Columns[0].Index); //Save to file workbook.SaveToFile("Table.xlsx"); Gets or sets function used for totals calculation. The following code illustrates how to set IListObject.ShowTotals to "True" to enable totals and set ExcelTotalsCalculation.Sum for second and third columns to get sum of values in the respective columns: //Create worksheet Workbook workbook = new Workbook(); workbook.LoadFromFile("Sample.xlsx"); Worksheet worksheet = workbook.Worksheets[0]; //Create table IListObject table1 = worksheet.ListObjects.Create("Table1", worksheet["A1:C6"]); //Total row table1.ShowTotals = true; table1.Columns[0].TotalsRowLabel = "Total"; table1.Columns[1].TotalsCalculation = ExcelTotalsCalculation.Sum; table1.Columns[2].TotalsCalculation = ExcelTotalsCalculation.Sum; //Save to file workbook.SaveToFile("Table.xlsx"); Gets or sets label of the totals row. The following code illustrates how to set a string "Total" to the first column's TotalsRowLabel property to indicate that it's adjacent cell holds sum of the values of it's column: //Create worksheet Workbook workbook = new Workbook(); workbook.LoadFromFile("Sample.xlsx"); Worksheet worksheet = workbook.Worksheets[0]; //Create table IListObject table1 = worksheet.ListObjects.Create("Table1", worksheet["A1:C6"]); //Total row table1.ShowTotals = true; table1.Columns[0].TotalsRowLabel = "Total"; table1.Columns[1].TotalsCalculation = ExcelTotalsCalculation.Sum; table1.Columns[2].TotalsCalculation = ExcelTotalsCalculation.Sum; //Save to file workbook.SaveToFile("Table.xlsx"); Gets or sets calculated formula value. The following code illustrates how to set a formula to third column to hold the sum of first and second column's data: //Create worksheet Workbook workbook = new Workbook(); workbook.LoadFromFile("Sample.xlsx"); Worksheet worksheet = workbook.Worksheets[0]; //Create table IListObject table1 = worksheet.ListObjects.Create("Table1", worksheet["A1:C6"]); //Total row table1.ShowTotals = true; table1.Columns[0].TotalsRowLabel = "Total"; table1.Columns[1].TotalsCalculation = ExcelTotalsCalculation.Sum; table1.Columns[2].TotalsCalculation = ExcelTotalsCalculation.Sum; //Save to file workbook.SaveToFile("Table.xlsx"); Represents a cell, row, column, selection of cells containing one or more contiguous blocks of cells, or a 3-D range. Returns the range reference in the language of the macro. Read-only String. The following code illustrates how to access Address property of the Range: //Create worksheet Workbook workbook = new Workbook(); Worksheet worksheet = workbook.Worksheets[0]; //Get RangeAddress string address = worksheet.Range[3, 4].RangeAddress; Returns the range reference for the specified range in the language of the user. Read-only String. The following code illustrates how to access AddressLocal property of the Range: //Create worksheet Workbook workbook = new Workbook(); Worksheet worksheet = workbook.Worksheets[0]; //Get RangeAddressLocal string address = worksheet.Range[3, 4].RangeAddressLocal; Returns range Address in format "'Sheet1'!$A$1". The following code illustrates how to access AddressGlobal property of the Range: //Create worksheet Workbook workbook = new Workbook(); Worksheet worksheet = workbook.Worksheets[0]; //Get RangeAddress string address = worksheet.Range[3, 4].RangeGlobalAddress; Returns the range reference using R1C1 notation. Read-only String. The following code illustrates how to access AddressR1C1 property of the Range: //Create worksheet Workbook workbook = new Workbook(); Worksheet worksheet = workbook.Worksheets[0]; //Get RangeR1C1Address string address = worksheet.Range[3, 4].RangeR1C1Address; Returns the range reference using R1C1 notation. Read-only String. The following code illustrates how to access AddressR1C1Local property of the Range: //Create worksheet Workbook workbook = new Workbook(); Worksheet worksheet = workbook.Worksheets[0]; //Get RangeR1C1AddressLocal string address = worksheet.Range[3, 4].RangeR1C1Address; Gets / sets boolean value that is contained by this range. The following code illustrates how to access Boolean property of the Range: //Create worksheet Workbook workbook = new Workbook(); Worksheet worksheet = workbook.Worksheets[0]; //Set and get BooleanValue worksheet.Range[2, 4].BooleanValue = true; bool boolean = worksheet.Range[2, 4].BooleanValue; Returns a Borders collection that represents the borders of a style or a range of cells (including a range defined as part of a conditional format). The following code illustrates how to access Borders property of the Range: //Create worksheet Workbook workbook = new Workbook(); Worksheet worksheet = workbook.Worksheets[0]; //Set text worksheet["C2"].Text = "Sample"; //Set borders IBorders borders = worksheet["C2"].Borders; //Set line style borders[BordersLineType.EdgeTop].LineStyle = LineStyleType.Thin; borders[BordersLineType.EdgeBottom].LineStyle = LineStyleType.Thin; //Set border color borders[BordersLineType.EdgeTop].Color = Color.Red; borders[BordersLineType.EdgeBottom].Color = Color.Red; //Save to file workbook.SaveToFile("CellFormats.xlsx"); Returns a Range object that represents the cells in the specified range. Read-only. Returns a Range object that represents the cells in the specified range. Read-only. The following code illustrates how to access CellList property of the Range: //Create worksheet Workbook workbook = new Workbook(); Worksheet worksheet = workbook.Worksheets[0]; //Set text. The content contained by ![CDATA[]] will be expressed as plain text List cells = worksheet["A1:E8"].CellList; //Do some manipulations foreach (CellRange Range in cells) Range.Text = Range.RangeAddressLocal; //Save to file workbook.SaveToFile("CellList.xlsx"); Returns the number of the first column in the first area in the specified range. Read-only. The following code illustrates how to access Column property of the Range: //Create worksheet Workbook workbook = new Workbook(); Worksheet worksheet = workbook.Worksheets[0]; //Get specific column int firstColumn = worksheet["E1:R3"].Column; Column group level. Read-only. -1 - Not all columns in the range have same group level. 0 - No grouping, 1 - 7 - Group level. Returns or sets the width of all columns in the specified range. Read/write Double. The following code illustrates how to set the width of all columns in the specified range: //Create worksheet Workbook workbook = new Workbook(); Worksheet worksheet = workbook.Worksheets[0]; //Set the ColumnWidth worksheet["A1"].Text = "This cell contains sample text"; worksheet["A1"].ColumnWidth = 25; //Save to file workbook.SaveToFile("ColumnWidth.xlsx"); Returns the number of objects in the collection. Read-only. Gets / sets DateTime contained by this cell. Read-write DateTime. The following code illustrates how to set and access DateTimeValue property of the Range: //Create worksheet Workbook workbook = new Workbook(); Worksheet worksheet = workbook.Worksheets[0]; //Set and get the DateTimeValue of specified range worksheet.Range[2, 4].DateTimeValue = DateTime.Now; DateTime dateTime = worksheet.Range[2, 4].DateTimeValue; //Save to file workbook.SaveToFile("DateTimeValue.xlsx"); Returns cell value after number format application. Read-only. The following code illustrates how to access NumberText property of the Range: //Create worksheet Workbook workbook = new Workbook(); Worksheet worksheet = workbook.Worksheets[0]; //Gets cell value with its number format CellRange range= worksheet.Range[3, 1]; range.Value = "1/1/2015"; range.NumberFormat = "dd-MMM-yyyy"; string numberText = range.NumberText; //Save to file workbook.SaveToFile("NumberText.xlsx"); Returns a Range object that represents the cell at the end of the region that contains the source range. Returns a Range object that represents the entire column (or columns) that contains the specified range. Read-only. Returns a Range object that represents the entire row (or rows) that contains the specified range. Read-only. Gets / sets error value that is contained by this range. Returns or sets the object's formula in A1-style notation and in the language of the macro. Read/write Variant. Represents array-entered formula. Visit http://www.cpearson.com/excel/array.htm for more information. The following code illustrates how to set and access FormulaArray property of the range: //Create worksheet Workbook workbook = new Workbook(); Worksheet worksheet = workbook.Worksheets[0]; //Assign array formula worksheet.Range["A1:D1"].FormulaArray = "{1,2,3,4}"; //Adding a named range for the range A1 to D1 worksheet.Names.Add("ArrayRange", worksheet.Range["A1:D1"]); //Assign formula array with named range worksheet.Range["A2:D2"].FormulaArray = "ArrayRange+100"; //Save to file workbook.SaveToFile("FormulaArray.xlsx"); Returns or sets the formula array for the range, using R1C1-style notation. True if the formula will be hidden when the worksheet is protected. False if at least part of formula in the range is not hidden. Get / set formula DateTime value contained by this cell. DateTime.MinValue if not all cells of the range have same DateTime value. Returns or sets the formula for the range, using R1C1-style notation. Returns the calculated value of the formula as a boolean. Returns the calculated value of the formula as a string. Indicates whether specified range object has data validation. If Range is not single cell, then returns true only if all cells have data validation. Read-only. Indicates whether range contains bool value. Read-only. The following code illustrates how to set and access HasBoolean property of the Range: //Create worksheet Workbook workbook = new Workbook(); Worksheet worksheet = workbook.Worksheets[0]; //Assigning Value2 property of the Range worksheet["A3"].Value2 = false; //Checking Range types bool isboolean = worksheet["A3"].HasBoolean; //Save to file workbook.SaveToFile("HasBoolean.xlsx"); Indicates whether range contains DateTime value. Read-only. The following code illustrates how to set and access HasDateTime property of the Range: //Create worksheet Workbook workbook = new Workbook(); Worksheet worksheet = workbook.Worksheets[0]; //Assigning Value2 property of the Range worksheet["A1"].Value2 = DateTime.Now; //Checking Range types bool isDateTime = worksheet["A1"].HasDateTime; //Save to file workbook.SaveToFile("HasDateTime.xlsx"); True if all cells in the range contain formulas; False if at least one of the cells in the range doesn't contain a formula. Read-only Boolean. Indicates whether range contains array-entered formula. Read-only. Indicates if current range has formula value formatted as DateTime. Read-only. Indicates if the current range has formula number value. Read-only. Indicates if the current range has formula string value. Read-only. Indicates whether the range contains number. Read-only. The following code illustrates how to set and access Value2 property of the Range: //Create worksheet Workbook workbook = new Workbook(); Worksheet worksheet = workbook.Worksheets[0]; //Assigning Value2 property of the Range worksheet["A2"].Value2 = 45; //Checking Range types bool isNumber = worksheet["A2"].HasNumber; //Save to file workbook.SaveToFile("HasNumber.xlsx"); Indicates whether cell contains formatted rich text string. The following code illustrates how to access HasRichText property: //Create worksheet Workbook workbook = new Workbook(); Worksheet worksheet = workbook.Worksheets[0]; //Create style IStyle style = workbook.Styles.Add("CustomStyle"); //Set rich text IRichTextString richText = worksheet["C2"].RichText; richText.Text = "Sample"; IFont font = style.Font; font.Color = Color.Red; richText.SetFont(0, 5, font); //Check HasRichText Console.Write(worksheet["C2"].HasRichText); //Save to file workbook.SaveToFile("HasRichText.xlsx"); Indicates whether the range contains String. Read-only. Indicates whether range has default style. False means default style. Read-only. The following code illustrates how to access HasStyle property: //Create worksheet Workbook workbook = new Workbook(); Worksheet worksheet = workbook.Worksheets[0]; //Add style CellStyle style = workbook.Styles.Add("CustomStyle"); //Set color and style style.Color = Color.Red; worksheet["C2"].Style = style; //Check HasStyle Console.Write(worksheet["C2"].HasStyle); //Save to file workbook.SaveToFile("HasStyle.xlsx"); Returns or sets the horizontal alignment for the specified object. Read/write HorizontalAlignType. The following code illustrates how to set alignment type: //Create worksheet Workbook workbook = new Workbook(); Worksheet worksheet = workbook.Worksheets[0]; //Set text worksheet["A1"].Text = "Test"; //Set alignment worksheet["A1"].HorizontalAlignment = HorizontalAlignType.Right; //Save to file workbook.SaveToFile("HorizontalAlignment.xlsx"); Returns or sets the indent level for the cell or range. Can be an integer from 0 to 15. Read/write Integer. The following code illustrates how to set indent level for a cell: //Create worksheet Workbook workbook = new Workbook(); Worksheet worksheet = workbook.Worksheets[0]; //Set text worksheet["C2"].Text = "Sample"; //Set indent level worksheet["C2"].IndentLevel = 2; //Save to file workbook.SaveToFile("IndentLevel.xlsx"); Indicates whether the range is blank. Read-only. Indicates whether range contains error value. Indicates whether this range is grouped by column. Read-only. Indicates whether this range is grouped by row. Read-only. Indicates whether cell is initialized. Read-only. Returns last column of the range. Read-only. Returns last row of the range. Read-only. Gets / sets double value of the range. Format of current cell. Analog of Style.NumberFormat property. The following code illustrates how to set NumberFormat property: //Create worksheet Workbook workbook = new Workbook(); Worksheet worksheet = workbook.Worksheets[0]; //Set data worksheet["C2"].Value = "3100.23"; //Set number format worksheet["C2"].NumberFormat = "#,##1.##"; //Save to file workbook.SaveToFile("NumberFormat.xlsx"); Returns the number of the first row of the first area in the range. Read-only Long. Row group level. Read-only. -1 - Not all rows in the range have same group level. 0 - No grouping, 1 - 7 - Group level. Returns the height of all the rows in the range specified, measured in points. Returns Double.MinValue if the rows in the specified range aren't all the same height. Read / write Double. The following code illustrates how to set row height: //Create worksheet Workbook workbook = new Workbook(); Worksheet worksheet = workbook.Worksheets[0]; //Set text worksheet["A1"].Text = "Test"; //Set row height worksheet["A1"].RowHeight = 30; //Save to file workbook.SaveToFile("RowHeight.xlsx"); For a Range object, returns an array of Range objects that represent the rows in the specified range. The following code illustrates how to access rows: //Create worksheet Workbook workbook = new Workbook(); Worksheet worksheet = workbook.Worksheets[0]; //Set rows IXLSRange[] rows = worksheet["A1:E8"].Rows; //Do some manipulations foreach (IXLSRange row in rows) row.Text = row.RangeAddressLocal; //Save to file workbook.SaveToFile("Rows.xlsx"); For a Range object, returns an array of Range objects that represent the columns in the specified range. The following code illustrates how to access columns: //Create worksheet Workbook workbook = new Workbook(); Worksheet worksheet = workbook.Worksheets[0]; //Set columns IXLSRange[] columns = worksheet["A1:E8"].Columns; //Do some manipulations foreach (IXLSRange column in columns) column.Text = column.RangeAddressLocal; //Save to file workbook.SaveToFile("Columns.xlsx"); Returns a Style object that represents the style of the specified range. Read/write IStyle. The following code illustrates how to the style of the specified range: //Create worksheet Workbook workbook = new Workbook(); Worksheet worksheet = workbook.Worksheets[0]; //Set text worksheet["C2"].Text = "Sample"; //Add and set style CellStyle style = workbook.Styles.Add("BorderStyle"); style.Color = Color.Red; worksheet["C2"].Style = style; //Save to file workbook.SaveToFile("Style.xlsx"); Returns name of the Style object that represents the style of the specified range. Read/write String. The following code illustrates how to access CellStyleName of the specified range: //Create worksheet Workbook workbook = new Workbook(); Worksheet worksheet = workbook.Worksheets[0]; //Add and set style CellStyle style = workbook.Styles.Add("CustomStyle"); worksheet["C2"].Style = style; //Check Style name Console.Write(worksheet["C2"].CellStyleName); Gets / sets string value of the range. Gets / sets time value of the range. Returns or sets the value of the specified range. Read/write Variant. The following code illustrates how to set Value of the specified range: //Create worksheet Workbook workbook = new Workbook(); Worksheet worksheet = workbook.Worksheets[0]; //Set value of the range CellRange range= worksheet.Range[3, 1]; range.Value = "1/1/2015"; //Save to file workbook.SaveToFile("Value.xlsx"); Returns the calculated value of a formula using the most current inputs. The following code illustrates how to access a calculated value: //Create worksheet Workbook workbook = new Workbook(); workbook.LoadFromFile("Sample.xlsx"); Worksheet worksheet = workbook.Worksheets[0]; //Returns the calculated value of a formula using the most current inputs string calculatedValue = worksheet["C1"].EnvalutedValue; Console.WriteLine(calculatedValue); Returns or sets the cell value. Read/write Variant. The only difference between this property and the Value property is that the Value2 property doesn't use the Currency and Date data types. The following code illustrates how to access Value2 property of the Range: //Create worksheet Workbook workbook = new Workbook(); Worksheet worksheet = workbook.Worksheets[0]; //Assigning Value2 property of the Range worksheet["A1"].Value2 = DateTime.Now; worksheet["A3"].Value2 = false; //Checking Range types Console.WriteLine(worksheet["A1"].HasDateTime); Console.WriteLine(worksheet["A3"].HasBoolean); Returns or sets the vertical alignment of the specified object. Read/write VerticalAlignType. The following code illustrates how to set vertical alignment type: //Create worksheet Workbook workbook = new Workbook(); Worksheet worksheet = workbook.Worksheets[0]; //Set text worksheet["A1"].Text = "Test"; //Set alignment worksheet["A1"].VerticalAlignment = VerticalAlignType.Top; //Save to file workbook.SaveToFile("VerticalAlignment.xlsx"); Returns a Worksheet object that represents the worksheet containing the specified range. Read-only. Gets / sets cell by row and column index. Row and column indexes are one-based. Get cell range. Row and column indexes are one-based. Read-only. Get cell range. Read-only. Gets cell range. Read-only. Collection of conditional formats. Data validation for the range. The following code illustrates how to access DataValidation property of the Range: //Create worksheet Workbook workbook = new Workbook(); Worksheet worksheet = workbook.Worksheets[0]; //Data validation for number IDataValidation validation = worksheet.Range["A3"].DataValidation; validation.AllowType = CellDataType.Integer; //Value between 0 to 10 validation.CompareOperator = ValidationComparisonOperator.Between; validation.Formula1 = "0"; validation.Formula2 = "10"; //Save to file workbook.SaveToFile("DataValidation.xlsx"); Gets / sets string value evaluated by formula. Gets / sets number value evaluated by formula. Indicates if current range has formula bool value. Read only. Indicates if current range has formula error value. Read only. Comment assigned to the range. Read-only. The following code illustrates how to access Comments property of the Range: //Create worksheet Workbook workbook = new Workbook(); Worksheet worksheet = workbook.Worksheets[0]; //Adding comments to a cell worksheet.Range["A1"].AddComment().Text = "Comments"; //Add Rich Text Comments CellRange range = worksheet.Range["A6"]; range.AddComment().RichText.Text = "RichText"; IRichTextString rtf = range.Comment.RichText; //Formatting first 4 characters IFont redFont = workbook.CreateFont(); redFont.IsBold = true; redFont.Color = Color.Red; rtf.SetFont(0, 3, redFont); //Save to file workbook.SaveToFile("DataValidation.xlsx"); String with rich text formatting. Read-only. The following code illustrates how to set rich text formatting in the range: //Create worksheet Workbook workbook = new Workbook(); Worksheet worksheet = workbook.Worksheets[0]; //Create style IStyle style = workbook.Styles.Add("CustomStyle"); //Set rich text IRichTextString richText = worksheet["C2"].RichText; richText.Text = "Sample text"; //Set rich text font IFont font = style.Font; font.IsBold = true; richText.SetFont(0, 5, font); //Save to file workbook.SaveToFile("RichText.xlsx"); Gets and sets the html string which contains data and some formattings in this cell. Indicates whether this range is part of merged range. Read-only. The following code illustrates how to access HasMerged property: //Create worksheet Workbook workbook = new Workbook(); Worksheet worksheet = workbook.Worksheets[0]; //Set text worksheet["A1"].Text = "Sample text in cell"; //Set merge worksheet["A1:B1"].Merge(); //Check merge Console.Write(worksheet["A1:B1"].HasMerged); Returns a Range object that represents the merged range containing the specified cell. If the specified cell is not in a merged range, this property returns NULL. Read-only. The following code illustrates how to access MergeArea property: //Create worksheet Workbook workbook = new Workbook(); Worksheet worksheet = workbook.Worksheets[0]; //Set text worksheet["C2"].Text = "Sample text in cell"; //Set merge worksheet["C2:D3"].Merge(); //Check merge area Console.Write(worksheet["C2"].MergeArea.AddressLocal); True if Microsoft Excel wraps the text in the object. Read/write Boolean. The following code illustrates how to access WrapText property: //Create worksheet Workbook workbook = new Workbook(); Worksheet worksheet = workbook.Worksheets[0]; //Set text worksheet["A1"].Text = "This cell contains sample text"; //Set wrap text worksheet["A1"].IsWrapText = true; //Save to file workbook.SaveToFile("IsWrapText.xlsx"); Indicates is current range has external formula. Read-only. Represents ignore error options. Indicates whether all values in the range are preserved as strings. Gets/sets built in style. The following code illustrates how to access BuiltInStyle property: //Create worksheet Workbook workbook = new Workbook(); Worksheet worksheet = workbook.Worksheets[0]; //Set text worksheet["C2"].Text = "Sample"; //Set built in style worksheet["C2"].BuiltInStyle = BuiltInStyles.Accent3; //Save to file workbook.SaveToFile("BuiltInStyle.xlsx"); Returns hyperlinks for this range. Activates a single cell, scroll to it and activates the corresponding sheet. To select a range of cells, use the Select method. The following code illustrates how to activate a Range with scroll flag: //Create worksheet Workbook workbook = new Workbook(); Worksheet worksheet = workbook.Worksheets[0]; //Activates 'F1' cell. worksheet.Range["F1"].Activate(true); //Save to file workbook.SaveToFile("Activate.xlsx"); True to scroll to the cell Returns the active cell. Creates a merged cell from the specified Range object. The following code illustrates how to merge the Range: //Create worksheet Workbook workbook = new Workbook(); Worksheet worksheet = workbook.Worksheets[0]; //Set text worksheet["A1"].Text = "Merged cell"; //Merge cells worksheet["A1:B1"].Merge(); //Save to file workbook.SaveToFile("Merge.xlsx"); Creates a merged cell from the specified Range object. The following code illustrates how to merge the Range with clear option: //Create worksheet Workbook workbook = new Workbook(); Worksheet worksheet = workbook.Worksheets[0]; //Set text worksheet["A1"].Text = "Merged cell"; worksheet["B1"].Text = "sample"; //Merge cells worksheet["A1:B1"].Merge(true); //Save to file workbook.SaveToFile("Merge.xlsx"); Indicates whether to clear unnecessary cells. Separates a merged area into individual cells. The following code illustrates how to UnMerge the merged cells: //Create worksheet Workbook workbook = new Workbook(); Worksheet worksheet = workbook.Worksheets[0]; //Set text worksheet["A1"].Text = "Merged cell"; //Merge cells worksheet["A1:B1"].Merge(true); //Unmerge cells worksheet["A1:B1"].UnMerge(); //Save to file workbook.SaveToFile("UnMerge.xlsx"); Freezes pane at the current range. The following code illustrates how to freeze a pane in the Range: //Create worksheet Workbook workbook = new Workbook(); Worksheet worksheet = workbook.Worksheets[0]; //Applying Freeze Pane to the sheet by specifying a cell worksheet.Range["B2"].FreezePanes(); //Save to file workbook.SaveToFile("FreezePanes.xlsx"); Clear the contents of the Range. The following code illustrates how to clear the Range: //Create worksheet Workbook workbook = new Workbook(); workbook.LoadFromFile("Sample.xlsx"); Worksheet worksheet = workbook.Worksheets[0]; //Clears the Range C2 worksheet.Range["C2"].ClearContents(); //Save to file workbook.SaveToFile("ClearContents.xlsx"); Clears the cell content, formats, comments based on clear option. The following code illustrates how to clear the Range with clear options: //Create worksheet Workbook workbook = new Workbook(); workbook.LoadFromFile("Sample.xlsx"); Worksheet worksheet = workbook.Worksheets[0]; //Clears the Range C2 with its clear options worksheet.Range["C2"].Clear(ExcelClearOptions.ClearAll); //Save to file workbook.SaveToFile("ClearContents.xlsx"); Represents the clear options. Returns intersection of this range with the specified one. The following code illustrates how to perform intersectwith in the Range: //Create worksheet Workbook workbook = new Workbook(); Worksheet worksheet = workbook.Worksheets[0]; //Get intersect range IXLSRange range = worksheet.Range["A16:C16"]; IXLSRange commonRange = worksheet.Range["B16:D16"].Intersect(range); //Save to file workbook.SaveToFile("Intersect.xlsx"); The Range with which to intersect. Range intersection; if there is no intersection, NULL is returned. Returns merge of this range with the specified one. The following code illustrates how to check whether two ranges are mergable or not: //Create worksheet Workbook workbook = new Workbook(); Worksheet worksheet = workbook.Worksheets[0]; //Merge range worksheet["A2:B2"].Merge(); //Get mergable range IXLSRange mergableRange = worksheet["A2"].MergeArea.Merge(worksheet["C2"]); //Check mergable Area Console.Write(mergableRange.RangeAddressLocal); //Save to file workbook.SaveToFile("Intersect.xlsx"); The Range to merge with. Merged ranges or NULL if wasn't able to merge ranges. Autofits all rows in the range. The following code illustrates how to auto-size row height to its cell content: //Create worksheet Workbook workbook = new Workbook(); Worksheet worksheet = workbook.Worksheets[0]; //Auto-fit rows worksheet.Range["A2"].Text = "Fit the content to row"; worksheet.Range["A2"].IsWrapText = true; worksheet.Range["A2"].AutoFitRows(); //Save to file workbook.SaveToFile("AutoFitRows.xlsx"); Autofits all columns in the range. The following code illustrates how to auto-size column width to its cell content: //Create worksheet Workbook workbook = new Workbook(); Worksheet worksheet = workbook.Worksheets[0]; //Auto-fit columns worksheet.Range["B4"].Text = "Fit the content to column"; worksheet.Range["B4"].AutoFitColumns(); //Save to file workbook.SaveToFile("AutoFitRows.xlsx"); Adds comment to the range. The following code illustrates how to insert Comments in the Range: //Create worksheet Workbook workbook = new Workbook(); Worksheet worksheet = workbook.Worksheets[0]; //Adding comments to a cell ICommentShape comment = worksheet.Range["A1"].AddComment(); comment.Text= "Comments"; //Save to file workbook.SaveToFile("AddComment.xlsx"); Range's comment. Sets around border for current range. The following code illustrates how to apply border around the Range: //Create worksheet Workbook workbook = new Workbook(); Worksheet worksheet = workbook.Worksheets[0]; //Set text worksheet["C2"].Text = "Sample"; worksheet["D2"].Text = "text"; worksheet["C3"].Text = "in"; worksheet["D3"].Text = "cell"; //Set border worksheet["C2:D3"].BorderAround(); //Save to file workbook.SaveToFile("BorderAround.xlsx"); Sets around border for current range. The following code illustrates how to apply border around the Range: //Create worksheet Workbook workbook = new Workbook(); Worksheet worksheet = workbook.Worksheets[0]; //Set text worksheet["C2"].Text = "Sample"; worksheet["D2"].Text = "text"; worksheet["C3"].Text = "in"; worksheet["D3"].Text = "cell"; //Set border worksheet["C2:D3"].BorderAround(LineStyleType.Thick); //Save to file workbook.SaveToFile("BorderAround.xlsx"); Represents border line. Sets around border for current range. The following code illustrates how to apply border around the Range with color from System.Drawing.Color structure: //Create worksheet Workbook workbook = new Workbook(); Worksheet worksheet = workbook.Worksheets[0]; //Set text worksheet["C2"].Text = "Sample"; worksheet["D2"].Text = "text"; worksheet["C3"].Text = "in"; worksheet["D3"].Text = "cell"; //Set border worksheet["C2:D3"].BorderAround(LineStyleType.Thick , Color.Red); //Save to file workbook.SaveToFile("BorderAround.xlsx"); Represents border line. Represents border color. Sets around border for current range. The following code illustrates how to apply border around the Range with color from Spire.Xls.ExcelColors structure: //Create worksheet Workbook workbook = new Workbook(); Worksheet worksheet = workbook.Worksheets[0]; //Set text worksheet["C2"].Text = "Sample"; worksheet["D2"].Text = "text"; worksheet["C3"].Text = "in"; worksheet["D3"].Text = "cell"; //Set border worksheet["C2:D3"].BorderAround(LineStyleType.Thick , ExcelColors.Red); //Save to file workbook.SaveToFile("BorderAround.xlsx"); Represents border line. Represents border color as ExcelColors. Sets inside border for current range. The following code illustrates how to apply border inside the Range: //Create worksheet Workbook workbook = new Workbook(); Worksheet worksheet = workbook.Worksheets[0]; //Set text worksheet["C2"].Text = "Sample"; worksheet["D2"].Text = "text"; worksheet["C3"].Text = "in"; worksheet["D3"].Text = "cell"; //Set border worksheet["C2:D3"].BorderInside(); //Save to file workbook.SaveToFile("BorderInside.xlsx"); Sets inside border for current range. The following code illustrates how to apply border inside the Range: //Create worksheet Workbook workbook = new Workbook(); Worksheet worksheet = workbook.Worksheets[0]; //Set text worksheet["C2"].Text = "Sample"; worksheet["D2"].Text = "text"; worksheet["C3"].Text = "in"; worksheet["D3"].Text = "cell"; //Set border worksheet["C2:D3"].BorderInside(LineStyleType.Thick); //Save to file workbook.SaveToFile("BorderInside.xlsx"); Represents border line. Sets inside border for current range. The following code illustrates how to apply border inside the Range with color from System.Drawing.Color structure: //Create worksheet Workbook workbook = new Workbook(); Worksheet worksheet = workbook.Worksheets[0]; //Set text worksheet["C2"].Text = "Sample"; worksheet["D2"].Text = "text"; worksheet["C3"].Text = "in"; worksheet["D3"].Text = "cell"; //Set border worksheet["C2:D3"].BorderInside(LineStyleType.Thick , Color.Red); //Save to file workbook.SaveToFile("BorderInside.xlsx"); Represents border line. Represents border color. Sets inside border for current range. The following code illustrates how to apply border inside the Range with color from Spire.Xls.ExcelColors structure: //Create worksheet Workbook workbook = new Workbook(); Worksheet worksheet = workbook.Worksheets[0]; //Set text worksheet["C2"].Text = "Sample"; worksheet["D2"].Text = "text"; worksheet["C3"].Text = "in"; worksheet["D3"].Text = "cell"; //Set border worksheet["C2:D3"].BorderInside(LineStyleType.Thick , ExcelColors.Red); //Save to file workbook.SaveToFile("BorderInside.xlsx"); Represents border line. Represents border color as ExcelColors. Sets none border for current range. The following code illustrates how to remove borders in the Range: //Create worksheet Workbook workbook = new Workbook(); workbook.LoadFromFile("Sample.xlsx"); Worksheet worksheet = workbook.Worksheets[0]; //Remove borders worksheet["C2"].BorderNone(); //Save to file workbook.SaveToFile("BorderNone.xlsx"); Collapses current group. The following code illustrates how to remove borders in the Range: //Create worksheet Workbook workbook = new Workbook(); workbook.LoadFromFile("Sample.xlsx"); Worksheet worksheet = workbook.Worksheets[0]; //Collapse group worksheet.Range["A5:A15"].CollapseGroup(GroupByType.ByRows); //Save to file workbook.SaveToFile("CollapseGroup.xlsx"); This parameter specifies whether the grouping should be performed by rows or by columns. Expands current group. The following code illustrates how to expand the group in the Range: //Create worksheet Workbook workbook = new Workbook(); workbook.LoadFromFile("Sample.xlsx"); Worksheet worksheet = workbook.Worksheets[0]; //Expand group with flag set to expand parent worksheet.Range["A5:A15"].ExpandGroup(GroupByType.ByRows); //Save to file workbook.SaveToFile("ExpandGroup.xlsx"); This parameter specifies whether the grouping should be performed by rows or by columns. Expands current group. The following code illustrates how to perform ExpandGroup in the Range with collapse option: //Create worksheet Workbook workbook = new Workbook(); workbook.LoadFromFile("Sample.xlsx"); Worksheet worksheet = workbook.Worksheets[0]; //Expand group with flag set to expand parent worksheet.Range["A5:A15"].ExpandGroup(GroupByType.ByRows, ExpandCollapseFlags.ExpandParent); //Save to file workbook.SaveToFile("ExpandGroup.xlsx"); This parameter specifies whether the grouping should be performed by rows or by columns. Additional option flags. Returns an object that represents the active sheet (the sheet on top) in the active workbook or in the specified window or workbook. Returns Nothing if no sheet is active. Read-only. Gets / sets index of the active sheet. Returns collection of all workbook's add-in functions. Read-only. Returns or sets the author of the comment. Read-only String. Gets or sets a value indicating whether to display horizontal scroll bar. This sample shows how to hide horizontal scroll bar: //Create workbook Workbook workbook = new Workbook(); //Hide horizontal scroll bar workbook.IsHScrollBarVisible = false; //Save to file workbook.SaveToFile("IsHScrollBarVisible.xlsx"); Gets or sets a value indicating whether to display vertical scroll bar. This sample shows how to hide vertical scroll bar: //Create workbook Workbook workbook = new Workbook(); //Hide vertical scroll bar workbook.IsVScrollBarVisible = false; //Save to file workbook.SaveToFile("IsVScrollBarVisible.xlsx"); Returns collection that represents all the built-in document properties for the specified workbook. Read-only. The following code snippet illustrates how to get the built in document properties: //Create workbook Workbook workbook = new Workbook(); workbook.LoadFromFile("Sample.xlsx"); //Get the built in document properties IBuiltInDocumentProperties builtInDocumentProperties = workbook.DocumentProperties; Name which is used by macros to access the workbook items. Returns collection that represents all the custom document properties for the specified workbook. Read-only. The following code snippet illustrates how to get the custom document properties: //Create workbook Workbook workbook = new Workbook(); workbook.LoadFromFile("Sample.xlsx"); //Get the document properties ICustomDocumentProperties documentProperties = workbook.CustomDocumentProperties; True if the workbook uses the 1904 date system. Read / write Boolean. True if cell is protected. True if cell is protected. True if window is protected. For an ReservedHandle object, returns a Names collection that represents all the names in the active workbook. For a Workbook object, returns a Names collection that represents all the names in the specified workbook (including all worksheet-specific names). The following code snippet illustrates how to get names: //Create workbook Workbook workbook = new Workbook(); workbook.LoadFromFile("Sample.xlsx"); //Get names INameRanges names = workbook.NameRanges; True if the workbook has been opened as Read-only. Read-only Boolean. True if no changes have been made to the specified workbook since it was last saved. Read/write Boolean. Returns a Styles collection that represents all the styles in the specified workbook. Read-only. The following code snippet illustrates how to get the Styles: //Create worksheet Workbook workbook = new Workbook(); Worksheet worksheet = workbook.Worksheets[0]; //Set styles IStyles styles = workbook.Styles; Returns a Sheets collection that represents all the worksheets in the specified workbook. Read-only Sheets object. True indicate that opened workbook contains VBA macros. Get Palette of colors which an Excel document can have. Here is a table of color indexes to places in the color tool box provided by Excel application: -------------------------------------------- | | 1 | 2 | 3 | 4 | 5 | 6 | 7 | 8 | ---+---------------------------------------- |1 | 00 | 51 | 50 | 49 | 47 | 10 | 53 | 54 | |2 | 08 | 45 | 11 | 09 | 13 | 04 | 46 | 15 | |3 | 02 | 44 | 42 | 48 | 41 | 40 | 12 | 55 | |4 | 06 | 43 | 05 | 03 | 07 | 32 | 52 | 14 | |5 | 37 | 39 | 35 | 34 | 33 | 36 | 38 | 01 | ---+---------------------------------------- |6 | 16 | 17 | 18 | 19 | 20 | 21 | 22 | 23 | |7 | 24 | 25 | 26 | 27 | 28 | 29 | 30 | 31 | -------------------------------------------- The following code illustrates how to access the default colors of excel color palette: //Create worksheet Workbook workbook = new Workbook(); Worksheet worksheet = workbook.Worksheets[0]; //Get colors System.Drawing.Color[] colors = workbook.Colors; //Get color System.Drawing.Color color = colors[2]; //Set color worksheet["B2"].Style.Color = color; //Save to file workbook.SaveToFile("CellFormats.xlsx"); Index of tab which will be displayed on document open. Collection of the chart objects. Indicates whether exception should be thrown when unknown name was found in a formula. This Property allows users to disable load of macros from document. Excel on file open will simply skip macros and will work as if document does not contain them. This options works only when file contains macros (HasMacros property is True). Returns or sets the standard font size, in points. Read/write. The following code illustrates how to set the standard font size for the workbook: //Create worksheet Workbook workbook = new Workbook(); Worksheet worksheet = workbook.Worksheets[0]; //Set text worksheet["B2"].Text = "Text"; //Set standard font workbook.DefaultFontName = "Arial"; //Set standard font size workbook.DefaultFontSize = 18; //Save to file workbook.SaveToFile("CellFormats.xlsx"); Returns or sets the name of the standard font. Read/write String. The following code illustrates how to set the standard font for the workbook: //Create worksheet Workbook workbook = new Workbook(); Worksheet worksheet = workbook.Worksheets[0]; //Set text worksheet["B2"].Text = "Text"; //Set standard font workbook.DefaultFontName = "Arial"; //Set standard font size workbook.DefaultFontSize = 18; //Save to file workbook.SaveToFile("CellFormats.xlsx"); Indicates whether to allow usage of 3D ranges in DataValidation list property (MS Excel doesn't allow). Gets / sets row separator for array parsing. Formula arguments separator. Indicates whether worksheet is displayed right to left. Indicates whether tabs are visible. Returns collection of tab sheets. Read-only. Indicates whether library should try to detect string value passed to Value (and Value2) property as DateTime. Setting this property to false can increase performance greatly for such operations especially on Framework 1.0 and 1.1. Default value is true. True to display a message when the file is opened, recommending that the file be opened as read-only. Gets / sets password to encrypt document. Returns maximum row count for each worksheet in this workbook. Read-only. Returns maximum column count for each worksheet in this workbook. Read-only. Gets / sets excel version. Returns pivot caches collection. Read-only. The following code snippet illustrates how to get pivot caches: //Load workbook Workbook workbook = new Workbook(); workbook.LoadFromFile("Sample.xlsx"); //Gets pivot caches collection IPivotCaches pivotCaches = workbook.PivotCaches; Activates the first window associated with the workbook. Adds font to the inner fonts collection and makes this font read-only. Font to add. Added font. Closes the object. If True, all changes will be saved. Name of the file. Closes the object. If True, all changes will be saved. Closes the object without saving. Closes the object and saves changes into specified file. File name in which workbook will be saved if SaveChanges is true. Copies workbook to the clipboard. Creates object that can be used for template markers processing. Object that can be used for template markers processing. Saves changes to the specified workbook. This sample shows how to save changes to the specified workbook: //Load workbook Workbook workbook = new Workbook(); workbook.LoadFromFile("Sample.xlsx"); //Save to file workbook.Save(); Short variant of SaveAs method. Short variant of SaveAs method. Name of the file. Excel save type. Saves changes to the specified stream. Name of the file. Save options in html. Saves changes to the specified stream. Stream that will receive workbook data. Saves changes to the specified stream. Stream that will receive workbook data. Type of the Excel file. Saves changes to the specified HttpResponse. Name of the file in HttpResponse. Type of the Excel file. HttpResponse that will receive workbook's data. Saves changes to the specified HttpResponse. Name of the file in HttpResponse. HttpResponse to save in. Set user color for specified element in Color table. The following code snippet illustrates how to set palette color: //Create worksheet Workbook workbook = new Workbook(); Worksheet worksheet = workbook.Worksheets[0]; //Set palette color workbook.ChangePaletteColor(System.Drawing.Color.Red , 10); //Set color worksheet["B2"].Style.Color = workbook.Colors[10]; //Save to file workbook.SaveToFile("CellFormats.xlsx"); Index of Color in array. New color which must be set. Recover palette to default values. The following code snippets illustrates how to reset the palette: //Create worksheet Workbook workbook = new Workbook(); Worksheet worksheet = workbook.Worksheets[0]; //Get colors System.Drawing.Color[] colors = workbook.Colors; //Check color Console.WriteLine(colors[2].Name); //Set color colors[2] = System.Drawing.Color.Yellow; //Reset palette workbook.ResetPalette(); //Check color Console.WriteLine(workbook.Colors[2].Name); //Save to file workbook.SaveToFile("CellFormats.xlsx"); Method return Color object from workbook palette by its index. The following code illustrates how to get the RGB color value for the specified color from ExcelColors enumeration: //Create worksheet Workbook workbook = new Workbook(); Worksheet worksheet = workbook.Worksheets[0]; //Get color System.Drawing.Color color = workbook.GetPaletteColor(ExcelColors.Red); //Set color worksheet["B2"].Style.Color = workbook.Colors[10]; //Save to file workbook.SaveToFile("CellFormats.xlsx"); Index from palette array. RGB Color. Gets the nearest color to the specified Color structure from Workbook palette. The following code illustrates how to get the indexed color from ExcelColors for the given color from Color structure: //Create worksheet Workbook workbook = new Workbook(); Worksheet worksheet = workbook.Worksheets[0]; //Get color ExcelColors color = workbook.GetMatchingColor(System.Drawing.Color.Red); //Set color worksheet["B2"].Style.KnownColor = color; //Save to file workbook.SaveToFile("CellFormats.xlsx"); System color. Color index from workbook palette. Gets the nearest color to the specified by red, green, and blue values color from Workbook palette. The following code illustrates how to get the indexed color from ExcelColors for the given color from Color structure: //Create worksheet Workbook workbook = new Workbook(); Worksheet worksheet = workbook.Worksheets[0]; //Get color ExcelColors color = workbook.GetMatchingColor(255, 0, 0); //Set color worksheet["B2"].Style.KnownColor = color; //Save to file workbook.SaveToFile("CellFormats.xlsx"); Red component of the color. Green component of the color. Blue component of the color. Color index from workbook palette. If there is at least one free color, define a new color; if not, search for the closest one. Color index from workbook palette. If there is at least one free color, define a new color; if not, search for the closest one. Red component of the color. Green component of the color. Blue component of the color. Color index from workbook palette. Method to create a font object and register it in the workbook. The following code illustrates how to create IFont object: //Create worksheet Workbook workbook = new Workbook(); Worksheet worksheet = workbook.Worksheets[0]; //Set text IRichTextString richText = worksheet["B2"].RichText; //Create font IFont font = workbook.CreateFont(); //Set color font.Color = Color.Red; //Set text richText.Text = "Sample"; //Set font richText.SetFont(0, 5, font); //Save to file workbook.SaveToFile("CellFormats.xlsx"); Newly created font. Method that creates font object based on another font object and registers it in the workbook. Base font for the new one. Newly created font. Method creates a font object based on native font and register it in the workbook. ] Native font to get settings from. Newly created font. Replaces specified string by specified value. The following code snippet illustrates how to replace the string with another string: //Create workbook Workbook workbook = new Workbook(); workbook.LoadFromFile("Sample.xlsx"); //Replace the oldValue by newValue string oldValue = "Find"; string newValue = "NewValue"; workbook.Replace(oldValue, newValue); //Save to file workbook.SaveToFile("Replace.xlsx"); String value to replace. New value for the range with specified string. Replaces specified string by specified value. The following code snippet illustrates how to replace the string with double: //Create workbook Workbook workbook = new Workbook(); workbook.LoadFromFile("Sample.xlsx"); //Replace the oldValue by double string oldValue = "Ten"; workbook.Replace(oldValue, 10.0); //Save to file workbook.SaveToFile("Replace.xlsx"); String value to replace. New value for the range with specified string. Replaces specified string by specified value. The following code illustrates how to replace the string value with datetime: //Create workbook Workbook workbook = new Workbook(); workbook.LoadFromFile("Sample.xlsx"); //Replace the oldValue by dateTime string oldValue = "Find"; DateTime dateTime = DateTime.Now; workbook.Replace(oldValue, dateTime); //Save to file workbook.SaveToFile("Replace.xlsx"); String value to replace. New value for the range with specified string. Replaces specified string by data from array. The following code snippet illustrates how to replace the string with array of string values: //Create workbook Workbook workbook = new Workbook(); workbook.LoadFromFile("Sample.xlsx"); //Replace the oldValue by array of string values string oldValue = "Find"; string[] newValues = { "X values", "Y values" }; workbook.Replace(oldValue, newValues , true); //Save to file workbook.SaveToFile("Replace.xlsx"); String value to replace. Array of new values. Indicates whether array should be inserted vertically. Replaces specified string by data from array. The following code snippet illustrates how to replace the string with array of int values: //Create workbook Workbook workbook = new Workbook(); workbook.LoadFromFile("Sample.xlsx"); //Replace the oldValue by array of int values string oldValue = "Find"; int[] newValues = { 1, 2 }; workbook.Replace(oldValue, newValues, true); //Save to file workbook.SaveToFile("Replace.xlsx"); String value to replace. Array of new values. Indicates whether array should be inserted vertically. Replaces specified string by data from array. The following code snippet illustrates how to replace the string with array of double values: //Create workbook Workbook workbook = new Workbook(); workbook.LoadFromFile("Sample.xlsx"); //Replace the oldValue by array of double values string oldValue = "Find"; double[] newValues = { 1.0, 2.0 }; workbook.Replace(oldValue, newValues, true); //Save to file workbook.SaveToFile("Replace.xlsx"); String value to replace. Array of new values. Indicates whether array should be inserted vertically. Replaces specified string by data table values. The following code snippet illustrates how to replace the string value with data table: //Create workbook Workbook workbook = new Workbook(); workbook.LoadFromFile("Sample.xlsx"); //Replace the oldValue by data table string oldValue = "Find"; System.Data.DataTable table = new System.Data.DataTable(); table.Columns.Add("Dosage", typeof(int)); table.Rows.Add(1); workbook.Replace(oldValue, table, true); //Save to file workbook.SaveToFile("Replace.xlsx"); String value to replace. Data table with new data. Indicates whether field name must be shown. Replaces specified string by data column values. The following code snippet illustrates how to replace the string value with data column: //Create workbook Workbook workbook = new Workbook(); workbook.LoadFromFile("Sample.xlsx"); //Replace the oldValue by data column string oldValue = "Find"; System.Data.DataTable table = new System.Data.DataTable(); table.Columns.Add("Dosage", typeof(int)); table.Rows.Add(1); System.Data.DataColumn dataColumn = table.Columns[0]; workbook.Replace(oldValue, dataColumn, true); //Save to file workbook.SaveToFile("Replace.xlsx"); String value to replace. Data table with new data. Indicates whether field name must be shown. This method seraches for the first cell with specified string value. This sample shows how to find the first cell with specified string value: //Create workbook Workbook workbook = new Workbook(); workbook.LoadFromFile("Sample.xlsx"); //Find cell with specified string value string value = "value"; IXLSRange result = workbook.FindString(value, false, false); Value to search. Type of value to search. First found cell, or Null if value was not found. This method seraches for the first cell with specified double value. This sample shows how to find the first cell with specified double value: //Create workbook Workbook workbook = new Workbook(); workbook.LoadFromFile("Sample.xlsx"); //Find cell with specified double value double value = 9.00; IXLSRange result = workbook.FindNumber(value, false); Value to search. Type of value to search. First found cell, or Null if value was not found. This method seraches for the first cell with specified bool value. This sample shows how to find the first cell with specified bool value: //Create workbook Workbook workbook = new Workbook(); workbook.LoadFromFile("Sample.xlsx"); //Find cell with specified bool value IXLSRange result = workbook.FindBool(true); Value to search. First found cell, or Null if value was not found. This method seraches for the first cell with specified DateTime value. This sample shows how to find the first cell with specified DateTime value: //Create workbook Workbook workbook = new Workbook(); workbook.LoadFromFile("Sample.xlsx"); //Find cell with specified DateTime value DateTime dateTime = DateTime.Now; IXLSRange result = workbook.FindDateTime(dateTime); Value to search. First found cell, or Null if value was not found. This method seraches for the first cell with specified TimeSpan value. This sample shows how to find the first cell with specified TimeSpan value: //Create workbook Workbook workbook = new Workbook(); workbook.LoadFromFile("Sample.xlsx"); //Find cell with specified TimeSpan value TimeSpan timeSpan = new TimeSpan(2, 30, 30); IXLSRange result = workbook.FindTimeSpan(timeSpan); Value to search. First found cell, or Null if value was not found. This method seraches for the all cells with specified string value. This sample shows how to find all cells with specified string value: //Create workbook Workbook workbook = new Workbook(); workbook.LoadFromFile("Sample.xlsx"); //Find cells with specified string value string value = "value"; CellRange[] result = workbook.FindAllString(value , false , false); Value to search. Type of value to search. All found cells, or Null if value was not found. This method seraches for the all cells with specified double value. This sample shows how to find all cells with specified doulbe value: //Create workbook Workbook workbook = new Workbook(); workbook.LoadFromFile("Sample.xlsx"); //Find cells with specified double value CellRange[] result = workbook.FindAllNumber(100.32 , false); Value to search. Type of value to search. All found cells, or Null if value was not found. This method seraches for the all cells with specified bool value. This sample shows how to find all cells with specified bool value: //Create workbook Workbook workbook = new Workbook(); workbook.LoadFromFile("Sample.xlsx"); //Find cells with specified bool value CellRange[] result = workbook.FindAllBool(true); Value to search. All found cells, or Null if value was not found This method seraches for the all cells with specified DateTime value. This sample shows how to find all cells with specified DateTime value: //Create workbook Workbook workbook = new Workbook(); workbook.LoadFromFile("Sample.xlsx"); //Find cells with specified DateTime value CellRange[] result = workbook.FindAllDateTime(DateTime.Now); Value to search. All found cells, or Null if value was not found. This method seraches for the all cells with specified TimeSpan value. This sample shows how to find all cells with specified TimeSpan value: //Create workbook Workbook workbook = new Workbook(); workbook.LoadFromFile("Sample.xlsx"); //Find cells with specified TimeSpan value TimeSpan value = new TimeSpan(2, 30, 30); CellRange[] result = workbook.FindAllTimeSpan(value); Value to search. All found cells, or Null if value was not found. Save active WorkSheet using separator. The following code illustrates how to save the active worksheet in a different file with separator: //Create workbook Workbook workbook = new Workbook(); workbook.LoadFromFile("Sample.xlsx"); //Save to file workbook.SaveToFile("Result.csv" , ","); Path to save. Current separator. Save active WorkSheet using separator. The following code illustrates how to saves the active worksheet as stream with separator: //Create workbook Workbook workbook = new Workbook(); workbook.LoadFromFile("Sample.xlsx"); //Save to stream Stream stream = new MemoryStream(); workbook.SaveToFile(stream , ","); Stream to save. Current separator. Sets separators for formula parsing. Arguments separator to set. Array rows separator to set. Sets protection for workbook. Indicates if protect workbook window. Indicates if protect workbook content. Unprotects workbook. Creates copy of the current instance. Copy of the current instance. This method sets write protection password. Password to set. Returns collection of worksheet's autofilters. Read-only. Returns all used cells in the worksheet. Read-only. True if page breaks (both automatic and manual) on the specified worksheet are displayed. Read / write Boolean. Returns the index number of the object within the collection of similar objects. Read-only. Returns all merged ranges. Read-only. The following code illustrates how to get the merged ranges: //Create worksheet Workbook workbook = new Workbook(); Worksheet worksheet = workbook.Worksheets[0]; //Merge cells worksheet["C2:D2"].Merge(); worksheet["F3:G3"].Merge(); //Get merged ranges IXLSRange[] mergedRanges = worksheet.MergedCells; //Get merged range count . Output will be 2 Console.Write(mergedRanges.Length); //Save to file workbook.SaveToFile("MergedCells.xlsx"); For a Worksheet object, returns a Names collection that represents all the worksheet-specific names (names defined with the "WorksheetName!" prefix). Read-only Names object. Name that is used by macros to access the workbook items. Returns a PageSetup object that contains all the page setup settings for the specified object. Read-only. Returns a Range object that represents a cell or a range of cells. For a Worksheet object, returns an array of Range objects that represents all the rows on the specified worksheet. Read-only Range object. For a Worksheet object, returns an array of Range objects that represents all the columns on the specified worksheet. Read-only Range object. Returns the standard (default) height of all the rows in the worksheet, in points. Read/write Double. The following code illustrates how to get the default row height: //Create worksheet Workbook workbook = new Workbook(); Worksheet worksheet = workbook.Worksheets[0]; //Get row height Console.Write(worksheet.DefaultRowHeight); //Set default height worksheet.DefaultRowHeight = 40; //Save to file workbook.SaveToFile("DefaultRowHeight.xlsx"); Returns or sets the standard (default) width of all the columns in the worksheet. Read/write Double. The following code illustrates how to get the default column width: //Create worksheet Workbook workbook = new Workbook(); Worksheet worksheet = workbook.Worksheets[0]; //Get column width Console.Write(worksheet.DefaultColumnWidth); //Set default width worksheet.DefaultColumnWidth = 40; //Save to file workbook.SaveToFile("DefaultColumnWidth.xlsx"); Returns or sets the worksheet type. Read-only ExcelSheetType. Returns a Range object that represents the used range on the specified worksheet. Read-only. The following code illustrates how to get used range on the specified worksheet: //Create worksheet Workbook workbook = new Workbook(); Worksheet worksheet = workbook.Worksheets[0]; //Set text worksheet["B2"].Text = "Text"; //Set Color worksheet["J3"].Style.Color = Color.Red; //Get used range . Output will be B2:J3 Console.Write(worksheet.Range.RangeAddressLocal); //Save to file workbook.SaveToFile("UsedRange.xlsx"); Zoom factor of document. Value must be in range from 10 till 400. The following code illustrates how to set zoom level of the sheet: //Create worksheet Workbook workbook = new Workbook(); Worksheet worksheet = workbook.Worksheets[0]; //Set zoom worksheet.Zoom = 200; //Save to file workbook.SaveToFile("Zoom.xlsx"); Gets or sets the position of vertical split in the worksheet. Position of the vertical split (px, 0 = No vertical split): Unfrozen pane: Width of the left pane(s) (in twips = 1/20 of a point) Frozen pane: Number of visible columns in left pane(s) Gets or sets the position of horizontal split in the worksheet. Position of the horizontal split (by, 0 = No horizontal split): Unfrozen pane: Height of the top pane(s) (in twips = 1/20 of a point) Frozen pane: Number of visible rows in top pane(s) Index to first visible row in bottom pane(s). Index to first visible column in right pane(s). Identifier of pane with active cell cursor. True if zero values to be displayed False otherwise. True if gridlines are visible; False otherwise. The following code illustrates how to set visibility for grid lines: //Create worksheet Workbook workbook = new Workbook(); Worksheet worksheet = workbook.Worksheets[0]; //Set grid line visibility worksheet.GridLinesVisible = false; //Save to file workbook.SaveToFile("GridLinesVisible.xlsx"); Gets / sets Grid line color. The following code illustrates how to set the grid line color: //Create worksheet Workbook workbook = new Workbook(); Worksheet worksheet = workbook.Worksheets[0]; //Set grid lines color worksheet.GridLineColor = ExcelColors.Red; //Save to file workbook.SaveToFile("GridLineColor.xlsx"); True if row and column headers are visible; False otherwise. Returns a VPageBreaks collection that represents the vertical page breaks on the sheet. Read-only. Returns an HPageBreaks collection that represents the horizontal page breaks on the sheet. Read-only. Indicates if all values in the workbook are preserved as strings. Comments collection. The following code illustrates how to access the comments collection in the worksheet: //Create worksheet Workbook workbook = new Workbook(); Worksheet worksheet = workbook.Worksheets[0]; //Adding comments to a cell. ICommentShape comment1 = worksheet.Range["A1"].AddComment(); ICommentShape comment2 = worksheet.Range["B1"].AddComment(); //Set comment text comment1.Text = "Comment1"; comment2.Text = "Comment2"; //Check count Console.Write(worksheet.Comments.Count); //Save to file workbook.SaveToFile("Comments.xlsx"); Gets / sets cell by row and index. Get cells range. Get cell range. Collection of all worksheet's hyperlinks. Indicates whether all created range objects should be cached. Default value is false. Gets/sets top visible row of the worksheet. The following code illustrates how to set the top visible row: //Create worksheet Workbook workbook = new Workbook(); Worksheet worksheet = workbook.Worksheets[0]; //Set top visible row worksheet.TopVisibleRow = 5; //Get top visible row Console.Write(worksheet.TopVisibleRow); //Save to file workbook.SaveToFile("TopVisibleRow.xlsx"); Gets/sets left visible column of the worksheet. The following code illustrates how to set the left visible column: //Create worksheet Workbook workbook = new Workbook(); Worksheet worksheet = workbook.Worksheets[0]; //Set left visible column worksheet.LeftVisibleColumn = 3; //Get left visible column Console.Write(worksheet.LeftVisibleColumn); //Save to file workbook.SaveToFile("LeftVisibleColumn.xlsx"); Returns pivot table collection containing all pivot tables in the worksheet. Read-only. Gets collection of all list objects in the worksheet. Gets the OLE objects. The following code illustrates how to access the IListObjects collection in the worksheet to add a new IOleObject: //Create worksheet Workbook workbook = new Workbook(); Worksheet worksheet = workbook.Worksheets[0]; //Create image stream System.Drawing.Image image = System.Drawing.Image.FromFile("image.png"); //Add ole object IOleObject oleObject = worksheet.OleObjects.Add("Shapes.xlsx", image, OleLinkType.Embed); //Save to file workbook.SaveToFile("OLEObjects.xlsx"); The OLE objects. Gets or sets a value indicating whether this instance is OLE object. The following code illustrates how to access the IListObjects collection in the worksheet to add a new IOleObject and check Ole Object: //Create worksheet Workbook workbook = new Workbook(); Worksheet worksheet = workbook.Worksheets[0]; //Create image stream System.Drawing.Image image = System.Drawing.Image.FromFile("image.png"); //Add ole object IOleObject oleObject = worksheet.OleObjects.Add("Shapes.xlsx", image, OleLinkType.Embed); //Check HasOleObject.Output will be true. Console.Write(worksheet.HasOleObjects); //Save to file workbook.SaveToFile("HasOleObjects.xlsx"); true if this instance is OLE object; otherwise, false. Copies worksheet into the clipboard. Clears worksheet data. Removes all formatting and merges. Clears worksheet. Only the data is removed from each cell. Indicates whether a cell was initialized or accessed by the user. The following code illustrates if the cells was initialized or accessed by the user: //Create worksheet Workbook workbook = new Workbook(); Worksheet worksheet = workbook.Worksheets[0]; //Set text worksheet.Range["A1"].Text = "Hello"; //Check the cell.Output will be true. Console.Write(worksheet.CheckExistence(1, 1)); //Save to file workbook.SaveToFile("CheckExistence.xlsx"); One-based row index of the cell. One-based column index of the cell. Value indicating whether the cell was initialized or accessed by the user. Method check is Column with specifed index visible to end user or not. Index of column. True - column is visible; otherwise False. Method check is Row with specifed index visible to user or not. Index of row visibility of each must be checked. True - row is visible to user, otherwise False. Removes specified row (with formulas update). One-based row index to remove. Removes specified column (with formulas update). One-based column index to remove. Imports an array of objects into a worksheet. The following code illustrates how to Imports an array of Object into a worksheet with specified alignment: //Create worksheet Workbook workbook = new Workbook(); Worksheet worksheet = workbook.Worksheets[0]; //Initialize the Object Array object[] array = new object[4] { "Total Income", "Actual Expense", "Expected Expenses", "Profit" }; //Insert the Object Array to Sheet worksheet.InsertArray(array, 1, 1, true); //Save to file workbook.SaveToFile(InsertArray.xlsx"); Array to import. Row of the first cell where array should be imported. Column of the first cell where array should be imported. True if array should be imported vertically; False - horizontally. Number of imported elements. Imports an array of strings into a worksheet. The following code illustrates how to Imports an array of String into a worksheet with specified row and column: //Create worksheet Workbook workbook = new Workbook(); Worksheet worksheet = workbook.Worksheets[0]; //Initialize the string Array string[] arrayString = new string[4] { "Total Income", "Actual Expense", "Expected Expenses", "Profit" }; //Insert the string Array to Sheet worksheet.InsertArray(arrayString, 1, 1, true); //Save to file workbook.SaveToFile(InsertArray.xlsx"); Array to import. Row of the first cell where array should be imported. Column of the first cell where array should be imported. True if array should be imported vertically; False - horizontally. Number of imported elements. Imports an array of integers into a worksheet. The following code illustrates how to Imports an array of integer values into a worksheet with the specified row and column: //Create worksheet Workbook workbook = new Workbook(); Worksheet worksheet = workbook.Worksheets[0]; //Initialize the integer Array int[] arrayInt = new int[4] {1000, 2000, 3000, 4000}; //Insert the integer Array to Sheet worksheet.InsertArray(arrayInt, 1, 1, true); //Save to file workbook.SaveToFile(InsertArray.xlsx"); Array to import. Row of the first cell where array should be imported. Column of the first cell where array should be imported. True if array should be imported vertically; False - horizontally. Number of imported elements. Imports an array of doubles into a worksheet. The following code illustrates how to Imports an array of Double values into a worksheet with the specified row and column: //Create worksheet Workbook workbook = new Workbook(); Worksheet worksheet = workbook.Worksheets[0]; //Initialize the double Array double[] arrayDouble = new double[4] { 344.0045, 345.0045, 346.0045, 347.0045 }; //Insert the double Array to Sheet worksheet.InsertArray(arrayDouble, 1, 1, true); //Save to file workbook.SaveToFile(InsertArray.xlsx"); Array to import. Row of the first cell where array should be imported. Column of the first cell where array should be imported. True if array should be imported vertically; False - horizontally. Number of imported elements. Imports an array of DateTimes into worksheet. The following code illustrates how to Imports an array of DateTime values into a worksheet with the specified row and colum: //Create worksheet Workbook workbook = new Workbook(); Worksheet worksheet = workbook.Worksheets[0]; //Initialize the DateTime Array DateTime[] arrayDate = new DateTime[4] { DateTime.Parse("06:45"), DateTime.Parse("08:30"), DateTime.Parse("09:40"), DateTime.Parse("10:30") }; //Insert the DateTime Array to Sheet worksheet.InsertArray(arrayDate, 1, 1, true); //Save to file workbook.SaveToFile(InsertArray.xlsx"); Array to import. Row of the first cell where array should be imported. Column of the first cell where array should be imported. True if array should be imported vertically; False - horizontally. Number of imported elements. Imports an array of objects into a worksheet. The following code illustrates how to Imports a two-dimensional array of Object into a worksheet with the specified row and column: //Create worksheet Workbook workbook = new Workbook(); Worksheet worksheet = workbook.Worksheets[0]; //Initialize the Object Array object[,] arrayTwoDimen = new object[3, 2] { { "AND", "OR" }, { "NAND", "XOR" },{ "NOR", "NOT" } }; //Insert the Object Array to Sheet worksheet.InsertArray(arrayTwoDimen, 1, 1); //Save to file workbook.SaveToFile(InsertArray.xlsx"); Array to import. Row of the first cell where array should be imported. Column of the first cell where array should be imported. Number of imported rows. Imports data from a DataColumn into worksheet. The following code illustrates how to Imports data from a DataColumn into a worksheet with the specified row and column: //Create worksheet Workbook workbook = new Workbook(); Worksheet worksheet = workbook.Worksheets[0]; //Create a DataTable System.Data.DataTable table = new System.Data.DataTable(); table.Columns.Add("ID", typeof(int)); table.Columns.Add("Item", typeof(string)); table.Columns.Add("Name", typeof(string)); table.Rows.Add(1, "Soap", "David"); table.Rows.Add(2, "Paste", "Sam"); table.Rows.Add(3, "Cream", "Christoff"); //Insert the DataColumn to worksheet System.Data.DataColumn column = table.Columns[2]; worksheet.InsertDataColumn(column, true, 1, 1); //Save to file workbook.SaveToFile(InsertDataColumn.xlsx"); DataColumn with desired data. True if column name must also be imported. Row of the first cell where DataTable should be imported. Column of the first cell where DataTable should be imported. Number of imported rows. Imports data from a DataTable into worksheet. The following code illustrates how to Imports data from a DataTable into a worksheet with the specified row and column: //Create worksheet Workbook workbook = new Workbook(); Worksheet worksheet = workbook.Worksheets[0]; //Create a DataTable System.Data.DataTable table = new System.Data.DataTable(); table.Columns.Add("ID", typeof(int)); table.Columns.Add("Item", typeof(string)); table.Columns.Add("Name", typeof(string)); table.Rows.Add(1, "Soap", "David"); table.Rows.Add(2, "Paste", "Sam"); table.Rows.Add(3, "Cream", "Christoff"); //Insert the DataTable to worksheet worksheet.InsertDataTable(table, true, 1, 1); //Save to file workbook.SaveToFile(InsertDataTable.xlsx"); DataTable with desired data. True if column names must also be imported. Row of the first cell where DataTable should be imported. Column of the first cell where DataTable should be imported. Number of imported rows. Imports data from a DataTable into worksheet. The following code illustrates how to Imports data from a DataTable into a worksheet with the specified row and column along with the preserve type: //Create worksheet Workbook workbook = new Workbook(); Worksheet worksheet = workbook.Worksheets[0]; //Create a DataTable System.Data.DataTable table = new System.Data.DataTable(); table.Columns.Add("ID", typeof(int)); table.Columns.Add("Item", typeof(string)); table.Columns.Add("Name", typeof(string)); table.Rows.Add(1, "Soap", "David"); table.Rows.Add(2, "Paste", "Sam"); table.Rows.Add(3, "Cream", "Christoff"); //Insert the DataTable to worksheet worksheet.InsertDataTable(table, true, 1, 1 , true); //Save to file workbook.SaveToFile(InsertDataTable.xlsx"); DataTable with desired data. True if column names must also be imported. Row of the first cell where DataTable should be imported. Column of the first cell where DataTable should be imported. Indicates whether XlsIO should try to preserve types in DataTable, i.e. if it is set to False (default) and in DataTable we have in string column value that contains only numbers, it would be converted to number. Number of imported rows. Imports data from a DataTable into worksheet. The following code illustrates how to Imports data from a DataTable into a worksheet with the specified range: //Create worksheet Workbook workbook = new Workbook(); Worksheet worksheet = workbook.Worksheets[0]; //Create a DataTable System.Data.DataTable table = new System.Data.DataTable(); table.Columns.Add("ID", typeof(int)); table.Columns.Add("Item", typeof(string)); table.Columns.Add("Name", typeof(string)); table.Rows.Add(1, "Soap", "David"); table.Rows.Add(2, "Paste", "Sam"); table.Rows.Add(3, "Cream", "Christoff"); //Insert the DataTable to worksheet worksheet.InsertDataTable(table, true, 1 , 1 , 2 , 2); //Save to file workbook.SaveToFile(InsertDataTable.xlsx"); DataTable with desired data. True if column names must also be imported. Row of the first cell where DataTable should be imported. Column of the first cell where DataTable should be imported. Maximum number of rows to import. Maximum number of columns to import. Number of imported rows. Imports data from a DataTable into worksheet. The following code illustrates how to Imports data from a DataTable into a worksheet with specified range along with preserve type: //Create worksheet Workbook workbook = new Workbook(); Worksheet worksheet = workbook.Worksheets[0]; //Create a DataTable System.Data.DataTable table = new System.Data.DataTable(); table.Columns.Add("ID", typeof(int)); table.Columns.Add("Item", typeof(string)); table.Columns.Add("Name", typeof(string)); table.Rows.Add(1, "Soap", "David"); table.Rows.Add(2, "Paste", "Sam"); table.Rows.Add(3, "Cream", "Christoff"); //Insert the DataTable to worksheet worksheet.InsertDataTable(table, true, 1 , 1 , 2 , 2 , true); //Save to file workbook.SaveToFile(InsertDataTable.xlsx"); DataTable with desired data. True if column names must also be imported. Row of the first cell where DataTable should be imported. Column of the first cell where DataTable should be imported. Maximum number of rows to import. Maximum number of columns to import. Indicates whether XlsIO should try to preserve types in DataTable, i.e. if it is set to False (default) and in DataTable we have in string column value that contains only numbers, it would be converted to number. Number of imported rows. Imports data from a DataView into worksheet. The following code illustrates how to Imports data from a DataView into a worksheet with the specified row and column: //Create worksheet Workbook workbook = new Workbook(); Worksheet worksheet = workbook.Worksheets[0]; //Create a DataTable System.Data.DataTable table = new System.Data.DataTable(); table.Columns.Add("ID", typeof(int)); table.Columns.Add("Item", typeof(string)); table.Columns.Add("Name", typeof(string)); table.Rows.Add(1, "Soap", "David"); table.Rows.Add(2, "Paste", "Sam"); table.Rows.Add(3, "Cream", "Christoff"); //Initialize dataview of datatable System.Data.DataView view = table.DefaultView; //Import data from DataView worksheet.InsertDataView(view, true, 1, 1); //Save to file workbook.SaveToFile(InsertDataView.xlsx"); DataView with desired data. TRUE if column names must also be imported. Row of the first cell where DataView should be imported. Column of the first cell where DataView should be imported. Number of imported rows. Imports data from a DataView into worksheet. The following code illustrates how to Imports data from a DataView into a worksheet with the specified specified row and column along with preserve type: //Create worksheet Workbook workbook = new Workbook(); Worksheet worksheet = workbook.Worksheets[0]; //Create a DataTable System.Data.DataTable table = new System.Data.DataTable(); table.Columns.Add("ID", typeof(int)); table.Columns.Add("Item", typeof(string)); table.Columns.Add("Name", typeof(string)); table.Rows.Add(1, "Soap", "David"); table.Rows.Add(2, "Paste", "Sam"); table.Rows.Add(3, "Cream", "Christoff"); //Initialize dataview of datatable System.Data.DataView view = table.DefaultView; //Import data from DataView worksheet.InsertDataView(view, true, 1, 1 , true); //Save to file workbook.SaveToFile(InsertDataView.xlsx"); DataView with desired data. TRUE if column names must also be imported. Row of the first cell where DataView should be imported. Column of the first cell where DataView should be imported. Indicates whether to preserve column types. Number of imported rows. Imports data from a DataView into worksheet. The following code illustrates how to Imports data from a DataView into a worksheet with the specified range: //Create worksheet Workbook workbook = new Workbook(); Worksheet worksheet = workbook.Worksheets[0]; //Create a DataTable System.Data.DataTable table = new System.Data.DataTable(); table.Columns.Add("ID", typeof(int)); table.Columns.Add("Item", typeof(string)); table.Columns.Add("Name", typeof(string)); table.Rows.Add(1, "Soap", "David"); table.Rows.Add(2, "Paste", "Sam"); table.Rows.Add(3, "Cream", "Christoff"); //Initialize dataview of datatable System.Data.DataView view = table.DefaultView; //Import data from DataView worksheet.InsertDataView(view, true, 1, 1 , 2 , 2); //Save to file workbook.SaveToFile(InsertDataView.xlsx"); DataView with desired data. TRUE if column names must also be imported. Row of the first cell where DataView should be imported. Column of the first cell where DataView should be imported. Maximum number of rows to import. Maximum number of columns to import. Number of imported rows. Imports data from a DataView into worksheet. The following code illustrates how to Imports data from a DataView into a worksheet with the specified range along with preserve type: //Create worksheet Workbook workbook = new Workbook(); Worksheet worksheet = workbook.Worksheets[0]; //Create a DataTable System.Data.DataTable table = new System.Data.DataTable(); table.Columns.Add("ID", typeof(int)); table.Columns.Add("Item", typeof(string)); table.Columns.Add("Name", typeof(string)); table.Rows.Add(1, "Soap", "David"); table.Rows.Add(2, "Paste", "Sam"); table.Rows.Add(3, "Cream", "Christoff"); //Initialize dataview of datatable System.Data.DataView view = table.DefaultView; //Import data from DataView worksheet.InsertDataView(view, true, 1, 1 , 2 , 2 , true); //Save to file workbook.SaveToFile(InsertDataView.xlsx"); DataView with desired data. TRUE if column names must also be imported. Row of the first cell where DataView should be imported. Column of the first cell where DataView should be imported. Maximum number of rows to import. Maximum number of columns to import. Indicates whether to preserve column types. Number of imported rows Removes panes from a worksheet. Protects worksheet's content with password. The following code illustrates how to protect the sheet except select lock/unlock cells: //Create worksheet Workbook workbook = new Workbook(); Worksheet worksheet = workbook.Worksheets[0]; //Protects the first worksheet's content with password worksheet.Protect("123456"); //Save to file workbook.SaveToFile("Protect.xlsx"); Password to protect with. Unprotects worksheet's content with password. Password to unprotect. Autofits specified row. The following code illustrates how to Auto-fit the row: //Create worksheet Workbook workbook = new Workbook(); Worksheet worksheet = workbook.Worksheets[0]; //Set text worksheet["C2"].Value = "Sample text"; //Set Style CellStyle style = workbook.Styles.Add("CustomStyle"); IFont font = style.Font; font.Size = 18; worksheet["C2"].Style = style; //Set auto fit worksheet.AutoFitRow(2); //Save to file workbook.SaveToFile("AutoFitRow.xlsx"); One-based row index. Autofits specified column. The following code illustrates how to Auto-fit the column: //Create worksheet Workbook workbook = new Workbook(); Worksheet worksheet = workbook.Worksheets[0]; //Set text worksheet["A1"].Text = "Sample text in cell"; //Set auto fit worksheet.AutoFitColumn(1); //Save to file workbook.SaveToFile("AutoFitColumn.xlsx"); One-based column index. Replaces specified string by specified value. The following code snippet illustrates how to replace the string with another string: //Create worksheet Workbook workbook = new Workbook(); workbook.LoadFromFile("Sample.xlsx"); Worksheet worksheet = workbook.Worksheets[0]; //Replace the oldValue by newValue string oldValue = "Find"; string newValue = "NewValue"; worksheet.Replace(oldValue, newValue); //Save to file workbook.SaveToFile("Replace.xlsx"); String value to replace. New value for the range with specified string. Replaces specified string by specified value. The following code snippet illustrates how to replace the string with double: //Create worksheet Workbook workbook = new Workbook(); workbook.LoadFromFile("Sample.xlsx"); Worksheet worksheet = workbook.Worksheets[0]; //Replace the oldValue by double string oldValue = "Ten"; worksheet.Replace(oldValue, 10.0); //Save to file workbook.SaveToFile("Replace.xlsx"); String value to replace. New value for the range with specified string. Replaces specified string by specified value. The following code illustrates how to replace the string value with datetime: //Create worksheet Workbook workbook = new Workbook(); workbook.LoadFromFile("Sample.xlsx"); Worksheet worksheet = workbook.Worksheets[0]; //Replace the oldValue by dateTime string oldValue = "Find"; DateTime dateTime = DateTime.Now; worksheet.Replace(oldValue, dateTime); //Save to file workbook.SaveToFile("Replace.xlsx"); String value to replace. New value for the range with specified string. Replaces specified string by data from array. The following code snippet illustrates how to replace the string with array of string values: //Create worksheet Workbook workbook = new Workbook(); workbook.LoadFromFile("Sample.xlsx"); Worksheet worksheet = workbook.Worksheets[0]; //Replace the oldValue by array of string values string oldValue = "Find"; string[] newValues = { "X values", "Y values" }; worksheet.Replace(oldValue, newValues , true); //Save to file workbook.SaveToFile("Replace.xlsx"); String value to replace. Array of new values. Indicates whether array should be inserted vertically. Replaces specified string by data from array. The following code snippet illustrates how to replace the string with array of int values: //Create worksheet Workbook workbook = new Workbook(); workbook.LoadFromFile("Sample.xlsx"); Worksheet worksheet = workbook.Worksheets[0]; //Replace the oldValue by array of int values string oldValue = "Find"; int[] newValues = { 1, 2 }; worksheet.Replace(oldValue, newValues, true); //Save to file workbook.SaveToFile("Replace.xlsx"); String value to replace. Array of new values. Indicates whether array should be inserted vertically. Replaces specified string by data from array. The following code snippet illustrates how to replace the string with array of double values: //Create worksheet Workbook workbook = new Workbook(); workbook.LoadFromFile("Sample.xlsx"); Worksheet worksheet = workbook.Worksheets[0]; //Replace the oldValue by array of double values string oldValue = "Find"; double[] newValues = { 1.0, 2.0 }; worksheet.Replace(oldValue, newValues, true); //Save to file workbook.SaveToFile("Replace.xlsx"); String value to replace. Array of new values. Indicates whether array should be inserted vertically. Replaces specified string by data table values. The following code snippet illustrates how to replace the string value with data table: //Create worksheet Workbook workbook = new Workbook(); workbook.LoadFromFile("Sample.xlsx"); Worksheet worksheet = workbook.Worksheets[0]; //Replace the oldValue by data table string oldValue = "Find"; System.Data.DataTable table = new System.Data.DataTable(); table.Columns.Add("Dosage", typeof(int)); table.Rows.Add(1); worksheet.Replace(oldValue, table, true); //Save to file workbook.SaveToFile("Replace.xlsx"); String value to replace. Data table with new data. Indicates wheter field name must be shown. Replaces specified string by data column values. The following code snippet illustrates how to replace the string value with data column: //Create worksheet Workbook workbook = new Workbook(); workbook.LoadFromFile("Sample.xlsx"); Worksheet worksheet = workbook.Worksheets[0]; //Replace the oldValue by data column string oldValue = "Find"; System.Data.DataTable table = new System.Data.DataTable(); table.Columns.Add("Dosage", typeof(int)); table.Rows.Add(1); System.Data.DataColumn dataColumn = table.Columns[0]; worksheet.Replace(oldValue, dataColumn, true); //Save to file workbook.SaveToFile("Replace.xlsx"); String value to replace. Data table with new data. Indicates whether field name must be shown. Removes worksheet from parent worksheets collection. Moves worksheet. New index of the worksheet. Converts column width into pixels. Width in characters. Width in pixels Converts pixels into column width (in characters). Width in pixels Widht in characters. Sets column width in pixels. The following code illustrates how to set width for a column: //Create worksheet Workbook workbook = new Workbook(); Worksheet worksheet = workbook.Worksheets[0]; //Set column width worksheet.SetColumnWidthInPixels(2, 160); //Save to file workbook.SaveToFile("SetColumnWidthInPixels.xlsx"); One-based column index. Width to set. Sets row height in pixels. The following code illustrates how to set height for a row: //Create worksheet Workbook workbook = new Workbook(); Worksheet worksheet = workbook.Worksheets[0]; //Set row height worksheet.SetRowHeightPixels(3, 150); //Save to file workbook.SaveToFile("SetRowHeightPixels.xlsx"); One-based row index to set height. Value in pixels to set. Returns width in pixels from ColumnInfoRecord if there is corresponding ColumnInfoRecord or StandardWidth if not. The following code illustrates how to get the column width for a particular column: //Create worksheet Workbook workbook = new Workbook(); Worksheet worksheet = workbook.Worksheets[0]; //Set text worksheet["A1"].Text = "Sample text in cell"; //Set auto fit worksheet.AutoFitColumn(1); //Get column width Console.WriteLine(worksheet.GetColumnWidthPixels(1)); //Save to file workbook.SaveToFile("UsedRange.xlsx"); One-based index of the column. Width in pixels of the specified column. Returns height from RowRecord if there is a corresponding RowRecord. Otherwise returns StandardHeight. The following code illustrates how to get the row height for a particular row: //Create worksheet Workbook workbook = new Workbook(); Worksheet worksheet = workbook.Worksheets[0]; //Set text worksheet["C2"].Text = "Sample text"; worksheet["C2"].Style.Font.Size = 18; //Set auto fit worksheet.AutoFitRow(2); //Get row height Console.WriteLine(worksheet.GetRowHeightPixels(2)); //Save to file workbook.SaveToFile("UsedRange.xlsx"); One-bazed index of the row. Height in pixels from RowRecord if there is corresponding RowRecord. Otherwise returns StandardHeight. Save tabsheet using separator. The following code illustrates how to saves the worksheet in a different file with separator: //Create worksheet Workbook workbook = new Workbook(); workbook.LoadFromFile("Sample.xlsx"); Worksheet worksheet = workbook.Worksheets[0]; //Save to file worksheet.SaveToFile("SaveToFile.csv" , ","); File to save. Current seperator. Save tabsheet using separator. The following code illustrates how to saves the worksheet as stream with separator: //Create worksheet Workbook workbook = new Workbook(); workbook.LoadFromFile("Sample.xlsx"); Worksheet worksheet = workbook.Worksheets[0]; //Create stream Stream stream = new MemoryStream(); //Save to stream worksheet.SaveToStream(stream , ","); Stream to save. Current seperator. Sets by column index default style for column. The following code illustrates how to set the default style for a column: //Create worksheet Workbook workbook = new Workbook(); Worksheet worksheet = workbook.Worksheets[0]; //Create style CellStyle style = workbook.Styles.Add("CustomStyle"); //Set Color style.Color = Color.Red; //Set default style worksheet.SetDefaultColumnStyle(2, style); //Save to file workbook.SaveToFile("SetDefaultColumnStyle.xlsx"); Column index. Default style. Sets by column index default style for column. The following code illustrates how to set the default style for columns: //Create worksheet Workbook workbook = new Workbook(); Worksheet worksheet = workbook.Worksheets[0]; //Create style CellStyle style = workbook.Styles.Add("CustomStyle"); //Set Color style.Color = Color.Red; //Set default style worksheet.SetDefaultColumnStyle(2, 5, style); //Save to file workbook.SaveToFile("SetDefaultColumnStyle.xlsx"); Start column index. End column index. Default style. Sets by column index default style for row. The following code illustrates how to set the default style for a row: //Create worksheet Workbook workbook = new Workbook(); Worksheet worksheet = workbook.Worksheets[0]; //Create style CellStyle style = workbook.Styles.Add("CustomStyle"); //Set Color style.Color = Color.Red; //Set default style worksheet.SetDefaultRowStyle(2, style); //Save to file workbook.SaveToFile("SetDefaultRowStyle.xlsx"); Row index. Default style. Sets by column index default style for row. The following code illustrates how to set the default style for rows: //Create worksheet Workbook workbook = new Workbook(); Worksheet worksheet = workbook.Worksheets[0]; //Create style CellStyle style = workbook.Styles.Add("CustomStyle"); //Set Color style.Color = Color.Red; //Set default style worksheet.SetDefaultRowStyle(2, 5, style); //Save to file workbook.SaveToFile("SetDefaultRowStyle.xlsx"); Start row index. End row index. Default style. Returns default column style. The following code illustrates how to get default column style: //Create worksheet Workbook workbook = new Workbook(); Worksheet worksheet = workbook.Worksheets[0]; //Create style CellStyle style = workbook.Styles.Add("CustomStyle"); //Set Color style.Color = Color.Red; //Set default style worksheet.SetDefaultColumnStyle(2,style); //Get default style CellStyle defaultStyle = worksheet.GetDefaultColumnStyle(2); //Set color defaultStyle.Color = Color.Blue; worksheet.SetDefaultColumnStyle(3, defaultStyle); //Save to file workbook.SaveToFile("GetDefaultColumnStyle.xlsx"); Column index. Default column style or null if style wasn't set. Returns default row style. The following code illustrates how to get default row style: //Create worksheet Workbook workbook = new Workbook(); Worksheet worksheet = workbook.Worksheets[0]; //Create style CellStyle style = workbook.Styles.Add("CustomStyle"); //Set Color style.Color = Color.Red; //Set default style worksheet.SetDefaultRowStyle(2,style); //Get default style CellStyle defaultStyle = worksheet.GetDefaultRowStyle(2); //Set color defaultStyle.Color = Color.Blue; worksheet.SetDefaultRowStyle(3, defaultStyle); //Save to file workbook.SaveToFile("GetDefaultColumnStyle.xlsx"); Row index. Default row style or null if style wasn't set. Sets value in the specified cell. One-based row index of the cell to set value. One-based column index of the cell to set value. Value to set. Sets value in the specified cell. One-based row index of the cell to set value. One-based column index of the cell to set value. Value to set. Sets value in the specified cell. One-based row index of the cell to set value. One-based column index of the cell to set value. Value to set. Sets text in the specified cell. One-based row index of the cell to set value. One-based column index of the cell to set value. Text to set. Sets formula in the specified cell. One-based row index of the cell to set value. One-based column index of the cell to set value. Formula to set. Sets error in the specified cell. One-based row index of the cell to set value. One-based column index of the cell to set value. Error to set. Sets blank in specified cell. One-based row index of the cell to set value. One-based column index of the cell to set value. Sets formula number value. One based row index. One based column index. Represents formula number value for set. Sets formula error value. One based row index. One based column index. Represents formula error value for set. Sets formula bool value. One based row index. One based column index. Represents formula bool value for set. Sets formula string value. One based row index. One based column index. Represents formula string value for set. Returns string value corresponding to the cell. One-based row index of the cell to get value from. One-based column index of the cell to get value from. String contained by the cell. Returns number value corresponding to the cell. One-based row index of the cell to get value from. One-based column index of the cell to get value from. Number contained by the cell. Returns formula value corresponding to the cell. One-based row index of the cell to get value from. One-based column index of the cell to get value from. Indicates whether R1C1 notation should be used. Formula contained by the cell. Gets error value from cell. Row index. Column index. Returns error value or null. Gets bool value from cell. Represents row index. Represents column index. Returns found bool value. If cannot found returns false. Gets formula bool value from cell. Represents row index. Represents column index. Returns found bool value. If cannot found returns false. Gets formula error value from cell. Row index. Column index. Returns error value or null. Returns formula number value corresponding to the cell. One-based row index of the cell to get value from. One-based column index of the cell to get value from. Number contained by the cell. Returns formula string value corresponding to the cell. One-based row index of the cell to get value from. One-based column index of the cell to get value from. String contained by the cell. Converts range into image (Bitmap). One-based index of the first row to convert. One-based index of the first column to convert. One-based index of the last row to convert. One-based index of the last column to convert. Converts range into image. The following code illustrates how to convert the specified range into image with the specified type: //Create worksheet Workbook workbook = new Workbook(); workbook.LoadFromFile("Sample.xlsx"); Worksheet worksheet = workbook.Worksheets[0]; //Creat stream Stream stream = new MemoryStream(); //Save to image System.Drawing.Image image = worksheet.SaveToImage(stream,1, 1, 10, 20, Spire.Xls.ImageType.Bitmap); image.Save("Sample.png", System.Drawing.Imaging.ImageFormat.Png); One-based index of the first row to convert. One-based index of the first column to convert. One-based index of the last row to convert. One-based index of the last column to convert. Type of the image to create. Output stream. It is ignored if null. Created image. Saves worksheet with specified filename. The following code snippets illustrates how to save as html to the specified file name: //Create worksheet Workbook workbook = new Workbook(); workbook.LoadFromFile("Sample.xlsx"); Worksheet worksheet = workbook.Worksheets[0]; //Save to HTML file worksheet.SaveToHtml("Output.html"); File to save. Save to HTML stream. The following code snippets illustrates how to save as html as stream: //Create worksheet Workbook workbook = new Workbook(); workbook.LoadFromFile("Sample.xlsx"); Worksheet worksheet = workbook.Worksheets[0]; //Creat stream Stream stream = new MemoryStream(); //Save to HTML stream worksheet.SaveToHtml(stream); Stream object. Saves as HTML. The following code snippets illustrates how to save as html to the specified file name and save option: //Create worksheet Workbook workbook = new Workbook(); workbook.LoadFromFile("Sample.xlsx"); Worksheet worksheet = workbook.Worksheets[0]; //Save to HTML file worksheet.SaveToHtml("Sample.html" , Spire.Xls.Core.Spreadsheet.HTMLOptions.Default); The filename. The option. Saves work sheet to HTML. The following code snippets illustrates how to save as html as stream with Save option: //Create worksheet Workbook workbook = new Workbook(); workbook.LoadFromFile("Sample.xlsx"); Worksheet worksheet = workbook.Worksheets[0]; //Creat stream Stream stream = new MemoryStream(); //Save to HTML stream worksheet.SaveToHtml(stream, Spire.Xls.Core.Spreadsheet.HTMLOptions.Default); Stream to save. Save Options. Converts range into metafile image. One-based index of the first row to convert. One-based index of the first column to convert. One-based index of the last row to convert. One-based index of the last column to convert. Metafile EmfType. Output stream. It is ignored if null. Created image. Converts range into image. One-based index of the first row to convert. One-based index of the first column to convert. One-based index of the last row to convert. One-based index of the last column to convert. Type of the image to create. Output stream. It is ignored if null. Metafile EmfType. Created image. Occurs when the value of a cell changes. @enum @enum @enum @enum @enum @enum @enum @enum @enum @enum @enum @enum @enum @enum @enum @enum @enum @enum @enum @enum @enum @enum @enum @enum @enum @enum @enum @enum @enum @enum @enum @enum @enum @enum @enum @enum @enum @enum @enum @enum @enum @enum @enum @enum @enum @enum @enum @enum @enum @enum @enum @enum @enum @enum @enum @enum @enum @enum @enum @enum @enum @enum @enum @enum @enum @enum @enum @enum @enum @enum Gets chart format. Represents chart border. Read only. Represents chart interior. Read only. The following code illustrates the use of Interior property: //Create worksheet Workbook workbook = new Workbook(); workbook.LoadFromFile("Sample.xlsx"); Worksheet worksheet = workbook.Worksheets[0]; //Create chart and set range IChart chart = worksheet.Charts.Add(); chart.DataRange = worksheet.Range["B2:C6"]; //Set chart type chart.ChartType = ExcelChartType.Column3DClustered; //Gets interior formatting properties for the chart element IChartInterior chartInterior = chart.ChartArea.Interior; chartInterior.BackgroundColor = Color.Beige; chartInterior.Pattern = ExcelPatternType.DarkDownwardDiagonal; //Save to file workbook.SaveToFile("Chart.xlsx"); Category labels for the chart. Gets font used for axis text displaying. Returns text area for the axis title. Read-only. Returns a ChartGridLine object that represents the major gridlines for the specified axis. Only axes in the primary axis group can have gridlines Returns a ChartGridLine object that represents the minor gridlines for the specified axis. Only axes in the primary axis group can have gridlines. Gets data format. Read-only. Gets or sets text area. Gets data format. Read-only. Gets data labels object for the data point. Read-only. Returns dataformat or null; Read-only. Gets first drop bar. Represents series line properties. ( For pie of pie or pie of bar chart types only. ) Read only. Returns object that represents second drop bar. Gets line border. Read only. Return text area of legend. Represents legend entries collection. Read only. Returns text area. Read-only. Represents frame interior. Read only Returns data points collection for the chart series. Read-only. Category labels for the series. Bubble sizes for the series. Values range for the series. Returns serie format. Returns data format. Read-only. Returns object, that represents aera properties. Read only. Returns object, that represents line properties. Read only. Returns font used for axis text displaying. Read-only. Returns major gridLines. Read-only. Returns minor gridLines. Read-only. Returns text area for the axis title. Read-only. Returns textarea's color object. Read-only. Delimeter. Indicates whether buble size is in data labels. Indicates whether category name is in data labels. Indicates whether legend key is in data labels. Indicates whether percentage is in data labels. Indicates whether series name is in data labels. Indicates whether value is in data labels. Represents data labels position. Gets or sets number format for the text area. Indicates whether contain dataLabels . Indicates whether to show category label and value as percentage. Indicates if current text assign to trend object. Gets index to the number format. Read-only. Returns FontImpl for current font. Read-only. Returns font used for axis text displaying. Read-only. Returns major gridLines. Read-only. Returns minor gridLines. Read-only. Returns text area for the axis title. Read-only. Returns default data point. Read-only. Gets default data format . Gets chart point. Returns a single Name object from a Names collection. Returns a single Name object from a Names collection. Adds a range to the collection. Range to add. Adds a comment to the range. Added comment. Adds a range to the collection. Range to add. Copies the range to the specified range. Destination range Destination range Copies the range to the specified range. Destination range. Indicates whether to update reference cells. Copies the range to the specified range. Destination range. Indicates whether to update reference cells. Indicates whether to copy styles. Destination range Finds the cell with the input double. Double value to search for Indicates whether to find formula value Found ranges Finds the cell with the input string. String value to search for Indicates whether include formula Indicates whether include formula value Found ranges Finds the cell with the input datetime. DateTime value to search for Found ranges Finds the cell with input timespan time span value to search for Found ranges Finds the cell with the input bool. Bool value to search for Found ranges Finds the cell with the input bool. Bool value to search for Found range Finds the cell with the input double. Double value to search for Indicates whether includes formula value to search for Found range Finds the cell with the input string. String value to search for Indicates whether includes formula to search for Indicates whether includes formula value to search for Found range Finds the cell with the input datetime. Datetime value to search for Found range Finds the cell with the input time span. Time span value to search for. Found range. Get intersection range with the specified range. Range which to intersect. Range intersection. Moves the cells to the specified Range. Destnation Range. Moves the cells to the specified Range. Destination Range. Indicates whether to update reference range. Removes range from the collection. Range to remove. Returns a Range object that represents the entire row (or rows) that contains the specified range. Returns a Range object that represents the entire column (or columns) that contains the specified range. Returns a Range object that represents the cells in the specified range. Returns the number of the first row of the first area in the range. Returns a Range object that represents the columns in the specified range Returns a Comment object that represents the comment associated with the cell in the upper-left corner of the range. Returns a Range object that represents the cell at the end of the region that contains the source range. Returns a Borders collection that represents the borders of a style or a range of cells (including a range defined as part of a conditional format). Returns a Range object that represents the merged range containing the specified cell. Returns a RichTextString object that represents the rich text style. Returns a Style object that represents the style of the specified range Gets a chart object by item index. Get a chart object by name. Adds a new chart. Created chart object. Add a new chart with name. chart name. Created chart object. Adds chart to the collection. Chart to add. Added chart object. Removes chart object from the collection. Name of the chart to remove. Adds comment to the specified range. Range that adds comment. Created comment object.. Adds comment to the specified row and column. Row index.. Column index. Created comment object. Removes comment object from the collection. Comment to remove. Gets a comment object. Gets a comment object. Adds picture to the collection. Picture to add. Picture name. Added picture. Adds picture to the collection. Picture to add. Picture name. Image format. Added picture. Adds picture from the specified file. File name. Added picture. Adds picture from the specified file. File name. Image format. Added picture. Adds image to the collection. Top row of a new picture. Left column. Image. Added picture. Adds image to the collection. Top row of a new picture. Left column. Image to add. Image format. Added picture. Adds image to the collection. Top row of a new picture. Left column. Stream object. Added picture. Adds image to the collection. Top row of a new picture. Left column. Stream with the picture. Image format. Added picture. Adds image to the collection. Top row of a new picture. Left column. File name. Added picture. Adds image to the collection. Top row of a new picture. Left column. File name. Image format. Added picture. Adds image to the collection. Top row of a new picture. Left column. Bottom row. Right column. Image object. Added picture. Adds image to the collection. Top row of a new picture. Left column. Bottom row. Right column. Image to add. Image format. Added picture. Adds image to the collection. Top row of a new picture. Left column. Bottom row. Right column. Stream. Added picture. Adds image to the collection. Top row of a new picture. Left column. Bottom row. Right column. Stream with the picture. Image format. Added picture. Adds image to the collection. Top row of a new picture. Left column. Bottom row. Right column. File name. Added picture. Adds image to the collection. Top row of a new picture. Left column. Bottom row. Right column. File name. Image format. Added picture. Adds image to the collection. Top row of a new picture. Left column. Image. Width scale in percents. Height scale in percents. Added picture. Adds image to the collection. Top row of a new picture. Left column. Image. Width scale in percents. Height scale in percents. Image format. Added picture. Adds image to the collection. Top row of a new picture. Left column. Stream with the picture. Width scale in percents. Height scale in percents. Added picture. Adds image to the collection. Top row of a new picture. Left column. Stream with the picture. Width scale in percents. Height scale in percents. Image format. Added picture. Adds image to the collection. Top row of a new picture. Left column. File name. Width scale in percents. Height scale in percents. Added picture. Adds image to the collection. Top row of a new picture. Left column. Name of the shape. Width scale in percents. Height scale in percents. Image format to use for picture storing. Added picture. Get Add-In function. Item index. Returns or sets the primary excel color of the object. Returns or sets the primary color of the object. Gets border item. Returns or sets the line style for the border. Gets or sets line style of borders. Gets count of borders. Gets page break object item. Adds a horizontal page break. range which new page break inserted. HPageBreak added. Returns page break at the specified row. Row index. Page break object. Returns page break at the specified range. Range object. Page break object. Gets hyperlinks for the specified range. range object. Gets a object from collection Adds a horizontal page break. Range which a page break need inserted. Remove page break with specified range. range object. Returns page break at the specified Column index. Column index. Returns page break at the specified range. range object. Adds a new worksheet. Worksheet name. Added worksheet. Adds copy of worksheet. Sheet index. Added worksheet. Adds copy of worksheet. Worksheet to copy. Added worksheet. Adding worksheets collection to workbook. Source worksheets collection. Create a new worksheet. Worksheet name Creates a new worksheet. Finds the cell with the input double. Double value to search for Indicates whether to find formula value Found ranges Finds the cell with the input string. String value to search for Indicates whether include formula Indicates whether include formula value Found ranges Finds the cell with the input datetime. DateTime value to search for Found ranges Finds the cell with input timespan time span value to search for Found ranges Finds the cell with the input bool. Bool value to search for Found ranges Finds the cell with the input bool. Bool value to search for Found range Finds the cell with the input double. Double value to search for Indicates whether includes formula value to search for Found range Finds the cell with the input string. String value to search for Indicates whether includes formula to search for Indicates whether includes formula value to search for Found range Finds the cell with the input datetime. Datetime value to search for Found range Finds the cell with the input time span. Time span value to search for. Found range. Remove worksheet from collection. Worksheet object. Returns a single object from a collection. Read-only. Returns a single object from a collection. Read-only. gets a object from a collection. gets a object from a collection. Adds a new style. Style name Adds a style. Style to added. Style which is in collection. Style object. Returns parent worksheet. Read-only. Get auto filter item.. Range to be filtered. Filter the data. Gets all hidden rows's indexes. If true, hide the filtered rows. Returns all hidden rows indexes. Adds a filter for a filter column. The column field on which you want to base the filter . for exapmle: sheet.AutoFilters[0] The specified criteria (a string; for example, "hello"). It only can be null or be one of the cells' value in this column. Adds a date filter for a filter column. The column field on which you want to base the filter . for exapmle: sheet.AutoFilters[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. and so on. Removes a date filter. The column field on which you want to base the filter . for exapmle: sheet.AutoFilters[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 column field on which you want to base the filter . for exapmle: sheet.AutoFilters[0] The specified criteria (a string; for example, "hello"). It only can be null or be one of the cells' value in this column. Filters a list with specified criteria. The column field on which you want to base the filter . for exapmle: sheet.AutoFilters[0] The specified criteria (a string; for example, "hello"). will remove all other filter setting on this field as Ms Excel 97-2003. Adds a dynamic filter. The column field on which you want to base the filter. for exapmle: sheet.AutoFilters[0] Dynamic filter type. Adds a font color filter. The column field on which you want to base the filter. for exapmle: sheet.AutoFilters[0] Font Color. Adds a fill color filter. The column field on which you want to base the filter. for exapmle: sheet.AutoFilters[0] The background pattern type. The foreground color. The background color. Adds a fill color filter. The column field index on which you want to base the filter (from the left of the list; the leftmost field is field 0). Fill Color. Match all blank cell in the list. The column field on which you want to base the filter . for exapmle: sheet.AutoFilters[0] Match all blank cell in the list. The column field on which you want to base the filter . for exapmle: sheet.AutoFilters[0] Filters a list with a custom criteria. The column field on which you want to base the filter . for exapmle: sheet.AutoFilters[0] The filter operator type The custom criteria Filters a list with custom criterias. The column field on which you want to base the filter. for exapmle: sheet.AutoFilters[0] The first filter operator type The first custom criteria The second filter operator type The second custom criteria Delete the column filter by column name column name Delete the column filter by column index(filters column index not sheet column index) column index Filter the top 10 item in the list The column field index 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 Filter the top 10 item in the list The column field on which you want to base the filter. for exapmle: sheet.AutoFilters[0] Indicates whether filter from top or bottom Indicates whether the items is percent or count The item count Match all not blank cell in the list. The column field index 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 column field on which you want to base the filter . for exapmle: sheet.AutoFilters[0] Goal seek. Gets or sets max iterations. Try goal seek calculate. Try goal seek calculate. Goal seek calculate result. Determine the result. Gets the name of target cell. Gets the name of variable cell. Gets the iterations. Gets the target value. Gets the guess result value. Gets or sets whether retain hidden data. Default is true. Gets or sets whether retain blank rows and columns. Default is false. Gets or sets the separator. Default is ",". Gets or sets the encoding. Default is UTF8. Convert Setting Print each page using this EventHandler Gets or sets the horizontal resolution, in dots per inch (DPI). Default value is 96. Gets or sets the vertical resolution, in dots per inch (DPI). Default value is 96. Whether to set gray level for printing If PrintWithSheetPageSetting = false(Default) . printing all pages with default page settings If PrintWithSheetPageSetting = true . printing each page with its owning sheet's page settings Gets or sets a value determining the quality. Indicates whether the width and height of the cells is automatically fitted by cell value. The default value is false. To image without margins. Default false. One sheet context render to only one page. Sheet content fit to page width. Ignore error calculate result when calculating formula. Default is false. Gets or sets the Pdf document's Conformance-level. Represents the security settings of the PDF document. Indicate the chart render image type. Enables or disables clipping the image to the region Sets or gets the maximum number of pages for the conversion. Returns an object that represents either a single series (a Series object) or a collection of all the series (a SeriesCollection collection) in the chart or chart group. Gets title text area. Read-only. Returns a ChartArea object that represents the complete chart area for the chart. The following code illustrates how to access IChartFrameFormat using ChartArea property and set foreground color for the ChartArea: //Create worksheet Workbook workbook = new Workbook(); Worksheet worksheet = workbook.Worksheets[0]; //Add data worksheet.Range["A1"].Text = "Jan"; worksheet.Range["B1"].Text = "Feb"; worksheet.Range["C1"].Text = "Mar"; worksheet.Range["A2"].Text = "10"; worksheet.Range["B2"].Text = "20"; worksheet.Range["C2"].Text = "30"; //Create chart and range Chart chart = worksheet.Charts.Add(); chart.DataRange = worksheet.Range["A1:C2"]; //Set chart frame format IChartFrameFormat frameFormat = chart.ChartArea; //Set color frameFormat.Fill.ForeColor = System.Drawing.Color.Red; //Save to file workbook.SaveToFile("Chart.xlsx"); DataRange for the chart series. Returns a DataTable object that represents the chart data table. The following code illustrates how to set HasDataTable to "true" to enable data table and set IChartDataTable.HasBorders to "false" to hide the borders of data table: //Create worksheet Workbook workbook = new Workbook(); Worksheet worksheet = workbook.Worksheets[0]; //Add data worksheet.Range["A1"].Text = "Jan"; worksheet.Range["B1"].Text = "Feb"; worksheet.Range["C1"].Text = "Mar"; worksheet.Range["A2"].Text = "10"; worksheet.Range["B2"].Text = "20"; worksheet.Range["C2"].Text = "30"; //Create chart and range Chart chart = worksheet.Charts.Add(); chart.DataRange = worksheet.Range["A1:C2"]; //Set Chart data table chart.HasDataTable = true; IChartDataTable dataTable = chart.DataTable; //Set border dataTable.HasBorders = false; //Save to file workbook.SaveToFile("Chart.xlsx"); Returns a Floor object that represents the floor of the 3-D chart. The following code illustrates how to access IChartWallOrFloor using Floor property and set foreground color for the chart's Floor: //Create worksheet Workbook workbook = new Workbook(); workbook.LoadFromFile("Sample.xlsx"); Worksheet worksheet = workbook.Worksheets[0]; //Get chart Chart chart = worksheet.Charts[0]; //Set chart wall IChartWallOrFloor floor = chart.Floor; //Set color floor.Fill.FillType = ShapeFillType.SolidColor; floor.Fill.ForeColor = System.Drawing.Color.Red; //Save to file workbook.SaveToFile("Chart.xlsx"); Represents chart legend. The following code illustrates how to access IChartLegend using IChart.Legend property and set IChartLegend.Position to LegendPositionType.Left: //Create worksheet Workbook workbook = new Workbook(); Worksheet worksheet = workbook.Worksheets[0]; //Add data worksheet.Range["A1"].Text = "Jan"; worksheet.Range["B1"].Text = "Feb"; worksheet.Range["C1"].Text = "Mar"; worksheet.Range["A2"].Text = "10"; worksheet.Range["B2"].Text = "20"; worksheet.Range["C2"].Text = "30"; //Create chart and range Chart chart = worksheet.Charts.Add(); chart.DataRange = worksheet.Range["A1:C2"]; //Set chart legend and legend position IChartLegend legend = chart.Legend; legend.Position = LegendPositionType.Left; //Save to file workbook.SaveToFile("Chart.xlsx"); Page setup for the chart. Returns a PlotArea object that represents the plot area of a chart. The following code illustrates how to access IChartFrameFormat using PlotArea property and set foreground color for the chart's PlotArea: //Create worksheet Workbook workbook = new Workbook(); Worksheet worksheet = workbook.Worksheets[0]; //Add data worksheet.Range["A1"].Text = "Jan"; worksheet.Range["B1"].Text = "Feb"; worksheet.Range["C1"].Text = "Mar"; worksheet.Range["A2"].Text = "10"; worksheet.Range["B2"].Text = "20"; worksheet.Range["C2"].Text = "30"; //Create chart and range Chart chart = worksheet.Charts.Add(); chart.DataRange = worksheet.Range["A1:C2"]; //Set chart frame format IChartFrameFormat frameFormat = chart.PlotArea; //Set color frameFormat.Fill.ForeColor = System.Drawing.Color.Red; //Save to file workbook.SaveToFile("Chart.xlsx"); Returns primary category axis. Returns primary value axis. Returns primary series axis. Read-only. Returns secondary category axis. Returns secondary value axis. Read-only. Workbook contains the chart. Represents chart walls. The following code illustrates how to access IChartWallOrFloor using Walls property and set foreground color for the chart's Walls: //Create worksheet Workbook workbook = new Workbook(); workbook.LoadFromFile("Sample.xlsx"); Worksheet worksheet = workbook.Worksheets[0]; //Get chart Chart chart = worksheet.Charts[0]; //Set chart wall IChartWallOrFloor wall = chart.Walls; //Set color wall.Fill.FillType = ShapeFillType.SolidColor; wall.Fill.ForeColor = System.Drawing.Color.Red; //Save to file workbook.SaveToFile("Chart.xlsx"); Worksheet which contains the chart. Gets or sets the radio of soft edge. Returns an object that represents either a single series (a Series object) or a collection of all the series (a SeriesCollection collection) in the chart or chart group. Gets title text area. Read-only. Returns an object that represents the complete chart area for the chart. DataRange for the chart series. Returns a DataTable object that represents the chart data table. Returns a Floor object that represents the floor of the 3-D chart Represents chart legend. Page setup for the chart. Returns a PlotArea object that represents the plot area of a chart. Returns primary category axis. Returns primary value axis. Returns primary series axis. Returns secondary category axis. Returns secondary value axis. Workbook which contains the chart. Represents chart walls. Represents comments collection for the worksheet. Read-only. Convert chart to Svg stream stream. Contains a condition and the formatting for cells. Indicates whether pattern color . Used to get or set interior settings. Returns gradient object for this extended format. A sparkline represents a tiny chart or graphic in a worksheet cell that provides a visual representation of data. Represents the SparklineCollection. Adds Sparkline instance. Adds the sparkline. Adds the sparkline. Adds the sparkline. Refresh data range of the sparkline. Clears the sparkline. The sparkline range. Indicates whether to show the sparkline horizontal axis. The horizontal axis appears if the sparkline has data that crosses the zero axis. Indicates whether to show data in hidden rows and columns. Indicates whether to highlight the first point of data in the sparkline group. Indicates whether to highlight the last point of data in the sparkline group. Indicates whether to highlight the lowest points of data in the sparkline group. Indicates whether to highlight the highest points of data in the sparkline group. Indicates whether to highlight the negative values on the sparkline group with a different color or marker. Indicates whether to highlight each point in each line sparkline in the sparkline group. Gets and sets the custom maximum value for the vertical axis. Represents the vertical axis maximum value type. Gets and sets the custom minimum value for the vertical axis. Represents the vertical axis minimum value type. Indicates the sparkline type of the sparkline group. Indicates wheter represents the horizontal axis type as Dateaxis. Represents the range that contains the date values for the sparkline data. Gets and sets the color of the horizontal axis in the sparkline group. Gets and sets the color of the first point of data in the sparkline group. Gets and sets the color of the highest points of data in the sparkline group. Gets and sets the color of the last point of data in the sparkline group. 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 lowest points of data 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 negative values on the sparkline group. Gets and sets the color of the sparklines in the sparkline group. The SparklineGroupCollection represents the collection of SparklineGroup objects. Clears the sparkline group. Adds the SparklineGroup instance. Adds the SparklineGroup instance. WorkbookDesignerused for template markers to the workbook and worksheet. Add datatable to template markers(Match column name automatically). Parameter Name Datatable object Add datatable to template markers(Match column name automatically). Parameter Name Datatable object Number of data rows used per apply Add dataview to template markers(Match column name automatically). Parameter Name Datatable object Adds parameter to template markers. Parameter Name Parameter Value Removes parameter from template marker. Checks parameter is exist. Apply templates markers Prefix of Marker Whether detect the dataTypes when apply marker The color scale condition in the conditional format Indicates the type, value, and the color of threshold criteria used in the color scale conditional format. Get or set the max value object's corresponding color. Get or set the mid value object's corresponding color. Get or set the min value object's corresponding color. Get or set this ColorScale's max value object. Get or set this ColorScale's mid value object. Get or set this ColorScale's min value object. Sets number of objects in the collection. Contains a condition and the formatting for cells. Represents a data bar conditional formating rule. The shortest bar is evaluated for a data bar conditional format. The longest bar is evaluated for a data bar conditional format. Gets or sets the color of the bar in a data bar condition format. Gets or sets a value that specifies the length of the longest data bar as a percentage of cell width. Gets or sets a value that specifies the length of the shortest data bar as a percentage of cell width. Gets or sets a Boolean value that specifies if the value in the cell is displayed. 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 an object that specifies the border of a data bar. Gets or sets the direction the databar is displayed. Gets the NegativeBarFormat object associated with a data bar conditional formatting rule. Comment rich text. Gets or sets the author of the comment. Indicates whether the comment is visible. Gets and sets the html string which contains data and some formattings in this shape. Row of the commented range. Column of the commented range. Comment text Indicates whether the size of the specified object is changed automatically to fit text within its boundaries. Read/write Boolean. Specifies all possible settings for how drawing object shall be resized when the rows and columns between its start and ending anchor are resized or inserted. Height of comment. Position of left Name of object. Top of object. Width of object. Shape type of object. Alternative text. Returns or sets the rotation of the shape, in degrees. Removes comment. Scales all comments. Width scale in percents. Height scale in percents. Converts cell name to row and column index. Name of the cell. Row index. Column index. Converts column name into index. Name to convert. Converted value. Conditional formatting icon set condition. Gets an IconCriteria collection Get or sets icon set type Gets or sets a Boolean value indicates whether thresholds for an icon set conditional format are determined using percentiles. Gets or sets a Boolean value indicates whether the order of icons is reversed for an icon set. Gets or sets a Boolean value indcates whether only the icon is displayed for an icon set conditional format. Returns or sets a ExcelColors value that represents the color of the border Returns or sets the primary color of the object, as shown in the table in the remarks section. Use the RGB function to create a color value. Read/write Color. Returns or sets the primary color of the object. Read/write ExcelColors. Returns or sets the line style for the border. Read/write LineStyleType. Indicates whether shows diagonal line. Copies styles from source border. source border. Copies styles from source border. source border. Active single cell in the worksheet Adds a comment to the range. Comment to add Add signature line to cell. Suggested signer. Suggested signer's title. Suggested signer's e-mail address. Instructions to the signer. Whether allow the signer to add comments in the sign dialog. Whether show sign date in signature line. Adds a comment to the range. The following code illustrates how to insert Comments in the Range: //Create worksheet Workbook workbook = new Workbook(); Worksheet worksheet = workbook.Worksheets[0]; //Adding comments to a cell ICommentShape comment = worksheet.Range["A1"].AddComment(); comment.Text= "Comments"; //Save to file workbook.SaveToFile("AddComment.xlsx"); Created comment or exists one. Clones current IXLSRange. Parent object. new names. Parent workbook. Cloned instance. Moves the cells to the specified Range. Destnation Range. Moves the cells to the specified Range. Destination Range. Indicates whether to update reference range. Copies the range to the specified range. Destination range Destination range Copies the range to the specified range. Destination range. Indicates whether to update reference cells. Copies the range to the specified range. Destination range. Indicates whether to update reference cells. Indicates whether to copy styles. Destination range Copies the range to the specified range. Destination range. Copy options. Finds the cell with the input double. Double value to search for Indicates whether to find formula value Found ranges Finds the cell with the input string. String value to search for Indicates whether include formula Indicates whether include formula value Found ranges Finds the cell with the input datetime. DateTime value to search for Found ranges Finds the cell with input timespan time span value to search for Found ranges Finds the cell with the input bool. Bool value to search for Found ranges Finds the cell with the input bool. Bool value to search for Found range Finds the cell with the input double. Double value to search for Indicates whether includes formula value to search for Found range Finds the cell with the input string. String value to search for Indicates whether includes formula to search for Indicates whether includes formula value to search for Found range Finds the cell with the input datetime. Datetime value to search for Found range Finds the cell with the input time span. Time span value to search for. Found range. Get intersection range with the specified range. Range which to intersect. Range intersection. Creates a merged cell from the specified Range object. The following code illustrates how to check whether two ranges are mergable or not: //Create worksheet Workbook workbook = new Workbook(); Worksheet worksheet = workbook.Worksheets[0]; //Merge range worksheet["A2:B2"].Merge(); //Get mergable range IXLSRange mergableRange = worksheet["A2"].MergeArea.Merge(worksheet["C2"]); //Check mergable Area Console.Write(mergableRange.RangeAddressLocal); //Save to file workbook.SaveToFile("Intersect.xlsx"); The Range to merge with. Merged ranges. Sets data validation for the range. Data validation to set. Returns a Borders collection that represents the borders of a style or a range of cells (including a range defined as part of a conditional format). The following code illustrates how to access Borders property of the Range: //Create worksheet Workbook workbook = new Workbook(); Worksheet worksheet = workbook.Worksheets[0]; //Set text worksheet["C2"].Text = "Sample"; //Set borders IBorders borders = worksheet["C2"].Borders; //Set line style borders[BordersLineType.EdgeTop].LineStyle = LineStyleType.Thin; borders[BordersLineType.EdgeBottom].LineStyle = LineStyleType.Thin; //Set border color borders[BordersLineType.EdgeTop].Color = Color.Red; borders[BordersLineType.EdgeBottom].Color = Color.Red; //Save to file workbook.SaveToFile("CellFormats.xlsx"); Returns a Style object that represents the style of the specified range. The following code illustrates how to the style of the specified range: //Create worksheet Workbook workbook = new Workbook(); Worksheet worksheet = workbook.Worksheets[0]; //Set text worksheet["C2"].Text = "Sample"; //Add and set style CellStyle style = workbook.Styles.Add("BorderStyle"); style.Color = Color.Red; worksheet["C2"].Style = style; //Save to file workbook.SaveToFile("Style.xlsx"); Returns a Range object that represents the cells in the specified range. Returns a Range object that represents the cells in the specified range. The following code illustrates how to access CellList property of the Range: //Create worksheet Workbook workbook = new Workbook(); Worksheet worksheet = workbook.Worksheets[0]; //Set text. The content contained by ![CDATA[]] will be expressed as plain text List cells = worksheet["A1:E8"].CellList; //Do some manipulations foreach (CellRange Range in cells) Range.Text = Range.RangeAddressLocal; //Save to file workbook.SaveToFile("CellList.xlsx"); Returns a Range object that represents the columns in the specified range. The following code illustrates how to access columns: //Create worksheet Workbook workbook = new Workbook(); Worksheet worksheet = workbook.Worksheets[0]; //Set columns IXLSRange[] columns = worksheet["A1:E8"].Columns; //Do some manipulations foreach (IXLSRange column in columns) column.Text = column.RangeAddressLocal; //Save to file workbook.SaveToFile("Columns.xlsx"); Returns the number of the first row of the first area in the range. The following code illustrates how to access rows: //Create worksheet Workbook workbook = new Workbook(); Worksheet worksheet = workbook.Worksheets[0]; //Set rows IXLSRange[] rows = worksheet["A1:E8"].Rows; //Do some manipulations foreach (IXLSRange row in rows) row.Text = row.RangeAddressLocal; //Save to file workbook.SaveToFile("Rows.xlsx"); Gets cell range. Row and column indexes are one-based. Gets cell range. Row and column indexes are one-based. Gets cell range. Gets cell range Returns a Comment object that represents the comment associated with the cell in the upper-left corner of the range. The following code illustrates how to access Comments property of the Range: //Create worksheet Workbook workbook = new Workbook(); Worksheet worksheet = workbook.Worksheets[0]; //Adding comments to a cell worksheet.Range["A1"].AddComment().Text = "Comments"; //Add Rich Text Comments CellRange range = worksheet.Range["A6"]; range.AddComment().RichText.Text = "RichText"; IRichTextString rtf = range.Comment.RichText; //Formatting first 4 characters IFont redFont = workbook.CreateFont(); redFont.IsBold = true; redFont.Color = Color.Red; rtf.SetFont(0, 3, redFont); //Save to file workbook.SaveToFile("DataValidation.xlsx"); Returns a worksheet object that represents the worksheet containing the specified range. Returns a RichTextString object that represents the rich text style. The following code illustrates how to set rich text formatting in the range: //Create worksheet Workbook workbook = new Workbook(); Worksheet worksheet = workbook.Worksheets[0]; //Create style IStyle style = workbook.Styles.Add("CustomStyle"); //Set rich text IRichTextString richText = worksheet["C2"].RichText; richText.Text = "Sample text"; //Set rich text font IFont font = style.Font; font.IsBold = true; richText.SetFont(0, 5, font); //Save to file workbook.SaveToFile("RichText.xlsx"); Returns a Range object that represents the entire column (or columns) that contains the specified range. Returns a Range object that represents the cell at the end of the region that contains the source range. Returns a Range object that represents the merged range containing the specified cell. The following code illustrates how to access MergeArea property: //Create worksheet Workbook workbook = new Workbook(); Worksheet worksheet = workbook.Worksheets[0]; //Set text worksheet["C2"].Text = "Sample text in cell"; //Set merge worksheet["C2:D3"].Merge(); //Check merge area Console.Write(worksheet["C2"].MergeArea.AddressLocal); Returns a Range object that represents the entire row (or rows) that contains the specified range. Returns a Borders collection that represents the borders of a style. Returns a Font object that represents the font of the specified object. Returns interior object for extended format. Represents justify text alignment Returns or sets the format code for the object as a string in the language of the user. Set the theme color. theme color type Get the theme color. theme color type If the color is a theme color, true returned, is not then false will be returned. True if the style is a built-in style. Gets or Sets fill pattern type. True if the formula will be hidden when the worksheet is protected. Returns or sets the horizontal alignment for the specified object. True if the style includes the AddIndent, HorizontalAlignment, VerticalAlignment, WrapText, and Orientation properties. True if the style includes the Color, KnownColor, LineStyle, and Weight border properties True if the style includes the Background, Bold, Color, KnownColor, FontStyle, Italic, Name, OutlineFont, Shadow, Size, Strikethrough, Subscript, Superscript, and Underline font properties. True if the style includes the NumberFormat property. True if the style includes the Color, KnownColor, InvertIfNegative, Pattern, PatternColor, and PatternKnownColor interior properties. True if the style includes the FormulaHidden and Locked protection properties. Returns or sets the indent level for the style. True if the object is locked; False if the object can be modified when the sheet is protected. Returns or sets the name of the object. Read-only String. Returns or sets the format code for the object. Gets or Sets format index. The text orientation. Can be an integer value from 1 to 180 degrees True if text automatically shrinks to fit in the available column width. Returns or sets the vertical alignment of the specified object. True if Microsoft Excel wraps the text in the object. Returns or sets the reading order for the specified object. If true then first symbol in cell is apostrophe. Returns or sets the excel color of the interior. Returns or sets the color of the interior pattern. Gets or sets the cell shading excel color. Gets or sets the cell shading color. Returns a Borders collection that represents the borders of a style. Returns a Font object that represents the font of the specified object. Returns workbook contains the style.. Represents possible excel versions. Represents excel version 2007 xlsb Represents excel version 2010 xlsb OpenOffice Spreadsheet documents UOF Spreadsheet documents Represents excel version 97-2003. Represents excel version 2007 Represents excel version 2013. Represents excel version 2016. Represents possible excel versions. Represents excel version 2007 xlsb Represents excel version 2010 xlsb OpenOffice Spreadsheet documents CSV file. Xml file PDF file Bitmap file XPS file SVG file Represents excel version 97-2003. Represents excel version 2007. Represents excel version 2010. Represents excel version 2013. Represents excel version 2016. PostScript file Represents WPS file. Represents WPS file. UOF Spreadsheet (UOS) format. Predefined colors in excel. Represents the Black color. Represents the White color. Represents the Red color. Represents the LightGreen color. Represents the Blue color. Represents the Yellow color. Represents the Magenta color. Represents the Cyan color. No color. Represents the Aqua color. Represents the BlackCustom color. Represents the BlueCustom color. Represents the BlueGray color. Represents the BrightGreen color. Represents the Brown color. Represents the DarkBlue color. Represents the DarkGreen color. Represents the DarkRed color. Represents the DarkTeal color. Represents the DarkYellow color. Represents the Gold color. Represents the Green color. Represents the Gray25Percent color. Represents the Gray40Percent color. Represents the Gray50Percent color. Represents the Gray80Percent color. Represents the Indigo color. Represents the Lavender color. Represents the LightBlue color. Represents the LightGreen1 color. Represents the LightOrange color. Represents the LightTurquoise color. Represents the LightYellow color. Represents the Lime color. Represents the OliveGreen color. Represents the Orange color. Represents the PaleBlue color. Represents the Pink color. Represents the Plum color. Represents the Red2 color. Represents the Rose color. Represents the SeaGreen color. Represents the SkyBlue color. Represents the Tan color. Represents the Teal color. Represents the Turquoise color. Represents the Violet color. Represents the WhiteCustom color. Represents the YellowCustom color. Represents the Color0 color. Represents the Color1 color. Represents the Color2 color. Represents the Color3 color. Represents the Color4 color. Represents the Color5 color. Represents the Color6 color. Represents the Color7 color. Represents the Color8 color. Represents the Color9 color. Represents the Color10 color. Represents the Color11 color. Represents the Color12 color. Represents the Color13 color. Represents the Color14 color. Represents the Color15 color. Represents the Color16 color. Represents the Color17 color. Represents the Color18 color. Represents the Color19 color. Represents the Color20 color. Represents the Color21 color. Represents the Color22 color. Represents the Color23 color. Represents the Color24 color. Represents the Color25 color. Represents the Color26 color. Represents the Color27 color. Represents the Color28 color. Represents the Color29 color. Represents the Color30 color. Represents the Color31 color. Represents the Color32 color. Represents the Color33 color. Represents the Color34 color. Represents the Color35 color. Represents the Color36 color. Represents the Color37 color. Represents the Color38 color. Represents the Color39 color. Represents the Color40 color. Represents the Color41 color. Represents the Color42 color. Represents the Color43 color. Represents the Color44 color. Represents the Color45 color. Represents the Color46 color. Represents the Color47 color. Represents the Color48 color. Represents the Color49 color. Represents the Color50 color. Represents the Color51 color. Represents the Color52 color. Represents the Color53 color. Represents the Color54 color. Represents the Color55 color. Represents the Color56 color. Represents the CSV HttpContent type. Possible image types for image conversion. Bitmap image. Metafile image. Page break types in Excel. Represents the Automatic type. Represents the Manual type. Represents the None type. Represents sheet protection flags enums. Not allows the user to do any thing on a protected worksheet. True to protect shapes. True to protect scenarios. True allows the user to format any cell on a protected worksheet. True allows the user to format any column on a protected worksheet. True allows the user to format any row on a protected. True allows the user to insert columns on the protected worksheet. True allows the user to insert rows on the protected worksheet. True allows the user to insert hyperlinks on the worksheet. True allows the user to delete columns on the protected worksheet, where every cell in the column to be deleted is unlocked. True allows the user to delete rows on the protected worksheet, where every cell in the row to be deleted is unlocked. True allows the user to select locked cells on the protected worksheet. True allows the user to sort on the protected worksheet. True allows the user to set filters on the protected worksheet. Users can change filter criteria but can not enable or disable an auto filter. True allows the user to use pivot table reports on the protected worksheet. True allows the user to select locked cells on the protected worksheet. Represents all flags Allows the user to do any thing on a protected worksheet. Hyper link type. No hyperlink. Represents the Url hyperlink type. Represents the File hyperlink type. Represents the Unc hyperlink type. Represents the Workbook hyperlink type. Cell format types. Represents unknown format type. Represents general number format. Represents text number format. Represents number number format. Represents datetime number format. Represents Formula. Flags for expand/collapse settings. Default options. Indicates whether subgroups must be included into operation. Indicates whether we have to expand parent group when expanding child (to make it visible). Clears the formats of the cell. Clears the contents of the cell. Clears the comments of the cell. Clears the comments, content and formats of the cell. Clears all the Conditional Format Specifies existing built-in styles for Excel 2007. Indicates Normal style. Indicates Comma style. Indicates Currency style. Indicates Percent style. Indicates Comma[0] style. Indicates Currency[0] style. Indicates Currency style. Indicates Followed Hyperlink style. Indicates Note style. Indicates Warning Text style. Indicates Title style. Indicates Heading 1 style. Indicates Heading 2 style. Indicates Heading 3 style. Indicates Heading 4 style. Indicates Input style. Indicates Output style. Indicates Calculation style. Indicates Check Cell style. Indicates Linked Cell style. Indicates Total style. Indicates Good style. Indicates Bad style. Indicates Neutral style. Indicates Accent1 style. Indicates 20% - Accent1 style. Indicates 40% - Accent1 style. Indicates 60% - Accent1 style. Indicates Accent2 style. Indicates 20% - Accent2 style. Indicates 40% - Accent2 style. Indicates 60% - Accent2 style. Indicates Accent3 style. Indicates 20% - Accent3 style. Indicates 40% - Accent3 style. Indicates 60% - Accent3 style. Indicates Accent4 style. Indicates 20% - Accent4 style. Indicates 40% - Accent4 style. Indicates 60% - Accent4 style. Indicates Accent5 style. Indicates 20% - Accent5 style. Indicates 40% - Accent5 style. Indicates 60% - Accent5 style. Indicates Accent6 style. Indicates 20% - Accent6 style. Indicates 40% - Accent6 style. Indicates 60% - Accent6 style. Indicates Explanatory Text style. Defines the possible settings for vertical alignment of a run of text. This is used to get superscript or subscript text without altering the font size properties of the rest of the text run. Returns the text in this run to the baseline, default, alignment, and returns it to the original font size. Specifies that this text should be superscript. Raises the text in this run above the baseline and changes it to a smaller size, if a smaller size is available. Specifies that this text should be subscript. Lowers the text in this run below the baseline and changes it to a smaller size, if a smaller size is available. Represents shape shading variants. Represents first shading variants. Represents second shading variants. Represnets third shading variants. Represents fourth shading variants. No bevel Represents Angle Represents Art Deco Represents Circle Represents Convex Represents Cool Slant Represents Cross Represents Divot Represents Hard Edge Represents Relaxed Inset Represents Riblet Represents Slope Represents Soft round Indicates the Material property values fro the chart Represents No Material Effect Represents Matte Material Represents WarmMatte Material Represents Plastic Material Represents Metal Material Represents Dark Edge Material Represents Soft Edge Material Represents Flat Material Represents Wire Frame Material Represents Powder Material Represents Translucent Powder Material Represents Clear Material Indicates the Outer Shadow values Represents No shadow Represents Outer shadow at Right Represents Outer shadow at DiagonalBottomRight Represents Outer shadow at Bottom Represents Outer shadow at DiagonalTopLeft Represents Outer shadow at Center Represents Outer shadow at Top Represents Outer shadow at Left Represents Outer shadow at DiagonalTopRight Represents Outer shadow at DiagonalBottomLeft Indicates the Inner Shadow Values Represents No shadow. Represents Inner Shadow at Diagonal Bottom Left Represents Inner Shadow at Top Represents Inner Shadow at Right Represents Inner Shadow at Left Represents Inner Shadow at TopRight Represents Inner Shadow at Diagonal Bottom Right Represents Inner Shadow at Center Represents Inner Shadow at Bottom Represents Inner Shadow at Diagonal Top left Indicates the Perspective shadow Values Represents the No Shadow Represents Perspective Shadow at Diagonal Upper Right Represents Perspective Shadow at Diagonal Lower Right Represents Perspective Shadow at Diagonal Upper Left Represents Perspective Shadow at Diagonal Lower Left Represents Perspective Shadow at Below Change target type of shape. bring to front. send to back. bring forward. send backward. Represents shape XlsFill type. Solid color. Represents pattern type. Represents texture type. Represents picture type. Represents unsupport gradient. Represents gradient type. Represents noFill type. Image formats. Original picture format. PNG picture format. JPG picture format. Line PloyLine CurveLine defines the types of OLE object Type is not defined Adobe Acrobat Document. Bitmap Image. Media Clip Equation Graph Chart Excel 97-2003 Worksheet. Excel Binary Worksheet. Excel chart. Excel Macro-Enabled Worksheet. Excel Worksheet. PowerPoint 97-2003 Presentation. PowerPoint 97-2003 Slide. PowerPoint Macro-Enabled Presentation. PowerPoint Macro-Enabled Slide. PowerPoint Presentation. PowerPoint Slide. Word 97-2003 Document. Word Document. Word Macro-Enabled Document. Visio Deawing MIDI Sequence OpenDocument Presentation OpenDocument Spreadsheet OpenDocument Text OpenOffice.org 1.1 Spreadsheet OpenOffice.org 1.1 Text Package Video Clip Wave Sound WordPad Document OpenOffice spreadsheet OpenOffice Text Xml Png Emf Represents possible combo box type values.. Regular sheet dropdown control. PivotTable page field dropdown. AutoFilter dropdown. AutoComplete dropdown. Data validation list dropdown. PivotTable row or column field dropdown. Dropdown for the Total Row of a table. Indicates that inserted row/column has the same format as the row above or column left. Indicates that inserted row/column has the same format as the row below or column right. Indicates that inserted row/column has default format. Defines action that must be taken when meeting unknown variable during template markers processing. Throws exception if no variable is defined. Skips processing variable and leaves it in the document. Replaces variable with empty string. Defines value type and numberformat in the template marker variable. Detects the DataType of the marker variable. Detects both the NumberFormat and DataType of the marker variable. Represents the None Action. SummaryInformation property type. Title document property. Subject document property. Author document property. Keywords document property. Comments document property. Template document property. LastAuthor document property. Revnumber document property. EditTime document property. LastPrinted document property. CreationDate document property. LastSaveDate document property. PageCount document property. WordCount document property. CharCount document property. Thumbnail document property. ApplicationName document property. Ssecurity document property. Category document property. Target format type. ByteCount. LineCount. ParCount. SlideCount. NoteCount. HiddenCount. MmclipCount. ScaleCrop property. HeadingPair. DocParts. Manager. Company. LinksDirty. DocumentVersion. Version Page break extent types in Excel. Represents full page break option. Represents partial page break option. Data type for filters. Represents the filter data type. Represents the FloatingPoint filter data type. Represents the String filter data type. Represents the Boolean filter data type. Represents the ErrorCode filter data type. Represents the MatchAllBlanks filter data type. Represents the MatchAllNonBlanks filter data type. Filter conditions. Represents the Less filter condition type. Represents the Equal filter condition type. Represents the LessOrEqual filter condition type. Represents the Greater filter condition type. Represents the NotEqual filter condition type. Represents the GreaterOrEqual filter condition type. Represents auto format values. Represents Simple auto format. Represents Classic1 auto format. Represents Classic2 auto format. Represents Classic3 auto format. Represents Accounting1 auto format. Represents Accounting2 auto format. Represents Accounting3 auto format. Represents Accounting4 auto format. Represents Colorful1 auto format. Represents Colorful2 auto format. Represents Colorful3 auto format. Represents List1 auto format. Represents List2 auto format. Represents List3 auto format. Represents Effect3D1 auto format. Represents Effect3D2 auto format. Represents None auto format. Represents auto format options. Represents number auto format option. Represents border auto format option. Represents font auto format option. Represents patterns auto format option. Represents alignment auto format option. Represents width\height auto format option. Represents none auto format option. Represents all auto format option. Contains the list of style elements Indicates the Axis Title Element Indicates the Category Axis element Indicates the chart Area Element Indicates the Data Label Element Indicates the Data Label callout Element Indicates the Data Point Element Indicates the Data Point 3D Element Indicates the Data Point Line Element Indicates the Data Point Marker Element Indicates the Data Point Marker Layout Element Indicates the Data Point Wireframe Element Indicates the Data Table Element Indicates the Down Bar Element Indicates the Drop Line Element Indicates the Error Bar Element Indicates the Floor Element Indicates the Major grid line Element Indicates the Minor grid line Element Indicates the High-Low Line Element Indicates the Leader Line Element Indicates the Legend Element Indicates the Plot Area Element Indicates the Plot Area 3D Element Indicates the Series Axis Element Indicates the SeriesLine Element Indicates the Title Element Indicates the Trendline Element Indicates the TrendLine Label Element Indicates the Up Bar Element Indicates the Value Axis Element Indicates the Wall Element Indicates the Extension List Element Contains the list of color models No color models have been used expressing Red, Green, Blue color in Percentages. specifies the color two hex digits per color, in the order RGB. represents a color using the Hue, Saturation, and Luminescence. represents a system color, and introduces a level of indirection. schemeClr represents a color from a theme. prstClr represents a preset color by its name. element that specifies a color calculated from a CT_ColorStyle. Contains the style entry modifier enumerations No modifier enum is applied fill properties specified on this StyleEntry can be replaced with no fill instead. line properties specified on this StyleEntry can be replaced with no line instead. This simple type enumeration specifies how to cap the ends of lines. Line ends at end point. Rounded ends. Semi-circle protrudes by half line width. Square protrudes by half line width. Represents different horizontal alignments Represents Left horizontal alignment setting for the shapes. Represents Center horizontal alignment setting for the shapes. Represents Right horizontal alignment setting for the shapes. Represents LeftMiddle horizontal alignment setting for the shapes. Represents CenterMiddle horizontal alignment setting for the shapes. Represents RightMiddle horizontal alignment setting for the shapes. Represents different vertical alignments Represents Top vertical alignment setting for the shapes. Represents Middle vertical alignment setting for the shapes. Represents Bottom vertical alignment setting for the shapes. Represents TopCentered vertical alignment setting for the shapes. Represents MiddleCentered vertical alignment setting for the shapes. Represents BottomCentered vertical alignment setting for the shapes. Represents different text direction. Represents the horizontal text direction Rotates the text by 90 degrees Rotates the text by 270 degrees Rotates the text from left to right Rotates the text from right to left Enumeration represents one of the fonts associated with the style. (None) No font reference. (Minor Font) The minor font of the style's font scheme. (Major Font) The major font of the style's font scheme. Enum that defines different types of the formula calculations. Represents the MANUAL calculation type. Represents the AUTOMATIC calculation type. Represents the AUTOMATIC EXCEPT TABLES calculation type. Defines the view setting of the sheet. Normal view Preview Page Layout View Specifies border and diagonal line types in Excel. Border running from the upper left-hand corner to the lower right of each cell in the range. Border running from the lower left-hand corner to the upper right of each cell in the range. Border at the bottom of the range. Border at the left-hand edge of the range. Border at the right-hand edge of the range. Border at the top of the range. Border at the horizontal edge of the range in the table. Border at the vertical edge of the range in the table. Border line styles. Represents no border line style. Represents the thin border line style. Represents the medium border line style. Represents the dashed border line style. Represents the dotted border line style. Represents the thick border line style. Represents the double border line style. Represents the hair border line style. Represents the medium_dashed medium_dashed line style. Represents the DashDot border line style. Represents the MediumDashDot border line style. Represents the DashDotDot border line style. Represents the MediumDashDotDot border line style. Represents the SlantedDashDot border line style. Possible error style values: Specifies that the alert should be displayed with the stop style. Specifies that the alert should be displayed with the warning style. Specifies that the alert should be displayed with the information style. The Comparison operator for conditional formatting. Represents between option for comparison in conditional formatting. Represents not between option for comparison in conditional formatting. Represents equal to option for comparison in conditional formatting. Represents not equal to option for comparison in conditional formatting. Represents greater than option for comparison in conditional formatting. Represents less than option for comparison in conditional formatting. Represents greater than or equal to option for comparison in conditional formatting. Represents less than or equal to option for comparison in conditional formatting. Cell data types: Represents the Any data type. Represents the Integer data type. Represents the Decimal data type. Represents the User data type. Represents the Date data type. Represents the Time data type. Represents the TextLength data type. Represents the Formula data type. Visibility of worksheet type. Worksheet is visible. Worksheet is hidden. Cleared with a Visual Basic macro. Horizontal alignment type. Represents the general horizontal alignment setting. Represents left horizontal alignment setting. Represents center horizontal alignment setting. Represents center horizontal alignment setting. Represents XlsFill horizontal alignment setting. Represents justify horizontal alignment setting. Represents center across selection horizontal alignment setting. Represents distributed horizontal alignment setting. Vertical alignment type. Represents top vertical alignment. Represents center vertical alignment. Represents bottom vertical alignment. Represents justify vertical alignment. Represents distributed vertical alignment. Represents flags of excel ignore error indicator. Represents None flag of excel ignore error indicator. Represents EvaluateToError flag of excel ignore error indicator. Represents EmptyCellReferences flag of excel ignore error indicator. Represents NumberAsText flag of excel ignore error indicator. Represents OmittedCells flag of excel ignore error indicator. Represents InconsistentFormula flag of excel ignore error indicator. Represents TextDate flag of excel ignore error indicator. Represents UnlockedFormulaCells flag of excel ignore error indicator. Represents All flag of excel ignore error indicator. Reading order types. Represents the Context reading order type. Represents the LeftToRight reading order type. Represents the RightToLeft reading order type. Represents excel shape shading style. Represents horizontal style. Represents vertical style. Represents diagonl up style. Represents diagonl down style. Represents from corner style. Represents from center style. Page order for sheet in Excel. Represents Down, then over. Represents Over, then down. Page orientation types in Excel. Represents landscape setting. Represents potrait setting. Print comments types. Represents As displayed on sheet setting. Represents (None) setting. Represents at end of sheet setting. Print error values. Represents the blank option. Represents the dash option. Represents the displayed option. Represents the NA option. the Third value. the second value. the first value. TopBottom type. Average type. Above the average for all values in the range. Above or equal the average for all values in the range. below the average for all values in the range. below or equal the average for all values in the range. StdDev above 1 than the average for all values in the range. StdDev above 2 than the average for all values in the range. StdDev above 3 than the average for all values in the range. StdDev below 1 than the average for all values in the range. StdDev below 2 than the average for all values in the range. StdDev below 3 than the average for all values in the range. Conditional formatting type. Represents the Cell Value Is option for conditional formatting. Represents the Formula Is option for conditional formatting. Represents the DataBar option for conditional formatting. Represents the IconSet option for conditional formatting. Represents the ColorScale option for conditional formatting. Represents the BeginsWith option for conditional formatting. Represents the ContainsText option for conditional formatting. Represents the EndsWith option for conditional formatting. Represents the NotContainsText option for conditional formatting. Represents the TopBottom option for conditional formatting. Represents the Average option for conditional formatting. Represents the ContainsBlanks option for conditional formatting. Represents the ContainsErrors option for conditional formatting. Represents the DuplicateValues option for conditional formatting. Represents the NotContainsBlanks option for conditional formatting. Represents the NotContainsErrors option for conditional formatting. Represents the TimePeriod option for conditional formatting. Represents the UniqueValues option for conditional formatting. The Comparison operator for conditional formatting in Excel. Represents no option for comparison in conditional formatting. Represents between option for comparison in conditional formatting. Represents not between option for comparison in conditional formatting. Represents equal to option for comparison in conditional formatting. Represents not equal to option for comparison in conditional formatting. Represents greater than option for comparison in conditional formatting. Represents less than option for comparison in conditional formatting. Represents greater than or equal to option for comparison in conditional formatting. Represents less than or equal to option for comparison in conditional formatting. Represents The ResizeBehave mode. Don't move or resize with underlying rows/columns. Move with cells but do not resize. Move and resize with anchor cells. Vertical text type enum(Horizontal) Vertical text type enum(Vertical) Rotate All Text 90 Rotate All Text 270 Stacked left to right Stacked right to left Text Rotation types. Represents the LeftToRight text rotation. Represents the TopToBottom text rotation. Represents the CounterClockwise text rotation. Represents the Clockwise text rotation. Specifies check state of the check box. Indicates that checkbox is unchecked. Indicates that checkbox is checked. Mixed state. Represents shape line style. Represents single line style. Represents thin thin line style. Represents thin thick line style. Represents thick thin line style. Represents thick between thin line style. Represents shape dash line style. Represents solid style. Represents Dotted style. Represents DottedRound style. Represents Dashed style. Represents MediumDashed style. Represents DashDot style. Represents MediumDashDot style. Represents DashDotDot style. Represents shape arrow style type. Represetns no arrow. Represetns standart arrow. Represetns Stealth arrow. Represetns Diamond arrow. Represetns Oval arrow. Represetns Open arrow. Represents arrow head length. Represents short arrow head length. Represents short arrow head length. Represents short arrow head length. Represents arrow head width. Represents short arrow head width. Represents short arrow head width. Represents short arrow head width. Represents gradient texture. Represents Newsprint texture type. Represents Recycled Paper texture type. Represents Parchment texture type. Represents Stationery texture type. Represents Green Marble texture type. Represents White Marble texture type. Represents Brown Marble texture type. Represents Granite texture type. Represents Blue Tissue Paper texture type. Represents Pink Tissue Paper texture type. Represents Purple Mesh texture type. Represents Bouquet texture type. Represents Papyrus texture type. Represents Canvas texture type. Represents Denim texture type. Represents Woven Mat texture type. Represents Water Droplets texture type. Represents Paper Bag texture type. Represents Fish Fossil texture type. Represents Sand texture type. Represents Cork texture type. Represents Walnut texture type. Represents Oak texture type. Represents Medium Wood texture type. Represents user defined texture type. Represents preset gradient type. Represents early sunset preset gradient type. Represents late sunset preset gradient type. Represents nightfall preset gradient type. Represents daybreak preset gradient type. Represents horizon preset gradient type. Represents desert preset gradient type. Represents ccean preset gradient type. Represents calm water preset gradient type. Represents fire preset gradient type. Represents fog preset gradient type. Represents moss preset gradient type. Represents peacock preset gradient type. Represents wheat preset gradient type. Represents parchment preset gradient type. Represents mahogany preset gradient type. Represents rainbow preset gradient type. Represents rainbowII preset gradient type. Represents gold preset gradient type. Represents goldII preset gradient type. Represents brass preset gradient type. Represents chrome preset gradient type. Represents chromeII preset gradient type. Represents silver preset gradient type. Represents sapphire preset gradient type. Represents the sort orientation. Sorts from top to Bottom. Sorts from Left to Right. Represents the sort by in the range. Sort based on values in the cell. Sort based on the cell back color. Sort based on the font color. Represents the algorithm to sort. Represents the Quick sort rule. Represents the Heap sort rule. Represents the Insertion sort rule. Represents the sort order. Represent the ascending sort. Represent the descending sort. Represents the position value in the sort list Represents the position of value in the sort list. Chart types. Represents the column clustered chart type. Represents the stacked column chart type. Represents the 100% stacked column chart type. Represents the 3D clustered column chart type. Represents the 3D stacked column chart type. Represents the 3D 100% stacked column chart type. Represents the 3D column chart type. Represents the clustered bar chart type. Represents the stacked bar chart type. Represents the 100% stacked bar chart type. Represents the 3D clustered bar chart type. Represents the 3D stacked bar chart type. Represents the 100% 3D stacked bar chart type. Represents the Line chart type. Represents the stacked line chart type. Represents the 100% stacked line chart type. Represents the markers line chart type. Represents the stacked markers line chart type. Represents the 100% stacked markers line chart type. Represents the 3D line chart type. Represents the pie chart type. Represents the 3D pie chart type. Represents the pie of pie chart type. Represents the exploded pie chart type. Represents the 3D exploded pie chart type. Represents the bar pie chart type. Represents the markers scatter chart type. Represents the ScatterSmoothedLineMarkers chart type. Represents the ScatterSmoothedLine chart type. Represents the ScatterLineMarkers chart type. Represents the ScatterLine chart type. Represents the Area chart type. Represents the AreaStacked chart type. Represents the Area100PercentStacked chart type. Represents the Area3D chart type. Represents the Area3DStacked chart type. Represents the Area3D100PercentStacked chart type. Represents the Doughnut chart type. Represents the DoughnutExploded chart type. Represents the Radar chart type. Represents the RadarMarkers chart type. Represents the RadarFilled chart type. Represents the Surface3D chart type. Represents the Surface3DNoColor chart type. Represents the SurfaceContour chart type. Represents the SurfaceContourNoColor chart type. Represents the Bubble chart type. Represents the Bubble3D chart type. Represents the StockHighLowClose chart type. Represents the StockOpenHighLowClose chart type. Represents the StockVolumeHighLowClose chart type. Represents the StockVolumeOpenHighLowClose chart type. Represents the CylinderClustered chart type. Represents the CylinderStacked chart type. Represents the Cylinder100PercentStacked chart type. Represents the CylinderBarClustered chart type. Represents the CylinderBarStacked chart type. Represents the CylinderBar100PercentStacked chart type. Represents the Cylinder3DClustered chart type. Represents the ConeClustered chart type. Represents the ConeStacked chart type. Represents the Cone100PercentStacked chart type. Represents the ConeBarClustered chart type. Represents the ConeBarStacked chart type. Represents the ConeBar100PercentStacked chart type. Represents the Cone3DClustered chart type. Represents the PyramidClustered chart type. Represents the PyramidStacked chart type. Represents the Pyramid100PercentStacked chart type. Represents the PyramidBarClustered chart type. Represents the PyramidBarStacked chart type. Represents the PyramidBar100PercentStacked chart type. Represents the Pyramid3DClustered chart type. Represents the CombinationChart chart types. Represents the Excel 2016 Funnel Chart Represents the Excel 2016 Water Fall Chart Represents the Excel 2016 Box and Whisker Chart Represents the Excel 2016 Histogram Chart Represents the Excel 2016 Pareto Chart Represents the Excel 2016 Tree Map Chart Represents the Excel 2016 Sun Burst Chart Chart plot empty type. No plot. Represents the Zero empty plot. Represents the Interpolated empty plot. Excel rectangle style. Represents the Regular rectangle style. Represents the Shadowed rectangle style. Chart line patterns. Represents the Solid line pattern setting for Chart. Represents the Dash line pattern setting for Chart. Represents the Dot line pattern setting for Chart. Represents the Dash-dot line pattern setting for Chart. Represents the Dash-dot-dot line pattern setting for Chart. Represents the no line pattern setting for Chart. Represents the Dark Gray line pattern setting for Chart. Represents the Medium Gray line pattern setting for Chart. Represents the Light Gray line pattern setting for Chart. Chart line weight values type. Represents the Hairline weight for Chart line. Represents the Narrow weight for Chart line. Represents the Medimun weight for Chart line. Represents the Wide weight for Chart line. Primary axis types for Charts.. Represents the Category (X) Axis. Represents the Value (Y) Axis. Represents the Serie Axis. Chart background mode. Represents the Transparent option. Represents the Opaque option. Represents enum of chart tick mark values. Represents tick mark none. Represents tick mark inside. Represents tick mark outside. Represents tick mark cross. Represents enum of chart tick label position values. Represents none label position. Represents low label position. Represents high label position. Represents nex to axis label position. Represents axis text direction. Represents context text direction. Represents Left-To-Right text direction. Represents Right-To-Left text direction. Represents category type. Represents Category category type. Represents time category type. Represents automatic category type. Represents chart base unit. Represents Day base unit. Represents Month base unit. Represents Year base unit. Legend placement for charts. Represents the bottom option. Represents the Corner option. Represents the Top option. Represents the Right option. Represents the Left option. Represents the Not Docked option. Represents Data label placement. Represents default position. Represents the Outside data label placement option. Represents the Inside data label placement option. Represents the Center data label placement option. Represents the OutsideBase data label placement option. Represents the Above data label placement option. Represents the Below data label placement option. Represents the Left data label placement option. Represents the Right data label placement option. Represents the BestFit data label placement option. Represents the Moved data label placement option. Represents the data label positioning. Specifies that data labels shall be displayed below the data marker. Specifies that data labels shall be displayed in the best position. Specifies that data labels shall be displayed centered on the data marker. Specifies that data labels shall be displayed inside the base of the data marker. Specifies that data labels shall be displayed inside the end of the data marker. Specifies that data labels shall be displayed to the left of the data marker. Specifies that data labels shall be displayed outside the end of the data marker. Specifies that data labels shall be displayed to the right of the data marker. Specifies that data labels shall be displayed above the data marker.} Base format options. Represents Rectangle base format. Represents Circle base format. Top format type. Represents Straight top format. Represents Sharp top format. Represents Trunc top format. Chart marker types. Represents the None option for the marker type. Represents the square style in the custom marker option for Chart lines. Represents the diamond style in the custom marker option for Chart lines. Represents the Triangle style in the custom marker option for Chart lines. Represents the X style in the custom marker option for Chart lines. Represents the Star style in the custom marker option for Chart lines. Represents the Dow Jones style in the custom marker option for Chart lines. Represents the Standard Deviation style in the custom marker option for Chart lines. Represents the Circle style in the custom marker option for Chart lines. Represents the Plus style in the custom marker option for Chart lines. Represents the Auto style in the custom marker option for Chart lines. Represents the Picture style in the custom marker option for Chart lines. Bubble size. Area buble size. Width buble size. Split type. Represents the Position split type. Represents the Value split type. Represents the Percent split type. Represents the Custom split type. Represents error bar include values. Represents both error bar include. Represents plus error bar include. Represents minus error bar include. Error-bar type. Represents the Percentage error-bar source type. Represents the FixedValue error-bar source type. Represents the StandardDeviation error-bar source type. Represents the Custom error-bar source type. Represents the StandardError error-bar source type. Represents trend line values. Represents Exponential trend line type. Represents Linear trend line type. Represents Logarithmic trend line type. Represents Moving average trend line type. Represents Polynomial trend line type. Represents Power trend line type. Axis line indentifier type. The axis line itself. Major grid line along the axis. Minor grid line along the axis. Walls or floor -- walls if parent axis is type 0 or 2; floor if parent axis is type 1. Legend spacing for charts. Represents the Close . Represents the Medium. Represents the Open. Represents excel chart uint to display. Represents None display Unit Represents Hundreds display Unit Represents Thousands display Unit Represents TenThousands display Unit Represents HundredThousands display Unit Represents Millions display Unit Represents TenMillions display Unit Represents HundredMillions display Unit Represents ThousandMillions display Unit Represents MillionMillions display Unit Represents Custom display Unit MS Chart Font Type No Font Tag Default Property tag Rich text tag Chart pile type. Represents the Normal pie type. Represents the Pie pie type. Represents the Bar pie type. Drop line style type. Represents the Drop line style. Represents the HiLow drop line style. Represents the Series drop line style. shape border join type Rounded edge Beveled edge Metter join Defined types of Sparkline chart types. Sparkline type is WinLoss. Sparkline type is Column. Sparkline type is Line. Page order type Represents the DownThenOver pages order. Represents the OverThenDown pages order. Data source type. Represents the Worksheet data source type. Represents the ExternalData data source type. Represents the Consolidation data source type. Represents the ScenarioPivotTable data source type. theme color type Background Color1 Text Color1 Background Color2 Text Color2 Accent Color1 Accent Color2 Accent Color3 Accent Color4 Accent Color5 Accent Color6 Hyperlink Color FollowedHyperlink Color It specifies an enumeration of side positions The title or legend is on the left side The title or legend is on the top The title or legend is on the left side The title or legend is on the bottom It represent side position alignment of a chart element The chart element is positioned at the top of the side The chart element is positioned at the bottom of the side The chart element is positioned at the center of the side It represents Quartile calculation used for Box and Whisker Chart series It includes the Median when splitting the dataset into Quartiles. It excludes the Median when splitting the dataset into Quartiles. It represents the Label position in Tree Map chart No Parent labels are shown The Parent label layout is a Banner above the category The Parent label is laid out within the category Indicates the Funnel Chart type Indicates the Box and Whisker chart type Used in Histogram and Pareto charts Used in Histogram and Pareto charts Indicates the Sun burst chart type Indicates the Tree Map chart type Indicates the Water fall chart type Sheet types. Charts. Dialogs. Excel 4.0 International Marcos sheet. Excel 4.0 Marcos sheet. Worksheets. Font underline types. Represents no underline. Represents single underline. Represents double underline. Represents SingleAccounting underline. Represents DoubleAccounting underline. Patterns style. No pattern. Represents the Solid pattern. Represents the Percent50 pattern. Represents the Percent70 pattern. Represents the Percent25 pattern. Represents the DarkHorizontal pattern. Represents the DarkVertical pattern. Represents the DarkDownwardDiagonal pattern. Represents the DarkUpwardDiagonal pattern. Represents the ForwardDiagonal pattern. Represents the Percent75 pattern. Represents the Horizontal pattern. Represents the Vertical pattern. Represents the LightDownwardDiagonal pattern. Represents the LightUpwardDiagonal pattern. Represents the Angle pattern. Represents the Percent60 pattern. Represents the Percent10 pattern. Represents the Percent05 pattern. Represents the Percent50Gray pattern. Represents the Percent75Gray pattern. Represents the Percent25Gray pattern. Represents the HorizontalStripe pattern. Represents the VerticalStripe pattern. Represents the ReverseDiagonalStripe pattern. Represents the DiagonalStripe pattern. Represents the DiagonalCrosshatch pattern. Represents the ThickDiagonalCrosshatch pattern. Represents the ThinHorizontalStripe pattern. Represents the ThinVerticalStripe pattern. Represents the ThinReverseDeagonalStripe pattern. Represents the ThinDiagonalStripe pattern. Represents the ThinHorizontalCrosshatch pattern. Represents the ThinDiagonalCrosshatch pattern. Represents the Percent125Gray pattern. Represents the Percent625Gray pattern. Represent gradient pattern. Paper size type. Represents paper size of 10 inches X 14 inches Represents paper size of 11 inches X 17 inches Represents A3 (297 mm x 420 mm) paper size. Represents A4 (210 mm x 297 mm) paper size. Represents A4 Small (210 mm x 297 mm) paper size. Represents A5 (148 mm x 210 mm) paper size. Represents B4 (250 mm x 353 mm) paper size. Represents B5 (176 mm x 250 mm) paper size. Represents C paper size. Represents D paper size. Represents Envelope# 10 paper size(4-1/8 X 9-1/2 inches). Represents Envelope# 11 paper size( (4-1/2 X 10-3/8 inches). Represents Envelope# 12 paper size(4-3/4 X 11 inches). Represents Envelope# 14 paper size(5 X 11-1/2 inches). Represents Envelope# 9 paper size(3-7/8 X 8-7/8 inches). Represents B4 Envelope paper size (250 mm x 353 mm). Represents B5 Envelope paper size (176 mm x 250 mm). Represents B6 Envelope paper size (176 mm x 125 mm). Represents C3 Envelope paper size (324 mm x 458 mm). Represents C4 Envelope paper size (229 mm x 324 mm). Represents C5 Envelope paper size (162 mm x 229 mm). Represents C6 Envelope paper size (114 mm x 162 mm). Represents C65 Envelope paper size (114 mm x 229 mm). Represents DL Envelope paper size (110 mm x 220 mm). Represents Italy Envelope paper size (110 mm x 230 mm). Represents Monarch Envelope paper size (3-7/8 X 7-1/2 inches). Represents Personal Envelope paper size (3-5/8 X 6-1/2 inches). Represents E paper size. Represents Executive paper size (7-1/2 X 10-1/2 inches). Represents German Fanfold paper size (8-1/2 X 13 inches). Represents German Standard Fanfold paper size (8-1/2 X 12 inches). Represents U.S. Standard Fanfold paper size (14-7/8 X 11 inches). Represents Folio paper size (8-1/2 X 13 inches). Represents Ledger paper size (17 X 11 inches). Represents Legal paper size (8-1/2 X 14 inches). Represents Letter paper size (8-1/2 X 11 inches). Represents Letter Small paper size. Represents Note paper size. Represents Quarto paper size(215 mm x 275 mm). Represents Statement paper size(5-1/2 X 8-1/2 inches). Represents Tabloid paper size(11 X 17 inches). Represents User paper size. Represents ISO B4 paper size(250 mm by 353 mm). Represents Japanese double postcard(200 mm by 148 mm). Represents Standard paper(9 in. by 11 in.). Represents Standard paper(10 in. by 11 in.). Represents Standard paper(15 in. by 11 in.). Represents Invite envelope (220 mm by 220 mm). Represents Letter extra paper (9.275 in. by 12 in.). Represents Legal extra paper (9.275 in. by 15 in.). Represents Tabloid extra paper (11.69 in. by 18 in.). Represents A4 extra paper (236 mm by 322 mm). Represents Letter transverse paper (8.275 in. by 11 in.). Represents A4 transverse paper (210 mm by 297 mm). Represents Letter extra transverse paper (9.275 in. by 12 in.). Represents SuperA/SuperA/A4 paper (227 mm by 356 mm). Represents SuperB/SuperB/A3 paper (305 mm by 487 mm). Represents Letter plus paper (8.5 in. by 12.69 in.). Represents A4 plus paper (210 mm by 330 mm). Represents A5 transverse paper (148 mm by 210 mm). Represents JIS B5 transverse paper (182 mm by 257 mm). Represents A3 extra paper (322 mm by 445 mm). Represents A5 extra paper (174 mm by 235 mm). Represents ISO B5 extra paper (201 mm by 276 mm). Represents A2 paper (420 mm by 594 mm). Represents A3 transverse paper (297 mm by 420 mm). Represents A3 extra transverse paper (322 mm by 445 mm). Represents A1 (841 mm x 594 mm) paper size. Represents A0 (1189 mm x 841 mm) paper size. Excel shapes. Represents the Unknown shape type. Represents the Chart shape type. Represents the Comment shape type. Represents the Group shape type. Represents the EmbeddedOLEObject shape type. Represents the FormControl shape type. Represents the Picture shape type. Represents the TextBox shape type. Represents the Oval shape type. Comment horizontally align. Represents the Left comment align. Represents the Center comment align. Represents the Right comment align. Represents the Justified comment align. Represents the Justified comment align. Represents the Destributed comment align. Comment vertically align Represents the Top comment align. Represents the Center comment align. Represents the Bottom comment align. Represents the Justified comment align. Represents the Destributed comment align. Represents gradient color type. Represents one color gradient style. Represents two color gradinent style. Represents preset gradient style. Represents excel gradient pattern. Represents 5% gradient pattern Represents 10% gradient pattern Represents 20% gradient pattern Represents 25% gradient pattern Represents 30% gradient pattern Represents 40% gradient pattern Represents 50% gradient pattern Represents 60% gradient pattern Represents 70% gradient pattern Represents 75% gradient pattern Represents 80% gradient pattern Represents 90% gradient pattern Represents Dark Downward Diagonal gradient pattern Represents Dark Horizontal gradient pattern Represents Dark Upward Diagonal gradient pattern Represents Dark Vertical gradient pattern Represents Dashed Downward Diagonal gradient pattern Represents Dashed Horizontal gradient pattern Represents Dashed Upward Diagonal gradient pattern Represents Dashed Vertical gradient pattern Represents Diagonal Brick gradient pattern Represents Divot gradient pattern Represents Dotted Diamond gradient pattern Represents Dotted Grid gradient pattern Represents Horizontal Brick gradient pattern Represents Large Checker Board gradient pattern Represents Large Confetti gradient pattern Represents Large Grid gradient pattern Represents Light Downward Diagonal gradient pattern Represents Light Horizontal gradient pattern Represents Light Upward Diagonal gradient pattern Represents Light Vertical gradient pattern Represents Mixed gradient pattern Represents Narrow Horizontal gradient pattern Represents Narrow Vertical gradient pattern Represents Outlined Diamond gradient pattern Represents Plaid gradient pattern Represents Shingle gradient pattern Represents Small Checker Board gradient pattern Represents Small Confetti gradient pattern Represents Small Grid gradient pattern Represents Solid Diamond gradient pattern Represents Sphere gradient pattern Represents Trellis gradient pattern Represents Wave gradient pattern Represents Weave gradient pattern Represents Wide Downward Diagonal gradient pattern Represents Wide Upward Diagonal gradient pattern Represents Zig Zag gradient pattern True if the font style is italic. Read / write Boolean. Returns or sets the primary excel color of the object. Returns or sets the primary color of the font. Set the theme color. theme color type Get the theme color. theme color type If the color is a theme color, true returned, is not then false will be returned. True if the font is bold. Returns or sets the font name. Read / write string. Returns or sets the size of the font. Read / write integer. True if the font is struck through with a horizontal line. Read / write Boolean True if the font is formatted as subscript. False by default. Read / write Boolean. True if the font is formatted as superscript. False by default. Read/write Boolean Indicates whether color is automatically selected. Read-only. Returns or sets the type of underline applied to the font. Generates system font object. Font object. Location of the page break. Returns a Range object that represents the range the specified hyperlink is attached to. This object used to store, convert colors. Returns color value (it can be index, rgb color, etc.) Gets or sets Tint. Returns type of the stored color. Returns the hash code for this instance. A 32-bit signed integer hash code. Sets RGB color value. Value to set. Parent workbook. Sets known color. Excel color to set. Determines whether the specified Object is equal to the current Object. The Object to compare with the current Object. true if the specified Object is equal to the current Object; otherwise, false. Color types. Known color. RGB color. Theme color. Represents the page setup description. The PageSetup object contains all page setup attributes (left margin, bottom margin, paper size, and so on) as properties. Returns font for character at specified position. Position Sets font for specified range of characters. Position of first character. Position of last character. Font to set. Clears formatting. Clears all. Gets Rtf Text. Read-Only. Indicates whether rich text string contains formatting Read-only. Returns data type validation for a range Represents a vertical page break. Returns or sets the cell (a Range object) that defines the page-break location. Returns a Range object that represents the used range on the specified worksheet. Read-only. Get cell range. Get cell range. Get cell range. Returns all merged ranges. Read-only. The following code illustrates how to get the merged ranges: //Create worksheet Workbook workbook = new Workbook(); Worksheet worksheet = workbook.Worksheets[0]; //Merge cells worksheet["C2:D2"].Merge(); worksheet["F3:G3"].Merge(); //Get merged ranges IXLSRange[] mergedRanges = worksheet.MergedCells; //Get merged range count . Output will be 2 Console.Write(mergedRanges.Length); //Save to file workbook.SaveToFile("MergedCells.xlsx"); Finds the all cells with specified string value. Value to search. Type of value to search. Way to search. All found cells, or Null if value was not found. Finds the cell with the input number. Double value to search for. Indicates if includes formula value. Found ranges. Finds the cell with the input string. String value to search for. Indicates if includes formula. Indicates if includes formula value. Found ranges. Finds the cell with the input date time. Datetime value to search for. Found ranges. Finds the cell with the input time span. Time span value to search for. Found ranges. Finds the cell with the input bool. Bool value to search for. Found ranges. Finds the cell with the input bool. Bool value to search for. Found range. Finds the cell with the input double. Double value to search for. Indicates if includes formula value. Found range. Finds the cell with the input string. String value to search for. Indicates whether includes formula. Indicates whether includes formula value. Found range. Finds the cell with the input date time. DateTime value to search for. Found range. Finds the cell with the input time span. Time span value to search for. Found range. Copy data from specified worksheet. worksheet object Copys data from a source range to a destination range. Source range. Destination range. Copys data from a source range to a destination range. Source range. Destination range. Indicates whether copys styles. Copys data from a source range to a destination range. Source range. Destination range Indicates whether copy styles. Indicates whether update reference ranges. Indicates whether check range sizes. Copy data from source range to destination worksheet. Source range. Destination worksheet Row index of destination worksheet. Column index of destination worksheet. Copy data from source range to destination worksheet. Source range Destination worksheet. Row index of destination worksheet. Column index of destination worksheet. Indicates whehter copy styles. Copy data from source range to destination worksheet. Source range Destination worksheet. Row index of destination worksheet. Column index of destination worksheet. Indicates whehter copy styles. Indicates whether update reference range. Copys data from a source range to a destination range. Source range. Destination range Indicates whether copy styles. Indicates whether update reference ranges. Indicates whether check range sizes. Indicates whether copy shape. Copys data from a source range to a destination range. Source range. Destination range Copy options. Copys data from a source row to a destination row. Source row. Destination sheet Destination row index Copy options. Copys data from a source column to a destination column. Source column. Destination sheet Destination column index Copy options. Move data from source range to destination range. Source range. Destination range. Exports worksheet data into a DataTable. Range to export. Indicates if export column name. exported datatable Exports worksheet data into a DataTable. Range to export. Indicates if export column name. Indicates wheter compute formula value. exported datatable Exports worksheet data into a DataTable Row of first cell. Column of first cell. Maximun rows to export. Maximun columns to export. Indicates if export column name. Exported datatable. Intersects two ranges. First range. Second range. Intersection of two ranges Combines a range of cells into a single cell. First range. Second range. Merged ranges Sets default style for column. The following code illustrates how to set the default style for a column: //Create worksheet Workbook workbook = new Workbook(); Worksheet worksheet = workbook.Worksheets[0]; //Create style CellStyle style = workbook.Styles.Add("CustomStyle"); //Set Color style.Color = Color.Red; //Set default style worksheet.SetDefaultColumnStyle(2, style); //Save to file workbook.SaveToFile("SetDefaultColumnStyle.xlsx"); Column index. Default style. Sets default style for column. The following code illustrates how to set the default style for columns: //Create worksheet Workbook workbook = new Workbook(); Worksheet worksheet = workbook.Worksheets[0]; //Create style CellStyle style = workbook.Styles.Add("CustomStyle"); //Set Color style.Color = Color.Red; //Set default style worksheet.SetDefaultColumnStyle(2, 5, style); //Save to file workbook.SaveToFile("SetDefaultColumnStyle.xlsx"); First column index. Last column index. Default style. Sets default style for row. The following code illustrates how to set the default style for a row: //Create worksheet Workbook workbook = new Workbook(); Worksheet worksheet = workbook.Worksheets[0]; //Create style CellStyle style = workbook.Styles.Add("CustomStyle"); //Set Color style.Color = Color.Red; //Set default style worksheet.SetDefaultRowStyle(2, style); //Save to file workbook.SaveToFile("SetDefaultRowStyle.xlsx"); Row index. Default style. Sets default style for row. The following code illustrates how to set the default style for rows: //Create worksheet Workbook workbook = new Workbook(); Worksheet worksheet = workbook.Worksheets[0]; //Create style CellStyle style = workbook.Styles.Add("CustomStyle"); //Set Color style.Color = Color.Red; //Set default style worksheet.SetDefaultRowStyle(2, 5, style); //Save to file workbook.SaveToFile("SetDefaultRowStyle.xlsx"); First row index. Last row index. Default style. Returns default column style. The following code illustrates how to get default column style: //Create worksheet Workbook workbook = new Workbook(); Worksheet worksheet = workbook.Worksheets[0]; //Create style CellStyle style = workbook.Styles.Add("CustomStyle"); //Set Color style.Color = Color.Red; //Set default style worksheet.SetDefaultColumnStyle(2,style); //Get default style CellStyle defaultStyle = worksheet.GetDefaultColumnStyle(2); //Set color defaultStyle.Color = Color.Blue; worksheet.SetDefaultColumnStyle(3, defaultStyle); //Save to file workbook.SaveToFile("GetDefaultColumnStyle.xlsx"); Column index. Default column style or null if default style is not exists. Returns default row style. The following code illustrates how to get default row style: //Create worksheet Workbook workbook = new Workbook(); Worksheet worksheet = workbook.Worksheets[0]; //Create style CellStyle style = workbook.Styles.Add("CustomStyle"); //Set Color style.Color = Color.Red; //Set default style worksheet.SetDefaultRowStyle(2,style); //Get default style CellStyle defaultStyle = worksheet.GetDefaultRowStyle(2); //Set color defaultStyle.Color = Color.Blue; worksheet.SetDefaultRowStyle(3, defaultStyle); //Save to file workbook.SaveToFile("GetDefaultColumnStyle.xlsx"); Row index. Default row style or null if default style is not set. Removes range from list. Specified range. Removes range from list. Row index. Column index. Remove picture from this worksheet. Picture ID Remove picture from this worksheet. Picture name Remove picture from this worksheet. A pictureshape Apply style to whole sheet. style to apply Freezes panes at the specified cell in the worksheet. Row index. Column index. Get Freezes panes cell's index in the worksheet. Row index. 0 means no freeze row Column index. 0 means no freeze column Sets active cell Cell to activate. Returns all used cells in the worksheet. Read-only. Rrepresents all used columns on the specified worksheet. Read-only Range object. Returns a PageSetup object that contains all the page setup settings for the specified object. Read-only. Returns charts collection. Read-only. Returns comments collection for this worksheet. Read-only. The following code illustrates how to access the comments collection in the worksheet: //Create worksheet Workbook workbook = new Workbook(); Worksheet worksheet = workbook.Worksheets[0]; //Adding comments to a cell. ICommentShape comment1 = worksheet.Range["A1"].AddComment(); ICommentShape comment2 = worksheet.Range["B1"].AddComment(); //Set comment text comment1.Text = "Comment1"; comment2.Text = "Comment2"; //Check count Console.Write(worksheet.Comments.Count); //Save to file workbook.SaveToFile("Comments.xlsx"); Returns an HPageBreaks collection that represents the horizontal page breaks on the sheet. Collection of all worksheet's hyperlinks. Pictures collection. Read-only. Print area of worksheet. Returns a VPageBreaks collection that represents the vertical page breaks on the sheet. Read-only. Returns a Range object that represents the used range on the specified worksheet. Read-only. The following code illustrates how to get used range on the specified worksheet: //Create worksheet Workbook workbook = new Workbook(); Worksheet worksheet = workbook.Worksheets[0]; //Set text worksheet["B2"].Text = "Text"; //Set Color worksheet["J3"].Style.Color = Color.Red; //Get used range . Output will be B2:J3 Console.Write(worksheet.Range.RangeAddressLocal); //Save to file workbook.SaveToFile("UsedRange.xlsx"); Represents all the rows on the specified worksheet. Read-only Range object. Specifies the shape type that needs to be converted to a picture, and defaults to all types Identifies whether Group shape converted to a picture.(Child of this group shape will not convert) Identifies whether Picture shape converted to a picture Identifies whether TextBox shape converted to a picture Identifies whether Button shape converted to a picture Identifies whether CheckBox shape converted to a picture Identifies whether RadioButton shape converted to a picture Identifies whether GroupBox shape converted to a picture Identifies whether Label shape converted to a picture Identifies whether ListBox shape converted to a picture Identifies whether ComboBox shape converted to a picture Identifies whether Arc shape converted to a picture Identifies whether Line shape converted to a picture Identifies whether eOval shape converted to a picture Identifies whether Rectangle shape converted to a picture Identifies whether PrstGomShape shape converted to a picture Identifies whether Dml shape converted to a picture Identifies whether All shape converted to a picture helper for call AI. Create a new instance of workbook. Returns a Sheets collection that represents all the worksheets in the specified workbook. Read-only Sheets object. Gets Names collection that represents all the names in the specified workbook. The following code snippet illustrates how to get names: //Create workbook Workbook workbook = new Workbook(); workbook.LoadFromFile("Sample.xlsx"); //Get names INameRanges names = workbook.NameRanges; Returns an object that represents the active sheet (the sheet on top) in the active workbook or in the specified window or workbook. Returns Nothing if no sheet is active. Read-only. Gets or sets index of the active worksheet. Returns collection of add-in functions. Get or set calculation mode. Gets Data sorter to sort the data.. Name which used by macros to access to workbook items. Returns colors in the palette for the workbook. The palette has 56 entries, each represented by an RGB value. Read/write Object. The following code illustrates how to access the default colors of excel color palette: //Create worksheet Workbook workbook = new Workbook(); Worksheet worksheet = workbook.Worksheets[0]; //Get colors System.Drawing.Color[] colors = workbook.Colors; //Get color System.Drawing.Color color = colors[2]; //Set color worksheet["B2"].Style.Color = color; //Save to file workbook.SaveToFile("CellFormats.xlsx"); True if the workbook uses the 1904 date system. Read/write Boolean. Returns or sets the name of the default font. The following code illustrates how to set the standard font for the workbook: //Create worksheet Workbook workbook = new Workbook(); Worksheet worksheet = workbook.Worksheets[0]; //Set text worksheet["B2"].Text = "Text"; //Set standard font workbook.DefaultFontName = "Arial"; //Set standard font size workbook.DefaultFontSize = 18; //Save to file workbook.SaveToFile("CellFormats.xlsx"); Returns or sets the default font size. The following code illustrates how to set the standard font size for the workbook: //Create worksheet Workbook workbook = new Workbook(); Worksheet worksheet = workbook.Worksheets[0]; //Set text worksheet["B2"].Text = "Text"; //Set standard font workbook.DefaultFontName = "Arial"; //Set standard font size workbook.DefaultFontSize = 18; //Save to file workbook.SaveToFile("CellFormats.xlsx"); Returns or sets the custom path of font files. Get result that parse the custom path of font files Sets the custom directory of font files. Clear used fonts in cache. Allows users to disable load of macros from document. Gets file name. Indicates whether contains VBA macros. Indicates whether cells are protected. Indicates whether worksheet is displayed right to left. Indicates whether workbook changes have been saved. Indicates window is protected. Returns or sets password to encrypt document. Returns options of the workbook write protection. Returns or sets whether show vertical scroll bar. This sample shows how to hide vertical scroll bar: //Create workbook Workbook workbook = new Workbook(); //Hide vertical scroll bar workbook.IsVScrollBarVisible = false; //Save to file workbook.SaveToFile("IsVScrollBarVisible.xlsx"); Returns or sets whether show horizontal scroll bar. This sample shows how to hide horizontal scroll bar: //Create workbook Workbook workbook = new Workbook(); //Hide horizontal scroll bar workbook.IsHScrollBarVisible = false; //Save to file workbook.SaveToFile("IsHScrollBarVisible.xlsx"); Returns or sets the width of worksheet tab bar. 1/1000 of window width. Indicates whether to optimize Import data. This option will take effect only on Import methods that are available with the worksheet WARNING: Setting this property to True can decrease memory significantly, but will increase the performance of data import . Returns pivot caches collection. Read-only. The following code snippet illustrates how to get pivot caches: //Create worksheet Workbook workbook = new Workbook(); workbook.LoadFromFile("Sample.xlsx"); Worksheet worksheet = workbook.Worksheets[0]; //Gets pivot caches collection IPivotCaches pivotCaches = workbook.PivotCaches; Gets the PrintDocument Indicates whether the workbook has been opened as Read-only. Gets or sets tab index of selected. Get or sets a value whether the Workbook tabs are displayed. Returns a Styles collection that represents all the styles in the specified workbook. Read-only. The following code snippet illustrates how to get the Styles: //Create worksheet Workbook workbook = new Workbook(); Worksheet worksheet = workbook.Worksheets[0]; //Set styles IStyles styles = workbook.Styles; User Compound storage mode Hide window Returns a Sheets collection that represents all the chart sheets in the specified workbook. Read-only. Returns collection that represents all the custom document properties for the specified workbook. Read-only. The following code snippet illustrates how to get the custom document properties: //Create workbook Workbook workbook = new Workbook(); workbook.LoadFromFile("Sample.xlsx"); //Get the document properties ICustomDocumentProperties documentProperties = workbook.CustomDocumentProperties; Returns a BuiltInDocumentProperties collection that represents all the built-in document properties for the specified workbook. Read-only. The following code snippet illustrates how to get the built in document properties: //Create workbook Workbook workbook = new Workbook(); workbook.LoadFromFile("Sample.xlsx"); //Get the built in document properties IBuiltInDocumentProperties builtInDocumentProperties = workbook.DocumentProperties; Loads a file and imports its data. File name. Loads a file and imports its data. File name Preserve mode Loads a file and imports its data. File name Excel version Loads text files stream with user defined separator. File name Delimiter of text file. Loads text files with user defined separator. File name. Delimiter of text file. Start row. Start column. Loads text files with user defined separator. File name. Delimiter of text file. Start row. Start column. workbook version Loads text files with user defined separator. File name. Delimiter of text file. Start row. Start column. workbook version Text Encoding Load workbook from the stream. Stream contains data. Load workbook from the stream. Stream contains data. Indicates whether loads styles. Load workbook from the stream. Stream contains data Excel version Loads text files stream with user defined separator.max row 60000. File stream. Delimiter of text file. Start row. Start column. Loads text files stream with user defined separator. Version2007 support 60000+ row File stream. Delimiter of text file. Start row. Start column. Excel version. Loads a xml file and imports its data. File name. Loads a xml file and imports its data. Stream contains data. Loads a html file and imports its data. File name. Loads a html file and imports its data. Stream contains data. Loads a Mhtml file and imports its data. File name. Loads a Mhtml file and imports its data. Stream contains data. Load workbook from the excel template. File name Load workbook from the excel template. File name Indicates whehter load styles. Saves the workbook to html File name. Saves the workbook to html File name. Whether skip hidden sheet. Saves changes to the workbook in a different file File name. Saves changes to the workbook in a different file File name File format Saves changes to the workbook in a different file. The following code illustrates how to save the active worksheet in a different file with separator: //Create workbook Workbook workbook = new Workbook(); workbook.LoadFromFile("Sample.xlsx"); //Save to file workbook.SaveToFile("Result.csv" , ",", true); File name. Current separator. Add double Quotation marks for string value. Saves changes to the workbook in a different file. The following code illustrates how to save the active worksheet in a different file with separator: //Create workbook Workbook workbook = new Workbook(); workbook.LoadFromFile("Sample.xlsx"); //Save to file workbook.SaveToFile("Result.csv" , ","); File name. Current separator. Saves changes to the workbook in a different file File name File format Retain hidden data when save to csv. Saves changes to the workbook in a different file File name Text save options. Saves changes to the workbook in a different file File name Excel version Computes the string formula Caculate all formula for the workbook Changes the palette for the spreadsheet in the specified index. The following code snippet illustrates how to set palette color: //Create worksheet Workbook workbook = new Workbook(); Worksheet worksheet = workbook.Worksheets[0]; //Set palette color workbook.ChangePaletteColor(System.Drawing.Color.Red , 10); //Set color worksheet["B2"].Style.Color = workbook.Colors[10]; //Save to file workbook.SaveToFile("CellFormats.xlsx"); Color structure Palette index,Value should be from 0 to 55 onverts column width in characters into column width in pixels. Column width in characters. Column width in pixels. Indicates whether the workbook contains specified font. Copies whole workbook to the clipboard. Copies the selected worksheet to clipboard. Create a new worksheet. Create a new worksheet. Sheet name. Create workbook with specified number of worksheets. Create workbook with specified names of worksheets. Creates a font object and add it to the workbook. The following code illustrates how to create IFont object: //Create worksheet Workbook workbook = new Workbook(); Worksheet worksheet = workbook.Worksheets[0]; //Set text IRichTextString richText = worksheet["B2"].RichText; //Create font IFont font = workbook.CreateFont(); //Set color font.Color = Color.Red; //Set text richText.Text = "Sample"; //Set font richText.SetFont(0, 5, font); //Save to file workbook.SaveToFile("CellFormats.xlsx"); Finds the cell with the input bool. This sample shows how to find all cells with specified bool value: //Create workbook Workbook workbook = new Workbook(); workbook.LoadFromFile("Sample.xlsx"); //Find cells with specified bool value CellRange[] result = workbook.FindAllBool(true); Bool value to search for Found ranges Finds the cell with the input double. This sample shows how to find all cells with specified doulbe value: //Create workbook Workbook workbook = new Workbook(); workbook.LoadFromFile("Sample.xlsx"); //Find cells with specified double value CellRange[] result = workbook.FindAllNumber(100.32 , false); Double value to search for. Indicates whether includes formula value to search for. Found ranges. Finds the cell with the input string. This sample shows how to find all cells with specified string value: //Create workbook Workbook workbook = new Workbook(); workbook.LoadFromFile("Sample.xlsx"); //Find cells with specified string value string value = "value"; CellRange[] result = workbook.FindAllString(value , false , false); String value to search for Indicates whether includes formula to search for. Indicates whether includes formula value to search for. Found ranges. Finds the cell with the input datetime. This sample shows how to find all cells with specified DateTime value: //Create workbook Workbook workbook = new Workbook(); workbook.LoadFromFile("Sample.xlsx"); //Find cells with specified DateTime value CellRange[] result = workbook.FindAllDateTime(DateTime.Now); Datetime value to search for. Found ranges. Finds the cell with the input time span. This sample shows how to find all cells with specified TimeSpan value: //Create workbook Workbook workbook = new Workbook(); workbook.LoadFromFile("Sample.xlsx"); //Find cells with specified TimeSpan value TimeSpan value = new TimeSpan(2, 30, 30); CellRange[] result = workbook.FindAllTimeSpan(value); Found ranges. Finds the cell with the input bool. This sample shows how to find the first cell with specified bool value: //Create workbook Workbook workbook = new Workbook(); workbook.LoadFromFile("Sample.xlsx"); //Find cell with specified bool value IXLSRange result = workbook.FindBool(true); Bool value to search for. Found range. Finds the cell with the input number. This sample shows how to find the first cell with specified double value: //Create workbook Workbook workbook = new Workbook(); workbook.LoadFromFile("Sample.xlsx"); //Find cell with specified double value double value = 9.00; IXLSRange result = workbook.FindNumber(value, false); Double value to search for. Indicates whether includes formula value to search for. Found range. Finds the cell with the input string. This sample shows how to find the first cell with specified string value: //Create workbook Workbook workbook = new Workbook(); workbook.LoadFromFile("Sample.xlsx"); //Find cell with specified string value string value = "value"; IXLSRange result = workbook.FindString(value, false, false); String value to search for. Indicates whether includes formula to search for. Indicates whether includes formula value to search for. Found range. Finds the cell with the input datetime. This sample shows how to find the first cell with specified DataTime value: //Create workbook Workbook workbook = new Workbook(); workbook.LoadFromFile("Sample.xlsx"); //Find cell with specified DataTime value DateTime dateTime = DateTime.Now; IXLSRange result = workbook.FindDateTime(dateTime); Datetime value to search for. Found range. Finds the cell with the input time span. This sample shows how to find the first cell with specified TimeSpan value: //Create workbook Workbook workbook = new Workbook(); workbook.LoadFromFile("Sample.xlsx"); //Find cell with specified TimeSpan value TimeSpan timeSpan = new TimeSpan(2, 30, 30); IXLSRange result = workbook.FindTimeSpan(timeSpan); Time span value to search for. Found range. Find best matching Color in workbook palette. The following code illustrates how to get the indexed color from ExcelColors for the given color from Color structure: //Create worksheet Workbook workbook = new Workbook(); Worksheet worksheet = workbook.Worksheets[0]; //Get color ExcelColors color = workbook.GetMatchingColor(System.Drawing.Color.Red); //Set color worksheet["B2"].Style.KnownColor = color; //Save to file workbook.SaveToFile("CellFormats.xlsx"); Color to search for. Workbook palette color. Find best matching Color in workbook palette. The following code illustrates how to get the indexed color from ExcelColors for the given color from Color structure: //Create worksheet Workbook workbook = new Workbook(); Worksheet worksheet = workbook.Worksheets[0]; //Get color ExcelColors color = workbook.GetMatchingColor(255, 0, 0); //Set color worksheet["B2"].Style.KnownColor = color; //Save to file workbook.SaveToFile("CellFormats.xlsx"); Red color. Green color. Blue color. Workbook palette color. Gets excel color from workbook palette. The following code illustrates how to get the RGB color value for the specified color from ExcelColors enumeration: //Create worksheet Workbook workbook = new Workbook(); Worksheet worksheet = workbook.Worksheets[0]; //Get color System.Drawing.Color color = workbook.GetPaletteColor(ExcelColors.Red); //Set color worksheet["B2"].Style.Color = workbook.Colors[10]; //Save to file workbook.SaveToFile("CellFormats.xlsx"); Index from palette array. RGB Color. Initilize Calc engine check file is password protect Copies workbook and all its worksheets from the clipboard. Converts column width in pixels into column width in characters. Column width in pixels. Column width in characters. protect file also protect workbook window and structure. password to open file. protect file,also Indicates whether protect workbook window and structure or not password to open file. Indicates if protect workbook window. Indicates if protect workbook content. Sets protection for workbook. Indicates if protect workbook window. Indicates if protect workbook content. password Replaces cell's value from data column values. The following code snippet illustrates how to replace the string value with data column: //Create workbook Workbook workbook = new Workbook(); workbook.LoadFromFile("Sample.xlsx"); //Replace the oldValue by data column string oldValue = "Find"; System.Data.DataTable table = new System.Data.DataTable(); table.Columns.Add("Dosage", typeof(int)); table.Rows.Add(1); System.Data.DataColumn dataColumn = table.Columns[0]; workbook.Replace(oldValue, dataColumn, true); //Save to file workbook.SaveToFile("Replace.xlsx"); Value to replace. New data. Indicates whether includes column name. Replaces cell's value from data table values. The following code snippet illustrates how to replace the string value with data table: //Create workbook Workbook workbook = new Workbook(); workbook.LoadFromFile("Sample.xlsx"); //Replace the oldValue by data table string oldValue = "Find"; System.Data.DataTable table = new System.Data.DataTable(); table.Columns.Add("Dosage", typeof(int)); table.Rows.Add(1); workbook.Replace(oldValue, table, true); //Save to file workbook.SaveToFile("Replace.xlsx"); Value to replace. New data. Indicates whether includes column name. Replaces cell's value by specified value. The following code illustrates how to replace the string value with datetime: //Create workbook Workbook workbook = new Workbook(); workbook.LoadFromFile("Sample.xlsx"); //Replace the oldValue by dateTime string oldValue = "Find"; DateTime dateTime = DateTime.Now; workbook.Replace(oldValue, dateTime); //Save to file workbook.SaveToFile("Replace.xlsx"); Value to replace. New value Replaces cell's value by specified value. The following code snippet illustrates how to replace the string with double: //Create workbook Workbook workbook = new Workbook(); workbook.LoadFromFile("Sample.xlsx"); //Replace the oldValue by double string oldValue = "Ten"; workbook.Replace(oldValue, 10.0); //Save to file workbook.SaveToFile("Replace.xlsx"); Value to replace. New value. Replaces cell's value from array. The following code snippet illustrates how to replace the string with array of double values: //Create workbook Workbook workbook = new Workbook(); workbook.LoadFromFile("Sample.xlsx"); //Replace the oldValue by array of double values string oldValue = "Find"; double[] newValues = { 1.0, 2.0 }; workbook.Replace(oldValue, newValues, true); //Save to file workbook.SaveToFile("Replace.xlsx"); Value to replace. New values. Indicates whether new values should be inserted vertically. Replaces cell's value from array. The following code snippet illustrates how to replace the string with array of int values: //Create workbook Workbook workbook = new Workbook(); workbook.LoadFromFile("Sample.xlsx"); //Replace the oldValue by array of int values string oldValue = "Find"; int[] newValues = { 1, 2 }; workbook.Replace(oldValue, newValues, true); //Save to file workbook.SaveToFile("Replace.xlsx"); Value to replace. New values. Indicates whether new values should be inserted vertically. Replaces cell's value by specified value. The following code snippet illustrates how to replace the string with another string: //Create workbook Workbook workbook = new Workbook(); workbook.LoadFromFile("Sample.xlsx"); //Replace the oldValue by newValue string oldValue = "Find"; string newValue = "NewValue"; workbook.Replace(oldValue, newValue); //Save to file workbook.SaveToFile("Replace.xlsx"); Value to replace. New value Replaces cell's value from array. The following code snippet illustrates how to replace the string with array of string values: //Create workbook Workbook workbook = new Workbook(); workbook.LoadFromFile("Sample.xlsx"); //Replace the oldValue by array of string values string oldValue = "Find"; string[] newValues = { "X values", "Y values" }; workbook.Replace(oldValue, newValues , true); //Save to file workbook.SaveToFile("Replace.xlsx"); Value to replace. New values. Indicates whether new values should be inserted vertically. Resets the color palette to the default colors. The following code snippets illustrates how to reset the palette: //Create worksheet Workbook workbook = new Workbook(); Worksheet worksheet = workbook.Worksheets[0]; //Get colors System.Drawing.Color[] colors = workbook.Colors; //Check color Console.WriteLine(colors[2].Name); //Set color colors[2] = System.Drawing.Color.Yellow; //Reset palette workbook.ResetPalette(); //Check color Console.WriteLine(workbook.Colors[2].Name); //Save to file workbook.SaveToFile("CellFormats.xlsx"); Saves changes to the specified workbook Save workbook to image. sheet Index Dpi X Dpi Y Save workbook to an XML data file. XML file name. Save workbook as XML format to stream. Stream object. Save chart to vector images. worksheet instance Save chart to vector image. work sheet chart index Save chart to vector image. work sheet chart index output stream Save chart to image. chart sheet Save chart to images. worksheet instance Save chart to image. work sheet chart index Save workbook as template to file. File name. Save workbook as template to response. File name. Http response. Save workbook to the http response. File Name Http response Save type : attachment or inline mode Save workbook to the http response. File name Http response. True - inline mode, False - Attachment mode. Save workbook to the http response. File Name Http response Http context type Save workbook to the http response. File Name Http response Http context type Save workbook the stream Stream object Save workbook to stream. Save workbook the stream. The following code illustrates how to saves the active worksheet as stream with separator: //Create workbook Workbook workbook = new Workbook(); workbook.LoadFromFile("Sample.xlsx"); //Save to stream Stream stream = new MemoryStream(); workbook.SaveToFile(stream , ","); Stream object. Separator. set the size of the visible range of cells when this workbook is displyed as an embedded obect in another document; the visible range's first row index the visible range's first column index the visible range's last row index the visible range's last column index Sets write protection password. Password to set unprotect file also upprotect workbook window and structure unprotect file also upprotect workbook window and structure password for protect workbook window and structure unprotect workbook window and structure password get the size of the visible range of cells when this workbook is displyed as an embedded obect in another document; if there does not set the size ,return null Indicates whether the workbook has any tracked changes Reject all tracked changes in the workbook. Accept all tracked changes in the workbook. Add a DigitalSignature. Certificate object that was used to sign Signature Comments Sign Time Collection of DigitalSignature Get collection of DigitalSignature in this file. Collection of DigitalSignature Remove all DigitalSignature in this file. Indicates whether this spreadsheet is digitally signed. Gets theme color. The theme color type. The theme color. Sets the theme color The theme color type. the theme color Copy the theme from source workbook source workbook. Copy the theme color from source workbook source workbook. Represents single condition value for iconset, databar, colorscale conditions. specifies how the threshold values for a data bar, color scale, or icon set conditional format are determined Returns or sets the shortest bar or longest bar threshold value for a data bar conditional format. Gets the type of background. Read-only. Gets/sets the color of background. Gets/sets the image data of image background. Gets/sets the link file path of image. Gets/sets the image type of image background. Gets/sets the position type of image background. Gets or sets the radio of soft edge. 20.1.2.2.25 nvCxnSpPr (Non-Visual Properties for a Connection Shape) 20.1.2.2.26 nvGraphicFramePr (Non-Visual Properties for a Graphic Frame) 20.1.2.2.27 nvGrpSpPr (Non-Visual Properties for a Group Shape) 20.1.2.2.28 nvPicPr (Non-Visual Properties for a Picture) 20.1.2.2.29 nvSpPr (Non-Visual Properties for a Shape) Reads 'cNvPr' Non-Visual Drawing Properties. Calculates position offset of the textbox content. Applies simplified blur to the image. Specifies the Pdf document's Conformance-level. Specifies Default / No Conformance. This PDF/A ISO standard [ISO 19005-1:2005] is based on Adobe PDF version 1.4 and This Level B conformance indicates minimal compliance to ensure that the rendered visual appearance of a conforming file is preservable over the long term. This PDF/X-1a:2001 ISO standard [ISO 15930-1] is based on Adobe PDF version 1.3 which uses only CMYK + Spot Color and this compliance to ensure that the contents will be reliably reproduced in the repress environment. PDF/A-1a ensures the preservation of a document's logical structure and con-tent text stream in natural reading order. PDF/A-2a standard,Only check the standard from the pdfaid:part and pdfaid:conformance node,And only check. PDF/A-2b standard,Only check the standard from the pdfaid:part and pdfaid:conformance node,And only check. PDF/A-3a standard,Only check the standard from the pdfaid:part and pdfaid:conformance node,And only check PDF/A-3b standard,Only check the standard from the pdfaid:part and pdfaid:conformance node,And only check Zip archiving states linwei, sunqingzhi Not archiving Waiting for an entry Processing an entry OOX file type linyaohu Specifies length of the encryption key for encryption. The key is 40 bit long. The key is 128 bit long. The key is 256 bit long. Specifies the available permissions set for the signature. Not all permissions Default value is 2876. A common document contains all privileges Print the document. Edit content. Copy content. Add or modify text annotations, fill in interactive form fields. Fill form fields. (Only for 128 bits key). Copy accessibility content. Assemble document permission. (Only for 128 bits key). Full quality print. Represents the security settings of the PDF document. Gets the owner password. Gets the user password. To Encrypt the PDF document with open password. Note:If set empty string value to open password, it indicates that the PDF document can be operated without providing corresponding password. Note: the document owner password should not be exist. The open password To Encrypt the PDF document with permission password and permissions. Note:The Permission password can't be empty string. The permission password A set of flags specifying which operations are permitted when the document is opened with user access To Encrypt the PDF document and set the encryption key size and permissions. Note:If set empty string value to open password or permission password, it indicates that the PDF document can be operated without providing corresponding password. The open password The permission password A set of flags specifying which operations are permitted when the document is opened with user access The bit length of the encryption key Gets the document's permission flags Gets the size of the key. Initializes a new instance of the class. Get MacOS font folders. This is a abstract class base processor, it provides common functions. linwei pretreatment of picture input file stream first node picture location xml namespace manager result stream This is the interface of pre and post processors linwei This interface defines the exposed interface of Translator linwei Thrown whenever an error occurs during the build. linwei Thrown whenever an error occurs during the build. linwei Zip archiving states linwei, sunqingzhi Not archiving Waiting for an entry Processing an entry An XmlWriter implementation for serializing the xml stream to a zip archive. All the necessary information for creating the archive and its entries is picked up from the incoming xml stream and must conform to the following specification : TODO : XML schema example : <pzip:archive pzip:target="path"> <pzip:entry pzip:target="relativePath"> <-- xml fragment --< </pzip:entry> <-- other zip entries --< </pzip:archive> The zip archive A delegate XmlWriter that actually feeds the zip output stream. The delegate settings 源文件 Source attribute of the currently processed binary file 所有需要处理的二进制文件 Constructor Delegates WriteStartElement calls when the element's prefix does not match a zip command. Delegates WriteEndElement calls when the element's prefix does not match a zip command. Otherwise, close the archive or flush the delegate writer. copy binary data (currently, only picture) in to zip archive Simple representation of elements or attributes nodes An XmlUrlResolver for embedded resources. sunqingzhi, linwei An XmlUrlResolver for zip packaged files sunqingzhi, linwei This class is used to hold contants. linwei linyaohu The event arguments passed between TranslatorLib and Add-in linwei This is a abstract class base Translator, it provides common functions. linwei linyaohu main transform which needs the orginal File transform direction xsl location original File File after pretreatment output file zip the big xml file input xml file zip file pretreatment of picture input file stream first node picture location xml namespace manager result stream pretreatment of custom xml data,OOXM to UOF input file stream first node name space manager result stream get the embeded chart data chart type node (eg:c:barChart) name space chart data get the series name series node name space series name get the category name series node name space category name get the series' name chart xml file series' name get the categories name chart xml file categories name Check the chart cotains how many chart Types (Combo type) chart file name space manager chart type nodes get the title's text a:p name sapce title Zip archiving states linwei, sunqingzhi An XmlWriter implementation for serializing the xml stream to a zip archive. All the necessary information for creating the archive and its entries is picked up from the incoming xml stream and must conform to the following specification : TODO : XML schema example : <pzip:archive pzip:target="path"> <pzip:entry pzip:target="relativePath"> <-- xml fragment --< </pzip:entry> <-- other zip entries --< </pzip:archive> The zip archive A delegate XmlWriter that actually feeds the zip output stream. The delegate settings 源文件 Source attribute of the currently processed binary file 所有需要处理的二进制文件 Constructor Delegates WriteStartElement calls when the element's prefix does not match a zip command. Delegates WriteEndElement calls when the element's prefix does not match a zip command. Otherwise, close the archive or flush the delegate writer. copy binary data (currently, only picture) in to zip archive Simple representation of elements or attributes nodes ZipFactory provides instances of IZipReader and IZipWriter. Provides an instance of IZipWriter. The path of the ZIP file to create. Provides an instance of IZipReader. The path of the ZIP file to read. ZipReader defines an abstract class to read entries from a ZIP file. Get an entry from a ZIP file. The relative path of the entry in the ZIP file. A stream containing the uncompressed data. Close the ZIP file. ZipWriter defines an abstract class to write entries into a ZIP file. To add a file, first call AddEntry with the relative path, then write the content of the file into the stream. Adds an entry to the ZIP file (only writes the header, to write the content use Stream methods). The relative path of the entry in the ZIP file. Resolves a path by interpreting "." and "..". The path to resolve. The resolved path. A strongly-typed resource class, for looking up localized strings, etc. Returns the cached ResourceManager instance used by this class. Overrides the current thread's CurrentUICulture property for all resource lookups using this strongly typed resource class. Looks up a localized string similar to 0 #825600;8520f #ffa800;18350f #825600;28180f #ffa800;38011f #825600;47186f #ffa800;57016f #825600;1 #ffa800. Looks up a localized string similar to 0 #ccf;11796f #9cf;23593f #96f;39977f #c9f;53740f #9cf;1 #ccf. Looks up a localized string similar to 0 white;10486f #1f1f1f;11796f white;27525f #636363;34734f #cfcfcf;43254f #cfcfcf;49807f #1f1f1f;51773f white;1 #7f7f7f. Looks up a localized string similar to 0 #cbcbcb;8520f #5f5f5f;13763f #5f5f5f;41288f white;43909f #b2b2b2;45220f #292929;53740f #777;1 #eaeaea. Looks up a localized string similar to 0 #5e9eff;26214f #85c2ff;45875f #c4d6eb;1 #ffebfa. Looks up a localized string similar to 0 #fc9fcb;8520f #f8b049;13763f #f8b049;41288f #fee7f2;43909f #f952a0;45220f #c50849;53740f #b43e85;1 #f8b049. Looks up a localized string similar to 0 #000082;19661f #66008f;42598f #ba0066;58982f red;1 #ff8200. Looks up a localized string similar to 0 #fff200;29491f #ff7a00;45875f #ff0300;1 #4d0808. Looks up a localized string similar to 0 #8488c4;34734f #d4deff;54395f #d4deff;1 #96ab94. Looks up a localized string similar to 0 #e6dcac;7864f #e6d78a;19661f #c7ac4c;29491f #e6d78a;50463f #c7ac4c;1 #e6dcac. Looks up a localized string similar to 0 #fbe4ae;8520f #bd922a;13763f #bd922a;41288f #fbe4ae;43909f #bd922a;45220f #835e17;53740f #a28949;1 #fae3b7. Looks up a localized string similar to 0 #dcebf5;5243f #83a7c3;8520f #768fb9;13763f #83a7c3;34079f white;36700f #9c6563;38011f #80302d;46531f #c0524e;61604f #ebdad4;1 #55261c. Looks up a localized string similar to 0 black;13107f #000040;.5 #400040;.75 #8f0040;58982f #f27300;1 #ffbf00. Looks up a localized string similar to 0 #d6b19c;19661f #d49e6c;45875f #a65528;1 #663012. Looks up a localized string similar to 0 #ddebcf;.5 #9cb86e;1 #156b13. Looks up a localized string similar to 0 black;26214f #0a128c;45875f #181cc7;57672f #7005d4;1 #8c3d91. Looks up a localized string similar to 0 #03d4a8;.25 #21d6e0;.75 #0087e6;1 #005cbf. Looks up a localized string similar to 0 #ffefd1;42598f #f0ebd5;1 #d1c39f. Looks up a localized string similar to 0 #39f;10486f #0cc;30802f #99f;39322f #2e6792;46531f #33c;53084f #1170ff;1 #069. Looks up a localized string similar to 0 #a603ab;13763f #0819fb;22938f #1a8d48;34079f yellow;47841f #ee3f17;57672f #e81766;1 #a603ab. Looks up a localized string similar to 0 #f39;.25 #f63;.5 yellow;.75 #01a78f;1 #36f. Looks up a localized string similar to 0 #000082;8520f #0047ff;18350f #000082;28180f #0047ff;38011f #000082;47186f #0047ff;57016f #000082;1 #0047ff. Looks up a localized string similar to 0 white;4588f #e6e6e6;20972f #7d8496;30802f #e6e6e6;55706f #7d8496;1 #e6e6e6. Looks up a localized string similar to 0 #fbeac7;11796f #fee7f2;23593f #fac77d;39977f #fba97d;53740f #fbd49c;1 #fee7f2. Specify text wrapping style for object. Inline text wrapping style TopAndBottom text wrapping style Square text wrapping style No text wrapping style Tight text wrapping style Through text wrapping style Behind text wrapping style Specify text wrapping type for textbox. Wrap text both sides Wrap text left side Wrap text right side Wrap text largest describes how to position two rectangles relative to each other. Single line. Double lines of equal width. Double lines, one thick, one thin. Double lines, one thin, one thick. Three lines, thin, thick, thin. Default value is . Specify object's line style Single line (of width lineWidth) Double lines of equal width Double lines, one thick, one thin Double lines, reverse order Three lines, thin, thick, thin Line dashing. Solid (continuous) pen. PS_DASH system dash style. PS_DOT system dash style. PS_DASHDOT system dash style. PS_DASHDOTDOT system dash style. Square dot style. Dash style. Long dash style. Dash short dash. Long dash short dash. Long dash short dash short dash. This simple type specifies the widths of a stroke arrowhead. Medium width. Narrow width. Wide width. This simple type specifies the lenghts of a stroke arrowhead. Long length. Medium length. Short length. This simple type specifies the types of arrawhead for a stroke. Block arrowhead. Classic curved arrowhead. Diamond arrowhead. No arrowhead. Opend arrowhead. Round arrowhead. this simple type specifies the styles for the end of a stroke. Flat end. Round end. Square end. This simple type specifies the join styles for a polyline. Bevel joint. Miter joint. Round joint. Specifies horizontal alignment of a floating shape. The object is explicitly positioned using position properties. The object is aligned to the left of the reference origin. The object is centered to the reference origin. The object is aligned to the right of the reference origin. Not documented. Not documented. Specifies vertical alignment of a floating shape. The object is aligned to the bottom of the reference origin. The object is centered relative to the reference origin. Not documented. Not documented. The object is explicitly positioned using position properties. Not documented. The object is aligned to the top of the reference origin. This simple type specifies the different meanings of a group of shapes. The group shape is a normal group of shapes. Specifies that the group represents a bulls-eye diagram. Specifies that the group is a regular group and does not represent a diagram. Specifies that the group represents a cycle diagram. Specifies that the group represents an organization chart. Specifies that the group represents a radial diagram. Specifies that the group represents a pyramid diagram. Specifies that the group represents a Venn diagram. Defines shape attributes that occur in the model. For more info see VML, OOXML and Word 2007 Drawing Format specifications. No ctor. Fixed. Degrees. Default 0. Positive value corresponds to clockwise rotation angle. Default false. No rotation. Default false. Don't allow changes in aspect ratio. Default false. Don't allow the shape to be moved. Default false. Shape may not be selected. Default false. No cropping this shape. Default false. Edit Points not allowed. Default false. Do not edit text. Default false. Do not adjust. Default false. Do not group this shape. Default false. int. id for the textbox. Although this attribute will be present in the model during write to DOC, it does not have any meaning for the model. This is an index into plcfTxbxs, but need to deduct one and shift right by 16 bits. int txid = (int)((txbxIdx + 1) shl 16); The lower 16 bits indicate the index of the linked checkbox. This attribute is only used during reading and writing into binary DOC. There is a two-way link between shape and txbx in a DOC file and during read. Also see OleTxid. OleTxid is written instead of TextboxTxid for OLE objects. int. margins relative to shape's inscribed text rectangle (in EMUs) Default 1/10inch int. margins relative to shape's inscribed text rectangle (in EMUs) Default 1/20inch int. margins relative to shape's inscribed text rectangle (in EMUs) Default 1/10inch int. margins relative to shape's inscribed text rectangle (in EMUs) Default 1/20inch Specifies how text wraps inside the shape. int. Text zoom/scale (used if fFitTextToShape), default 0. How to anchor the text. Default Top. . Default HorZ . Font rotation. Default Right. int. ID of the next shape (used by Word for linked textboxes). int. Bi-Di Text direction. Default LTR. int. Seen in TestCommunity15706.doc, value 2. Untested. Default 1. Count of columns. Ver: XP int. Seen BusinessBrochure.doc, value 73152. Untested. Default 91440. EMUs, column margin on both sides. Ver: XP string. Original ID of the next shape (used by Word for linked textboxes). It is a temporary attribute that should never appear in AW model after load. TRUE if single click selects text, FALSE if two clicks. Default true. use host's margin calculations. Default false. Rotate text with shape. Default false. Size shape to fit text size. Default false. Size text to fit shape size. Default false. UNICODE text string RTF text string . alignment on curve Fixed. Font size in points. Fixed. Adjust the spacing between characters (1.0 is normal). String. Font name. Untested. Ver: 2000 String. To preserve CSS font selectors. Default empty string. bool. Reverse row order. By default multiple rows of text are laid out with the first at the top for horizontal text and with the first at the left for vertical text, this flag reverses that behavior (bottom to top or right to left). Default false. bool. True if the text effect properties (gtext*) are used. False if these properties are ignored. bool. Rotate characters bool. Kern characters bool. Tightening or tracking is on. bool. Stretch to fit shape bool. Char bounding box bool. Scale text-on-path bool. Stretch char height. Mall characters same height. bool. Do not measure along path. bool. bool. bool. bool. bool. bool. Fixed. Fraction of the image width or height. Specifies the width of the extents rectangle in EMUs. This rectangle shall dictate the size of the object as displayed (the result of any scaling to the original object). Specifies the length of the extents rectangle in EMUs. This rectangle shall dictate the size of the object as displayed (the result of any scaling to the original object). Color. transparent color. The default value for this property is 0xFFFFFFFF, but we don't yet support 0xff in the top byte that means "ignore this color". Fixed. Contrast setting. Min value is 0, max value is 0x7fffffff, but it is not linear. There is no documentation for the algorithm, but I guess it in . Fixed. Brightness setting. Has to be a fixed value -0.5 to 0.5. Fixed. gamma. Have never seen it in MS Word. Actually, this is not even in the SPEC. Int. Host-defined ID for OLE objects. MS Word spec says this is "pictureId", but I've discovered this is actually TXID for floating OLE objects. This property is ignored during read and synthesized on write. Also see TextboxTxid. Int. This property specifies a shadow color for pictures with a double shadow used in black-and-white display mode. The SPEC says: This value SHOULD be ignored. The default value for this property is 0x100000F4, but we don't support color flags yet. Seen in TestShadow.doc. Seen 0x100000f4 in TestDefect1402.doc. MSOCLR type. Int. This property specifies the fill color modification used in black-and-white display mode. Seen in TestDefect1402.doc. MSOCLR Int. This property specifies the line color modification used in black-and-white display mode. Seen in TestDefect1402.doc. MSOCLR This property specifies the transparent pixel extended color. This property specifies the color modification of the transparent pixel extended color. Int. This property specifies the color used to recolor the image. Seen 0xffffffff in TestDefect1402.doc Ver: XP Int. This property specifies the extended color used to recolor the image. Seen 0xffffffff in TestDefect1402.doc Int. MUST be 0xFFFFFFFF, and MUST be ignored. Seen 0xffffffff in TestDefect1402.doc Int. This property specifies the color modification of the extended color used to recolor the image. Seen 0x20000000 in TestDefect1402.doc Seen in 1402. MUST be zero, and MUST be ignored. Complex property, no data. Int. MUST be 0xFFFFFFFF, and MUST be ignored. Seen 0xffffffff in TestDefect1402.doc bool. Seen in TestDefect1402.doc in extended flags. Default false? 0x0040 When doing a color modification to a picture, leave grays unmodified. Ver: XP bool, Do not hit test the picture, default false. 0x0008 bool, grayscale display, default false. 0x0004 bool, bi-level display, default false. 0x0002 bool, Server is active (OLE objects only), default false. 0x0001 Array of . Specifies the set of points that make up this shape. Corresponds to 2.3.6.7 pVertices_complex in the DOC SPEC. Array of . Specifies how the vertices specified by the property are connected. Corresponds to 2.3.6.8 pSegmentInfo in the DOC SPEC. This attribute MUST be present and be up to date with GeometryVertices. Int. Adjustment values corresponding to the positions of the adjust handles of the shape. The number of values used and their allowable ranges vary from shape type to shape type. Default 0. Array of . These are G unit values. Connector locations for shapes imported from clipart. This property specifies an array of angles corresponding to the connection sites in the pConnectionSites_complex property that are used to determine the direction that a connector links to the corresponding connection site. Array of . But these are actually Fixed values. int. A signed integer x coordinate in geometry space that specifies a value above which limousine scaling is used. The spec says default is 0x8000000, but we default to 0 at the moment! Limo stretches are points on a shape's edge that define where and how a shape may be stretched by a user in a graphical editor. 2.3.6.22 xLimo in the DOC SPEC int. A signed integer y coordinate in geometry space that specifies a value above which limousine scaling is used. The spec says default is 0x8000000, but we default to 0 at the moment! 2.3.6.23 yLimo in the DOC SPEC. This property specifies an array of adjust handles which allow a user to manipulate the geometry of this shape. Array of . This property specifies a set of formulas used to calculate values for use in defining the geometry of this shape. Array of . This property specifies an array of rectangles specifying how text should be inscribed within this shape. 2.3.6.28 pInscribe in the DOC SPEC. Array of . Corresponds to path.textboxrect in VML. This property specifies where connection points are on the shape. . Corresponds to o:connecttype in WordML. A bit that specifies whether to display the shadow of this shape. The value SHOULD be ignored. Default true. A bit that specifies whether to display the extrusion effect of this shape. Default true. A bit that specifies whether to display the line of this shape. Default true. A bit that specifies whether to display the text aligned to this shape. Default false. A bit that specifies whether the fill is aligned to the shape. A value of 0x0 specifies that the fill is aligned to the bounding rectangle of the shape. A value of 0x1 specifies that the fill is aligned to the shape itself. Default false. A bit that specifies whether to display the fill of this shape. Default true. enumeration. Type of fill. Default Solid. Foreground fill color. Default white. Fixed. Background color. Default white. Can have special values such as 0xeff00266 which means "fill lighten(102)", where I guess 0x66 means "102" and 0x00200 means "lighten". VA: VmlColor.ColorToVml decodes such values. Fixed. Used only for gradient fills. Color. Modification for BW views? Undocumented. Have not seen in files. string. int. int? Never seen in files. int? Never seen in files. Fixed. Gradient angle in degrees. int. Linear gradient fill focus. Integer percent -100..100 Fixed. Focus position. Fraction of the shape size. Fixed. Focus position. Fraction of the shape size. Fixed. Focus position. Fraction of the shape size. Fixed. Focus position. Fraction of the shape size. Fixed. Seen in TestDefect1402.doc Fixed. Seen in TestDefect1402.doc Fixed. Seen in TestDefect1402.doc Fixed. Seen in TestDefect1402.doc . Specifies units for fill dimensions. int. Identifies one of the preset gradients. Exists in DOC and RTF only. WML and DOCX don't have it. MS Word figures this value out itself, therefore we ignore it. Does not occur in the model. Array of . int. The units are according to FillDzType. Undocumented. int. The units are according to FillDzType. Undocumented. int. The units are according to FillDzType. Undocumented. int. The units are according to FillDzType. Undocumented. . Type of shading for gradient fill. This is fill color in the "ink" notation. Seen in TestGeometry.doc, value -1. Seen in BusinessBrochureBrief.doc, 0xb58b22. In WordML this is "fillcolor="#228bb5 [rgb(34,139,181) ink(1,255)]" In extended properties? Undocumented. Seen in TestGeometry.doc, value -1. In extended properties. Seein BusinessBrochureBrief.doc, value 0xff20. Undocumented. Seen in TestGeometry.doc. Looks like some flags. In extended properties. Undocumented. Seen in TestGeometry.doc. Complex property. Seen empty value only. In extended properties. This is fill background color in the "cmyk" notation. Seen in BusinessBrochureBrief.doc, 0x00feffff. In WordML this is color2="#fffffe [rgb(255,255,254) cmyk(0,0,0,0)]" Undocumented. Seen in BusinessBrochure.doc, value 8. Simple. Int. Seen in TestDefect1402.doc. Undocumented. Seen in TestWatermark.doc. Undocumented. Seen in TestGeometry.doc, value -1. In extended properties. Seen in BusinessBrochure.doc, value 0. Undocumented. Seen in BusinessBrochure.doc, value 0. bool. Extended fill flag. Not exactly sure what it means. bool. Extended fill flag. Corresponds to 'Fill Effects | Gradient | Rotate fill effect with shape' setting in MS Word. bool. Is shape filled? bool. undocumented. bool. undocumented. bool. undocumented. bool. undocumented. Corresponds to o:detectmouseclick in WordML struct of stretch.specifies that a BLIP should be stretched to fill the target rectangle. bool. specifies whether a BLIP be tiled to fill the available space struct of tile. specifies that a BLIP should be tiled to fill the available space. Color of line. Default is black. Fixed. Line color opacity. Background color, default is white. Color. Modification for BW Views. never seen. Type of line, default is solid. String. Seen "" in TestDefect1402.doc. Never seen, unsupported at the moment. Int. Seen 0 in TestDefect1402.doc. Int? Seen 0 in TestDefect1402.doc. Int? Seen 0 in TestDefect1402.doc. . Specifies units for fill dimensions. EMUs, line width. 1pt == 12700 EMUs. Default 9525 (0.75pt). Stored as EMUs in the model. Fixed. ratio. enumeration. Default single. . Default Solid. Can be overridden by LineDashStyle. Complex property. An array that defines a custom dash pattern. Never seen, not supported at the moment. . Arrow at start, default NoEnd . Arrow at end, default NoEnd . . . . . Defines the join style of a polyline. . How to end lines. Undocumented. Seen in TestLeorMeller.doc int 0xffffffff Undocumented. Seen in TestLeorMeller.doc int 0xffffffff Undocumented. Seen in TestLeorMeller.doc int 0x20000000 (some CrMod?) Undocumented. Seen in TestWatermark.doc. Complex property. Seen simple in arabic 4129.doc This is line background color in the "cmyk" notation. Seen in BusinessBrochureBrief.doc, 0x00feffff. In WordML this is v:stroke color2="#fffffe [rgb(255,255,254) cmyk(0,0,0,0)]" Undocumented. Seen in BusinessBrochure.doc, value 8. Seen in TestDefect1402.doc, value 0x200000000 (some CrMod?) Undocumented. Seen in TestWatermark.doc. Complex property, no data. Undocumented. Seen in TestLeorMeller.doc int 0xffffffff Undocumented. Seen in BusinessBrochure.doc, value 0. bool. bool. bool. True when Inset pen (the pen is aligned on the inside of the edge of the path). False when Center pen (line drawn at center of path stroke). If LineInsetPenOK is false, this value MUST be ignored. bool. Specifies whether insetting the pen is allowed. bool. Allow arrowheads if prop. is set bool. Any line? Probably Stroked in VML. bool. Should we hit test lines? Undocumented. bool. Register pattern on shape. Undocumented. bool. Draw a dashed line if no line. Probably ForceDash in VML. . Color. Foreground shadow color. Color. Embossed color. Color. Modification for BW views. undocumented. Fixed. int. Shadow offset. EMUs. int. Shadow offset. EMUs. int. Double shadow offset. EMUs. int. Double shadow offset. EMUs. Fixed. undocumented. Fixed. undocumented. Fixed. undocumented. Fixed. undocumented. Fixed. Ratio of weight. Fixed. Ratio of weight. What units? int? Undocumented. int? Undocumented. Undocumented. Seen in TestLeorMeller.doc int 0xffffffff Undocumented. Seen in TestLeorMeller.doc int 0xffffffff Undocumented. Seen in TestLeorMeller.doc int 0x20000000 Undocumented. Seen in TestWatermark.doc. Complex property. This is shadow background color in the "cmyk" notation. Seen in BusinessBrochureBrief.doc, 0xdsd5db. In WordML this is color2="#dbd5d3 [rgb(219,213,211) cmyk(12.5,9.8,8.63,3.14)]" Undocumented. In extended properties. Seen in BusinessBrochure.doc, value 0x2c3241e8. Seen in TestDefect1402.doc. 0xffffffff Undocumented. Seen in TestWatermark.doc. Complex property. Undocumented. Seen in TestLeorMeller.doc int 0xffffffff Undocumented. In extended properties. Seen in BusinessBrochure.doc, value 0x20. bool. Shadow is on or not. bool. Excel5-style shadow . Where transform applies. int. The LONG values define a transformation matrix, effectively, each value is scaled by the perspectiveWeight parameter. int. The LONG values define a transformation matrix, effectively, each value is scaled by the perspectiveWeight parameter. int. The LONG values define a transformation matrix, effectively, each value is scaled by the perspectiveWeight parameter. int. The LONG values define a transformation matrix, effectively, each value is scaled by the perspectiveWeight parameter. int. The LONG values define a transformation matrix, effectively, each value is scaled by the perspectiveWeight parameter. int. The LONG values define a transformation matrix, effectively, each value is scaled by the perspectiveWeight parameter. int. undocumented. int. undocumented. Fixed? Scaling factor. Fixed. undocumented. Fixed undocumented. bool. Fixed-point 16.16 Fixed-point 16.16 int? Default gives OK results int. Specular edge thickness in EMUs. int. Distance of extrusion in EMUs int. EMUs . Extrusion direction Color. Basic color of extruded part of shape; the lighting model used will determine the exact shades used when rendering. Color. Modification for BW views Seen in TestDefect1402.doc, 0xffffffff Seen in TestDefect1402.doc, 0xffffffff Seen in TestDefect1402.doc, 0x20000000 (CrMod?) Undocumented. Seen in TestWatermark.doc. Complex property. Seen in TestDefect1402.doc, 0xffffffff bool. Does this shape have a 3D effect. bool. Use metallic specularity. bool. Undocumented. bool. Determines whether the front face of the extrusion will respond to changes in the lighting. Fixed. degrees (16.16) about y axis Fixed. degrees (16.16) about x axis int. These specify the rotation axis; only their relative magnitudes matter. int. These specify the rotation axis; only their relative magnitudes matter. int. These specify the rotation axis; only their relative magnitudes matter. Fixed. degrees (16.16) about axis Fixed. rotation center x (16.16 or g-units) Fixed. rotation center y (16.16 or g-units) int. rotation center z (absolute (emus)) . Full, wireframe or bcube Fixed. pixels (16.16). Defines the number of facets used to describe curved surfaces of an extrusion. Emus. Defines the viewpoint of the observer (X). Emus. Defines the viewpoint of the observer (Y). Emus. Z view distance. Fixed. Defines the origin X of the viewpoint within the bounding box of the shape. Fixed. Defines the origin Y of the viewpoint within the bounding box of the shape. Fixed. degree (16.16) skew angle int. Percentage skew amount Fixed. Fixed point intensity Int? Key light source direction; only their relative magnitudes matter. Int? Key light source direction; only their relative magnitudes matter. Int? Key light source direction; only their relative magnitudes matter. Int? Fixed point intensity. Int? Fill light source direction; only their relative magnitudes matter. Int? Fill light source direction; only their relative magnitudes matter. Int? Fill light source direction; only their relative magnitudes matter. Int? Fixed point intensity bool. Determines whether the rotation of the extruded object is specified by the RotationAngle attribute. bool. Determines whether the center of rotation will be the geometric center of the extrusion. bool. Parallel projection. bool. Is key lighting harsh. bool. Is fill lighting harsh. . Default none. . Default Automatic. . Default Automatic. . Default Automatic. . . This property specifies kind of node in a diagram. MSODGMLO type. Most recently used layout for its child. Ver: XP. Untested. String. This property is present if the shape represents an equation generated by Office 2007 or later. The property is a string of XML representing a Word 2003 XML document. The original equation is stored within the “oMathPara” tag within the document. Refer to the Office Open XML documentation for details on this XML representation of equations. If the document containing the shape is opened in Office 2007 or later, the shape is replaced with the equation in this document. Ver: 2007 Untested. Bool. Default false. Ver: 2007. True if the shape is a policy label representing metadata about a document. Untested. Bool. Default false. Ver: 2007. True if the shape represents a barcode as part of a barcode policy for record management. Untested. Bool. Default false. Ver: XP. The value of this property should match the value of the fFlipH property (in the transform property set) if the pib property exists (in the blip property set.) Untested. Bool. Default false. Ver: XP. The value of this property should match the value of the fFlipV property (in the transform property set) if the pib property exists (in the blip property set.) bool. For OLE objects, whether the object is in icon form. What is stored in DOC escher does not seem very reliable, so I confirm it by extracting a bit from the OLE object data. For DOCX and WordML this is DrawAspect. bool. For UI only. Prefer relative resizing. bool. Lock the shape type (don't allow Change Shape) Bool. Set by the solver. bool. undocumented. . Int. Distance from box to first point.(EMUs) . . Int. if CalloutDropType.Specified, the actual drop distance. EMUs? Int. if fCalloutLengthSpecified, the actual distance. Bool. Is the shape a callout. Bool. does callout have accent bar. Bool. does callout have a text border Bool. undocumented. Bool. undocumented. Bool. If true, then we occasionally invert the drop distance. Bool. if true, we look at CalloutLength. Shape Name (present only if explicitly set). RK One scenario where this is used is to create relationships between diagram nodes. Instead of basing relationships on shape ids, the relationships are created based on shape names (in DOC, RTF and model based on hashes of shape names). Shape id might change (at least can change in Spire.Doc when document is saved), shape name, on the other hand remains the same and makes the life easier (no need to update diagram relations). Shape name is usually generated by MS Word based on the shape id. Alternative text. String. The Uri of the hyperlink. If the link is to a local bookmark, it will be prepended with "#" in the model. Array of . The polygon that text will be wrapped around (Word). In the DOC file this is actually just normal POINT array, but it is simpler for us to work with PathPoint. Left wrapping distance from text. Default 1/8 inch. EMUs. Top wrapping distance from text. Default 0. EMUs. Right wrapping distance from text. Default 1/8 inch. EMUs. Bottom wrapping distance from text. Default 0. EMUs in Escher. NOT IN THE MODEL. We ignore this. String. The tooltip (also used for hyperlinks). String. Looks like can be java script. When this attribute is specified, the shape is positioned using alignment relative to some object. The relative anchor is specified using the relative horizontal position value, all values are valid. When the alignment value is Inside our Outside (in MS Word this is in the Book Layout dropdown), then MS Word allows the relative anchor to be only Margin or Page. Occurs in EsShapeOptionsEx record. Note the values in the SPEC are wrong (off by 1). Occurs in EsShapeOptionsEx record. Note the values in the SPEC are wrong (off by 1). Also see comments above in . Occurs in EsShapeOptionsEx record. Note the values in the SPEC are wrong (off by 1). Occurs in EsShapeOptionsEx record. Note the values in the SPEC are wrong (off by 1). int. Defines the length of a horizontal rule as a percentage of page width. Note that value 500 means 50%. . Defines the alignment of a horizontal rule. NOT IN THE MODEL. Seems this attribute provides more exactly shape height. We read this during DOC/RTF import and remove from model after shape height is adjusted. Int. Defines the thickness of a horizontal rule in twips. NOT IN THE MODEL. We ignore it on read. On write we use shape width instead. Int. Defines the length of a horizontal rule in twips. String. Looks like "mime" type of the script. I've seen a value " type="text/javascript"". Int. Probably Id of the script language. 4 = JavaScript. Untested. Id script attribute of the script? String. Looks like string name of the script language. These are 32bit color for the inline picture borders. Occur in EsShapeOptionsEx record. We read this attribute into the model initially, so it could occur in the model. If the shape is an inline picture, then when the PICF structure is loaded, the 32bit colors specified by these attributes are applied to the borders. The border attributes BorderXXX are added to the model and these attributes are removed. Untested. Seen complex value in defect 3397. The shape’s 2007 representation in Office Open XML format. The actual data is a package in Office XML format, which can simply be opened as a zip file. This zip file contains an XML file with the root element “sp”. Refer to the publically available Office Open XML documentation for more information about this data. In case we lose any property when converting a 2007 Office Art shape to 2003 shape, we use this blob to retrieve the original Office Art property data when opening the file in 2007. See Appendix F for more information. Ver: 2007 Untested. The shape’s unique z-order, ranging from 1 to 503316479. The higher the number, the closer to “in-front” the shape is. Ver: 2007. 0x8000 flag. bool. Allows shape to anchor and position inside table cells. Occurs in extended attributes. Not sure about default value. From DOC files looks like default is true, but RTF spec says its false. 0x4000 flag. Set to true to indicate this shape is a picture bullet. Occurs in extended properties. 0x2000 flag. Set to true for a "standard" horizontal rule shape. This means the horizontal rule does not have a picture. 0x1000 flag. Set to true to turn a shadow on the horizontal rule shape off. 0x0800 flag. Set to true for a shape that is a horizontal rule. 0x0400 flag. Seems to be PowerPoint related. 0x0200 flag. bool. Default is true. Occurs in extended attributes. Allows shape to overlap other shapes unless it is a shape with None wrapping (\shpwr3), in which case it can always overlap an object with other types of wrapping and vice-versa. 0x0100 flag. Occurs in extended attributes. 0x0080 flag. Has the wrap polygon been edited? Default false. Word-only (shape is behind text), default false. Notify client on a double click, default false. A button shape (i.e., clicking performs an action). Set for shapes with attached hyperlinks or macros. Default false. 1D adjustment, default false. Do not display. default false. Print this shape, default true. Seen in TobyHenderson6.doc and in TestInlinePictures.doc. Looks like another set of flags. Enum . This property could be set for a group shape to identify it as a canvas or a diagram. Int. In the RTF specification there is a detailed info which value means what diagram style, but the problem is that different diagram types have different sets of diagram styles, so I really prefer to store this just as integer in the model. WordML does the same. Array of . It is important to write this property, otherwise MS Word does not recognize the shape as a diagram. Fixed. The scale factor for width of a diagram. Fixed. The scale factor for height of a diagram. Int. Specifies the font size in points of text for new nodes in a diagram. int[] consisting of four items. Specifies the bounds that the diagram nodes are constrained to. This property specifies the amount to scale text. This property MAY be ignored. A FixedPoint, as specified in [MS-OSHARED] section 2.2.1.6, that specifies the amount to scale text. Bool. True when diagram uses auto format. Bool. Not fully sure, but looks very much reverse flag. Bool. Bool. I guess this corresponds to fPseudoInline in RTF. This is set for inline shapes. Affects not only diagrams, but all shapes. The shape is pseudo-inline, meaning it behaves like an inline image as far as positioning goes, but has the features of shapes. Untested. Seen in TestArtSchool8039.doc. Complex, contains 0x2e bytes of data. Untested. Untested. Untested. bool. Untested. bool. Seen in BusinessBrochure.doc. InkData as byte array. Complex. Specifies that Ink should be treated as annotation. This property specifies the GUID of the signature line. This property specifies the GUID of the provider that creates the signature line. This property specifies the name of the suggested signer. This property specifies the title or additional information of the suggested signer. This property specifies the e-mail address of the suggested signer. This property specifies the signing instruction displayed to the signer. 2.3.27.13 wzSigSetupAddlXml This property specifies the additional information in XML format provided by the provider that creates the signature line. 2.3.27.15 wzSigSetupProvUrl This property specifies the URL of the provider that creates the signature line. bool. Specifies whether the signing date is displayed. bool. Specifies whether the comment from the signer is allowed. bool. Specifies whether the signing instruction is overridden. bool. Specifies whether the shape is a signature line. int. Relative left position of the shape in 1/10th of percent. When present, logically overrides the attribute. Available since Word 2007. int. Relative top position of the shape in 1/10th of percent. When present, logically overrides the attribute. Available since Word 2007. int. Relative width of the shape in 1/10th of percent. When present, logically overrides the attribute. Available since Word 2007. int. Relative height of the shape in 1/10th of percent. When present, logically overrides the attribute. Available since Word 2007. Specifies what shape width is relative to. Available since Word 2007. Specifies what shape width is relative to. Available since Word 2007. Untested. Starting column. Untested. Number of columns to span. . Not stored as a property in Escher, but stored in the EsShape record. . Not stored as a property in Escher, but stored in the FSPA structure. . Not stored as a property in Escher, but stored in the FSPA structure. bool in the model. Not stored as a property in Escher, but stored in the FSPA structure. byte[] in the model. Not stored as a property in Escher. string in the model. Not stored as a property in Escher. If present, specifies a "comment" for a non-linked image. Usually, it is the original name of the image, sometimes without the extension. string in the model. Not stored as a property in Escher. If present, this attribute specifies the URL to the linked image. Border in the model. Not stored as a property in Escher. Stored in PICF for inline pictures only. Border in the model. Not stored as a property in Escher. Stored in PICF for inline pictures only. Border in the model. Not stored as a property in Escher. Stored in PICF for inline pictures only. Border in the model. Not stored as a property in Escher. Stored in PICF for inline pictures only. byte[] in the model. Not stored as a property in Escher. byte[] in the model. Not stored as a property in Escher. that contains the embedded OLE or OOXML data and its id. String that specifies ProgID of the OLE object. String that specifies full name of the linked file. String that specifies the range within the linked file. Optional. Bool that specifies whether the link is auto updated or not. Bool that specifies whether the OLE link is locked for updates or not. OleLinkType value. Specifies type of the OLE link. Int. Corresponds to the value for the \f field switch in OLE fields. string that specifies the hyperlink target frame. , specifies the id of the built-in texture for the stroke fill pattern. , specifies the id of the built-in texture for the fill pattern. Required by the RTF importer to mark the shape as a dummy shape. Dummy shapes are not added to the model. int. Shape id as loaded from the file or generated when a shape is created. All shape identifiers are regenerated into MS Word-like sequence before a document is saved. Note, DrawingML id is of unsigned int type. CoordOrigin.X in coordinate units. Normally occurs for group shapes and also shapes with custom geometry. CoordOrigin.Y in coordinate units. Normally occurs for group shapes and also shapes with custom geometry. CoordSize.Width in coordinate units. Normally occurs for group shapes and also shapes with custom geometry. CoordSize.Height in coordinate units. Normally occurs for group shapes and also shapes with custom geometry. double. Left position of the shape. Has effect for floating shapes only. For top level shapes these are points, for child shapes these are in the parent coordinate system. double. Top position of the shape. Has effect for floating shapes only. For top level shapes these are points, for child shapes these are in the parent coordinate system. double. Width of the shape. For top level shapes these are points, for child shapes these are in the parent coordinate system. double. Height of the shape. For top level shapes these are points, for child shapes these are in the parent coordinate system. Boolean. DrawingML property. Boolean. DrawingML property. Boolean. DrawingML property. int. EMUs. DrawingML property. int. EMUs. DrawingML property. int. EMUs. DrawingML property. int. EMUs. DrawingML property. At the moment this is an unparsed string value. At the moment this is an unparsed string value. At the moment this is an unparsed string value. int. Determines the display order of overlapping shapes. . Defines shape attributes written in rtf file. Default constructor. Sector size. Download file Thrown when fails to make API call File path e.g. '/folder/file.ext' System.IO.Stream Download file Thrown when fails to make API call File path e.g. '/folder/file.ext' ApiResponse of System.IO.Stream Gets Remaining Credits. Supported Image Models for generation stable diffusion stable diffusion XL Supported Image Size for generation 512*512 768*768 1024*1024 STABLE_DIFFUSION_XL_1024_V1_0 only support I1024x1024