shape-ag凯发旗舰厅



com.spire.presentation
class shape

java.lang.object
  extended by com.spire.presentation.pptobject
      extended by com.spire.presentation.shape
all implemented interfaces:
iactivepresentation, ishape, islidecomponent
direct known subclasses:
groupshape, shapenode

public class shape
extends pptobject
implements islidecomponent, ishape

represents a shape on a slide.


constructor summary
shape()
           
shape(activeslide parent)
           
shape(activeslide parent,  elem)
           
shape(shapecollection parent)
           
shape(shapecollection parent,  esc,  ppt)
           
 
method summary
 java.lang.string getalternativetext()
          gets the alternative text associated with a shape.
 java.lang.string getalternativetitle()
          gets the alternative title associated with a shape.
 clickhyperlink getclick()
          gets the hyperlink defined for mouse click.
 boolean getdrawindicatedshape()
           
 effectdag geteffectdag()
          gets the effectdag object which contains pixel effects applied to a shape.
 fillformat getfill()
          gets the fillformat object that contains fill formatting properties for a shape.
 graphicframe getframe()
          gets the shape frame's properties.
 float getheight()
          gets the height of the shape.
 long getid()
           
 float getleft()
          gets the x-coordinate of the upper-left corner of the shape.
 textlineformat getline()
          gets the lineformat object that contains line formatting properties for a shape.
 clickhyperlink getmouseover()
          gets he hyperlink defined for mouse over.
 java.lang.string getname()
          gets the name of a shape.
 activeslide getparent()
          gets the parent slide of a shape.
 placeholderex getplaceholder()
          gets the placeholder for a shape.
 presentation getpresentation()
          returns the parent presentation of a slide.
 float getrotation()
          gets the number of degrees the specified shape is rotated around the z-axis.
 activeslide getslide()
          gets the parent slide of a shape.
 tagcollection gettagslist()
          gets the shape's tags collection.
 formatthreed getthreed()
          gets the formatthreed object that 3d effect properties for a shape.
 float gettop()
          gets the y-coordinate of the upper-left corner of the shape.
 float getwidth()
          gets he width of the shape.
 int getzorderposition()
          gets the position of a shape in the z-order.
 boolean ishidden()
          indicates whether the shape is hidden.
 void ishidden(boolean value)
           
 boolean isplaceholder()
          indicates whether the shape is placeholder.
 boolean istextbox()
          indicates whether the shape is textbox.
 void removeplaceholder()
          removes placeholder from the shape.
 void setalternativetext(java.lang.string value)
          sets the alternative text associated with a shape.
 void setalternativetitle(java.lang.string value)
          sets the alternative title associated with a shape.
 void setclick(clickhyperlink value)
          sets the hyperlink defined for mouse click.
 void setdrawindicatedshape(boolean value)
           
 void setframe(graphicframe value)
          sets the shape frame's properties.
 void setheight(float value)
          sets the height of the shape.
 void setleft(double value)
          sets the x-coordinate of the upper-left corner of the shape.
 void setmouseover(clickhyperlink value)
          sets he hyperlink defined for mouse over.
 void setname(java.lang.string value)
          sets the name of a shape.
 void setrotation(float value)
          sets the number of degrees the specified shape is rotated around the z-axis.
 void setshapealignment(shapealignmentenum.shapealignment shapealignment)
          sets the alignment with a shape.
 void setshapearrange(shapealignmentenum.shapearrange shapearrange)
          sets the arrangement with a shape.
 void settop(double value)
          sets the y-coordinate of the upper-left corner of the shape.
 void setwidth(float value)
          sets the width of the shape.
 void setzorderposition(int zorderposition)
          sets the position of a shape in the z-order.
 
methods inherited from class com.spire.presentation.pptobject
checkdisposed
 
methods inherited from interface com.spire.presentation.ishape
dispose, getlayoutprototype, insertchart, insertpicture, insertsmartart, inserttable, insertvideo
 
constructor detail

shape

public shape(shapecollection parent)

shape

public shape()

shape

public shape(activeslide parent)

shape

public shape(activeslide parent,
              elem)

shape

public shape(shapecollection parent,
              esc,
              ppt)
method detail

isplaceholder

public boolean isplaceholder()
description copied from interface: ishape
indicates whether the shape is placeholder. read-only .
specified by:
isplaceholder in interface ishape
returns:

istextbox

public boolean istextbox()
indicates whether the shape is textbox. read-only .
specified by:
istextbox in interface ishape
returns:

getplaceholder

public placeholderex getplaceholder()
gets the placeholder for a shape. read-only .
specified by:
getplaceholder in interface ishape
returns:

removeplaceholder

public void removeplaceholder()
removes placeholder from the shape.
specified by:
removeplaceholder in interface ishape

gettagslist

public tagcollection gettagslist()
gets the shape's tags collection. read-only .
specified by:
gettagslist in interface ishape
returns:

getdrawindicatedshape

public boolean getdrawindicatedshape()

setdrawindicatedshape

public void setdrawindicatedshape(boolean value)

getframe

public graphicframe getframe()
gets the shape frame's properties. read/write .
specified by:
getframe in interface ishape
returns:

setframe

public void setframe(graphicframe value)
sets the shape frame's properties. read/write .
specified by:
setframe in interface ishape

getline

public textlineformat getline()
gets the lineformat object that contains line formatting properties for a shape. read-only .
specified by:
getline in interface ishape
returns:

getthreed

public formatthreed getthreed()
gets the formatthreed object that 3d effect properties for a shape. read-only .
specified by:
getthreed in interface ishape
returns:

geteffectdag

public effectdag geteffectdag()
gets the effectdag object which contains pixel effects applied to a shape. read-only
specified by:
geteffectdag in interface ishape
returns:

getfill

public fillformat getfill()
gets 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 .
specified by:
getfill in interface ishape
returns:

getclick

public clickhyperlink getclick()
gets the hyperlink defined for mouse click. read/write .
specified by:
getclick in interface ishape
returns:

setclick

public void setclick(clickhyperlink value)
sets the hyperlink defined for mouse click. read/write .
specified by:
setclick in interface ishape

getmouseover

public clickhyperlink getmouseover()
gets he hyperlink defined for mouse over. read/write .
specified by:
getmouseover in interface ishape
returns:

setmouseover

public void setmouseover(clickhyperlink value)
sets he hyperlink defined for mouse over. read/write .
specified by:
setmouseover in interface ishape

ishidden

public boolean ishidden()
indicates whether the shape is hidden. read/write .
specified by:
ishidden in interface ishape
returns:

ishidden

public void ishidden(boolean value)
specified by:
ishidden in interface ishape

getparent

public activeslide getparent()
gets the parent slide of a shape. read-only .
specified by:
getparent in interface ishape
overrides:
getparent in class pptobject
returns:

getzorderposition

public int getzorderposition()
gets the position of a shape in the z-order.
specified by:
getzorderposition in interface ishape
returns:
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.

setzorderposition

public void setzorderposition(int zorderposition)
sets the position of a shape in the z-order.
specified by:
setzorderposition in interface ishape
parameters:
zorderposition -

getrotation

public float getrotation()
gets the number of degrees the specified shape is rotated around the z-axis. a positive value indicates clockwise rotation; a negative value read/write .
specified by:
getrotation in interface ishape
returns:

setrotation

public void setrotation(float value)
sets the number of degrees the specified shape is rotated around the z-axis. a positive value indicates clockwise rotation; a negative value read/write .
specified by:
setrotation in interface ishape

getleft

public float getleft()
gets the x-coordinate of the upper-left corner of the shape. read/write .
specified by:
getleft in interface ishape
returns:

setleft

public void setleft(double value)
sets the x-coordinate of the upper-left corner of the shape. read/write .
specified by:
setleft in interface ishape

gettop

public float gettop()
gets the y-coordinate of the upper-left corner of the shape. read/write .
specified by:
gettop in interface ishape
returns:

settop

public void settop(double value)
sets the y-coordinate of the upper-left corner of the shape. read/write .
specified by:
settop in interface ishape

getwidth

public float getwidth()
gets he width of the shape. read/write .
specified by:
getwidth in interface ishape
returns:

setwidth

public void setwidth(float value)
sets the width of the shape. read/write .
specified by:
setwidth in interface ishape

getheight

public float getheight()
gets the height of the shape. read/write .
specified by:
getheight in interface ishape
returns:

getid

public long getid()
specified by:
getid in interface ishape

setheight

public void setheight(float value)
sets the height of the shape. read/write .
specified by:
setheight in interface ishape

setshapealignment

public void setshapealignment(shapealignmentenum.shapealignment shapealignment)
sets the alignment with a shape.
specified by:
setshapealignment in interface ishape

setshapearrange

public void setshapearrange(shapealignmentenum.shapearrange shapearrange)
sets the arrangement with a shape.
specified by:
setshapearrange in interface ishape

getalternativetext

public java.lang.string getalternativetext()
gets the alternative text associated with a shape. read/write .
specified by:
getalternativetext in interface ishape
returns:

setalternativetext

public void setalternativetext(java.lang.string value)
sets the alternative text associated with a shape. read/write .
specified by:
setalternativetext in interface ishape

getalternativetitle

public java.lang.string getalternativetitle()
gets the alternative title associated with a shape. read/write
specified by:
getalternativetitle in interface ishape
returns:

setalternativetitle

public void setalternativetitle(java.lang.string value)
sets the alternative title associated with a shape. read/write
specified by:
setalternativetitle in interface ishape

getname

public java.lang.string getname()
gets the name of a shape. read/write .
specified by:
getname in interface ishape
returns:

setname

public void setname(java.lang.string value)
sets the name of a shape. read/write .
specified by:
setname in interface ishape

getslide

public activeslide getslide()
gets the parent slide of a shape. read-only .
specified by:
getslide in interface ishape
specified by:
getslide in interface islidecomponent
returns:

getpresentation

public presentation getpresentation()
returns the parent presentation of a slide. read-only .
specified by:
getpresentation in interface iactivepresentation
specified by:
getpresentation in interface ishape
returns:


网站地图