Excel.RequestContext class
Объект RequestContext упрощает отправку запросов приложению Excel. Так как надстройка Office и приложение Excel выполняются в двух разных процессах, контекст запроса требуется для получения доступа к объектной модели Excel из надстройки.
Комментарии
Используется
- Excel: запуск
- Excel.AllowEditRange: контекст
- Excel.AllowEditRangeCollection: context
- Excel.Application: контекст
- Excel.AutoFilter: контекст
- Excel.Binding: контекст
- Excel.BindingCollection: контекст
- Excel.CellValueConditionalFormat: context
- Excel.Chart: контекст
- Excel.ChartAreaFormat: контекст
- Excel.ChartAxes: контекст
- Excel.ChartAxis: контекст
- Excel.ChartAxisFormat: контекст
- Excel.ChartAxisTitle: контекст
- Excel.ChartAxisTitleFormat: контекст
- Excel.ChartBinOptions: контекст
- Excel.ChartBorder: контекст
- Excel.ChartBoxwhiskerOptions: контекст
- Excel.ChartCollection: контекст
- Excel.ChartDataLabel: контекст
- Excel.ChartDataLabelAnchor: контекст
- Excel.ChartDataLabelFormat: контекст
- Excel.ChartDataLabels: контекст
- Excel.ChartDataTable: контекст
- Excel.ChartDataTableFormat: контекст
- Excel.ChartErrorBars: контекст
- Excel.ChartErrorBarsFormat: context
- Excel.ChartFill: контекст
- Excel.ChartFont: контекст
- Excel.ChartFormatString: контекст
- Excel.ChartGridlines: контекст
- Excel.ChartGridlinesFormat: контекст
- Excel.ChartLeaderLines: контекст
- Excel.ChartLeaderLinesFormat: context
- Excel.ChartLegend: контекст
- Excel.ChartLegendEntry: контекст
- Excel.ChartLegendEntryCollection: context
- Excel.ChartLegendFormat: контекст
- Excel.ChartLineFormat: контекст
- Excel.ChartMapOptions: контекст
- Excel.ChartPivotOptions: контекст
- Excel.ChartPlotArea: контекст
- Excel.ChartPlotAreaFormat: context
- Excel.ChartPoint: контекст
- Excel.ChartPointFormat: контекст
- Excel.ChartPointsCollection: контекст
- Excel.ChartSeries: контекст
- Excel.ChartSeriesCollection: контекст
- Excel.ChartSeriesFormat: контекст
- Excel.ChartTitle: контекст
- Excel.ChartTitleFormat: контекст
- Excel.ChartTrendline: контекст
- Excel.ChartTrendlineCollection: контекст
- Excel.ChartTrendlineFormat: контекст
- Excel.ChartTrendlineLabel: контекст
- Excel.ChartTrendlineLabelFormat: контекст
- Excel.ColorScaleConditionalFormat: context
- Excel.Comment: контекст
- Excel.CommentCollection: контекст
- Excel.CommentReply: контекст
- Excel.CommentReplyCollection: контекст
- Excel.ConditionalDataBarNegativeFormat: context
- Excel.ConditionalDataBarPositiveFormat: context
- Excel.ConditionalFormat: контекст
- Excel.ConditionalFormatCollection: контекст
- Excel.ConditionalFormatRule: контекст
- Excel.ConditionalRangeBorder: контекст
- Excel.ConditionalRangeBorderCollection: контекст
- Excel.ConditionalRangeFill: контекст
- Excel.ConditionalRangeFont: контекст
- Excel.ConditionalRangeFormat: контекст
- Excel.CultureInfo: контекст
- Excel.CustomConditionalFormat: context
- Excel.CustomFunctionManager: контекст
- Excel.CustomProperty: контекст
- Excel.CustomPropertyCollection: контекст
- Excel.CustomXmlPart: контекст
- Excel.CustomXmlPartCollection: контекст
- Excel.CustomXmlPartScopedCollection: context
- Excel.DataBarConditionalFormat: context
- Excel.DataConnectionCollection:контекст
- Excel.DataPivotHierarchy: контекст
- Excel.DataPivotHierarchyCollection: context
- Excel.DataValidation: контекст
- Excel.DatetimeFormatInfo: контекст
- Excel.DocumentProperties: контекст
- Excel.DocumentTask: контекст
- Excel.DocumentTaskChange: контекст
- Excel.DocumentTaskChangeCollection: context
- Excel.DocumentTaskCollection: контекст
- Excel.Filter: контекст
- Excel.FilterPivotHierarchy: контекст
- Excel.FilterPivotHierarchyCollection: context
- Excel.FormatProtection: контекст
- Excel.FunctionResult: контекст
- Excel.Functions: контекст
- Excel.GeometricShape: контекст
- Excel.GroupShapeCollection: контекст
- Excel.HeaderFooter: контекст
- Excel.HeaderFooterGroup: контекст
- Excel.HeaderFooterPicture: контекст
- Excel.IconSetConditionalFormat: context
- Excel.Image: контекст
- Excel.IterativeCalculation: контекст
- Excel.Line: контекст
- Excel.LinkedEntityDataDomain: контекст
- Excel.LinkedEntityDataDomainCollection: context
- Excel.LinkedWorkbook: контекст
- Excel.LinkedWorkbookCollection: контекст
- Excel.LocalImage: контекст
- Excel.NamedItem: контекст
- Excel.NamedItemArrayValues: контекст
- Excel.NamedItemCollection: контекст
- Excel.NamedSheetView: контекст
- Excel.NamedSheetViewCollection: контекст
- Excel.Note: контекст
- Excel.NoteCollection: контекст
- Excel.NumberFormatInfo: контекст
- Excel.PageBreak: контекст
- Excel.PageBreakCollection: контекст
- Excel.PageLayout: контекст
- Excel.Pane: контекст
- Excel.PaneCollection: контекст
- Excel.PivotField: контекст
- Excel.PivotFieldCollection: контекст
- Excel.PivotHierarchy: контекст
- Excel.PivotHierarchyCollection: context
- Excel.PivotItem: контекст
- Excel.PivotItemCollection: контекст
- Excel.PivotLayout: контекст
- Excel.PivotTable: контекст
- Excel.PivotTableCollection: контекст
- Excel.PivotTableScopedCollection: context
- Excel.PivotTableStyle: контекст
- Excel.PivotTableStyleCollection: контекст
- Excel.PresetCriteriaConditionalFormat: context
- Excel.Query: контекст
- Excel.QueryCollection: контекст
- Excel.Range: контекст
- Excel.RangeAreas: контекст
- Excel.RangeAreasCollection: контекст
- Excel.RangeBorder: контекст
- Excel.RangeBorderCollection: контекст
- Excel.RangeCollection: контекст
- Excel.RangeFill: контекст
- Excel.RangeFont: контекст
- Excel.RangeFormat: контекст
- Excel.RangeSort: контекст
- Excel.RangeView: контекст
- Excel.RangeViewCollection: контекст
- Excel.RemoveDuplicatesResult: контекст
- Excel.RowColumnPivotHierarchy: контекст
- Excel.RowColumnPivotHierarchyCollection: context
- Excel.Runtime: контекст
- Excel.Setting: контекст
- Excel.SettingCollection: контекст
- Excel.Shape: контекст
- Excel.ShapeCollection: контекст
- Excel.ShapeFill: контекст
- Excel.ShapeFont: контекст
- Excel.ShapeGroup: контекст
- Excel.ShapeLineFormat: контекст
- Excel.Slicer: контекст
- Excel.SlicerCollection: контекст
- Excel.SlicerItem: контекст
- Excel.SlicerItemCollection: context
- Excel.SlicerStyle: контекст
- Excel.SlicerStyleCollection: контекст
- Excel.Style: контекст
- Excel.StyleCollection: контекст
- Excel.Table: контекст
- Excel.TableChangedEventArgs: getRange, getRangeOrNullObject
- Excel.TableCollection: контекст
- Excel.TableColumn: контекст
- Excel.TableColumnCollection: контекст
- Excel.TableRow: контекст
- Excel.TableRowCollection: контекст
- Excel.TableScopedCollection: контекст
- Excel.TableSort: контекст
- Excel.TableStyle: контекст
- Excel.TableStyleCollection: контекст
- Excel.TextConditionalFormat: context
- Excel.TextFrame: контекст
- Excel.TextRange: контекст
- Excel.TimelineStyle: контекст
- Excel.TimelineStyleCollection: контекст
- Excel.TopBottomConditionalFormat: context
- Excel.Window: контекст
- Excel.WindowCollection: контекст
- Excel.Workbook: контекст
- Excel.WorkbookCreated: context
- Excel.WorkbookProtection: контекст
- Excel.WorkbookRangeAreas: контекст
- Excel.Worksheet: контекст
- Excel.WorksheetChangedEventArgs: getRange, getRangeOrNullObject
- Excel.WorksheetCollection: контекст
- Excel.WorksheetCustomProperty: context
- Excel.WorksheetCustomPropertyCollection: context
- Excel.WorksheetFormatChangedEventArgs: getRange, getRangeOrNullObject
- Excel.WorksheetFreezePanes: контекст
- Excel.WorksheetProtection: контекст
Примеры
// *.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, invocation) | Создает новый экземпляр |
Методы
| set |
Сведения о конструкторе
(constructor)(url, invocation)
Создает новый экземпляр RequestContext класса
constructor(url?: string | Session, invocation?: {
invocationId: number;
isInSyncExecution: boolean;
});
Параметры
- url
-
string | Excel.Session
- invocation
-
{ invocationId: number; isInSyncExecution: boolean; }
Сведения о свойстве
application
runtime
workbook
Сведения о методе
setInvocation(invocation)
setInvocation(invocation: {
invocationId: number;
isInSyncExecution: boolean;
}): void;
Параметры
- invocation
-
{ invocationId: number; isInSyncExecution: boolean; }
Возвращаемое значение
void