Click or drag to resize

Shape Class

Represents a shape on a slide.
Inheritance Hierarchy

Namespace: Spire.Presentation
Assembly: Spire.Presentation (in Spire.Presentation.dll) Version: 10.4.2.0 (10.4.2.6046)
Syntax
public class Shape : PptObject, IActiveSlide, 
	IActivePresentation, IShape

The Shape type exposes the following members.

Properties
Name Description
Public property AlternativeText
Gets or sets the alternative text associated with a shape. Read/write String .
Public property AlternativeTitle
Gets or sets the alternative title associated with a shape. Read/write String
Public property Click
Gets or sets the hyperlink defined for mouse click. Read/write ClickHyperlink .
Public property DrawIndicatedShape
Public property EffectDag
Gets the EffectDag object which contains pixel effects applied to a shape. Read-only EffectDag
Public property Fill
Gets the FillFormat object that contains fill formatting properties for a shape. Read-only Fill . Note: can return null for certain types of shapes which don't have fill properties.
Public property Frame
Gets or sets the shape frame's properties. Read/write GraphicFrame .
Public property Height
Gets or sets the height of the shape. Read/write Int32 .
Public property Id
Public property IsHidden
Indicates whether the shape is hidden. Read/write Boolean .
Public property IsPlaceholder
Indicates whether the shape is Placeholder. Read-only Boolean .
Public property IsTextBox
Indicates whether the shape is TextBox. Read-only Boolean .
Public property Left
Gets or sets the x-coordinate of the upper-left corner of the shape. Read/write Int32 .
Public property Line
Gets the LineFormat object that contains line formatting properties for a shape. Read-only Line .
Public property MouseOver
Gets or sets the hyperlink defined for mouse over. Read/write ClickHyperlink .
Public property Name
Gets or sets the name of a shape. Read/write String .
Public property Parent
Gets the parent slide of a shape. Read-only ActiveSlide .
Public property Placeholder
Gets the placeholder for a shape. Read-only Placeholder .
Public property Presentation
Protected property ReferenceCount (Inherited from PptObject .)
Public property Rotation
Gets or sets the number of degrees the specified shape is rotated around the z-axis. A positive value indicates clockwise rotation; a negative value indicates counterclockwise rotation. Read/write Single .
Public property Slide
Gets the parent slide of a shape. Read-only ActiveSlide .
Public property TagsList
Gets the shape's tags collection. Read-only TagCollection .
Public property ThreeD
Gets the FormatThreeD object that 3d effect properties for a shape. Read-only FormatThreeD .
Public property Top
Gets or sets the y-coordinate of the upper-left corner of the shape. Read/write Int32 .
Public property Width
Gets or sets the width of the shape. Read/write Int32 .
Public property ZOrderPosition
Gets or sets the position of a shape in the z-order. Shapes[0] returns the shape at the back of the z-order, and Shapes[Shapes.Count - 1] returns the shape at the front of the z-order. Read/Write Int32 .
Top
Methods
Name Description
Protected method AddReference (Inherited from PptObject .)
Protected method CheckDisposed (Inherited from PptObject .)
Public method Dispose
Dispose object and free resources.
(Inherited from PptObject .)
Public method Equals (Overrides Object Equals(Object) .)
Protected method Finalize (Inherited from PptObject .)
Protected method FindParent(Type) (Inherited from PptObject .)
Protected method FindParent( Type ) (Inherited from PptObject .)
Protected method FindParent(Type, Boolean) (Inherited from PptObject .)
Protected method FindParents (Inherited from PptObject .)
Public method GetHashCode
Serves as the default hash function.
(Inherited from Object .)
Public method GetType
Gets the Type of the current instance.
(Inherited from Object .)
Public method InsertChart
Insert a chart into placeholder shape.
Public method InsertPicture(Stream)
Public method InsertPicture(String)
Insert a picture into placeholder shape.
Public method InsertSmartArt
Insert a smartArt into placeholder shape.
Public method InsertTable
Insert a table into placeholder shape.
Public method InsertVideo
Insert a video into placeholder shape.
Protected method MemberwiseClone
Creates a shallow copy of the current Object .
(Inherited from Object .)
Protected method OnDispose
Method which can be overriden by users to take any specific actions when object is disposed.
(Inherited from PptObject .)
Protected method ReleaseReference (Inherited from PptObject .)
Public method RemovePlaceholder
Removes placeholder from the shape.
Public method ReplaceTextWithRegex
Replace text in shape with regex.
Public method SaveAsImage
Save shape to Image.
Public method SaveAsSvg
Convert a shape to svg file.
Public method SaveAsSvgInSlide
Convert a shape to svg file in canvas with slide size.
Protected method SetParent (Inherited from PptObject .)
Public method SetShapeAlignment
Sets the alignment with a shape.
Public method SetShapeArrange
Sets the arrangement with a shape.
Public method ToString
Returns a string that represents the current object.
(Inherited from Object .)
Top
Fields
See Also