public class ExternalConnectionCollection extends CollectionBase
ExternalConnection collection
Example
Workbook wb = new Workbook("connection.xlsx");
ExternalConnectionCollection dataConns = wb.getDataConnections();
ExternalConnection dataConn = null;
for (int i = 0; i <dataConns.getCount(); i++)
{
dataConn = dataConns.get(i);
//get external connection id
System.out.println(dataConn.getConnectionId());
}
| Modifier and Type | Method and Description |
|---|---|
ExternalConnection |
get(int index)
Gets the
ExternalConnection element at the specified index. |
ExternalConnection |
get(java.lang.String connectionName)
Gets the
ExternalConnection element with the specified name. |
ExternalConnection |
getExternalConnectionById(int connId)
Gets the
ExternalConnection element with the specified id. |
void |
set(int index,
ExternalConnection value) |
public ExternalConnection get(int index)
ExternalConnection element at the specified index.get in class CollectionBaseindex - The zero based index of the element.public void set(int index,
ExternalConnection value)
public ExternalConnection get(java.lang.String connectionName)
ExternalConnection element with the specified name.connectionName - the name of data connectionpublic ExternalConnection getExternalConnectionById(int connId)
ExternalConnection element with the specified id.connId - external connection idSee Also:
Aspose.Cells Documentation - the home page for the Aspose.Cells Product Documentation.
Aspose.Cells Support Forum - our preferred method of support.
We guarantee a prompt response to any inquiry!
© Aspose Pty Ltd 2003-2025. All Rights Reserved.