[]
Represents an object in the drawing layer, such as an AutoShape, chart, or picture. The Shape object is a member of the IShapes collection. The Shapes collection contains all the shapes on a slide.
public interface IShape : IContainer
Gets a collection of adjustment values for the specified AutoShape or connector.
IAdjustments Adjustments { get; }
Returns or sets the shape type for the specified IShape object, which must represent an AutoShape other than a line, freeform drawing, or connector.
AutoShapeType AutoShapeType { get; set; }
Returns the IRange object that represents the cell that lies under the lower-right corner of the object.
IRange BottomRightCell { get; }
Returns an object that represents the IChart contained in this shape.
IChart Chart { get; }
Gets whether the specified shape is a connector.
bool Connector { get; }
Returns the IConnectorFormat object that contains connector formatting properties. Applies to IShape objects that represent connectors.
IConnectorFormat ConnectorFormat { get; }
Gets the associated control.
IControl Control { get; }
The associated control. null (Nothing) if the shape is not a control.
Returns the IFillFormat object that contains fill formatting properties for the specified chart or shape.
IFillFormat Fill { get; }
Gets or sets the formula of the current shape.
string Formula { get; set; }
Returns the IGroupShapes object that represents the individual shapes in the specified group. Use the indexer of IGroupShapes to return a single shape from the group.
IGroupShapes GroupItems { get; }
Returns information if the IShape contains a chart.
bool HasChart { get; }
Returns a Hyperlink object that represents the hyperlink for the shape.
IHyperlink Hyperlink { get; }
Determines whether the object should be printed.
bool IsPrintable { get; set; }
Returns the ILineFormat object that contains line formatting properties for the specified shape.
ILineFormat Line { get; }
Gets or sets whether the object is locked (True if the object is locked, False if the object can be modified when the sheet is protected, read or write Boolean).
bool Locked { get; set; }
Returns or sets the name of the object.
string Name { get; set; }
Gets the shape's parent sheet.
IWorksheet Parent { get; }
Returns the IShape object that represents the common parent shape of a child shape or a range of child shapes.
IShape ParentGroup { get; }
Returns the IPictureFormat object that contains picture formatting properties for the specified shape.
IPictureFormat PictureFormat { get; }
Returns or sets the way the object is attached to the cells below it (read or write Placement).
Placement Placement { get; set; }
Returns or sets the rotation of the shape in degrees.
double Rotation { get; set; }
Returns the ITextFrame object that contains the text and font style properties for the specified shape.
ITextFrame TextFrame { get; }
Returns the IThreeDFormat object that contains 3-D – effect formatting properties for the specified shape.
IThreeDFormat ThreeD { get; }
Gets or sets the title of the alternative text associated with the specified shape.
string Title { get; set; }
Returns the IRange object that represents the cell that lies under the upper-left corner of the specified object.
IRange TopLeftCell { get; }
Returns the shape type.
ShapeType Type { get; }
Determines whether the object is visible.
bool Visible { get; set; }
Returns the position of the specified shape in the z-order.
int ZOrderPosition { get; }
Deletes the object.
void Delete()
Duplicates the shape and returns a reference to the new copy.
IShape Duplicate()
Generate a new shape from the json string.
void FromJson(string json)
json
stringthe json string represents a shape
Saves the shape to the specified image stream using options.
void ToImage(Stream stream, ImageType imageType, ImageSaveOptions options)
stream
System.IO.StreamThe output image stream.
imageType
ImageTypeSpecifies the type of image to create.
options
ImageSaveOptionsThe options for output image.
Saves the shape to the specified image stream.
void ToImage(Stream stream, ImageType imageType)
stream
System.IO.StreamThe output image stream.
imageType
ImageTypeSpecifies the type of image to create.
Saves the shape to the specified image file using options.
void ToImage(string fileName, ImageSaveOptions options)
fileName
stringThe output image file.
options
ImageSaveOptionsThe options for output image.
Saves the shape to the specified image file.
void ToImage(string fileName)
fileName
stringThe output image file.
Generates a json string from the shape.
string ToJson()
the json string
Ungroups any grouped shapes in the specified shape or range of shapes. Disassembles pictures and OLE objects within the specified shape or range of shapes.
IShapeRange Ungroup()
A ShapeRange object that represents the ungrouped shapes.
Moves the specified shape in front of or behind other shapes in the collection (that is, changes the shape's position in the z-order).
void ZOrder(ZOrderType zOrderType)
zOrderType
ZOrderTypeRequired GrapeCity.Documents.Excel.Drawing.ZOrderType. Specifies where to move the specified shape relative to the other shapes.