Analyzing your prompt, please hold on...
An error occurred while retrieving the results. Please refresh the page and try again.
An Excel file can have different types of hyperlinks like external, cell reference, file path, etc. Aspose.Cells for Python via .NET supports the feature to detect the type of hyperlink. The types of hyperlinks are represented by the TargetModeType Enumeration. The TargetModeType Enumeration has the following members.
To check the type of hyperlink, the Hyperlink class provides a link_type property with a return type of TargetModeType. The following code snippet demonstrates the use of the link_type property by using this source excel file.
The following is the output generated by the code snippet given above.
LinkTypes.xlsx: FilePath </br>
C:\Windows\System32\cmd.exe: FilePath </br>
C:\Program Files\Common Files: FilePath </br>
'Test Sheet'!B2: CellReference </br>
FullPathExample: CellReference </br>
https://products.aspose.com/cells/ : External </br>
mailto:test@test.com?subject=TestLink: Email </br>
Analyzing your prompt, please hold on...
An error occurred while retrieving the results. Please refresh the page and try again.