2.3.2 LayoutAlignment

Target namespace: http://schemas.microsoft.com/office/onenote/2009/internal/specific

Referenced by: jcidImageNode, jcidRichTextOENode, jcidTableNode, jcidEmbeddedFileNode, jcidOutlineNode, jcidTitleNode

The LayoutAlignment simple type is an unsigned integer that specifies the alignment of content. The meaning of the different bits is defined in the following table. If the entire structure is zero, this LayoutAlignment type is undefined and MUST be ignored. By default, the vertical alignment is top, and the horizontal alignment is left for left-to-right pages and right for right-to-left pages.

Child Elements:


0


1


2


3


4


5


6


7


8


9

1
0


1


2


3


4


5


6


7


8


9

2
0


1


2


3


4


5


6


7


8


9

3
0


1

lha

A

unused1

B

C

D

unused3

E

lha (3 bits): An unsigned integer that specifies the horizontal alignment of the content within the parent node. It MUST be one of the following values:

Value

Description

1

Left.

2

Center.

3

Right.

4

Left, if the page is left-to-right; right, if the page is right-to-left.

5

Right, if the page is left-to-right; left, if the page is right-to-left.

A - fHorizMargin (1 bit): A bit that specifies whether the content is aligned to the left or right margin of the page. The alignment depends on the direction of text on the page.

Value

Page direction

Alignment

0

Left to right.

Right

0

Right to left.

Left

1

Left to right.

Left

1

Right to left.

Right

unused1 (12 bits): Undefined. This value MUST be zero and it MUST be ignored.

B - lva (1 bit): A bit that specifies the vertical alignment of the content within the parent node.

Value

Description

0

Bottom

1

Top

C - unused2 (2 bits): Undefined. This value MUST be zero and it MUST be ignored.

D - fVertMargin (1 bit): A bit that specifies whether the content is aligned to the top or bottom of the page margin.

Value

Description

0

Bottom margin.

1

Top margin.

unused3 (11 bits): Undefined. This value MUST be zero and it MUST be ignored.

E - laNil (1 bit): A bit that specifies whether the value of the LayoutAlignment type is valid. If this value is true, the value specified by the LayoutAlignment type is undefined and MUST be ignored.