Skip to main content

DevExpress v24.2 Update — Your Feedback Matters

Our What's New in v24.2 webpage includes product-specific surveys. Your response to our survey questions will help us measure product satisfaction for features released in this major update and help us refine our plans for our next major release.

Take the survey Not interested

HorizontalRelativePosition Class

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

#Declaration

TypeScript
export class HorizontalRelativePosition

#Properties

#relativePosition Property

Specifies a floating object’s position as a percentage relative to an anchor element.

#Declaration

TypeScript
relativePosition: number

#Property Value

Type Description
number

The position as a percentage.

#relativeTo Property

Specifies the anchor element relative to the specified position.

#Declaration

TypeScript
relativeTo: FloatingObjectHorizontalAnchorElement.Margin | FloatingObjectHorizontalAnchorElement.Page | FloatingObjectHorizontalAnchorElement.LeftMargin | FloatingObjectHorizontalAnchorElement.RightMargin | FloatingObjectHorizontalAnchorElement.InsideMargin | FloatingObjectHorizontalAnchorElement.OutsideMargin

#Property Value

Type Description
Page

A floating object is aligned to a page.

Margin

A floating object is aligned to page margins.

LeftMargin

A floating object is aligned to the left margin.

RightMargin

A floating object is aligned to the right margin.

InsideMargin

A floating object is aligned to the left margin for odd pages, and the right margin for even pages.

OutsideMargin

A floating object is aligned to the right margin for odd pages, and the left margin for even pages.

#type Property

Returns the position type.

#Declaration

TypeScript
readonly type = FloatingObjectHorizontalPositionType.Relative

#Property Value

Type Description
Relative

Returns the Relative value.