Skip to main content

HorizontalAlignedPosition Class

Contains information about a floating object’s horizontal position that is aligned to an anchor element.

Declaration

export class HorizontalAlignedPosition

Properties

alignment Property

Specifies the floating object’s alignment relative to an anchor element.

Declaration

alignment: FloatingObjectHorizontalAlignment

Property Value

Type Description
FloatingObjectHorizontalAlignment

The alignment.

relativeTo Property

Specifies the anchor element relative to the specified position.

Declaration

relativeTo: FloatingObjectHorizontalAnchorElement

Property Value

Type Description
FloatingObjectHorizontalAnchorElement

An anchor element.

type Property

Returns the position type.

Declaration

readonly type: FloatingObjectHorizontalPositionType

Property Value

Type Description
FloatingObjectHorizontalPositionType

Returns the Aligned value.