[]
        
(Showing Draft Content)

GrapeCity.Documents.Excel.Expressions.WorkbookReference.FromName

FromName Method

FromName(string)

Creates a workbook reference from a workbook name.

Use this method when the workbook should be identified by name rather than by a file path or URI. The specified name can be different from the file name.

Declaration
public static WorkbookReference FromName(string name)
Public Shared Function FromName(name As String) As WorkbookReference
Parameters
Type Name Description
string name

The workbook name. Must not be null or empty.

Returns
Type Description
WorkbookReference

A WorkbookReference that stores the specified workbook name.

Examples
WorkbookReference reference = WorkbookReference.FromName("Budget");
string name = reference.Name;
Exceptions
Type Condition
ArgumentNullException

if name is null or empty.