Namespace EasyXLS
Class ExcelChartSheet
System.Object
EasyXLS.BIFF_Records.SheetStream
EasyXLS.ExcelSheet
EasyXLS.ExcelChartSheet
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 Summary
ConstructorsConstructorDescriptionDefines an instance of a sheet that contains a chart.ExcelChartSheet(System.String chartName) Defines an instance of a sheet that has the sheet name defined and contains a chart. -
Method Summary
Modifier and TypeMethodDescriptionClone()Creates and returns a copy of this object.voidDispose()Disposes the allocated resources.voideasy_addImage(System.String path, int horizontalOffset, int verticalOffset) Adds an image that has the specified path and location to chart sheet.voideasy_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.Returns the chart of the sheet.voideasy_setExcelChart(ExcelChart xlsChart) Sets the chart of the sheet.boolReturns true if the contents are protected when the sheet is protected, false otherwise.boolReturns true if the objects are protected when the sheet is protected, false otherwise.voidInternal use onlyvoidsetProtectContents(bool protect) Sets if the contents are protected when the sheet is protected.voidsetProtectObjects(bool protect) Sets if the objects are protected when the sheet is protected.Methods inherited from class EasyXLS.ExcelSheet
easy_addImage, easy_addImage, easy_getImage, easy_getImageAt, easy_removeImage, easy_removeImage, getHashedPassword, getSheetName, getTabColor, getTabThemeColor, getZoom, ImageCount, IsHidden, IsSheetProtected, IsSheetSelected, setHashedPassword, setHidden, setProtectionPassword, setSheetName, setSheetProtected, setSheetSelected, setTabColor, setTabColor, setZoomMethods inherited from class EasyXLS.BIFF_Records.SheetStream
biffList, BIFFsLengthMethods inherited from class System.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
-
Constructor Details
-
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 Details
-
easy_setExcelChart
Sets the chart of the sheet.- Parameters:
xlsChart- the chart of the sheet- See Also:
-
easy_getExcelChart
Returns the chart of the sheet.- Returns:
- chart of the sheet
- See Also:
-
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 filehorizontalOffset- the distance from the left margin of the chart to the left border of the imageverticalOffset- the distance from the left margin of the chart to the top border of the image- See Also:
-
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 filehorizontalOffset- the distance from the left margin of the chart to the left border of the imageverticalOffset- the distance from the left margin of the chart to the top border of the imagewidth- the image widthheight- the image height- See Also:
-
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
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:
-
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
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:
-
Dispose
-
Clone
Creates and returns a copy of this object.- Specified by:
Clonein classExcelSheet- Returns:
- a clone of this instance.
-
RestoreDefaults
public void RestoreDefaults()Internal use only- Overrides:
RestoreDefaultsin classEasyXLS.BIFF_Records.SheetStream
-