Excel.RequestContext class
RequestContext 对象可加快对 Excel 应用程序的请求。 由于 Office 加载项和 Excel 应用程序在两个不同的进程中运行,因此需要请求上下文才能从外接程序访问 Excel 对象模型。
注解
使用方
- Excel: 运行
- Excel.Application: context
- Excel.Binding: context
- Excel.BindingCollection: context
- Excel.Chart: context
- Excel.ChartAreaFormat: context
- Excel.ChartAxes: context
- Excel.ChartAxis: context
- Excel.ChartAxisFormat: context
- Excel.ChartAxisTitle: context
- Excel.ChartAxisTitleFormat: context
- Excel.ChartCollection: context
- Excel.ChartDataLabelFormat: context
- Excel.ChartDataLabels: context
- Excel.ChartFill: context
- Excel.ChartFont: context
- Excel.ChartGridlines: context
- Excel.ChartGridlinesFormat: context
- Excel.ChartLegend: context
- Excel.ChartLegendFormat: context
- Excel.ChartLineFormat: context
- Excel.ChartPoint: context
- Excel.ChartPointFormat: context
- Excel.ChartPointsCollection: context
- Excel.ChartSeries: context
- Excel.ChartSeriesCollection: context
- Excel.ChartSeriesFormat: context
- Excel.ChartTitle: context
- Excel.ChartTitleFormat: context
- Excel.CustomXmlPart: context
- Excel.CustomXmlPartCollection: context
- Excel.CustomXmlPartScopedCollection: context
- Excel.Filter: context
- Excel.FormatProtection: context
- Excel.FunctionResult: context
- Excel.Functions: context
- Excel.NamedItem: context
- Excel.NamedItemCollection: context
- Excel.PivotTable: context
- Excel.PivotTableCollection: context
- Excel.Range: context
- Excel.RangeBorder: context
- Excel.RangeBorderCollection: context
- Excel.RangeFill: context
- Excel.RangeFont: context
- Excel.RangeFormat: context
- Excel.RangeSort: context
- Excel.RangeView: context
- Excel.RangeViewCollection: context
- Excel.Runtime: context
- Excel.Setting: context
- Excel.SettingCollection: context
- Excel.Table: context
- Excel.TableCollection: context
- Excel.TableColumn: context
- Excel.TableColumnCollection: context
- Excel.TableRow: context
- Excel.TableRowCollection: context
- Excel.TableSort: context
- Excel.Workbook: context
- Excel.Worksheet: context
- Excel.WorksheetCollection: context
- Excel.WorksheetProtection: context
示例
// *.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...
});
构造函数
| (constructor)(url) | 构造 类的新实例 |