Top   Module   Use   Manual   Index 
 EXPORTING SERVICES | METHODS' SUMMARY | METHODS' DETAILS 

com :: sun :: star :: text ::

interface XTextContent

Base Interface
com::sun::star::lang::XComponent



Known Services which Export this Interface

com::sun::star::text::ReferenceMark is used for cross references in text documents.
com::sun::star::text::TextContent is an object which can be anchored in a text, like instances of TextFrame or TextFields .

Methods' Summary

attach is called when this object gets embedded in a text.
getAnchor

Methods' Details

attach
 
void
attach(
[ in ] com::sun::star::text::XTextRange xTextRange )
raises ( com::sun::star::lang::IllegalArgumentException );

Description
is called when this object gets embedded in a text.

This acts like a multi-phase construction, thus the object may be invalid until it is attached to a text position. In general, this method is called from within .

Both text objects and text content objects may only be connected to each other if they are created by the same component. When implementing new components, this behaviour is deprecated.

getAnchor
 
com::sun::star::text::XTextRange
getAnchor();
Returns
the text range to which the content is attached.

Top of Page