WordProcessor accessor and releaser methods

The WordProcessor class defines several accessor methods that return references to objects contained in a WordProcessor document. These methods take an object name and return a reference to that object. All objects contained in a WordProcessor document have either user-assigned or system-generated names. To access an object name, call the Enumerator method for the appropriate object type. The Enumerator method returns a list of the names of objects of the designated type that are contained in the document. Conversely, once you have a reference to an object, you can get its name by calling getName().

WordProcessor also defines a parallel set of releaser methods that remove object references when you are done with them.

Following is a list of the accessor and releaser methods:

/*  ParagraphStyle */
WPParagraphStyle  findParagraphStyle(String name)
boolean  deleteParagraphStyle(String name)
/*  WPTable */
WPTable  findTable(String name)
boolean  deleteTable(String name)
/*  WPImage */
WPImage  findImage(String name)
boolean  deleteImage(String name)
/*  WPClickHere */
WPClickHere  findClickHere(String name)
boolean  deleteClickHere(String name)
/*  WPPageLayout */
WPPageLayout  findPageLayout(String name)	/* Currenlty, there is one page layout. */
boolean  deletePageLayout(String name)
/*  WPDate */
WPDate  findDate(String name)
boolean  deleteDate(String name)
/*  WPHorizontalLine */
WPHorizontalLine  findHorizontalLine(String name)
boolean  deleteHorizontalLine(String name)
/*  WPMarker */
WPMarker  findMarker(String name)
boolean  deleteMarker(String name)
/*  WPLink */
WPLink  findLink(String name)
boolean  deleteLink(String name)
/*  WPBookmark */
WPBookmark  findBookmark(String name)
boolean  deleteBookmark(String name)

See also
WordProcessor Enumerator methods
WordProcessor API Index
WordProcessor home page