Namespace EasyXLS.Drawings
Class DrawingObject2D
System.Object
EasyXLS.Drawings.DrawingObject
EasyXLS.Drawings.LineDrawingObject
EasyXLS.Drawings.FillDrawingObject
EasyXLS.Drawings.DrawingObject2D
- Direct Known Subclasses:
ExcelChart
,ExcelComment
,ExcelImage
A drawing is a graphical object that can be included inside an Excel worksheet, like shapes, images, textboxes, comments or charts. This class
stores the drawing shape and the row and column location.
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionint
Returns the column number where the left upper corner of the drawing object is anchored
This method is applicable only to adding drawing objects to an ExcelWorksheet
int
Returns the row number where the left upper corner of the drawing object is anchored
This method is applicable only to adding drawing objects to an ExcelWorksheet
void
setLeftUpperCorner(int row, int column)
Sets the left upper corner of the drawing object
This method is applicable only to adding drawing objects to an ExcelWorksheet
void
setLeftUpperCorner(System.String cellReference)
Sets the left upper corner of the drawing object
This method is applicable only to adding drawing objects to an ExcelWorksheet
This method is overridden as setLeftUpperCorner_2 in COM+ version of EasyXLS.
Methods inherited from class EasyXLS.Drawings.FillDrawingObject
getFillFormat, setFillFormat
Methods inherited from class EasyXLS.Drawings.LineDrawingObject
getLineColorFormat, getLineStyleFormat, getShadowFormat, setLineColorFormat, setLineStyleFormat, setShadowFormat
Methods inherited from class EasyXLS.Drawings.DrawingObject
getHeight, getHorizontalOffset, getRelativeHeight, getRelativeHorizontalOffset, getRelativeVerticalOffset, getRelativeWidth, getVerticalOffset, getWidth, setLeftUpperOffset, setRelativeLeftUpperOffset, setRelativeSize, setSize
Methods inherited from class System.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
-
Constructor Details
-
DrawingObject2D
public DrawingObject2D()Defines an instance of the drawing shape.
-
-
Method Details
-
setLeftUpperCorner
public void setLeftUpperCorner(int row, int column)Sets the left upper corner of the drawing object
This method is applicable only to adding drawing objects to an ExcelWorksheet
- Parameters:
row
- the row number where the left upper corner of the object is anchoredcolumn
- the column number where the left upper corner of the object is anchored- See Also:
setLeftUpperCorner(String)
,DrawingObject.setLeftUpperOffset(int, int)
,DrawingObject.setSize(int, int)
,getLeftUpperCornerRow()
,getLeftUpperCornerColumn()
-
setLeftUpperCorner
public void setLeftUpperCorner(System.String cellReference)Sets the left upper corner of the drawing object
This method is applicable only to adding drawing objects to an ExcelWorksheet
This method is overridden as setLeftUpperCorner_2 in COM+ version of EasyXLS.
- Parameters:
cellReference
- the cell reference where the left upper corner of the object is anchored- See Also:
setLeftUpperCorner(int,int)
,DrawingObject.setLeftUpperOffset(int, int)
,DrawingObject.setSize(int, int)
,getLeftUpperCornerRow()
,getLeftUpperCornerColumn()
-
getLeftUpperCornerRow
public int getLeftUpperCornerRow()Returns the row number where the left upper corner of the drawing object is anchored
This method is applicable only to adding drawing objects to an ExcelWorksheet
- Returns:
- the row number where the left upper corner of the drawing object is anchored
- See Also:
DrawingObject.setLeftUpperOffset(int, int)
,DrawingObject.setSize(int, int)
,getLeftUpperCornerColumn()
-
getLeftUpperCornerColumn
public int getLeftUpperCornerColumn()Returns the column number where the left upper corner of the drawing object is anchored
This method is applicable only to adding drawing objects to an ExcelWorksheet
- Returns:
- the column number where the left upper corner of the drawing object is anchored
- See Also:
DrawingObject.setLeftUpperOffset(int, int)
,DrawingObject.setSize(int, int)
,getLeftUpperCornerRow()
-