Word.ContentControlEventArgs interface
Note
This API is provided as a preview for developers and may change based on feedback that we receive. Do not use this API in a production environment.
Provides information about the content control that raised an event.
Remarks
[ API set: WordApi BETA (PREVIEW ONLY) ]
Properties
content |
The object that raised the event. Load this object to get its properties. |
event |
The event type. See Word.EventType for details. |
ids | Gets the content control IDs. |
source | The source of the event. It can be local or remote (through coauthoring). |
Property Details
contentControl
Note
This API is provided as a preview for developers and may change based on feedback that we receive. Do not use this API in a production environment.
The object that raised the event. Load this object to get its properties.
contentControl: Word.ContentControl;
Property Value
Remarks
eventType
Note
This API is provided as a preview for developers and may change based on feedback that we receive. Do not use this API in a production environment.
The event type. See Word.EventType for details.
eventType: Word.EventType | "ContentControlDeleted" | "ContentControlSelectionChanged" | "ContentControlDataChanged" | "ContentControlAdded" | "CommentDeleted" | "CommentSelected" | "CommentDeselected" | "CommentChanged" | "CommentAdded" | "ContentControlEntered" | "ContentControlExited" | "ParagraphAdded" | "ParagraphChanged" | "ParagraphDeleted" | "AnnotationClicked" | "AnnotationHovered" | "AnnotationInserted" | "AnnotationRemoved" | "AnnotationPopupAction";
Property Value
Word.EventType | "ContentControlDeleted" | "ContentControlSelectionChanged" | "ContentControlDataChanged" | "ContentControlAdded" | "CommentDeleted" | "CommentSelected" | "CommentDeselected" | "CommentChanged" | "CommentAdded" | "ContentControlEntered" | "ContentControlExited" | "ParagraphAdded" | "ParagraphChanged" | "ParagraphDeleted" | "AnnotationClicked" | "AnnotationHovered" | "AnnotationInserted" | "AnnotationRemoved" | "AnnotationPopupAction"
Remarks
ids
Note
This API is provided as a preview for developers and may change based on feedback that we receive. Do not use this API in a production environment.
Gets the content control IDs.
ids: number[];
Property Value
number[]
Remarks
source
Note
This API is provided as a preview for developers and may change based on feedback that we receive. Do not use this API in a production environment.
The source of the event. It can be local or remote (through coauthoring).
source: Word.EventSource | "Local" | "Remote";
Property Value
Word.EventSource | "Local" | "Remote"
Remarks
Office Add-ins
Feedback
https://aka.ms/ContentUserFeedback.
Coming soon: Throughout 2024 we will be phasing out GitHub Issues as the feedback mechanism for content and replacing it with a new feedback system. For more information see:Submit and view feedback for