Excel.RequestContext class
Das RequestContext-Objekt erleichtert Anforderungen an die Excel-Anwendung. Da das Office-Add-In und die Excel-Anwendung in zwei verschiedenen Prozessen ausgeführt werden, ist der Anforderungskontext erforderlich, um über das Add-In Zugriff auf das Excel-Objektmodell zu erhalten.
Hinweise
Verwendet von
- Excel: Ausführen
- Excel.Application: Kontext
- Excel.Binding: kontext
- Excel.BindingCollection: kontext
- Excel.Chart: Kontext
- Excel.ChartAreaFormat: context
- Excel.ChartAxes: kontext
- Excel.ChartAxis: kontext
- Excel.ChartAxisFormat: context
- Excel.ChartAxisTitle: kontext
- Excel.ChartAxisTitleFormat: context
- Excel.ChartCollection: kontext
- Excel.ChartDataLabelFormat: context
- Excel.ChartDataLabels: context
- Excel.ChartFill: kontext
- Excel.ChartFont: kontext
- Excel.ChartGridlines: kontext
- Excel.ChartGridlinesFormat: context
- Excel.ChartLegend: kontext
- Excel.ChartLegendFormat: context
- Excel.ChartLineFormat: context
- Excel.ChartPoint: Kontext
- Excel.ChartPointFormat: context
- Excel.ChartPointsCollection: kontext
- Excel.ChartSeries: Kontext
- Excel.ChartSeriesCollection: kontext
- Excel.ChartSeriesFormat: context
- Excel.ChartTitle: kontext
- Excel.ChartTitleFormat: context
- Excel.Filter: Kontext
- Excel.FormatProtection: kontext
- Excel.FunctionResult: kontext
- Excel.Functions: Kontext
- Excel.NamedItem: context
- Excel.NamedItemCollection: kontext
- Excel.Range: Kontext
- Excel.RangeBorder: context
- Excel.RangeBorderCollection: kontext
- Excel.RangeFill: kontext
- Excel.RangeFont: kontext
- Excel.RangeFormat: kontext
- Excel.RangeSort: Kontext
- Excel.Table: Kontext
- Excel.TableCollection: kontext
- Excel.TableColumn: context
- Excel.TableColumnCollection: context
- Excel.TableRow: kontext
- Excel.TableRowCollection: kontext
- Excel.TableSort: kontext
- Excel.Workbook: Kontext
- Excel.Worksheet: kontext
- Excel.WorksheetCollection: kontext
- Excel.WorksheetProtection: context
Beispiele
// *.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...
});
Konstruktoren
| (constructor)(url) | Erstellt eine neue instance der |
Eigenschaften
| application | |
| workbook |
Details zum Konstruktor
(constructor)(url)
Erstellt eine neue instance der RequestContext -Klasse
constructor(url?: string | Session);
Parameter
- url
-
string | Excel.Session