Click or drag to resize

IShape Interface

Defines the contract for a shape, which can be implemented by various geometric shapes.

Namespace: Spire.Xls.Core
Assembly: Spire.XLS (in Spire.XLS.dll) Version: 15.4.0.0 (15.4.0.5046)
Syntax
public interface IShape : IExcelApplication

The IShape type exposes the following members.

Properties
Name Description
Public property AlternativeText
Returns or sets the descriptive (alternative) text string for a Shape object.
Public property Fill
Gets the fill style of the shape.
Public property Glow
Gets the glow effect applied to the object.
Public property Height
The height of the object. Read/write Integer
Public property HtmlString
Gets and sets the html string which contains data and some formattings in this shape.
Public property ID
Returns the type for the specified object. Read-only Integer.
Public property IsLockAspectRatio
True means that don't allow changes in aspect ratio.
Public property IsLocked
True if the object is locked, False if the object can be modified when the sheet is protected.
Public property IsPrintable
True if the object is printable
Public property IsSmartArt
Gets a value indicating whether the object is a SmartArt graphic.
Public property Left
The distance from the left edge of the object to the left edge of column A (on a worksheet) or the left edge of the chart area (on a chart). Read/write Integer.
Public property Line
Returns the border line object of a shape.
Public property LinkedCell
Gets or sets the range linked to the shape's value.
Public property Name
Returns or sets the name of the object. Read/write String.
Public property OnAction
Gets or sets the action to be performed.
Public property Parent
Gets the parent object of the current instance.
(Inherited from IExcelApplication .)
Public property Reflection
Gets the reflection effect applied to the shape.
Public property ResizeBehave
Specifies all possible settings for how drawing object shall be resized when the rows and columns between its start and ending anchor are resized or inserted(ComboBoxShape and CheckBoxShape and RadioButtonShape set MoveAndResize type value is invalid)
Public property Rotation
Returns or sets the rotation of the shape, in degrees.
Public property Shadow
Gets the shadow settings for the object.
Public property ShapeType
The shape type of the object.
Public property TextFrame
Gets the text frame associated with the object.
Public property ThreeD
Gets the 3D formatting options for the object.
Public property Top
The distance from the top edge of the topmost shape in the shape range to the top edge of the worksheet. Read/write Integer.
Public property Visible
Determines whether the object is visible.
Public property Width
The width of the object. Read/write Integer.
Top
Methods
Name Description
Public method Remove
Removes this shape from shapes collection.
Public method Scale
Scales the shape.
Top
See Also