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 vom Add-In aus Zugriff auf das Excel-Objektmodell zu erhalten.
Hinweise
Verwendet von
- Excel: Ausführen
- Excel.Application: context
- Excel.Binding: Kontext
- Excel.BindingCollection: Kontext
- Excel.CellValueConditionalFormat: Kontext
- Excel.Chart: Kontext
- Excel.ChartAreaFormat: Kontext
- Excel.ChartAxes: Kontext
- Excel.ChartAxis: Kontext
- Excel.ChartAxisFormat: Kontext
- Excel.ChartAxisTitle: Kontext
- Excel.ChartAxisTitleFormat: Kontext
- Excel.ChartBorder: Kontext
- Excel.ChartCollection: Kontext
- Excel.ChartDataLabel: Kontext
- Excel.ChartDataLabelFormat: Kontext
- Excel.ChartDataLabels: Kontext
- Excel.ChartFill: Kontext
- Excel.ChartFont: Kontext
- Excel.ChartFormatString: Kontext
- Excel.ChartGridlines: Kontext
- Excel.ChartGridlinesFormat: Kontext
- Excel.ChartLegend: Kontext
- Excel.ChartLegendEntry: Kontext
- Excel.ChartLegendEntryCollection: Kontext
- Excel.ChartLegendFormat: Kontext
- Excel.ChartLineFormat: Kontext
- Excel.ChartPoint: Kontext
- Excel.ChartPointFormat: Kontext
- Excel.ChartPointsCollection: Kontext
- Excel.ChartSeries: Kontext
- Excel.ChartSeriesCollection: Kontext
- Excel.ChartSeriesFormat: Kontext
- Excel.ChartTitle: Kontext
- Excel.ChartTitleFormat: Kontext
- Excel.ChartTrendline: Kontext
- Excel.ChartTrendlineCollection: Kontext
- Excel.ChartTrendlineFormat: Kontext
- Excel.ColorScaleConditionalFormat: Kontext
- Excel.ConditionalDataBarNegativeFormat: Kontext
- Excel.ConditionalDataBarPositiveFormat: Kontext
- Excel.ConditionalFormat: Kontext
- Excel.ConditionalFormatCollection: Kontext
- Excel.ConditionalFormatRule: Kontext
- Excel.ConditionalRangeBorder: Kontext
- Excel.ConditionalRangeBorderCollection: Kontext
- Excel.ConditionalRangeFill: Kontext
- Excel.ConditionalRangeFont: Kontext
- Excel.ConditionalRangeFormat: Kontext
- Excel.CustomConditionalFormat: Kontext
- Excel.CustomProperty: Kontext
- Excel.CustomPropertyCollection: Kontext
- Excel.CustomXmlPart: Kontext
- Excel.CustomXmlPartCollection: Kontext
- Excel.CustomXmlPartScopedCollection: Kontext
- Excel.DataBarConditionalFormat: Kontext
- Excel.DataConnectionCollection: Kontext
- Excel.DocumentProperties: Kontext
- Excel.Filter: Kontext
- Excel.FormatProtection: Kontext
- Excel.FunctionResult: Kontext
- Excel.Functions: Kontext
- Excel.IconSetConditionalFormat: Kontext
- Excel.NamedItem: Kontext
- Excel.NamedItemArrayValues: Kontext
- Excel.NamedItemCollection: Kontext
- Excel.PivotTable: Kontext
- Excel.PivotTableCollection: Kontext
- Excel.PresetCriteriaConditionalFormat: Kontext
- Excel.Range: Kontext
- Excel.RangeBorder: Kontext
- Excel.RangeBorderCollection: Kontext
- Excel.RangeFill: Kontext
- Excel.RangeFont: Kontext
- Excel.RangeFormat: Kontext
- Excel.RangeSort: Kontext
- Excel.RangeView: Kontext
- Excel.RangeViewCollection: Kontext
- Excel.Runtime: Kontext
- Excel.Setting: Kontext
- Excel.SettingCollection: Kontext
- Excel.Style: Kontext
- Excel.StyleCollection: Kontext
- Excel.Table: Kontext
- Excel.TableCollection: Kontext
- Excel.TableColumn: Kontext
- Excel.TableColumnCollection: Kontext
- Excel.TableRow: Kontext
- Excel.TableRowCollection: Kontext
- Excel.TableSort: Kontext
- Excel.TextConditionalFormat: Kontext
- Excel.TopBottomConditionalFormat: Kontext
- Excel.Workbook: Kontext
- Excel.WorkbookProtection: Kontext
- Excel.Worksheet: Kontext
- Excel.WorksheetCollection: Kontext
- Excel.WorksheetFreezePanes: Kontext
- Excel.WorksheetProtection: Kontext
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 | |
| runtime | |
| workbook |
Details zum Konstruktor
(constructor)(url)
Erstellt eine neue Instance der RequestContext Klasse
constructor(url?: string | Session);
Parameter
- url
-
string | Excel.Session