Skip to main content

VerticalRelativePosition Class

Contains information about a floating object’s vertical position specified as a percentage relative to an anchor element.

Declaration

export class VerticalRelativePosition

Properties

relativePosition Property

Specifies the anchor element relative to the specified position.

Declaration

relativePosition: number

Property Value

Type Description
number

An anchor element.

relativeTo Property

Specifies the anchor element relative to the specified position.

Declaration

relativeTo: FloatingObjectVerticalAnchorElement.Page | FloatingObjectVerticalAnchorElement.Margin | FloatingObjectVerticalAnchorElement.TopMargin | FloatingObjectVerticalAnchorElement.BottomMargin | FloatingObjectVerticalAnchorElement.InsideMargin | FloatingObjectVerticalAnchorElement.OutsideMargin

Property Value

Type Description
Page

A floating object is aligned to a page.

Margin

A floating object is aligned to page margins.

TopMargin

A floating object is aligned to the top margin.

BottomMargin

A floating object is aligned to the bottom margin.

InsideMargin

A floating object is aligned to the top margin for odd pages, and the bottom margin for even pages.

OutsideMargin

A floating object is aligned to the bottom margin for odd pages, and the top margin for even pages.

type Property

Returns the position type.

Declaration

readonly type = FloatingObjectVerticalPositionType.Relative

Property Value

Type Description
Relative

Returns the Relative value.