com.spire.doc.fields.shapes
Class Shape

java.lang.Object
  extended by com.spire.doc.OwnerHolder
      extended by com.spire.doc.documents.xml.DocumentSerializable
          extended by com.spire.doc.DocumentObject
              extended by com.spire.doc.DocumentBase
                  extended by com.spire.doc.fields.ParagraphBase
                      extended by com.spire.doc.fields.shapes.ShapeBase
                          extended by com.spire.doc.fields.shapes.Shape
All Implemented Interfaces:
IDocumentObject, IDocumentSerializable, IParagraphBase
Direct Known Subclasses:
ShapeObject

public abstract class Shape
extends ShapeBase


Method Summary
 DocumentObjectType getDocumentObjectType()
          Gets the type of the document object.
 Paragraph getFirstParagraph()
           
 Paragraph getLastParagraph()
           
 boolean hasChart()
          Returns true if this shape has a chart.
 boolean hasImage()
          Returns true if the shape has image bytes or links an image.
 
Methods inherited from class com.spire.doc.fields.shapes.ShapeBase
adjustWithEffects, getAllowOverlap, getAlternativeText, getAspectRatioLocked, getBehindText, getBottom, getChildObjects, getCoordOrigin, getCoordSize, getDistanceBottom, getDistanceLeft, getDistanceRight, getDistanceTop, getFill, getHeight, getHorizontalAlignment, getHorizontalOrigin, getHorizontalPosition, getRight, getRotation, getShapeType, getSize, getTextWrappingStyle, getTextWrappingType, getVerticalAlignment, getVerticalOrigin, getVerticalPosition, getWidth, getWrapType, getZOrder, isHidden, isHidden, isSignatureLine, localToParent, setAllowOverlap, setAlternativeText, setAspectRatioLocked, setBehindText, setCoordOrigin, setCoordSize, setDistanceBottom, setDistanceLeft, setDistanceRight, setDistanceTop, setHeight, setHorizontalAlignment, setHorizontalOrigin, setHorizontalPosition, setRotation, setShapeType, setTextWrappingStyle, setTextWrappingType, setVerticalAlignment, setVerticalOrigin, setVerticalPosition, setWidth, setWrapType, setZOrder
 
Methods inherited from class com.spire.doc.fields.ParagraphBase
applyCharacterFormat, applyStyle, getCharacterFormat, getDeleteRevision, getInsertRevision, getNextWidgetSibling, getOwnerParagraph, getPreviousWidgetSibling, getStyleName, isDeleteRevision, isInsertRevision
 
Methods inherited from class com.spire.doc.DocumentObject
deepClone, getFirstChild, getLastChild, getNextSibling, getOwner, getPreviousSibling, isComposite, prependChild, toString
 
Methods inherited from class com.spire.doc.OwnerHolder
getDocument
 
Methods inherited from interface com.spire.doc.interfaces.IDocumentObject
deepClone, getDocument, getNextSibling, getOwner, getPreviousSibling, isComposite
 

Method Detail

getDocumentObjectType

public DocumentObjectType getDocumentObjectType()
Description copied from class: DocumentObject
Gets the type of the document object.

Specified by:
getDocumentObjectType in interface IDocumentObject
Specified by:
getDocumentObjectType in class DocumentObject
Returns:
The type of the document object.

hasImage

public boolean hasImage()
Returns true if the shape has image bytes or links an image.

Overrides:
hasImage in class ShapeBase

getFirstParagraph

public Paragraph getFirstParagraph()

getLastParagraph

public Paragraph getLastParagraph()

hasChart

public boolean hasChart()
Returns true if this shape has a chart.