Abstract base class for all shapes (atomic or compound) in a worksheet.
Inheritance
object
Classes that extend this class.
Derived ClassesProperties
Section titled "Properties"BottomRightCornerCell
Section titled "BottomRightCornerCell"Gets or sets the cell where the bottom-right corner of the shape resides.
public WorksheetCell BottomRightCornerCell { get; set; } BottomRightCornerPosition
Section titled "BottomRightCornerPosition"Gets or sets the position in the of the shape's bottom-right corner, expressed in percentages.
public Point BottomRightCornerPosition { get; set; } Gets or sets the fill to use in the background of the shape.
public ShapeFill Fill { get; set; } FlippedHorizontally
Section titled "FlippedHorizontally"Gets or sets the value which indicates whether the shape is flipped horizontally along the vertical center line.
public bool FlippedHorizontally { get; set; } FlippedVertically
Section titled "FlippedVertically"Gets or sets the value which indicates whether the shape is flipped vertically along the horizontal center line.
public bool FlippedVertically { get; set; } Outline
Section titled "Outline"Gets or sets the outline to use for the shape.
public ShapeOutline Outline { get; set; } PositioningMode
Section titled "PositioningMode"Gets or sets the way shapes will be repositioned in excel when cells before or within the shape are resized.
public ShapePositioningMode PositioningMode { get; set; } Sheet
Section titled "Sheet"Gets the worksheet on which the shape resides.
public virtual Sheet Sheet { get; } TopLeftCornerCell
Section titled "TopLeftCornerCell"Gets or sets the cell where the top-left corner of the shape resides.
public WorksheetCell TopLeftCornerCell { get; set; } TopLeftCornerPosition
Section titled "TopLeftCornerPosition"Gets or sets the position in the of the shape's top-left corner, expressed in percentages.
public Point TopLeftCornerPosition { get; set; } Visible
Section titled "Visible"Gets or sets the value indicating whether the shape is visible on the worksheet.
public bool Visible { get; set; } Worksheet
Section titled "Worksheet"Gets the worksheet on which the shape resides.
public Worksheet Worksheet { get; } Methods
Section titled "Methods"ClearUnknownData()
Section titled "ClearUnknownData()"Clears the cached unknown shape data which was read in from a parsed excel file.
public virtual void ClearUnknownData() Returns any
CreatePredefinedShape(PredefinedShapeType)
Section titled "CreatePredefinedShape(PredefinedShapeType)"Creates a shape which is predefined in Microsoft Excel.
public static WorksheetShape CreatePredefinedShape(PredefinedShapeType shapeType) Parameters
- shapeType:
PredefinedShapeType
Returns any
GetBoundsInTwips()
Section titled "GetBoundsInTwips()"Gets the bounds of the shape in twips (1/20th of a point).
public virtual Rect GetBoundsInTwips() Returns any
GetBoundsInTwips(PositioningOptions)
Section titled "GetBoundsInTwips(PositioningOptions)"Gets the bounds of the shape in twips (1/20th of a point).
public virtual Rect GetBoundsInTwips(PositioningOptions options) Parameters
- options:
PositioningOptions
Returns any
SetBoundsInTwips(Sheet, Rect)
Section titled "SetBoundsInTwips(Sheet, Rect)"Sets the bounds of the shape in twips (1/20th of a point).
public void SetBoundsInTwips(Sheet sheet, Rect bounds) Parameters
- sheet:
Sheet - bounds:
Rect
Returns any
SetBoundsInTwips(Sheet, Rect, PositioningOptions)
Section titled "SetBoundsInTwips(Sheet, Rect, PositioningOptions)"Sets the bounds of the shape in twips (1/20th of a point).
public void SetBoundsInTwips(Sheet sheet, Rect bounds, PositioningOptions options) Parameters
- sheet:
Sheet - bounds:
Rect - options:
PositioningOptions