Namespace EasyXLS
Class ExcelSheet
System.Object
EasyXLS.BIFF_Records.SheetStream
EasyXLS.ExcelSheet
- Direct Known Subclasses:
ExcelChartSheet,ExcelWorksheet,UnknownSheet
public abstract class ExcelSheet
extends EasyXLS.BIFF_Records.SheetStream
This class simulates a sheet. It can be a worksheet or a chart.
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionabstract ExcelSheetClone()Creates and returns a copy of this object.voidDispose()Disposes any resources that it has allocated.voideasy_addImage(ExcelImage xlsImage) Adds the specified image to the sheet.voideasy_addImage(System.String path) Adds an image that has the specified path to the sheet.
This method is overridden as easy_addImage_2 in COM+ version of EasyXLS.easy_getImage(System.String path) Returns the image that has the specified path.easy_getImageAt(int index) Returns the image from the specified index.voideasy_removeImage(int index) Removes the image from the specified index.voideasy_removeImage(System.String path) Removes the image that has the specified path from the sheet.
This method is overridden as easy_removeImage_2 in COM+ version of EasyXLS.short[]Returns the password hash used to verify the sheet password.System.StringReturns the name of the sheet.System.Drawing.ColorReturns the tab color.Returns the tab color.intgetZoom()Returns the zoom of the sheet.intReturns the number of images in the sheet.boolIsHidden()Returns the hidden option of the sheet.boolReturns the protected option of the sheet.boolReturns the selected option of the sheet.voidsetHashedPassword(System.String hashedPassword) Sets the password hash used to verify the sheet password.voidsetHidden(bool isHidden) Sets the hidden option of the sheet.voidsetProtectionPassword(System.String password) Sets the password to protect the sheet.voidsetSheetName(System.String sheetName) Sets the name of the sheet.voidsetSheetProtected(bool isSheetProtected) Sets the protected option of the sheet.voidsetSheetSelected(bool isSheetSelected) Sets the selected option of the sheet.voidsetTabColor(ThemeColor colorTab) Sets the tab color.
This method is overridden as setTabColor_2 in COM+ version of EasyXLS.voidsetTabColor(System.Drawing.Color colorTab) Sets the tab color.voidsetZoom(int zoom) Sets the zoom of the sheet.Methods inherited from class EasyXLS.BIFF_Records.SheetStream
biffList, BIFFsLength, RestoreDefaultsMethods inherited from class System.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
-
Constructor Details
-
ExcelSheet
public ExcelSheet()Defines an instance of the sheet.
-
-
Method Details
-
IsSheetSelected
public bool IsSheetSelected()Returns the selected option of the sheet.- Returns:
- true if this ExcelSheet is selected.
- See Also:
-
setSheetSelected
public void setSheetSelected(bool isSheetSelected) Sets the selected option of the sheet.- Parameters:
isSheetSelected- true if the sheet is selected, false otherwise- See Also:
-
setZoom
public void setZoom(int zoom) Sets the zoom of the sheet.- Parameters:
zoom- the zoom of the sheet.- See Also:
-
getZoom
public int getZoom()Returns the zoom of the sheet.- Returns:
- the zoom of the sheet
- See Also:
-
IsSheetProtected
public bool IsSheetProtected()Returns the protected option of the sheet.- Returns:
- true if this ExcelSheet is protected.
- See Also:
-
setSheetProtected
public void setSheetProtected(bool isSheetProtected) Sets the protected option of the sheet.- Parameters:
isSheetProtected- true if the sheet is protected, false otherwise- See Also:
-
setProtectionPassword
public void setProtectionPassword(System.String password) Sets the password to protect the sheet.- Parameters:
password- the password to protect the sheet- See Also:
-
getHashedPassword
public short[] getHashedPassword()Returns the password hash used to verify the sheet password. Internal use only.- Returns:
- the password hash used to verify the sheet password
- See Also:
-
setHashedPassword
public void setHashedPassword(System.String hashedPassword) Sets the password hash used to verify the sheet password. Internal use only.- Parameters:
hashedPassword- the password hash used to verify the sheet password- See Also:
-
IsHidden
public bool IsHidden()Returns the hidden option of the sheet.- Returns:
- true if this ExcelSheet is hidden.
- See Also:
-
setHidden
public void setHidden(bool isHidden) Sets the hidden option of the sheet.- Parameters:
isHidden- true if the sheet is selected, false otherwise- See Also:
-
getSheetName
public System.String getSheetName()Returns the name of the sheet.- Returns:
- the name of the sheet.
- See Also:
-
setSheetName
public void setSheetName(System.String sheetName) Sets the name of the sheet.- Parameters:
sheetName- the name of the sheet- See Also:
-
getTabColor
public System.Drawing.Color getTabColor()Returns the tab color.- Returns:
- the tab color.
- See Also:
-
getTabThemeColor
-
setTabColor
Sets the tab color.
This method is overridden as setTabColor_2 in COM+ version of EasyXLS.- Parameters:
colorTab- the tab color- See Also:
-
setTabColor
public void setTabColor(System.Drawing.Color colorTab) Sets the tab color.- Parameters:
colorTab- the tab color- See Also:
-
easy_addImage
Adds the specified image to the sheet.- Parameters:
xlsImage- the image to be added- See Also:
-
easy_addImage
public void easy_addImage(System.String path) Adds an image that has the specified path to the sheet.
This method is overridden as easy_addImage_2 in COM+ version of EasyXLS.- Parameters:
path- the file path to image file- See Also:
-
easy_removeImage
public void easy_removeImage(int index) Removes the image from the specified index.- Parameters:
index- the index of the image to remove- See Also:
-
easy_removeImage
public void easy_removeImage(System.String path) Removes the image that has the specified path from the sheet.
This method is overridden as easy_removeImage_2 in COM+ version of EasyXLS.- Parameters:
path- the file path to image file- See Also:
-
easy_getImageAt
Returns the image from the specified index.- Parameters:
index- the index of the image to return- Returns:
- the image from the specified index
- See Also:
-
easy_getImage
Returns the image that has the specified path.- Parameters:
path- the file path to image file- Returns:
- the image that has the specified path
- See Also:
-
ImageCount
public int ImageCount()Returns the number of images in the sheet.- Returns:
- the number of images in the sheet
- See Also:
-
Dispose
public void Dispose()Disposes any resources that it has allocated.- Overrides:
Disposein classEasyXLS.BIFF_Records.SheetStream
-
Clone
Creates and returns a copy of this object.- Returns:
- a clone of this instance.
-