Skip to main content
All docs
V26.1
  • HorizontalAbsolutePosition Class

    Contains information about a floating object’s horizontal position. The position is specified in twips relative to an anchor element.

    Declaration

    export class HorizontalAbsolutePosition

    Properties

    position Property

    Specifies the floating object’s position in twips relative to an anchor element.

    Declaration

    position: number

    Property Value

    Type Description
    number

    The position in twips.

    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.Absolute

    Property Value

    Type Description
    Absolute

    Returns the Absolute value.