ContentControlBase Class (2007 System)

Provides the base class for content controls in Visual Studio Tools for Office solutions.

Namespace:  Microsoft.Office.Tools.Word
Assembly:  Microsoft.Office.Tools.Word.v9.0 (in Microsoft.Office.Tools.Word.v9.0.dll)

Syntax

'Declaration
<StrongNameIdentityPermissionAttribute(SecurityAction.InheritanceDemand, PublicKey := "002400000480000094000000060200000024000052534131000400000100010007D1FA57C4AED9F0A32E84AA0FAEFD0DE9E8FD6AEC8F87FB03766C834C99921EB23BE79AD9D5DCC1DD9AD236132102900B723CF980957FC4E177108FC607774F29E8320E92EA05ECE4E821C0A5EFE8F1645C4C0C93C1AB99285D622CAA652C1DFAD63D745D6F2DE5F17E5EAF0FC4963D261C8A12436518206DC093344D5AD293")> _
Public MustInherit Class ContentControlBase _
    Inherits RemoteBindableComponent
'Usage
Dim instance As ContentControlBase
[StrongNameIdentityPermissionAttribute(SecurityAction.InheritanceDemand, PublicKey = "002400000480000094000000060200000024000052534131000400000100010007D1FA57C4AED9F0A32E84AA0FAEFD0DE9E8FD6AEC8F87FB03766C834C99921EB23BE79AD9D5DCC1DD9AD236132102900B723CF980957FC4E177108FC607774F29E8320E92EA05ECE4E821C0A5EFE8F1645C4C0C93C1AB99285D622CAA652C1DFAD63D745D6F2DE5F17E5EAF0FC4963D261C8A12436518206DC093344D5AD293")]
public abstract class ContentControlBase : RemoteBindableComponent
[StrongNameIdentityPermissionAttribute(SecurityAction::InheritanceDemand, PublicKey = L"002400000480000094000000060200000024000052534131000400000100010007D1FA57C4AED9F0A32E84AA0FAEFD0DE9E8FD6AEC8F87FB03766C834C99921EB23BE79AD9D5DCC1DD9AD236132102900B723CF980957FC4E177108FC607774F29E8320E92EA05ECE4E821C0A5EFE8F1645C4C0C93C1AB99285D622CAA652C1DFAD63D745D6F2DE5F17E5EAF0FC4963D261C8A12436518206DC093344D5AD293")]
public ref class ContentControlBase abstract : public RemoteBindableComponent
public abstract class ContentControlBase extends RemoteBindableComponent

Remarks

The ContentControlBase class 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

Do not derive your own types from the ContentControlBase class. This class is designed to be the base class only for content control classes provided by Visual Studio Tools for Office, such as PlainTextContentControl.

Inheritance Hierarchy

System.Object
  Microsoft.VisualStudio.Tools.Office.RemoteComponent
    Microsoft.VisualStudio.Tools.Office.RemoteBindableComponent
      Microsoft.Office.Tools.Word.ContentControlBase
        Microsoft.Office.Tools.Word.BuildingBlockGalleryContentControl
        Microsoft.Office.Tools.Word.ComboBoxContentControl
        Microsoft.Office.Tools.Word.ContentControl
        Microsoft.Office.Tools.Word.DatePickerContentControl
        Microsoft.Office.Tools.Word.DropDownListContentControl
        Microsoft.Office.Tools.Word.GroupContentControl
        Microsoft.Office.Tools.Word.PictureContentControl
        Microsoft.Office.Tools.Word.PlainTextContentControl
        Microsoft.Office.Tools.Word.RichTextContentControl

Thread Safety

Any public static (Shared in Visual Basic) members of this type are thread safe. Any instance members are not guaranteed to be thread safe.

See Also

Reference

ContentControlBase Members

Microsoft.Office.Tools.Word Namespace

Other Resources

Content Controls

How to: Add Content Controls to Word Documents

Walkthrough: Creating a Template By Using Content Controls