VegaRise.NET
Back to Graphic

SetRelativePositionMethod

Definition

Namespace
DOM.Elements.Graphics
Assembly
DOM.dll

Sets the relative positioning reference frames for the graphic.

SetRelativePosition(HorizontalRelativePositionValues horizontalRelative, VerticalRelativePositionValues verticalRelative)

Parameters

horizontalRelative
The horizontal reference frame (page, margin, column, etc.).
verticalRelative
The vertical reference frame (page, margin, paragraph, line, etc.).

Remarks

The reference frames determine what the alignment or absolute position is measured against. For example, setting means that horizontal alignment or offsets are relative to the page margins. margin

Examples

csharp
1var graphic = new Graphic();
2graphic.SetRelativePosition(
3 HorizontalRelativePositionValues.margin,
4 VerticalRelativePositionValues.paragraph
5);
6// Positions relative to margins (horizontal) and paragraph (vertical)
7
VegaRiseVDocs.NET

Create Account

Create your VDocs account.

or

Already have an account? Sign in