Enum TargetModeType
TargetModeType enumeration
Represents the type of target mode.
public enum TargetModeType
Values
Name | Value | Description |
---|---|---|
External | 0 | External link |
FilePath | 1 | Local and full paths to files or folders. |
2 | Email. | |
CellReference | 3 | Link on cell or named range. |
Examples
// Called: Assert.AreEqual(TargetModeType.External, links[0].LinkType);
[Test]
public void Type_TargetModeType()
{
Workbook workbook = new Workbook();
workbook.Worksheets[0].Hyperlinks.Add("A1", 1, 1, "www.aspose.com");
Aspose.Cells.Range range = workbook.Worksheets[0].Cells.CreateRange("A1");
Hyperlink[] links = range.Hyperlinks;
Assert.AreEqual(TargetModeType.External, links[0].LinkType);
if(links.Length != 0)
{
links[0].Delete();
}
Assert.AreEqual(0, workbook.Worksheets[0].Hyperlinks.Count);
}
See Also
- namespace Aspose.Cells
- assembly Aspose.Cells