service TextFrame in module com::sun::star::text:: |
service TextFrame;
specifies a rectangular shape which contains a Text object and is attached to a piece of surrounding Text .
This example shows how to create a TextFrame and insert it at the very beginning of Text component. The macro is ready to run, if it is a script within a text document.
Sub Main oFrame = ThisComponent.createInstance( "com.sun.star.text.TextFrame" ) oFrame.Width = 6000 ThisComponent.Text.insertTextContent( ThisComponent.Text.Start, oFrame, false ) oFrame.Text.String = "Hello, this text is within the frame." End Sub
Included Services |
contains the definition of interfaces and properties that are supported by text frames, graphic objects and embeddedobjects.
Exported Interfaces |
This interface makes it possible to access the text within this text frame.
Property Summary |
|
FrameHeightAbsolute | contains the metric height value of the frame. |
FrameWidthAbsolute | contains the metric width value of the frame. |
FrameWidthPercent | specifies a width relative to the width of the surrounding text. |
FrameHeightPercent | specifies a width relative to the width of the surrounding text. |
FrameIsAutomaticHeight | If "AutomaticHeight" is set, then the object grows if it is required by the frame content. |
SizeType | determines the interpretation of the height and relative height properties. |
Property Details |
|||||||
|
Copyright 2002 Sun Microsystems, Inc., 901 San Antonio Road, Palo Alto, CA 94303 USA.