Excel.RequestContext class
The RequestContext object facilitates requests to the Excel application. Since the Office add-in and the Excel application run in two different processes, the request context is required to get access to the Excel object model from the add-in.
- Extends
Remarks
Examples
// *.run methods automatically create an OfficeExtension.ClientRequestContext
// object to work with the Office file.
await Excel.run(async (context: Excel.RequestContext) => {
const workbook = context.workbook;
// Interact with the Excel workbook...
});
Constructors
(constructor)(url) | Constructs a new instance of the |
Properties
application | |
workbook |
Constructor Details
(constructor)(url)
Constructs a new instance of the RequestContext
class
constructor(url?: string | Session);
Parameters
- url
-
string | Excel.Session
Property Details
application
workbook
Collaborate with us on GitHub
The source for this content can be found on GitHub, where you can also create and review issues and pull requests. For more information, see our contributor guide.
Office Add-ins