|
ActiveXLS v6.4.0 API Documentation | ||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | CONST | CONSTR | METHOD | DETAIL: CONST | CONSTR | METHOD | ||||||||||
System.ObjectActiveXLS.ExcelComment
This class stores the comment information extends text, font name, font size, font style, foreground and comment position.
| Constructor Summary | |
ExcelComment()
Defines an instance of the Excel comment. |
|
ExcelComment(System.String text)
Defines an instance of the Excel comment having the specified text. |
|
ExcelComment(System.String text,
int width,
int height)
Defines an instance of the Excel comment having the specified text and size. |
|
ExcelComment(System.String text,
System.String fontName,
int fontSize,
bool isBold,
bool isItalic,
System.Drawing.Color foreground)
Defines an instance of the Excel comment having the specified text and font settings. |
|
| Method Summary | |
ExcelComment |
Clone()
Creates and returns a copy of this object. |
System.String |
getFont()
Returns the font name of the comment text. |
int |
getFontSize()
Returns the font size of the comment text. |
System.Drawing.Color |
getForeground()
Returns the foreground of the comment text. |
int |
getHeight()
Returns the comment height. |
int |
getHorizontalOffset()
Returns the comment horizontal offset (the distance - in pixels - between the left border of the left upper corner cell to the left border of the comment). |
int |
getLeftUpperCornerColumn()
Returns the column number where the left upper corner of the comment is anchored |
int |
getLeftUpperCornerRow()
Returns the row number where the left upper corner of the comment is anchored |
System.String |
getText()
Returns the text of the comment. |
int |
getUnderlineStyle()
Returns the underline style of the comment text. |
int |
getVerticalOffset()
Returns the comment vertical offset (the distance - in pixels - between the top border of the left upper corner cell to the top border of the comment). |
int |
getWidth()
Returns the comment width. |
bool |
IsBold()
Returns the bold setting of the comment text. |
bool |
IsItalic()
Returns the italic setting of the comment text. |
void |
setBold(bool isBold)
Sets the bold option of the comment text. |
void |
setFont(System.String fontName)
Sets the font name of the comment text. |
void |
setFontSize(int fontSize)
Sets the font size of the comment text. |
void |
setForeground(System.Drawing.Color color)
Sets the foreground of the comment text. |
void |
setItalic(bool isItalic)
Sets the italic option of the comment text. |
void |
setLeftUpperCorner(int row,
int column)
Sets the left upper corner of the comment. |
void |
setLeftUpperCorner(System.String cellReference)
Sets the left upper corner of the comment. |
void |
setLeftUpperOffset(int horizontalOffset,
int verticalOffset)
Sets the left upper corner offsets of the comment. |
void |
setSize(int commentWidth,
int commentHeight)
Sets the comment size. |
void |
setText(System.String text)
Sets the text of the comment. |
void |
setUnderlineStyle(int underlineStyle)
Sets the underline style of the comment text. |
| Constructor Detail |
public ExcelComment()
public ExcelComment(System.String text)
text - the text of the comment
public ExcelComment(System.String text,
int width,
int height)
text - the text of the commentwidth - the comment widthheight - the comment height
public ExcelComment(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 text| Method Detail |
public System.String getText()
setText(System.String)public void setText(System.String text)
text - the text of the commentgetText()
public void setLeftUpperCorner(int row,
int column)
row - the row number where the left upper corner of the comment is anchoredcolumn - the column number where the left upper corner of the comment is anchoredsetLeftUpperCorner(String),
setLeftUpperCorner(int,int),
setLeftUpperOffset(int, int),
setSize(int, int),
getLeftUpperCornerRow(),
getLeftUpperCornerColumn()public void setLeftUpperCorner(System.String cellReference)
cellReference - the cell reference where the left upper corner of the comment is anchoredsetLeftUpperCorner(String),
setLeftUpperCorner(int,int),
setLeftUpperOffset(int, int),
setSize(int, int),
getLeftUpperCornerRow(),
getLeftUpperCornerColumn()public int getLeftUpperCornerRow()
setLeftUpperOffset(int, int),
setSize(int, int),
getLeftUpperCornerColumn()public int getLeftUpperCornerColumn()
setLeftUpperOffset(int, int),
setSize(int, int),
getLeftUpperCornerRow()
public void setLeftUpperOffset(int horizontalOffset,
int verticalOffset)
horizontalOffset - the distance from the left border of the cell to the left border of the commentverticalOffset - the distance from the top border of the cell to the top border of the commentsetLeftUpperCorner(String),
setLeftUpperCorner(int,int),
setSize(int, int)
public void setSize(int commentWidth,
int commentHeight)
commentWidth - the comment widthcommentHeight - the comment heightsetLeftUpperCorner(String),
setLeftUpperCorner(int,int),
setLeftUpperOffset(int, int)public int getHeight()
setSize(int, int),
setLeftUpperCorner(String),
setLeftUpperCorner(int,int),
getWidth()public int getWidth()
setSize(int, int),
setLeftUpperCorner(String),
setLeftUpperCorner(int,int),
getHeight()public int getHorizontalOffset()
setLeftUpperOffset(int, int),
setSize(int, int),
getVerticalOffset()public int getVerticalOffset()
setLeftUpperOffset(int, int),
setSize(int, int),
getHorizontalOffset()public System.String getFont()
setFont(System.String)public void setFont(System.String fontName)
fontName - the font name of the comment textgetFont()public int getFontSize()
setFontSize(int)public void setFontSize(int fontSize)
fontSize - the font size of the comment textgetFontSize()public System.Drawing.Color getForeground()
setForeground(System.Drawing.Color)public void setForeground(System.Drawing.Color color)
color - the foreground of the comment textgetForeground()public bool IsBold()
setBold(bool)public void setBold(bool isBold)
isBold - the bold option of the comment textIsBold()public bool IsItalic()
setItalic(bool)public void setItalic(bool isItalic)
isItalic - the italic option of the comment textIsItalic()public int getUnderlineStyle()
FontSettings class.
setUnderlineStyle(int)public void setUnderlineStyle(int underlineStyle)
FontSettings class.
underlineStyle - underline style of the comment textgetUnderlineStyle()public ExcelComment Clone()
|
Copyright 2009 On Time Computing Solutions | ||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | CONST | CONSTR | METHOD | DETAIL: CONST | CONSTR | METHOD | ||||||||||