Aspose::Cells::IExternalLinkCollection Class Referenceabstract

Represents external links collection in a workbook. More...

Inherits Object.

Public Member Functions

virtual Aspose::Cells::Systems::Int32 GetCount ()=0
 Gets the number of elements actually contained in the collection. More...
 
virtual Aspose::Cells::Systems::Int32 Add (intrusive_ptr< Aspose::Cells::Systems::String > fileName, intrusive_ptr< Aspose::Cells::Systems::Array1D< Aspose::Cells::Systems::String *>> sheetNames)=0
 Adds an external link. More...
 
virtual Aspose::Cells::Systems::Int32 Add (Aspose::Cells::DirectoryType directoryType, intrusive_ptr< Aspose::Cells::Systems::String > fileName, intrusive_ptr< Aspose::Cells::Systems::Array1D< Aspose::Cells::Systems::String *>> sheetNames)=0
 Add an external link . More...
 
virtual intrusive_ptr< Aspose::Cells::IExternalLinkGetObjectByIndex (Aspose::Cells::Systems::Int32 index)=0
 Gets the IExternalLink element at the specified index. More...
 

Detailed Description

Represents external links collection in a workbook.

[C++]
//Open a file with external links
intrusive_ptr<IWorkbook> workbook = Factory::CreateIWorkbook(new String("d:\\book1.xls"));
//Change external link data source
workbook->GetIWorksheets()->GetIExternalLinks()->GetObjectByIndex(0)->SetDataSource(new String("d:\\link.xls"));

Member Function Documentation

◆ Add() [1/2]

virtual Aspose::Cells::Systems::Int32 Aspose::Cells::IExternalLinkCollection::Add ( intrusive_ptr< Aspose::Cells::Systems::String >  fileName,
intrusive_ptr< Aspose::Cells::Systems::Array1D< Aspose::Cells::Systems::String *>>  sheetNames 
)
pure virtual

Adds an external link.

Parameters
fileNameThe external file name.
sheetNamesAll sheet names of the external file.
Returns
The position of the external name in this list.

◆ Add() [2/2]

virtual Aspose::Cells::Systems::Int32 Aspose::Cells::IExternalLinkCollection::Add ( Aspose::Cells::DirectoryType  directoryType,
intrusive_ptr< Aspose::Cells::Systems::String >  fileName,
intrusive_ptr< Aspose::Cells::Systems::Array1D< Aspose::Cells::Systems::String *>>  sheetNames 
)
pure virtual

Add an external link .

Parameters
directoryTypeThe directory type of the file name.
fileNamethe file name.
sheetNamesAll sheet names of the external file.
Returns
The position of the external name in this list.

◆ GetCount()

virtual Aspose::Cells::Systems::Int32 Aspose::Cells::IExternalLinkCollection::GetCount ( )
pure virtual

Gets the number of elements actually contained in the collection.

◆ GetObjectByIndex()

virtual intrusive_ptr<Aspose::Cells::IExternalLink> Aspose::Cells::IExternalLinkCollection::GetObjectByIndex ( Aspose::Cells::Systems::Int32  index)
pure virtual

Gets the IExternalLink element at the specified index.

Parameters
indexThe zero based index of the element.
Returns
The element at the specified index.