SheetXL - v0.8.0-beta.25
    Preparing search index...

    Class Hyperlink

    A link as a cell value: what HYPERLINK() returns.

    It reads as its friendly name, or as its address when it has none, so LEN, & and comparison see the text a user sees. A reference carries it whole, so =A1 and IF(c, HYPERLINK(...), "") are links too.

    This is the link a cell's value is. The link a cell carries beside its value is ICell.getHyperlink; a cell may have both.

    Immutable.

    Implements

    • IRichData
    Index
    • Parameters

      • address: string | null

        Where the link goes: a URL, a file path, or a location in the workbook (#Sheet1!A1). null when it is not known until the formula that made the link recalculates (a link read from a file whose address is computed).

      • Optionalfriendly: string | number | boolean | null

        What the cell shows. Omitted, the address.

      Returns Hyperlink

    Type: "hyperlink" = 'hyperlink'

    The name of the kind of every Hyperlink (HyperlinkKind).

    • get isIRichData(): true

      {@inheritDoc IRichData.isIRichData}

      Returns true

    • Where the link goes, or null when that is not known yet: the link goes nowhere.

      Returns string | null

    • What the cell shows, or null when it shows the address.

      Returns string | number | boolean | null

    • {@inheritDoc IRichData.getKind}

      Returns IRichType

    • {@inheritDoc IRichData.getProperty}

      Parameters

      • _name: string

      Returns Scalar

    • {@inheritDoc IRichData.toJSON}

      Returns JSON

    • {@inheritDoc IRichData.toPrimitive}

      Returns string | number | boolean

    • {@inheritDoc IRichData.toString}

      Returns string