Professional > Table scripting > Annotations > Annotation positions
 
Annotation positions
The Annotations collection always contains eight Annotation objects, each one of which corresponds to a position around the table. There are four “header” positions above the table: Title Header, Left Header, Center Header, and Right Header; and four “footer” positions below the table: Title Footer, Left Footer, Center Footer, and Right Footer. The following diagram shows these positions.
The following table shows the constants and their associated values that you use to specify the various positions in your scripts. You can use the constant if your script is part of a data management script (.dms) file. If your script is a standalone .mrs file, you must use the numeric value or set up user-defined constants to represent the values (as shown in the Annotations.mrs sample).
Position
Constant
Value
Title header
AnnotationPosition.annTitleHeader
0
Left header
AnnotationPosition.annLeftHeader
1
Center header
AnnotationPosition.annCenterHeader
2
Right header
AnnotationPosition.annRightHeader
3
Title footer
AnnotationPosition.annTitleFooter
4
Left footer
AnnotationPosition.annLeftFooter
5
Center footer
AnnotationPosition.annCenterFooter
6
Right footer
AnnotationPosition.annRightFooter
7
You can set up the texts to be displayed in these positions for individual tables, as defaults to apply to new tables, or as global settings to apply to all of the tables in the table document.
The built-in default settings are shown in the following table.
Position
Description
Specification
Title Header
Project description.
{ProjectDescription}
Left Header
Table description and filters.
{TableDescription \n}
{Filters \p}
Right Header
Table number and the description of the weighting variable and the population level.
{TableNumber \p \n}
{WeightVariable  \l \n \p}
{Level \l \p}
Left Footer
Cell contents and footnotes about the statistical tests, if any, and details of any hide rules that have been applied, as well as warning messages for statistical tests and explanations of symbols.
{CellContents \p \n}
{Statistics \p \n \i-}
{Rules \p}
{CellItemSymbols \p}
{PopulateWarnings \p}
See also
Annotations