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.AllowEditRange: Kontext
- Excel.AllowEditRangeCollection: Kontext
- Excel.Application: context
- Excel.AutoFilter: Kontext
- 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.ChartBinOptions: Kontext
- Excel.ChartBorder: Kontext
- Excel.ChartBoxwhiskerOptions: Kontext
- Excel.ChartCollection: Kontext
- Excel.ChartDataLabel: Kontext
- Excel.ChartDataLabelAnchor: Kontext
- Excel.ChartDataLabelFormat: Kontext
- Excel.ChartDataLabels: Kontext
- Excel.ChartDataTable: Kontext
- Excel.ChartDataTableFormat: Kontext
- Excel.ChartErrorBars: Kontext
- Excel.ChartErrorBarsFormat: Kontext
- Excel.ChartFill: Kontext
- Excel.ChartFont: Kontext
- Excel.ChartFormatString: Kontext
- Excel.ChartGridlines: Kontext
- Excel.ChartGridlinesFormat: Kontext
- Excel.ChartLeaderLines: Kontext
- Excel.ChartLeaderLinesFormat: context
- Excel.ChartLegend: Kontext
- Excel.ChartLegendEntry: Kontext
- Excel.ChartLegendEntryCollection: Kontext
- Excel.ChartLegendFormat: Kontext
- Excel.ChartLineFormat: Kontext
- Excel.ChartMapOptions: Kontext
- Excel.ChartPivotOptions: Kontext
- Excel.ChartPlotArea: Kontext
- Excel.ChartPlotAreaFormat: 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.ChartTrendlineLabel: Kontext
- Excel.ChartTrendlineLabelFormat: Kontext
- Excel.ColorScaleConditionalFormat: Kontext
- Excel.Comment: Kontext
- Excel.CommentCollection: Kontext
- Excel.CommentReply: Kontext
- Excel.CommentReplyCollection: 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.CultureInfo: Kontext
- Excel.CustomConditionalFormat: Kontext
- Excel.CustomFunctionManager: Kontext
- Excel.CustomProperty: Kontext
- Excel.CustomPropertyCollection: Kontext
- Excel.CustomXmlPart: Kontext
- Excel.CustomXmlPartCollection: Kontext
- Excel.CustomXmlPartScopedCollection: Kontext
- Excel.DataBarConditionalFormat: Kontext
- Excel.DataConnectionCollection: Kontext
- Excel.DataPivotHierarchy: Kontext
- Excel.DataPivotHierarchyCollection: Kontext
- Excel.DataValidation: Kontext
- Excel.DatetimeFormatInfo: Kontext
- Excel.DocumentProperties: Kontext
- Excel.DocumentTask: Kontext
- Excel.DocumentTaskChange: Kontext
- Excel.DocumentTaskChangeCollection: Kontext
- Excel.DocumentTaskCollection: Kontext
- Excel.Filter: Kontext
- Excel.FilterPivotHierarchy: Kontext
- Excel.FilterPivotHierarchyCollection: Kontext
- 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: Kontext
- Excel.Image: Kontext
- Excel.IterativeCalculation: Kontext
- Excel.Line: Kontext
- Excel.LinkedEntityDataDomain: Kontext
- Excel.LinkedEntityDataDomainCollection: Kontext
- Excel.LinkedWorkbook: Kontext
- Excel.LinkedWorkbookCollection: Kontext
- Excel.LocalImage: Kontext
- Excel.NamedItem: Kontext
- Excel.NamedItemArrayValues: Kontext
- 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: Kontext
- 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: Kontext
- Excel.Query: Kontext
- Excel.QueryCollection: Kontext
- Excel.Range: Kontext
- Excel.RangeAreas: Kontext
- Excel.RangeAreasCollection: Kontext
- Excel.RangeBorder: Kontext
- 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: Kontext
- Excel.RowColumnPivotHierarchy: Kontext
- Excel.RowColumnPivotHierarchyCollection: Kontext
- Excel.Runtime: Kontext
- Excel.SensitivityLabel: Kontext
- Excel.SensitivityLabelDetails: Kontext
- Excel.SensitivityLabelDetailsCollection: Kontext
- Excel.SensitivityLabelsCatalog: 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: Kontext
- Excel.SlicerItemCollection: Kontext
- Excel.SlicerStyle: Kontext
- Excel.SlicerStyleCollection: Kontext
- Excel.Style: Kontext
- Excel.StyleCollection: Kontext
- Excel.Table: Kontext
- Excel.TableChangedEventArgs: getRange, getRangeOrNullObject
- Excel.TableCollection: Kontext
- Excel.TableColumn: Kontext
- Excel.TableColumnCollection: Kontext
- Excel.TableRow: Kontext
- Excel.TableRowCollection: Kontext
- Excel.TableScopedCollection: Kontext
- Excel.TableSort: Kontext
- Excel.TableStyle: Kontext
- Excel.TableStyleCollection: Kontext
- Excel.TextConditionalFormat: Kontext
- Excel.TextFrame: Kontext
- Excel.TextRange: Kontext
- Excel.TimelineStyle: Kontext
- Excel.TimelineStyleCollection: Kontext
- Excel.TopBottomConditionalFormat: Kontext
- Excel.Window: Kontext
- Excel.WindowCollection: Kontext
- Excel.Workbook: Kontext
- Excel.WorkbookCreated: Kontext
- Excel.WorkbookProtection: Kontext
- Excel.WorkbookRangeAreas: Kontext
- Excel.Worksheet: Kontext
- Excel.WorksheetChangedEventArgs: getRange, getRangeOrNullObject
- Excel.WorksheetCollection: Kontext
- Excel.WorksheetCustomProperty: Kontext
- Excel.WorksheetCustomPropertyCollection: Kontext
- Excel.WorksheetFormatChangedEventArgs: getRange, getRangeOrNullObject
- 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, invocation) | Erstellt eine neue Instance der |
Eigenschaften
| application | |
| runtime | |
| sensitivity |
|
| 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
sensitivityLabelsCatalog
API-Satz: ExcelApi BETA (NUR VORSCHAU)
readonly sensitivityLabelsCatalog: SensitivityLabelsCatalog;
Eigenschaftswert
workbook
Details zur Methode
setInvocation(invocation)
setInvocation(invocation: {
invocationId: number;
isInSyncExecution: boolean;
}): void;
Parameter
- invocation
-
{ invocationId: number; isInSyncExecution: boolean; }
Gibt zurück
void