Language

The Free and Open Productivity Suite
Released: Apache OpenOffice 4.1.15

API

SDK

Tips ‘n’ Tricks

Miscellaneous


:: com :: sun :: star :: chart2 ::

unpublished struct RelativePosition
Usage Restrictions
not published
Description
Determines a position of an object relative to a size defined by other means. Values from 0 to 1 cover the entire reference rectangle. Values may also be outside this range, especially negative.

Elements' Summary
Primary The position in the primary direction. The direction is defined by the object using this point.  
Secondary The position in the secondary direction. The direction is defined by the object using this point.  
Anchor This indicates how the object is placed at the relative position.  
Elements' Details
Primary
double Primary;
Description
The position in the primary direction. The direction is defined by the object using this point.

For example for western languages the primary direction may be the horizontal distance measured from left to right.

The values are relative to a reference size (for example the page size). Values between 0 and 1 span the complete bounding rectangle.

Secondary
double Secondary;
Description
The position in the secondary direction. The direction is defined by the object using this point.

For example for western languages the secondary direction may be the vertical distance measured from top to bottom.

The values are relative to a reference size (for example the page size). Values between 0 and 1 span the complete bounding rectangle.

Anchor
::com::sun::star::drawing::Alignment Anchor;
Description
This indicates how the object is placed at the relative position.

The Anchor indicates which point of the placed object will be placed at the coordinates given within Primary and Secondary.

For example if Anchor is TOP_LEFT the top left corner of an object will be placed at the given coorediantes. If Anchor is RIGHT the right middle corner of the object will be placed at the given coorediantes.

Top of Page

Apache Software Foundation

Copyright & License | Privacy | Contact Us | Donate | Thanks

Apache, OpenOffice, OpenOffice.org and the seagull logo are registered trademarks of The Apache Software Foundation. The Apache feather logo is a trademark of The Apache Software Foundation. Other names appearing on the site may be trademarks of their respective owners.