VegaRise.NET
Back to Shape

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

Reset Password

Enter your email and we'll send you a link to reset your password.

Remember your password? Sign in