• products
    .NET APIs
    • Spire.Office for .NET
    • Spire.OfficeViewer for .NET
    • Spire.Doc for .NET
    • Spire.DocViewer for .NET
    • Spire.XLS for .NET
    • Spire.Spreadsheet for .NET
    • Spire.Presentation for .NET
    • Spire.PDF for .NET
    • Spire.PDFViewer for .NET
    • Spire.PDFViewer for ASP.NET
    • Spire.DataExport for .NET
    • Spire.Barcode for .NET
    • Spire.Email for .NET
    • Spire.OCR for .NET
    Free Products
    • Free Spire.Office for .NET
    • Free Spire.Doc for .NET
    • Free Spire.DocViewer for .NET
    • Free Spire.XLS for .NET
    • Free Spire.Presentation for .NET
    • Free Spire.PDF for .NET
    • Free Spire.PDFViewer for .NET
    • Free Spire.PDFConverter for .NET
    • Free Spire.DataExport for .NET
    • Free Spire.Barcode for .NET
    WPF APIs
    • Spire.Office for WPF
    • Spire.Doc for WPF
    • Spire.DocViewer for WPF
    • Spire.XLS for WPF
    • Spire.PDF for WPF
    • Spire.PDFViewer for WPF
  • Purchase
    • Order Online
    • Download Centre
    • Temporary License
    • Purchase Policies
    • Renewal Policies
    • Find A Reseller
    • Purchase FAQS
    • Support FAQs
    • How to Apply License
    • License Agreement
    • Privacy Policy
  • Support
    • Sample Center
      • Forum
      • Live Demo
      • Customized Demo
      • Code Samples
      • Newsletter
        • Subscribe
        • Unsubscribe
      • API Reference
    • Program Guide
      • Spire.Doc for .NET
      • Spire.Doc for Java
      • Spire.XLS for .NET
      • Spire.XLS for Java
      • Spire.Presentation for .NET
      • Spire.Presentation for Java
      • Spire.PDF for .NET
      • Spire.PDF for Java
  • Tutorials
  • Corporation
    • About Us
    • Contact Us
    • Partner
    • Become Our Reseller
    • Affiliate
    • Paid Support
    • Our Customers
    • Reviews
    • 日本語
  • Search
  • Login/Register
  • Products
    • .NET APIs
    • Java APIs
    • C++ APIs
    • Python APIs
    • JavaScript APIs
    • Mobile APIs
    • Cloud APIs
    • Free Products
    • .NET Libraries
    • Spire.Office for .NET
    • Spire.OfficeViewer for .NET
    • Spire.Doc for .NET
    • Spire.DocViewer for .NET
    • Spire.XLS for .NET
    • Spire.Spreadsheet for .NET
    • Spire.Presentation for .NET
    • Spire.PDF for .NET
    • Spire.PDFViewer for .NET
    • Spire.PDFViewer for ASP.NET
    • Spire.DataExport for .NET
    • Spire.Barcode for .NET
    • Spire.Email for .NET
    • Spire.OCR for .NET
    • WPF Libraries
    • Spire.Office for WPF
    • Spire.Doc for WPF
    • Spire.DocViewer for WPF
    • Spire.XLS for WPF
    • Spire.PDF for WPF
    • Spire.PDFViewer for WPF
    • .NET AI
    • Spire.XLS AI for .NET
    • Java Libraries
    • Spire.Office for Java
    • Spire.Doc for Java
    • Spire.XLS for Java
    • Spire.Presentation for Java
    • Spire.PDF for Java
    • Spire.Barcode for Java
    • Spire.OCR for Java
    • C++ Libraries
    • Spire.Office for C++
    • Spire.Doc for C++
    • Spire.XLS for C++
    • Spire.Presentation for C++
    • Spire.PDF for C++
    • Spire.Barcode for C++
    • Python Libraries
    • Spire.Office for Python
    • Spire.Doc for Python
    • Spire.XLS for Python
    • Spire.Presentation for Python
    • Spire.PDF for Python
    • Spire.Barcode for Python
    • Spire.OCR for Python
    • JavaScript Libraries
    • Spire.Office for JavaScript
    • Spire.Doc for JavaScript
    • Spire.XLS for JavaScript
    • Spire.PDF for JavaScript
    • Spire.Presentation for JavaScript
    • Android Libraries
    • Spire.Office for Android via Java
    • Spire.Doc for Android via Java
    • Spire.XLS for Android via Java
    • Spire.Presentation for Android via Java
    • Spire.PDF for Android via Java
    • Free Android Products
    • Free Spire.Office for Android via Java
    • Free Spire.Doc for Android via Java
    • Free Spire.XLS for Android via Java
    • Free Spire.Presentation for Android via Java
    • Free Spire.PDF for Android via Java
    • Swift Libraries
    • Spire.XLS for Swift
    • Cloud Libraries
    • Spire.Cloud.Office
    • Spire.Cloud.Word
    • Spire.Cloud.Excel
    • Spire.Cloud.Presentation

    Free .NET Libraries

    • Free Spire.Office
    • Free Spire.Doc
    • Free Spire.XLS
    • Free Spire.Presentation
    • Free Spire.PDF
    • Free Spire.Barcode
    • Free Spire.DocViewer
    • Free Spire.PDFViewer
    • Free Spire.PDFConverter
    • Free Spire.DataExport
    • Free Spire.Email

    Free Java Libraries

    • Free Spire.Office
    • Free Spire.Doc
    • Free Spire.XLS
    • Free Spire.Presentation
    • Free Spire.PDF
    • Free Spire.Barcode

    Free Python Libraries

    • Free Spire.Office
    • Free Spire.Doc
    • Free Spire.XLS
    • Free Spire.Presentation
    • Free Spire.PDF
    • Free Spire.Barcode

    Free JavaScript Libraries

    • Free Spire.Office
    • Free Spire.Doc
    • Free Spire.XLS
    • Free Spire.Presentation
    • Free Spire.PDF
  • Purchase
    • Order Online
    • Download Centre
    • Temporary License
    • Purchase Policies
    • Renewal Policies
    • Find A Reseller
    • Purchase FAQS
    • Support FAQs
    • How to Apply License
    • License Agreement
    • Privacy Policy
  • Support
    • Forum
    • Live Demo
    • Customized Demo
    • Code Samples
    • Newsletter
      Subscribe Unsubscribe
    • C# ⇆ VB.NET Converter
    • API Reference
    • Blog
    • Videos
  • Tutorials
    • Spire.Doc
    • Spire.XLS
    • Spire.Presentation
    • Spire.PDF
    • Spire.Barcode
    • Spire.OCR
    • Spire.Email
    • Spire.DocViewer
    • Spire.PDFViewer
    • Spire.SpreadSheet
    • Spire.Cloud
    • Spire.Doc for .NET
    • Spire.Doc for Java
    • Spire.Doc for CPP
    • Spire.Doc for Python
    • Spire.Doc for JavaScript
    • Spire.XLS for .NET
    • Spire.XLS for Java
    • Spire.XLS for CPP
    • Spire.XLS for Python
    • Spire.XLS for JavaScript
    • Spire.Presentation for .NET
    • Spire.Presentation for Java
    • Spire.Presentation for CPP
    • Spire.Presentation for Python
    • Spire.Presentation for JavaScript
    • Spire.PDF for .NET
    • Spire.PDF for Java
    • Spire.PDF for CPP
    • Spire.PDF for Python
    • Spire.PDF for JavaScript
    • Spire.Barcode for .NET
    • Spire.Barcode for Java
    • Spire.Barcode for Python
    • Spire.OCR for .NET
    • Spire.OCR for Java
    • Spire.OCR for Python
  • Corporation
    • About Us
    • Contact Us
    • Partner
    • Become Our Reseller
    • Affiliate
    • Paid Support
    • Our Customers
    • Reviews
Spire.XLS for Python
A
AddtionalFormatWrapperAverage
C
CellBaseStyleCellBorderCellRangeCellStyleCellStyleFlagCellStyleObjectCellValueChangedEventArgsCellValueChangedEventHandlerColorScaleCommentsRangeCommonWrapperConverterSetting
D
DBConnectionDVAspectDataBarDocumentProperty
E
Excel2016CharttypeExcelAddInFunctionExcelCommentExcelCommentObjectExcelFontExcelGradientExcelInteriorExcelPictureExportTableOptionsExternalConnectionExternalLink
F
FileFormatFontFontArrayWrapperFontWrapperFormat3D
G
GeomertyAdjustValueGetTextGoalSeekGoalSeekResultGradientArrayWrapperGradientStopsGradientTypeGroupShape
H
HPageBreakHTMLOptionsHyperLink
L
LOGFONT
M
MsoPathInfomodules
O
OColorOdsPageBackground
P
PageColRowPageSetupPaperSizeEntryPicStretchPicTilepy-modindex
Q
QueryTableXls
R
RTFCommentArrayRTFStringArrayRangeRichTextStringReferRangeAreaRichTextRichTextObjectRichTextShapeRichTextStringRtfTextWriter
S
SaveShapeTypeOptionShapeGeomPathShapeGlowShapeReflectionShapeSegmentPathStringUtilStyleArrayWrapper
T
TextBoxShapeBaseTextSaveOptionsTopBottom
U
UtilityMethods
V
VPageBreakValidation
W
WebQueryConnectionWorkbookWorksheetWriteProtection
X
XlsAddInFunctionXlsArcShapeXlsBitmapShapeXlsBorderXlsBorderArrayWrapperXlsButtonShapeXlsCheckBoxShapeXlsComboBoxShapeXlsCommentXlsDataValidationTableXlsDocumentPropertyXlsEventArgsXlsEventHandlerXlsFillXlsFontXlsFontStyleXlsGradientXlsGradientStopXlsGroupBoxShapeXlsHPageBreakXlsHyperLinkXlsLabelShapeXlsLineShapeXlsListBoxShapeXlsNameXlsObjectXlsOvalShapeXlsPageSetupXlsPageSetupBaseXlsPrstGeomShapeXlsRadioButtonShapeXlsRangeXlsRectangleShapeXlsScrollBarShapeXlsShapeXlsShapeFillXlsShapeLineFormatXlsSpinnerShapeXlsStyleXlsTextBoxShapeXlsVPageBreakXlsValidationXlsValidationWrapperXlsWorkbookXlsWorksheetXlsWorksheetBase
Spire.XLS for Python
  • XlsHyperLink module
  • View page source

XlsHyperLink module

class XlsHyperLink.XlsHyperLink

Bases: XlsObject, IHyperLink, ICloneParent

Represents a hyperlink in an Excel worksheet.

This class provides properties and methods for manipulating hyperlinks in Excel, including address, text display, screen tip, and range settings. It extends XlsObject and implements the IHyperLink and ICloneParent interfaces.

property Address: str

Gets or sets the URL or path of the hyperlink.

Returns:

The URL or path of the hyperlink.

Return type:

str

Clone(parent: SpireObject) → SpireObject

Creates a new object that is a copy of the current instance.

Parameters:

parent – Parent object for a copy of this instance.

Returns:

A new object that is a copy of this instance.

property FirstColumn: int

Gets the first column of the range containing the hyperlink.

Returns:

The zero-based index of the first column.

Return type:

int

property FirstRow: int

Gets the first row of the range containing the hyperlink.

Returns:

The zero-based index of the first row.

Return type:

int

property LastColumn: int

Gets the last column of the range containing the hyperlink.

Returns:

The zero-based index of the last column.

Return type:

int

property LastRow: int

Gets the last row of the range containing the hyperlink.

Returns:

The zero-based index of the last row.

Return type:

int

property Name: str

Gets the name of the hyperlink.

Returns:

The name of the hyperlink.

Return type:

str

property Range: IXLSRange

Gets or sets the range that contains the hyperlink.

Returns:

The range that contains the hyperlink.

Return type:

IXLSRange

property ScreenTip: str

Gets or sets the screen tip text for the hyperlink.

Returns:

The screen tip text for the hyperlink.

Return type:

str

SetAddress(strAddress: str, bSetText: bool)

Sets the address of the hyperlink and optionally updates the display text.

Parameters:
  • strAddress (str) – The URL or path of the hyperlink.

  • bSetText (bool) – True to update the display text to match the address; otherwise, False.

SetSubAddress(strSubAddress: str)

Sets the sub-address of the hyperlink.

Parameters:

strSubAddress (str) – The sub-address of the hyperlink.

property SubAddress: str

Gets or sets the sub-address of the hyperlink.

The sub-address is typically used to link to a specific location within a document, such as a named range, bookmark, or cell reference.

Returns:

The sub-address of the hyperlink.

Return type:

str

property TextToDisplay: str

Gets or sets the text to be displayed for the hyperlink.

The default value is the address of the hyperlink.

Returns:

The text to be displayed for the hyperlink.

Return type:

str

property Type: HyperLinkType

Gets or sets the type of the hyperlink.

Returns:

An enumeration value representing the type of the hyperlink.

Return type:

HyperLinkType

property UnicodePath: str

Gets or sets the Unicode file path for the hyperlink.

This property is only valid when the Type property is HyperLinkType.File.

Returns:

The Unicode file path for the hyperlink.

Return type:

str

Products
  • Spire.Doc
  • Spire.XLS
  • Spire.Presentation
  • Spire.PDF
  • Spire.Barcode
Products
  • Spire.DocViewer
  • Spire.Spreadsheet
  • Spire.PDFViewer
  • Spire.Email
  • Spire.OCR
Purchase
  • Purchase FAQs
  • Support FAQs
  • Purchase Policies
  • Renewal Policies
  • License Upgrade
Partnership
  • Partner
  • Find A Reseller
  • Become Our Reseller
  • Our Customers
  • Believe The Users
Support
  • Forum
  • Live Demo
  • Customized Demo
  • Code Samples
  • API Reference
Corporation
  • About Us
  • Contact Us
  • Our Service
  • Reviews
  • Privacy Policy
Copyright © 2024 E-ICEBLUE. All Rights Reserved.