Namespace EasyXLS

Class ExcelChartSheet


  • public class ExcelChartSheet
    extends ExcelSheet
    This class stores chart information like series, legend, axis, plot area, chart area, data table, title, series gap and overlap, 3D perspective, 3D elevation, 3D rotation and 3D height.
    • Constructor Detail

      • ExcelChartSheet

        public ExcelChartSheet()
        Defines an instance of a sheet that contains a chart.
      • ExcelChartSheet

        public ExcelChartSheet​(System.String chartName)
        Defines an instance of a sheet that has the sheet name defined and contains a chart.
        Parameters:
        chartName - the chart sheet name.
    • Method Detail

      • easy_setExcelChart

        public void easy_setExcelChart​(ExcelChart xlsChart)
        Sets the chart of the sheet.
        Parameters:
        xlsChart - the chart of the sheet
        See Also:
        easy_getExcelChart()
      • easy_addImage

        public void easy_addImage​(System.String path,
                                  int horizontalOffset,
                                  int verticalOffset)
        Adds an image that has the specified path and location to chart sheet.
        Parameters:
        path - the file path to image file
        horizontalOffset - the distance from the left margin of the chart to the left border of the image
        verticalOffset - the distance from the left margin of the chart to the top border of the image
        See Also:
        ExcelSheet.easy_removeImage(int), ExcelSheet.easy_getImageAt(int), ExcelSheet.ImageCount()
      • easy_addImage

        public void easy_addImage​(System.String path,
                                  int horizontalOffset,
                                  int verticalOffset,
                                  int width,
                                  int height)
        Adds an image that has the specified path, location and size to chart sheet.
        Parameters:
        path - the file path to image file
        horizontalOffset - the distance from the left margin of the chart to the left border of the image
        verticalOffset - the distance from the left margin of the chart to the top border of the image
        width - the image width
        height - the image height
        See Also:
        ExcelSheet.easy_removeImage(int), ExcelSheet.easy_getImageAt(int), ExcelSheet.ImageCount()
      • ProtectObjects

        public bool ProtectObjects()
        Returns true if the objects are protected when the sheet is protected, false otherwise.
        Returns:
        true if the objects are protected when the sheet is protected, false otherwise
        See Also:
        setProtectObjects(bool), setProtectContents(bool)
      • setProtectObjects

        public void setProtectObjects​(bool protect)
        Sets if the objects are protected when the sheet is protected.
        Parameters:
        protect - true if the objects are protected when the sheet is protected, false otherwise
        See Also:
        ProtectObjects(), ProtectContents()
      • ProtectContents

        public bool ProtectContents()
        Returns true if the contents are protected when the sheet is protected, false otherwise.
        Returns:
        true if the contents are protected when the sheet is protected, false otherwise
        See Also:
        setProtectContents(bool), setProtectObjects(bool)
      • setProtectContents

        public void setProtectContents​(bool protect)
        Sets if the contents are protected when the sheet is protected.
        Parameters:
        protect - true if the contents are protected when the sheet is protected, false otherwise
        See Also:
        ProtectContents(), ProtectObjects()
      • Dispose

        public void Dispose()
        Disposes the allocated resources.
        Overrides:
        Dispose in class ExcelSheet
      • Clone

        public ExcelSheet Clone()
        Creates and returns a copy of this object.
        Specified by:
        Clone in class ExcelSheet
        Returns:
        a clone of this instance.
      • RestoreDefaults

        public void RestoreDefaults()
        Internal use only
        Overrides:
        RestoreDefaults in class EasyXLS.BIFF_Records.SheetStream