|
ActiveXLS v6.4.0 API Documentation | ||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | CONST | CONSTR | METHOD | DETAIL: CONST | CONSTR | METHOD |
System.ObjectActiveXLS.ExcelCell
This class stores the cell information like value, format (font name, font size, font bold, font italic, word wrap, font underline style, font subscript, font superscript, font strikethrough, background color, foreground color, horizontal alignment, vertical alignment, number or date format, cell locked or hidden, shrink, border type, border color) and comment.
Constructor Summary | |
ExcelCell()
Defines an instance of the Excel cell. |
Method Summary | |
ActiveXLS.Formulas.Util.FunctionDataObject |
calculateFormula(ExcelDocument excel,
ExcelWorksheet cellWorksheet,
ExcelWorksheet formulaWorksheet,
int nCellRow,
int nCellColumn,
int nFormulaRow,
int nFormulaColumn,
bool bRecalculate)
Calculates the cell formula if the cell value is a formula |
ExcelCell |
Clone()
Creates and returns a copy of this object. |
bool |
containsFormula()
Returns whether or not the cell contains a formula as value (its value starts with "=" (equal sign)) |
System.Drawing.Color |
getBackground()
Returns the background color of the cell. |
System.Drawing.Color |
getBottomColor_Border()
Returns the color of the bottom border. |
int |
getBottomStyle_Border()
Returns the style of the bottom border. |
ExcelComment |
getComment()
Returns the comment of the cell. |
System.String |
getDataType()
Returns the data type of the cell. |
System.String |
getFont()
Returns the name of the cell font. |
int |
getFontSize()
Returns the size of the cell font. |
System.Drawing.Color |
getForeground()
Returns the foreground color of the cell. |
System.String |
getFormat()
Returns the number/date format of the cell. |
ActiveXLS.Formulas.Util.FunctionDataObject |
getFormulaResult()
Internal use only. |
System.String |
getFormulaResultValue()
Returns the formula result if the cell contains a formula and the formula has been computed |
System.String |
getHorizontalAlignment()
Returns the horizontal alignment of the cell. |
System.String |
getHTMLValue()
Returns the value of the cell containing the tags used to set the rich text format in cells. |
int |
getIndent()
Returns the indent of the cell. |
System.Drawing.Color |
getLeftColor_Border()
Returns the color of the left border. |
int |
getLeftStyle_Border()
Returns the style of the left border. |
int |
getPattern()
Returns the pattern of the cell. |
System.Drawing.Color |
getPatternColor()
Returns the pattern color of the cell. |
System.Drawing.Color |
getRightColor_Border()
Returns the color of the right border. |
int |
getRightStyle_Border()
Returns the style of the right border. |
ExcelStyle |
getStyle()
Returns the style of the cell. |
int |
getTextRotation()
Returns the text rotation of the cell. |
System.Drawing.Color |
getTopColor_Border()
Returns the color of the top border. |
int |
getTopStyle_Border()
Returns the style of the top border. |
int |
getUnderlineStyle()
Returns the underline style of the cell font. |
System.String |
getValue()
Returns the value of the cell. |
System.String |
getVerticalAlignment()
Returns the vertical alignment of the cell. |
int |
getXF()
Internal use only |
bool |
IsArrayFormula()
Returns whether or not the cell formula has been entered as an array formula |
bool |
IsBold()
Returns the bold setting of the cell font. |
bool |
IsHiddenFormula()
Returns the hidden setting of the cell. |
bool |
IsHTMLUsed()
Returns true if the cell contains rich text format. |
bool |
IsItalic()
Returns the italic setting of the cell font. |
bool |
IsLocked()
Returns the locked setting of the cell. |
bool |
IsMergeCell()
Returns the merge cell option of the cell |
bool |
IsShrink()
Returns the shrink setting of the cell. |
bool |
IsStrikethrough()
Returns the strikethrough setting of the cell font. |
bool |
IsSubscript()
Returns the subscript setting of the cell font. |
bool |
IsSuperscript()
Returns the superscript setting of the cell font. |
bool |
IsWrap()
Returns the wrap setting of the cell. |
void |
resetFormulaResult()
|
void |
setBackground(System.Drawing.Color color)
Sets the background color of the cell. |
void |
setBold(bool isBold)
Sets the bold option of the cell font. |
void |
setBorderColors(System.Drawing.Color borderTop,
System.Drawing.Color borderBottom,
System.Drawing.Color borderLeft,
System.Drawing.Color borderRight)
Sets the border colors of the cell. |
void |
setBorderStyles(int borderTop,
int borderBottom,
int borderLeft,
int borderRight)
Sets the border styles of the cell. |
void |
setBottomColor_Border(System.Drawing.Color color)
Sets the color of the bottom border. |
void |
setBottomStyle_Border(int borderStyle)
Sets the style of the bottom border. |
void |
setComment(ExcelComment xlsComment)
Sets the comment of the cell. |
void |
setComment(System.String text)
Sets the comment of the cell having the specified text. |
void |
setComment(System.String text,
int width,
int height)
Sets the comment of the cell having the specified text and size. |
void |
setComment(System.String text,
System.String fontName,
int fontSize,
bool isBold,
bool isItalic,
System.Drawing.Color foreground)
Sets the comment of the cell having the specified text and font settings. |
void |
setDataType(System.String dataType)
Sets the data type of the cell. |
void |
setFont(System.String fontName)
Sets the name of the cell font. |
void |
setFontSize(int fontSize)
Sets the size of the cell font. |
void |
setForeground(System.Drawing.Color color)
Sets the foreground color of the cell. |
void |
setFormat(System.String format)
Sets the number/date format of the cell. |
void |
setHiddenFormula(bool isHidden)
Sets the hidden option of the cell. |
void |
setHorizontalAlignment(System.String horizontalAlignment)
Sets the horizontal alignment of the cell. |
void |
setHTMLValue(System.String value)
Sets the value of the cell using html tags.The html tags are used to set the rich text format in cells. |
void |
setIndent(int indent)
Sets the the indent of the cell. |
void |
setItalic(bool isItalic)
Sets the italic option of the cell font. |
void |
setLeftColor_Border(System.Drawing.Color color)
Sets the color of the left border. |
void |
setLeftStyle_Border(int borderStyle)
Sets the style of the left border. |
void |
setLocked(bool isLocked)
Sets the locked option of the cell. |
void |
setPattern(int pattern)
Sets the pattern of the cell. |
void |
setPatternColor(System.Drawing.Color color)
Sets the pattern color of the cell. |
void |
setRightColor_Border(System.Drawing.Color color)
Sets the color of the right border. |
void |
setRightStyle_Border(int borderStyle)
Sets the style of the right border. |
void |
setShrink(bool isShrink)
Sets the shrink option of the cell. |
void |
setStrikethrough(bool isStrikethrough)
Sets the strikethrough option of the cell font. |
void |
setStyle(ExcelStyle xlsStyle)
Sets the style of the cell. |
void |
setSubscript(bool isSubscript)
Sets the subscript option of the cell font. |
void |
setSuperscript(bool isSuperscript)
Sets the superscript option of the cell font. |
void |
setTextRotation(int textRotation)
Sets the text rotation of the cell. |
void |
setTopColor_Border(System.Drawing.Color color)
Sets the color of the top border. |
void |
setTopStyle_Border(int borderStyle)
Sets the style of the top border. |
void |
setUnderlineStyle(int underlineStyle)
Sets the underline style of the cell font. |
void |
setValue(System.String value)
Sets the value of the cell. |
void |
setVerticalAlignment(System.String verticalAlignment)
Sets the vertical alignment of the cell. |
void |
setWrap(bool isWrap)
Sets the wrap option of the cell. |
void |
setXF(int xfIndex)
Internal use only |
Constructor Detail |
public ExcelCell()
Method Detail |
public ExcelStyle getStyle()
setStyle(ActiveXLS.ExcelStyle)
public void setStyle(ExcelStyle xlsStyle)
xlsStyle
- the style of the cellgetStyle()
public int getFontSize()
setFontSize(int)
public void setFontSize(int fontSize)
fontSize
- the size of the cell fontgetFontSize()
public System.String getFont()
setFont(System.String)
public void setFont(System.String fontName)
fontName
- the name of the cell fontgetFont()
public bool IsWrap()
setWrap(bool)
public void setWrap(bool isWrap)
isWrap
- the wrap option of the cellIsWrap()
public int getUnderlineStyle()
FontSettings
class.
setUnderlineStyle(int)
public void setUnderlineStyle(int underlineStyle)
FontSettings
class.
underlineStyle
- underline style of the cell fontgetUnderlineStyle()
public bool IsStrikethrough()
setStrikethrough(bool)
public void setStrikethrough(bool isStrikethrough)
isStrikethrough
- the strikethrough option of the cell fontIsStrikethrough()
public bool IsSubscript()
setSubscript(bool)
public void setSubscript(bool isSubscript)
isSubscript
- the subscript option of the cell fontIsSubscript()
public bool IsSuperscript()
setSuperscript(bool)
public void setSuperscript(bool isSuperscript)
isSuperscript
- the superscript option of the cell fontIsSuperscript()
public System.Drawing.Color getBackground()
setBackground(System.Drawing.Color)
public void setBackground(System.Drawing.Color color)
color
- the background color of the cellgetBackground()
public System.Drawing.Color getForeground()
setForeground(System.Drawing.Color)
public void setForeground(System.Drawing.Color color)
color
- the foreground color of the cellgetForeground()
public System.String getValue()
setValue(System.String)
public System.String getHTMLValue()
setHTMLValue(System.String)
public void setValue(System.String value)
value
- the value of the cellgetValue()
public void resetFormulaResult()
public void setHTMLValue(System.String value)
value
- the value of the cellgetHTMLValue()
public bool IsArrayFormula()
public bool IsHTMLUsed()
setHTMLValue(System.String)
public ActiveXLS.Formulas.Util.FunctionDataObject getFormulaResult()
setValue(System.String)
public System.String getFormulaResultValue()
public bool IsBold()
setBold(bool)
public void setBold(bool isBold)
isBold
- the bold option of the cell fontIsBold()
public bool IsItalic()
setItalic(bool)
public void setItalic(bool isItalic)
isItalic
- the italic option of the cell fontIsItalic()
public System.String getHorizontalAlignment()
Alignment
class.
setHorizontalAlignment(System.String)
public void setHorizontalAlignment(System.String horizontalAlignment)
Alignment
class.
horizontalAlignment
- the horizontal alignment of the cellgetHorizontalAlignment()
public System.String getVerticalAlignment()
Alignment
class.
setVerticalAlignment(System.String)
public void setVerticalAlignment(System.String verticalAlignment)
Alignment
class.
verticalAlignment
- the vertical alignment of the cellgetVerticalAlignment()
public int getTextRotation()
setTextRotation(int)
public void setTextRotation(int textRotation)
textRotation
- the text rotation of the cellgetTextRotation()
public int getIndent()
setIndent(int)
public void setIndent(int indent)
indent
- the indent of the cell.getIndent()
public int getPattern()
setPattern(int)
public void setPattern(int pattern)
pattern
- the pattern of the cellgetPattern()
public System.Drawing.Color getPatternColor()
setPatternColor(System.Drawing.Color)
public void setPatternColor(System.Drawing.Color color)
color
- the pattern color of the cellgetPatternColor()
public System.String getFormat()
Format
class.
setFormat(System.String)
public void setFormat(System.String format)
Format
class.
format
- the number/date format of the cellgetFormat()
public System.String getDataType()
DataType
class.
setDataType(System.String)
public void setDataType(System.String dataType)
DataType
class.
dataType
- the data type of the cellgetDataType()
public bool IsLocked()
setLocked(bool)
public void setLocked(bool isLocked)
isLocked
- the locked option of the cellIsLocked()
public bool IsMergeCell()
public bool IsShrink()
setShrink(bool)
public void setShrink(bool isShrink)
isShrink
- the shrink option of the cellIsShrink()
public bool IsHiddenFormula()
setHiddenFormula(bool)
public void setHiddenFormula(bool isHidden)
isHidden
- the hidden option of the cellIsHiddenFormula()
public int getXF()
public void setXF(int xfIndex)
public ExcelComment getComment()
setComment(ActiveXLS.ExcelComment)
public void setComment(ExcelComment xlsComment)
xlsComment
- the comment of the cellsetComment(String)
,
setComment(String,int,int)
,
setComment(String,String,int,bool,bool,Color)
,
getComment()
public void setComment(System.String text)
text
- the text of the commentsetComment(ExcelComment)
,
setComment(String,int,int)
,
setComment(String,String,int,bool,bool,Color)
,
getComment()
public void setComment(System.String text, int width, int height)
text
- the text of the commentwidth
- the comment widthheight
- the comment heightsetComment(ExcelComment)
,
setComment(String)
,
setComment(String,String,int,bool,bool,Color)
,
getComment()
public void setComment(System.String text, System.String fontName, int fontSize, bool isBold, bool isItalic, System.Drawing.Color foreground)
text
- the text of the commentfontName
- the font name of the comment textfontSize
- the font size of the comment textisBold
- the bold option of the comment textisItalic
- the italic option of the comment textforeground
- the foreground of the comment textsetComment(ExcelComment)
,
setComment(String)
,
setComment(String,int,int)
,
getComment()
public void setBorderStyles(int borderTop, int borderBottom, int borderLeft, int borderRight)
Border
class.
borderTop
- the border style for the top side of the cellborderBottom
- the border style for the bottom side of the cellborderLeft
- the border style for the left side of the cellborderRight
- the border style for the right side of the cell.getTopStyle_Border()
,
getBottomStyle_Border()
,
getLeftStyle_Border()
,
getRightStyle_Border()
,
setBorderColors(System.Drawing.Color, System.Drawing.Color, System.Drawing.Color, System.Drawing.Color)
public int getTopStyle_Border()
Border
class.
setTopStyle_Border(int)
public void setTopStyle_Border(int borderStyle)
Border
class.
borderStyle
- the style of the top bordergetTopStyle_Border()
public int getBottomStyle_Border()
Border
class.
setBottomStyle_Border(int)
public void setBottomStyle_Border(int borderStyle)
Border
class.
borderStyle
- the style of the bottom bordergetBottomStyle_Border()
public int getLeftStyle_Border()
Border
class.
setLeftStyle_Border(int)
public void setLeftStyle_Border(int borderStyle)
Border
class.
borderStyle
- the style of the left bordergetLeftStyle_Border()
public int getRightStyle_Border()
Border
class.
setRightStyle_Border(int)
public void setRightStyle_Border(int borderStyle)
Border
class.
borderStyle
- the style of the right bordergetRightStyle_Border()
public void setBorderColors(System.Drawing.Color borderTop, System.Drawing.Color borderBottom, System.Drawing.Color borderLeft, System.Drawing.Color borderRight)
borderTop
- the border color for the top side of the cellborderBottom
- the border color for the bottom side of the cellborderLeft
- the border color for the left side of the cellborderRight
- the border color for the right side of the cell.getTopColor_Border()
,
getBottomColor_Border()
,
getLeftColor_Border()
,
getRightColor_Border()
,
setBorderStyles(int, int, int, int)
public System.Drawing.Color getTopColor_Border()
setTopColor_Border(System.Drawing.Color)
public void setTopColor_Border(System.Drawing.Color color)
color
- the color of the top bordergetTopColor_Border()
public System.Drawing.Color getBottomColor_Border()
setBottomColor_Border(System.Drawing.Color)
public void setBottomColor_Border(System.Drawing.Color color)
color
- the color of the bottom bordergetBottomColor_Border()
public System.Drawing.Color getLeftColor_Border()
setLeftColor_Border(System.Drawing.Color)
public void setLeftColor_Border(System.Drawing.Color color)
color
- the color of the left bordergetLeftColor_Border()
public System.Drawing.Color getRightColor_Border()
setRightColor_Border(System.Drawing.Color)
public void setRightColor_Border(System.Drawing.Color color)
color
- the color of the right bordergetRightColor_Border()
public ExcelCell Clone()
public bool containsFormula()
public ActiveXLS.Formulas.Util.FunctionDataObject calculateFormula(ExcelDocument excel, ExcelWorksheet cellWorksheet, ExcelWorksheet formulaWorksheet, int nCellRow, int nCellColumn, int nFormulaRow, int nFormulaColumn, bool bRecalculate)
excel
- - the ExcelDocument that this ExcelCell belongs tocellWorksheet
- - the ExcelWorksheet that this ExcelCell belongs toformulaWorksheet
- - the ExcelWorksheet that the formula belongs tonCellRow
- - the row number of this ExcelCellnCellColumn
- - the column number of this ExcelCellnFormulaRow
- - the row number of the cell that the formula belongs tonFormulaColumn
- - the column number of the cell that the formula belongs tobRecalculate
- - a flag indicating if the cell formula should be recalculated. If the cell formula has never been calculated before, the formula will be processed even if the flag is false.
|
Copyright 2009 On Time Computing Solutions | ||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | CONST | CONSTR | METHOD | DETAIL: CONST | CONSTR | METHOD |