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.AllowEditRange: kontext
- Excel.AllowEditRangeCollection: kontext
- Excel.Application: Kontext
- Excel.AutoFilter: Kontext
- Excel.Binding: kontext
- Excel.BindingCollection: kontext
- Excel.CellValueConditionalFormat: context
- Excel.Chart: Kontext
- Excel.ChartAreaFormat: context
- Excel.ChartAxes: kontext
- Excel.ChartAxis: kontext
- Excel.ChartAxisFormat: context
- Excel.ChartAxisTitle: kontext
- Excel.ChartAxisTitleFormat: context
- Excel.ChartBinOptions: context
- Excel.ChartBorder: context
- Excel.ChartBoxwhiskerOptions: context
- Excel.ChartCollection: kontext
- Excel.ChartDataLabel: context
- Excel.ChartDataLabelAnchor: context
- Excel.ChartDataLabelFormat: context
- Excel.ChartDataLabels: context
- Excel.ChartDataTable: kontext
- Excel.ChartDataTableFormat: context
- Excel.ChartErrorBars: kontext
- Excel.ChartErrorBarsFormat: context
- Excel.ChartFill: kontext
- Excel.ChartFont: kontext
- Excel.ChartFormatString: context
- Excel.ChartGridlines: kontext
- Excel.ChartGridlinesFormat: context
- Excel.ChartLeaderLines: kontext
- Excel.ChartLeaderLinesFormat: context
- Excel.ChartLegend: kontext
- Excel.ChartLegendEntry: context
- Excel.ChartLegendEntryCollection: kontext
- Excel.ChartLegendFormat: context
- Excel.ChartLineFormat: context
- Excel.ChartMapOptions: kontext
- Excel.ChartPivotOptions: kontext
- Excel.ChartPlotArea: kontext
- Excel.ChartPlotAreaFormat: 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.ChartTrendline: kontext
- Excel.ChartTrendlineCollection: kontext
- Excel.ChartTrendlineFormat: context
- Excel.ChartTrendlineLabel: context
- Excel.ChartTrendlineLabelFormat: context
- Excel.ColorScaleConditionalFormat: context
- Excel.Comment: kontext
- Excel.CommentCollection: kontext
- Excel.CommentReply: kontext
- Excel.CommentReplyCollection: kontext
- Excel.ConditionalDataBarNegativeFormat: context
- Excel.ConditionalDataBarPositiveFormat: context
- Excel.ConditionalFormat: kontext
- Excel.ConditionalFormatCollection: kontext
- Excel.ConditionalFormatRule: context
- Excel.ConditionalRangeBorder: context
- Excel.ConditionalRangeBorderCollection: context
- Excel.ConditionalRangeFill: context
- Excel.ConditionalRangeFont: context
- Excel.ConditionalRangeFormat: context
- Excel.CultureInfo: kontext
- Excel.CustomConditionalFormat: context
- Excel.CustomFunctionManager: kontext
- Excel.CustomProperty: context
- Excel.CustomPropertyCollection: kontext
- Excel.CustomXmlPart: kontext
- Excel.CustomXmlPartCollection: kontext
- Excel.CustomXmlPartScopedCollection: kontext
- Excel.DataBarConditionalFormat: context
- Excel.DataConnectionCollection: kontext
- Excel.DataPivotHierarchy: context
- Excel.DataPivotHierarchyCollection: context
- Excel.DataValidation: kontext
- Excel.DatetimeFormatInfo: context
- Excel.DocumentProperties: kontext
- Excel.DocumentTask: kontext
- Excel.DocumentTaskChange: context
- Excel.DocumentTaskChangeCollection: kontext
- Excel.DocumentTaskCollection: kontext
- Excel.Filter: Kontext
- Excel.FilterPivotHierarchy: context
- Excel.FilterPivotHierarchyCollection: context
- Excel.FormatProtection: kontext
- Excel.FunctionResult: kontext
- Excel.Functions: Kontext
- Excel.GeometricShape: Kontext
- Excel.GroupShapeCollection: kontext
- Excel.HeaderFooter: kontext
- Excel.HeaderFooterGroup: kontext
- Excel.HeaderFooterPicture: context
- Excel.IconSetConditionalFormat: context
- Excel.Image: Kontext
- Excel.IterativeCalculation: context
- Excel.Line: Kontext
- Excel.LinkedEntityDataDomain: context
- Excel.LinkedEntityDataDomainCollection: context
- Excel.LinkedWorkbook: kontext
- Excel.LinkedWorkbookCollection: kontext
- Excel.LocalImage: context
- Excel.NamedItem: context
- Excel.NamedItemArrayValues: context
- Excel.NamedItemCollection: kontext
- Excel.NamedSheetView: kontext
- Excel.NamedSheetViewCollection: kontext
- Excel.Note: kontext
- Excel.NoteCollection: kontext
- Excel.NumberFormatInfo: kontext
- Excel.PageBreak: kontext
- Excel.PageBreakCollection: kontext
- Excel.PageLayout: kontext
- Excel.Pane: Kontext
- Excel.PaneCollection: kontext
- Excel.PivotField: kontext
- Excel.PivotFieldCollection: kontext
- Excel.PivotHierarchy: kontext
- Excel.PivotHierarchyCollection: context
- Excel.PivotItem: kontext
- Excel.PivotItemCollection: kontext
- Excel.PivotLayout: kontext
- Excel.PivotTable: Kontext
- Excel.PivotTableCollection: kontext
- Excel.PivotTableScopedCollection: kontext
- Excel.PivotTableStyle: kontext
- Excel.PivotTableStyleCollection: kontext
- Excel.PresetCriteriaConditionalFormat: context
- Excel.Query: Kontext
- Excel.QueryCollection: kontext
- Excel.Range: Kontext
- Excel.RangeAreas: kontext
- Excel.RangeAreasCollection: kontext
- Excel.RangeBorder: context
- Excel.RangeBorderCollection: kontext
- Excel.RangeCollection: kontext
- Excel.RangeFill: kontext
- Excel.RangeFont: kontext
- Excel.RangeFormat: kontext
- Excel.RangeSort: Kontext
- Excel.RangeView: Kontext
- Excel.RangeViewCollection: kontext
- Excel.RemoveDuplicatesResult: context
- Excel.RowColumnPivotHierarchy: context
- Excel.RowColumnPivotHierarchyCollection: context
- Excel.Runtime: Kontext
- Excel.Setting: kontext
- Excel.SettingCollection: kontext
- Excel.Shape: Kontext
- Excel.ShapeCollection: kontext
- Excel.ShapeFill: kontext
- Excel.ShapeFont: kontext
- Excel.ShapeGroup: Kontext
- Excel.ShapeLineFormat: kontext
- Excel.Slicer: Kontext
- Excel.SlicerCollection: kontext
- Excel.SlicerItem: context
- Excel.SlicerItemCollection: context
- Excel.SlicerStyle: kontext
- Excel.SlicerStyleCollection: kontext
- Excel.Style: Kontext
- Excel.StyleCollection: kontext
- Excel.Table: Kontext
- Excel.TableChangedEventArgs: getRange, getRangeOrNullObject
- Excel.TableCollection: kontext
- Excel.TableColumn: context
- Excel.TableColumnCollection: context
- Excel.TableRow: kontext
- Excel.TableRowCollection: kontext
- Excel.TableScopedCollection: kontext
- Excel.TableSort: kontext
- Excel.TableStyle: kontext
- Excel.TableStyleCollection: kontext
- Excel.TextConditionalFormat: context
- Excel.TextFrame: kontext
- Excel.TextRange: context
- Excel.TimelineStyle: kontext
- Excel.TimelineStyleCollection: kontext
- Excel.TopBottomConditionalFormat: context
- Excel.Window: Kontext
- Excel.WindowCollection: kontext
- Excel.Workbook: Kontext
- Excel.WorkbookCreated: context
- Excel.WorkbookProtection: kontext
- Excel.WorkbookRangeAreas: context
- Excel.Worksheet: kontext
- Excel.WorksheetChangedEventArgs: getRange, getRangeOrNullObject
- Excel.WorksheetCollection: kontext
- Excel.WorksheetCustomProperty: context
- Excel.WorksheetCustomPropertyCollection: context
- Excel.WorksheetFormatChangedEventArgs: getRange, getRangeOrNullObject
- Excel.WorksheetFreezePanes: context
- 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, invocation) | Erstellt eine neue instance der |
Eigenschaften
| application | |
| runtime | |
| workbook |
Methoden
| set |
Details zum Konstruktor
(constructor)(url, invocation)
Erstellt eine neue instance der RequestContext -Klasse
constructor(url?: string | Session, invocation?: {
invocationId: number;
isInSyncExecution: boolean;
});
Parameter
- url
-
string | Excel.Session
- invocation
-
{ invocationId: number; isInSyncExecution: boolean; }
Details zur Eigenschaft
application
runtime
workbook
Details zur Methode
setInvocation(invocation)
setInvocation(invocation: {
invocationId: number;
isInSyncExecution: boolean;
}): void;
Parameter
- invocation
-
{ invocationId: number; isInSyncExecution: boolean; }
Gibt zurück
void