Abstract base class for all shapes (atomic or compound) in a worksheet.
Constructors
Section titled "Constructors"WorksheetShape
new WorksheetShape(a: number): WorksheetShape Returns WorksheetShape
Properties
Section titled "Properties"$t: Type bottomRightCornerCell
Section titled "bottomRightCornerCell"bottomRightCornerCell: WorksheetCell bottomRightCornerPosition
Section titled "bottomRightCornerPosition"bottomRightCornerPosition: IgPoint fill: ShapeFill flippedHorizontally
Section titled "flippedHorizontally"flippedHorizontally: boolean flippedVertically
Section titled "flippedVertically"flippedVertically: boolean outline
Section titled "outline"outline: ShapeOutline positioningMode
Section titled "positioningMode"positioningMode: ShapePositioningMode topLeftCornerCell
Section titled "topLeftCornerCell"topLeftCornerCell: WorksheetCell topLeftCornerPosition
Section titled "topLeftCornerPosition"topLeftCornerPosition: IgPoint visible
Section titled "visible"visible: boolean Accessors
Section titled "Accessors"sheet
Section titled "sheet"Gets the worksheet on which the shape resides. The worksheet on which the shape resides.
get sheet(): Sheet Returns Sheet
worksheet
Section titled "worksheet"Gets the worksheet on which the shape resides. The worksheet on which the shape resides.
get worksheet(): Worksheet Returns Worksheet
Methods
Section titled "Methods"clearUnknownData
Section titled "clearUnknownData"Clears the cached unknown shape data which was read in from a parsed excel file.
clearUnknownData(): void Returns void
getBoundsInTwips
Section titled "getBoundsInTwips"Gets the bounds of the shape in twips (1/20th of a point).
getBoundsInTwips(): IgRect Returns IgRect
setBoundsInTwips
Section titled "setBoundsInTwips"Sets the bounds of the shape in twips (1/20th of a point).
setBoundsInTwips(sheet: Sheet, bounds: IgRect): void Parameters
- sheet:
SheetThe worksheet on which the shape should be placed.
- bounds:
IgRectThe new bounds where the shape should be placed.
Returns void
createPredefinedShape
Section titled "createPredefinedShape"Creates a shape which is predefined in Microsoft Excel.
createPredefinedShape(shapeType: PredefinedShapeType): WorksheetShape Parameters
- shapeType:
PredefinedShapeTypeThe type of shape to create.
Returns WorksheetShape
staticInit
Section titled "staticInit"staticInit(): void