[]
        
(Showing Draft Content)

GrapeCity.Spreadsheet.IWorkbook.UpdateLink

UpdateLink Method

Updates the specified link of this workbook.

Declaration
bool UpdateLink(string name, Func<IWorkbook, string, IWorksheet> missingWorksheetResolver = null)
Function UpdateLink(name As String, Optional missingWorksheetResolver As Func(Of IWorkbook, String, IWorksheet) = Nothing) As Boolean
Parameters
Type Name Description
string name

The name of the link to be updated, as returned from the LinkSources.

Func<IWorkbook, string, IWorksheet> missingWorksheetResolver

The resolver which will be invoked if the reference worksheet is missing.

Returns
Type Description
bool

true if the link is updated successfully; otherwise false.

When the UpdateLink(string) method is called without any parameters (or name is null/empty), Spread defaults to updating all worksheet links.

Updates one or all links of this workbook.

Declaration
bool UpdateLink(string[] names = null, Func<IWorkbook, string, IWorksheet> missingWorksheetResolver = null)
Function UpdateLink(Optional names As String() = Nothing, Optional missingWorksheetResolver As Func(Of IWorkbook, String, IWorksheet) = Nothing) As Boolean
Parameters
Type Name Description
string[] names

The name of the links to be updated, as returned from the LinkSources. null is to update all links.

Func<IWorkbook, string, IWorksheet> missingWorksheetResolver

The resolver which will be invoked if the reference worksheet is missing.

Returns
Type Description
bool

true if all links are updated successfully; otherwise false if there is at least one link is failed to update.

When the UpdateLink(string) method is called without any parameters (or name is null/empty), Spread defaults to updating all worksheet links.