您的位置:寻梦网首页编程乐园DHTML网页制作完全手册

TextBox Element

Internet Development Index

Defines a text box for a shape.

The following attributes modify a text box.

AttributeDescription
DirectionDefines the direction of the text.
IDDefines a unique identifier for the textbox.
InsetSpecifies inner margin values for textbox text.
InsetModeDefines how an application will allow custom inset values.
Layout-FlowDetermines the flow of the text in the textbox.
MSO-Direction-AltDefines alternate directions for text in textboxes.
MSO-Fit-Shape-To-TextDetermines whether a shape will stretch to fit text.
MSO-Fit-Text-To-ShapeDetermines whether text will stretch to fit a shape.
MSO-Layout-Flow-AltDefines the alternate layout flow for text in a textbox.
MSO-Next-TextboxSpecifies the next textbox in a series.
MSO-RotateDetermines whether text rotates with a rotated shape.
MSO-Text-ScaleDefines the scaling factor for fitting text to shapes.
SingleClickDetermines whether text is selectable with a single click.
V-Text-AnchorDefines the vertical anchoring of text in a textbox.

Remarks

This element must be defined within a Shape element.

The following is the minimum code needed to produce a textbox.

   <v:oval strokecolor="red" fillcolor="yellow
   style="position:relative;top:50;left:50;width:75;height:50">
   <v:textbox>VML</v:textbox>
   </v:oval>

Note that the text displayed in the textbox is enclosed by the TextBox tags. The text inside the tags can be modified by ordinary HTML tags.