Word.RequestContext class
The RequestContext object facilitates requests to the Word application. Since the Office add-in and the Word application run in two different processes, the request context is required to get access to the Word object model from the add-in.
Remarks
Used by
- Word: run
- Word.Annotation: context
- Word.AnnotationCollection: context
- Word.Application: context
- Word.Bibliography: context
- Word.Body: context
- Word.Bookmark: context
- Word.BookmarkCollection: context
- Word.Border: context
- Word.BorderCollection: context
- Word.BorderUniversal: context
- Word.BorderUniversalCollection: context
- Word.Break: context
- Word.BreakCollection: context
- Word.BuildingBlock: context
- Word.BuildingBlockCategory: context
- Word.BuildingBlockCategoryCollection: context
- Word.BuildingBlockCollection: context
- Word.BuildingBlockEntryCollection: context
- Word.BuildingBlockGalleryContentControl: context
- Word.BuildingBlockTypeItem: context
- Word.BuildingBlockTypeItemCollection: context
- Word.Canvas: context
- Word.CheckboxContentControl: context
- Word.Coauthor: context
- Word.CoauthorCollection: context
- Word.Coauthoring: context
- Word.CoauthoringLock: context
- Word.CoauthoringLockCollection: context
- Word.CoauthoringUpdate: context
- Word.CoauthoringUpdateCollection: context
- Word.ColorFormat: context
- Word.ComboBoxContentControl: context
- Word.Comment: context
- Word.CommentCollection: context
- Word.CommentContentRange: context
- Word.CommentReply: context
- Word.CommentReplyCollection: context
- Word.ConditionalStyle: context
- Word.Conflict: context
- Word.ConflictCollection: context
- Word.ContentControl: context
- Word.ContentControlCollection: context
- Word.ContentControlListItem: context
- Word.ContentControlListItemCollection: context
- Word.CritiqueAnnotation: context
- Word.CustomProperty: context
- Word.CustomPropertyCollection: context
- Word.CustomXmlNode: context
- Word.CustomXmlNodeCollection: context
- Word.CustomXmlPart: context
- Word.CustomXmlPartCollection: context
- Word.CustomXmlPartScopedCollection: context
- Word.CustomXmlPrefixMapping: context
- Word.CustomXmlPrefixMappingCollection: context
- Word.CustomXmlSchema: context
- Word.CustomXmlSchemaCollection: context
- Word.CustomXmlValidationError: context
- Word.CustomXmlValidationErrorCollection: context
- Word.DatePickerContentControl: context
- Word.Document: context
- Word.DocumentCreated: context
- Word.DocumentLibraryVersion: context
- Word.DocumentLibraryVersionCollection: context
- Word.DocumentProperties: context
- Word.DropCap: context
- Word.DropDownListContentControl: context
- Word.Editor: context
- Word.EditorCollection: context
- Word.Field: context
- Word.FieldCollection: context
- Word.FillFormat: context
- Word.Font: context
- Word.FontNameCollection: context
- Word.Frame: context
- Word.FrameCollection: context
- Word.GlowFormat: context
- Word.GroupContentControl: context
- Word.HeadingStyle: context
- Word.HeadingStyleCollection: context
- Word.HtmlDivision: context
- Word.HtmlDivisionCollection: context
- Word.Hyperlink: context
- Word.HyperlinkCollection: context
- Word.Index: context
- Word.IndexCollection: context
- Word.InlinePicture: context
- Word.InlinePictureCollection: context
- Word.LineFormat: context
- Word.LineNumbering: context
- Word.LinkFormat: context
- Word.List: context
- Word.ListCollection: context
- Word.ListFormat: context
- Word.ListItem: context
- Word.ListLevel: context
- Word.ListLevelCollection: context
- Word.ListTemplate: context
- Word.ListTemplateCollection: context
- Word.ListTemplateGallery: context
- Word.ListTemplateGalleryCollection: context
- Word.NoteItem: context
- Word.NoteItemCollection: context
- Word.OleFormat: context
- Word.Page: context
- Word.PageCollection: context
- Word.PageSetup: context
- Word.Pane: context
- Word.PaneCollection: context
- Word.Paragraph: context
- Word.ParagraphCollection: context
- Word.ParagraphFormat: context
- Word.PictureContentControl: context
- Word.Range: context
- Word.RangeCollection: context
- Word.RangeScopedCollection: context
- Word.ReadabilityStatistic: context
- Word.ReadabilityStatisticCollection: context
- Word.ReflectionFormat: context
- Word.RepeatingSectionContentControl: context
- Word.RepeatingSectionItem: context
- Word.RepeatingSectionItemCollection: context
- Word.Reviewer: context
- Word.ReviewerCollection: context
- Word.Revision: context
- Word.RevisionCollection: context
- Word.RevisionsFilter: context
- Word.SearchOptions: context
- Word.Section: context
- Word.SectionCollection: context
- Word.Selection: context
- Word.Setting: context
- Word.SettingCollection: context
- Word.Shading: context
- Word.ShadingUniversal: context
- Word.ShadowFormat: context
- Word.Shape: context
- Word.ShapeCollection: context
- Word.ShapeFill: context
- Word.ShapeGroup: context
- Word.ShapeTextWrap: context
- Word.Source: context
- Word.SourceCollection: context
- Word.Style: context
- Word.StyleCollection: context
- Word.TabStop: context
- Word.TabStopCollection: context
- Word.Table: context
- Word.TableBorder: context
- Word.TableCell: context
- Word.TableCellCollection: context
- Word.TableCollection: context
- Word.TableColumn: context
- Word.TableColumnCollection: context
- Word.TableOfAuthorities: context
- Word.TableOfAuthoritiesCategory: context
- Word.TableOfAuthoritiesCategoryCollection: context
- Word.TableOfAuthoritiesCollection: context
- Word.TableOfContents: context
- Word.TableOfContentsCollection: context
- Word.TableOfFigures: context
- Word.TableOfFiguresCollection: context
- Word.TableRow: context
- Word.TableRowCollection: context
- Word.TableStyle: context
- Word.Template: context
- Word.TemplateCollection: context
- Word.TextColumn: context
- Word.TextColumnCollection: context
- Word.TextFrame: context
- Word.ThreeDimensionalFormat: context
- Word.TrackedChange: context
- Word.TrackedChangeCollection: context
- Word.View: context
- Word.WebSettings: context
- Word.Window: context
- Word.WindowCollection: context
- Word.XmlMapping: context
- Word.XmlNode: context
- Word.XmlNodeCollection: context
Examples
// *.run methods automatically create an OfficeExtension.ClientRequestContext
// object to work with the Office file.
await Word.run(async (context: Word.RequestContext) => {
const document = context.document;
// Interact with the Word document...
});
Constructors
| (constructor)(url) | Constructs a new instance of the |
Properties
| application | |
| document |
Constructor Details
(constructor)(url)
Constructs a new instance of the RequestContext class
constructor(url?: string);
Parameters
- url
-
string