ContentControlBase Interface
Provides the base interface for content controls in Word solutions created by using the Office development tools in Visual Studio.
Namespace: Microsoft.Office.Tools.Word
Assembly: Microsoft.Office.Tools.Word (in Microsoft.Office.Tools.Word.dll)
Syntax
'Declaration
<GuidAttribute("6E36F826-A7DA-441D-87E3-2D7BE852867E")> _
Public Interface ContentControlBase _
Inherits IBindableComponent, IComponent, IDisposable, ISupportInitialize
[GuidAttribute("6E36F826-A7DA-441D-87E3-2D7BE852867E")]
public interface ContentControlBase : IBindableComponent,
IComponent, IDisposable, ISupportInitialize
The ContentControlBase type exposes the following members.
Properties
Name | Description | |
---|---|---|
BindingContext | Gets or sets the collection of currency managers for the IBindableComponent. (Inherited from IBindableComponent.) | |
Container | Infrastructure. | |
ContainerComponent | Infrastructure. | |
DataBindings | Gets the collection of data-binding objects for this IBindableComponent. (Inherited from IBindableComponent.) | |
DefaultDataSourceUpdateMode | Gets or sets the default DataSourceUpdateMode for the ContentControlBase. | |
ID | Gets a unique number that identifies the content control. | |
InnerObject | Gets the underlying Microsoft.Office.Interop.Word.ContentControl object for the Microsoft.Office.Tools.Word.ContentControlBase. | |
Site | Gets or sets the ISite associated with the IComponent. (Inherited from IComponent.) |
Top
Methods
Name | Description | |
---|---|---|
BeginInit | Signals the object that initialization is starting. (Inherited from ISupportInitialize.) | |
Delete | Deletes a dynamically created content control from the document and removes it from the ControlCollection in the document. | |
Dispose | Performs application-defined tasks associated with freeing, releasing, or resetting unmanaged resources. (Inherited from IDisposable.) | |
EndInit | Signals the object that initialization is complete. (Inherited from ISupportInitialize.) |
Top
Events
Name | Description | |
---|---|---|
Added | Occurs after the content control is added to the document. | |
BindingContextChanged | Occurs when the value of the BindingContext property of the ContentControlBase changes. | |
ContentUpdating | Occurs just before Microsoft Office Word updates the text in the content control, if the content control is bound to a custom XML part. | |
Deleting | Occurs just before the content control is deleted from the document. | |
Disposed | Represents the method that handles the Disposed event of a component. (Inherited from IComponent.) | |
Entering | Occurs when the user clicks in the content control, or when the cursor is moved into the content control programmatically. | |
Exiting | Occurs when the user clicks outside the content control, or when the cursor is moved outside the content control programmatically. | |
StoreUpdating | Occurs just before Microsoft Office Word updates data in a custom XML part that is bound to the content control (that is, after the text in the content control changes). | |
Validated | Occurs when the content control has been successfully validated. | |
Validating | Occurs when the contents of the content control are being validated. |
Top
Remarks
The ContentControlBase interface defines members that are shared by all content controls. There are eight types of content controls that you can use to design documents and templates in Microsoft Office Word. Content controls have a user interface (UI) that has controlled input like a form. You can use content controls to prevent users from editing protected sections of the document or template, and you can also bind content controls to a data source. For more information, see Content Controls.
Note
This interface is implemented by the Visual Studio Tools for Office runtime. It is not intended to be implemented in your code. For more information, see Visual Studio Tools for Office Runtime Overview.
Usage
This documentation describes the version of this type that is used in Office projects that target the .NET Framework 4. In projects that target the .NET Framework 3.5, this type might have different members and the code examples provided for this type might not work. For documentation about this type in projects that target the .NET Framework 3.5, see the following reference section in the Visual Studio 2008 documentation: https://go.microsoft.com/fwlink/?LinkId=160658.
See Also
Reference
Microsoft.Office.Tools.Word Namespace