<framePr>
(Text Frame Properties)
This element specifies information about the current paragraph with regard to text frames. Text frames are paragraphs of text in a document which are positioned in a separate region or frame in the document, and can be positioned with a specific size and position relative to non-frame paragraphs in the current document.
The first piece of information specified by the <framePr>
element is that the current paragraph is actually part of a text frame in the document. This information is specified simply by the presence of the <framePr>
element in paragraph's properties. If the <framePr>
element is omitted, the paragraph shall not be part of any text frame in the document.
The second piece of information concerns the set of paragraphs which are part of the current text frame in the document. This is determined based on the attributes on the <framePr>
element. If the set of attribute values specified on two adjacent paragraphs is identical, then those two paragraphs shall be considered to be part of the same text frame and rendered within the same frame in the document.
<w:p> <w:pPr> <w:framePr w:w="2191" w:h="811" w:hRule="exact" w:hSpace="180" w:wrap="around" w:vAnchor="text" w:hAnchor="page" w:x="1921"/> </w:pPr> <w:r> <w:t>Paragraph One</w:t> </w:r> </w:p> <w:p> <w:pPr> <w:framePr w:w="2191" w:h="810" w:hRule="exact" w:hSpace="180" w:wrap="around" w:vAnchor="text" w:hAnchor="page" w:x="1921"/> </w:pPr> <w:r> <w:t>Paragraph Two.</w:t> </w:r> </w:p>
These two paragraphs, although each is a part of a text frame due to the presence of the <framePr>
element, are different text frames because of the differing @h
value - 810
vs. 811
. ]
The positioning of the frame relative to the properties stored on its attribute values shall be calculated relative to the next paragraphs in the document which is itself not part of a text frame.
<w:p> <w:pPr> <w:framePr w:w="2191" w:h="811" w:hRule="exact" w:hSpace="180" w:wrap="around" w:vAnchor="text" w:hAnchor="page" w:x="1921"/> </w:pPr> <w:r> <w:t>Paragraph One</w:t> </w:r> </w:p> <w:p> <w:pPr> <w:framePr w:w="2191" w:h="811" w:hRule="exact" w:hSpace="180" w:wrap="around" w:vAnchor="text" w:hAnchor="page" w:x="1921"/> </w:pPr> <w:r> <w:t>Paragraph Two.</w:t> </w:r> </w:p> <w:p/>
The first two paragraphs form a single text frame, which is anchored using its attribute values relative to the first non-frame paragraph following it (the third paragraph in the example). ]
Parent Elements |
---|
|
Attributes |
Description |
---|---|
|
Specifies that the frame shall always remain in the same logical position relative to the non-frame paragraphs which precede and follow it in this document. This means that consumers which modify this document shall ensure that this text frame remains directly above the non-frame paragraph which it is currently above, by adjusting the frame's positioning properties as needed as the paragraph is moved throughout the document rather than moving the frame's logical location within the paragraphs in the document, if that would be more appropriate. If this attribute is omitted, then this frame shall not have a locked anchor position. <w:p> <w:pPr> <w:framePr w:w="2419" w:h="2189" w:hRule="exact" w:hSpace="187" w:wrap="around" w:vAnchor="text" w:hAnchor="page" w:x="1643" w:y="73" w:anchorLock="1"/> </w:pPr> <w:r> <w:t>Text Frame Content.</w:t> </w:r> </w:p> This text frame has a locked anchor using the <w:p> <w:pPr> <w:framePr w:w="2419" w:h="2189" w:hRule="exact" w:hSpace="187" w:wrap="around" w:vAnchor="text" w:hAnchor="page" w:x="1643" w:y="-5247" w:anchorLock="1"/> </w:pPr> <w:r> <w:t>Text Frame Content.</w:t> </w:r> </w:p> The non-frame paragraph was relocated The possible values for this attribute are defined by the ST_OnOff simple type (§2.18.67). |
|
Specifies that the current frame contains a drop cap to be located at the beginning of the next non-frame paragraph in the document. Its contents shall be used to specify how that drop cap should be positioned relative to that paragraph. If this attribute is omitted, then this frame shall not be considered a drop cap frame. Note:
<w:p> <w:pPr> <w:framePr w:dropCap="margin" w:lines="3" w:hSpace="432" w:wrap="around" w:vAnchor="text" w:hAnchor="page" /> </w:pPr> <w:r> <w:t>A</w:t> </w:r> </w:p> The The possible values for this attribute are defined by the ST_DropCap simple type (§2.18.24). |
|
Specifies the frame's height. This height is expressed in twentieths of a point. If this attribute is omitted, then its value shall be assumed to be The meaning of the value of the
<w:p> <w:pPr> <w:framePr w:w="2419" w:h="2189" w:hRule="atLeast" w:hspace="187" w:wrap="around" w:vanchor="text" w:hanchor="page" w:x="1643" w:y="73" /> </w:pPr> <w:r> <w:t>Text Frame Content.</w:t> </w:r> </w:p> The The possible values for this attribute are defined by the ST_TwipsMeasure simple type (§2.18.105). |
|
Specifies the base object from which the horizontal positioning in the A text frame may be horizontally positioned relative to:
If this attribute is omitted, then its value shall be assumed to be <w:pPr> <w:framePr … w:x="1440" w:hAnchor="column" /> </w:pPr> These frame properties specify that they are relative to the anchor paragraph's The possible values for this attribute are defined by the ST_HAnchor simple type (§2.18.40). |
|
Specifies the meaning of the height specified for this frame. The meaning of the value of the
If this attribute is omitted, then its value shall be assumed to be <w:p> <w:pPr> <w:framePr w:w="2419" w:h="2189" w:hRule="atLeast" w:hSpace="187" w:wrap="around" w:vAnchor="text" w:hAnchor="page" w:x="1643" w:y="73" /> </w:pPr> <w:r> <w:t>Text Frame Content.</w:t> </w:r> </w:p> The The possible values for this attribute are defined by the ST_HeightRule simple type (§2.18.42). |
|
Specifies the minimum distance which shall be maintained between the current text frame and any non-frame text which has been allowed to flow around this object when the This distance is expressed in twentieths of a point. If the <w:pPr> <w:framePr ...w:hSpace="720" w:wrap="around" /> </w:pPr> The The possible values for this attribute are defined by the ST_TwipsMeasure simple type (§2.18.105). |
|
Specifies the number of lines in the non-frame paragraph to which this text frame is anchored which should be used to calculate the drop cap's height. If the current frame is not a drop cap (the parent If this attribute is omitted, then its value shall be considered to be <w:p> <w:pPr> <w:framePr w:dropCap="margin" w:lines="3" w:hSpace="432" w:wrap="around" w:vAnchor="text" w:hAnchor="page" W:y="400" w:yAlign="text" /> </w:pPr> <w:r> <w:t>O</w:t> </w:r> </w:p> Since this frame is being used as a dropped cap, the The possible values for this attribute are defined by the ST_DecimalNumber simple type (§2.18.16). |
|
Specifies the base object from which the horizontal positioning in the A text frame may be horizontally positioned relative to:
If this attribute is omitted, then its value shall be assumed to be <w:pPr> <w:framePr … w:y="2880" w:vAnchor="page" /> </w:pPr> These frame properties specify that they are relative to the anchor The possible values for this attribute are defined by the ST_VAnchor simple type (§2.18.109). |
|
Specifies the minimum distance which shall be maintained between the current text frame and any non-frame text which is above or below this text frame. This distance is expressed in twentieths of a point. If this attribute is omitted, its value shall be assumed to be <w:pPr> <w:framePr … w:vSpace="720" /> </w:pPr> The The possible values for this attribute are defined by the ST_TwipsMeasure simple type (§2.18.105). |
|
Specifies the exact value for this text frame's width. This value is specified in twentieths of a point. When this attribute is present, the text frame shall be rendered to the exact width specified. If this attribute is omitted, the text frame width shall be automatically determined by the maximum line width of the content within the text frame. <w:p> <w:pPr> <w:framePr w:w="2419" w:h="2189" w:hRule="atLeast" w:hspace="187" w:wrap="around" w:vanchor="text" w:hanchor="page" w:x="1643" w:y="73" /> </w:pPr> <w:r> <w:t>Text Frame Content.</w:t> </w:r> </w:p> This text frame specifies that its width shall be exactly The possible values for this attribute are defined by the ST_TwipsMeasure simple type (§2.18.105). |
|
Specifies the type of text wrapping which should be allowed around the contents of this text frame. This attribute determines if non-frame text shall be allowed to flow around the contents of this frame. If this attribute is omitted, its value shall be assumed to be <w:p> <w:pPr> <w:framePr w:w="2419" w:h="2189" w:hRule="atLeast" w:hSpace="187" w:wrap="around" w:vAnchor="text" w:hAnchor="page" w:x="1643" w:y="73" /> </w:pPr> <w:r> <w:t>Text Frame Content.</w:t> </w:r> </w:p> This text frame specifies that when the frame is rendered on the page, any non-text frame paragraphs which would normally flow onto the same lines shall be allowed to do so. ] The possible values for this attribute are defined by the ST_Wrap simple type (§2.18.113). |
|
Specifies an absolute horizontal position for the text frame. This absolute position is specified relative to the horizontal anchor specified by the This value is expressed in twentieths of a point. If it is positive, then the text frame is positioned after the anchor object in the direction of horizontal text flow in this document. If it is negative, then the text frame is positioned before the anchor object in the direction of horizontal text flow in this document. If the <w:p> <w:pPr> <w:framePr w:w="2419" w:h="2189" w:hRule="atLeast" w:hSpace="187" w:wrap="around" w:vAnchor="text" w:hAnchor="page" w:x="1643" w:y="73" /> </w:pPr> <w:r> <w:t>Text Frame Content.</w:t> </w:r> </w:p> This text frame specifies that it should be located exactly The possible values for this attribute are defined by the ST_SignedTwipsMeasure simple type (§2.18.88). |
|
Specifies a relative horizontal position for the text frame. This relative position is specified relative to the horizontal anchor specified by the If omitted, this attribute is not specified and the value of the <w:p> <w:pPr> <w:framePr w:w="2419" w:h="2189" w:hRule="atLeast" w:hSpace="187" w:wrap="around" w:vAnchor="text" w:hAnchor="page" w:x="1643" w:xAlign="left" w:y="73" /> </w:pPr> <w:r> <w:t>Text Frame Content.</w:t> </w:r> </w:p> This text frame specifies that it has a horizontal placement of exactly The possible values for this attribute are defined by the ST_XAlign simple type (§2.18.114). |
|
Specifies an absolute vertical position for the text frame. This absolute position is specified relative to the vertical anchor specified by the This value is expressed in twentieths of a point. If it is positive, then the text frame is positioned after the anchor object in the direction of vertical text flow in this document. If it is negative, then the text frame is positioned before the anchor object in the direction of vertical text flow in this document. If the <w:p> <w:pPr> <w:framePr w:w="2419" w:h="2189" w:hRule="atLeast" w:hSpace="187" w:wrap="around" w:vAnchor="text" w:hAnchor="page" w:x="1643" w:y="73" /> </w:pPr> <w:r> <w:t>Text Frame Content.</w:t> </w:r> </w:p> This text frame specifies that it should be located exactly The possible values for this attribute are defined by the ST_SignedTwipsMeasure simple type (§2.18.88). |
|
Specifies a relative vertical position for the text frame. This relative position is specified relative to the vertical anchor specified by the If omitted, this attribute is not specified and the value of the <w:p> <w:pPr> <w:framePr w:w="2419" w:h="2189" w:hRule="atLeast" w:hSpace="187" w:wrap="around" w:vAnchor="margin" w:hAnchor="page" w:x="1643" w:y="73" w:yAlign="center" /> </w:pPr> <w:r> <w:t>Text Frame Content.</w:t> </w:r> </w:p> This text frame specifies that it has a vertical placement of exactly The possible values for this attribute are defined by the ST_YAlign simple type (§2.18.115). |
The following XML Schema fragment defines the contents of this element:
<complexType name="CT_FramePr">
<attribute name="dropCap" type="ST_DropCap" use="optional"/>
<attribute name="lines" type="ST_DecimalNumber" use="optional"/>
<attribute name="w" type="ST_TwipsMeasure" use="optional"/>
<attribute name="h" type="ST_TwipsMeasure" use="optional"/>
<attribute name="vSpace" type="ST_TwipsMeasure" use="optional"/>
<attribute name="hSpace" type="ST_TwipsMeasure" use="optional"/>
<attribute name="wrap" type="ST_Wrap" use="optional"/>
<attribute name="hAnchor" type="ST_HAnchor" use="optional"/>
<attribute name="vAnchor" type="ST_VAnchor" use="optional"/>
<attribute name="x" type="ST_SignedTwipsMeasure" use="optional"/>
<attribute name="xAlign" type="ST_XAlign" use="optional"/>
<attribute name="y" type="ST_SignedTwipsMeasure" use="optional"/>
<attribute name="yAlign" type="ST_YAlign" use="optional"/>
<attribute name="hRule" type="ST_HeightRule" use="optional"/>
<attribute name="anchorLock" type="ST_OnOff" use="optional"/>
</complexType>