Shape Class

Represents a shape on a slide.
Inheritance Hierarchy

Namespace:  Aspose.Slides
Assembly:  Aspose.Slides (in Aspose.Slides.dll) Version: 20.3.0.0 (20.3)
Syntax
public class Shape : IShape, ISlideComponent, 
	IPresentationComponent, IHyperlinkContainer

The Shape type exposes the following members.

Properties
  NameDescription
Public propertyAlternativeText
Returns or sets the alternative text associated with a shape. Read/write String.
Public propertyAlternativeTextTitle
Returns or sets the title of alternative text associated with a shape. Read/write String.
Public propertyBlackWhiteMode
Property specifies how a shape will render in black-and-white display mode.. Read/write BlackWhiteMode.
Public propertyConnectionSiteCount
Returns the number of connection sites on the shape. Read-only Int32.
Public propertyCustomData
Returns the shape's custom data. Read-only ICustomData.
Public propertyEffectFormat
Returns the EffectFormat object which contains pixel effects applied to a shape. Note: can return null for certain types of shapes which don't have effect properties. Read-only IEffectFormat.
Public propertyFillFormat
Returns the FillFormat object that contains fill formatting properties for a shape. Note: can return null for certain types of shapes which don't have fill properties. Read-only IFillFormat.
Public propertyFrame
Returns or sets the shape frame's properties. Read/write IShapeFrame.
Public propertyHeight
Returns or sets the height of the shape. Read/write Single.
Public propertyHidden
Determines whether the shape is hidden. Read/write Boolean.
Public propertyHyperlinkClick
Returns or sets the hyperlink defined for mouse click. Read/write IHyperlink.
Public propertyHyperlinkManager
Returns the hyperlink manager. Read-only IHyperlinkManager.
Public propertyHyperlinkMouseOver
Returns or sets the hyperlink defined for mouse over. Read/write IHyperlink.
Public propertyIsGrouped
Determines whether the shape is grouped. Read-only Boolean.
Public propertyIsTextHolder
Determines whether the shape is TextHolder_PPT. Read-only Boolean.
Public propertyLineFormat
Returns the LineFormat object that contains line formatting properties for a shape. Note: can return null for certain types of shapes which don't have line properties. Read-only ILineFormat.
Public propertyName
Returns or sets the name of a shape. Must be not null. Use empty string value if needed. Read/write String.
Public propertyOfficeInteropShapeId
Gets unique shape identifier in slide scope. Read-only UInt32. See also UniqueId for getting unique shape identifier in presentation scope.
Public propertyParentGroup
Returns parent GroupShape object if shape is grouped. Otherwise returns null. Read-only IGroupShape.
Public propertyPlaceholder
Returns the placeholder for a shape. Returns null if the shape has no placeholder. Read-only IPlaceholder.
Public propertyPresentation
Returns the parent presentation of a slide. Read-only IPresentation.
Public propertyRawFrame
Returns or sets the raw shape frame's properties. Read/write IShapeFrame.
Public propertyRotation
Returns 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 propertyShapeLock
Returns shape's locks. Read-only IBaseShapeLock.
Public propertySlide
Returns the parent slide of a shape. Read-only IBaseSlide.
Public propertyThreeDFormat
Returns the ThreeDFormat object that 3d effect properties for a shape. Note: can return null for certain types of shapes which don't have 3d properties. Read-only IThreeDFormat.
Public propertyUniqueId
Gets unique shape identifier in presentation scope. Read-only UInt32. See also OfficeInteropShapeId for getting unique shape identifier in slide scope.
Public propertyWidth
Returns or sets the width of the shape. Read/write Single.
Public propertyX
Returns or sets the x-coordinate of the upper-left corner of the shape. Read/write Single.
Public propertyY
Returns or sets the y-coordinate of the upper-left corner of the shape. Read/write Single.
Public propertyZOrderPosition
Returns 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-only Int32.
Methods
  NameDescription
Public methodAddPlaceholder
Adds a new placeholder if there is no and sets placeholder properties to a specified one.
Public methodCreateEffectFormatEffective Obsolete.
Creates the EffectFormatEffectiveData object that contains all effects applyed to a shape, included inherited.
Public methodCreateFillFormatEffective Obsolete.
Creates the FillFormatEffectiveData object that contains all fill formatting properties for a shape, included inherited.
Public methodCreateLineFormatEffective Obsolete.
Creates the LineFormatEffectiveData object that contains all line formatting properties for a shape, included inherited.
Public methodCreateThreeDFormatEffective Obsolete.
Creates the ThreeDFormatEffectiveData object that contains volume properties and 3D transformation of a shape, included inherited.
Public methodEquals (Inherited from Object.)
Protected methodFinalize (Inherited from Object.)
Public methodGetHashCode (Inherited from Object.)
Public methodGetThumbnail
Returns shape thumbnail. ShapeThumbnailBounds.Shape shape thumbnail bounds type is used by default.
Public methodGetThumbnail(ShapeThumbnailBounds, Single, Single)
Returns shape thumbnail.
Public methodGetType (Inherited from Object.)
Protected methodMemberwiseClone (Inherited from Object.)
Public methodRemovePlaceholder
Defines that this shape isn't a placeholder.
Public methodToString (Inherited from Object.)
Public methodWriteAsSvg(Stream)
Saves content of Shape as SVG file.
Public methodWriteAsSvg(Stream, ISVGOptions)
Saves content of Shape as SVG file.
Fields
  NameDescription
Protected fieldm_fillFormat
Protected fieldm_lineFormat
See Also