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 Node.js via C++ supports detecting 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 getLinkType() method with a return type of TargetModeType. The following code snippet demonstrates the use of the getLinkType() method 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.