Expand Minimize
This topic has not yet been rated - Rate this topic

<HorzAlign> element

Office XP

<HorzAlign> element

Specifies the horizontal alignment of text in the shape's text block.

Value

Description

0

Left align

1

Center

2

Right align

3

Justify

4

Force justify

Syntax

<HorzAlign
    [Unit = "unitval"]
    [F = "formula"]
    [Err = "error"]> 
</HorzAlign>

Attributes

Unit

Optional string. Represents a unit of measure. The default is NUM. For details about NUM, see http://msdn.microsoft.com/en-us/library/aa218417(v=office.10).aspx Units of measure.

F

Optional string. Represents the element's formula. This attribute can contain the string "someFormula" if the formula exists locally, "No Formula" if the formula is locally deleted or blocked, or "Inh" if the formula is inherited.

If the attribute is not present, the element's formula is a simple constant, for example, <element> 5 </element>.

Err

Optional string. Indicates that the formula evaluates to an error. The value of Err is the current value (an error message string); the value of the element is the last valid value.

Element information

Parent elements:

http://msdn.microsoft.com/en-us/library/aa203130(v=office.10).aspx Para

Child elements:

None

Remarks

Justify adjusts the space between words in every line except the last line of the paragraph. This aligns both the left and right sides of the text with the margins.

Force justify justifies every line in the paragraph, including the last.

The HorzAlign element is relevant only when contained in a http://msdn.microsoft.com/en-us/library/aa203207(v=office.10).aspx Shape or http://msdn.microsoft.com/en-us/library/aa203205(v=office.10).aspx StyleSheet element. It is ignored when contained in a http://msdn.microsoft.com/en-us/library/aa191981(v=office.10).aspx DocumentSheet or http://msdn.microsoft.com/en-us/library/aa203159(v=office.10).aspx PageSheet element.

See also

Did you find this helpful?
(1500 characters remaining)
© 2013 Microsoft. All rights reserved.