- Word Content Control Macro
- Microsoft Word Mac Update
- Microsoft Word Content Control
- Microsoft Word Update Content Control Mac Free
- Microsoft Word Update Content Control Mac Download
- Content Control Wpf
Microsoft Word can create a table of contents that can be instantly updated to reflect additions and changes in your document. This table of contents acts as both a guide and navigation tool that enables readers to quickly find the information they need. The easiest way to build and maintain a table of contents is by using Styles. Microsoft word update free download - Microsoft Word 2002 Update, Microsoft Office Word 2007 Update, Microsoft Word 97 Hyperlinks Update, and many more programs.
-->In document-level Word projects, you can add content controls to the document in your project at design time or at run time. In Word VSTO Add-in projects, you can add content controls to any open document at run time.
Applies to: The information in this topic applies to document-level projects and VSTO Add-in projects for Word. For more information, see Features available by Office application and project type.
This topic describes the following tasks:
For information about content controls, see Content controls.
Add Content controls at design time
There are several ways to add content controls to the document in a document-level project at design time:
Add a content control from the Word Controls tab of the Toolbox.
Add a content control to your document in the same manner you would add a native content control in Word.
Drag a content control to your document from the Data Sources window. This is useful when you want to bind the control to data when the control is created. For more information, see How to: Populate documents with data from objects and How to: Populate documents with data from a database.
Note
Your computer might show different names or locations for some of the Visual Studio user interface elements in the following instructions. The Visual Studio edition that you have and the settings that you use determine these elements. For more information, see Personalize the IDE.
To add a content control to a document by using the Toolbox
In the document that is hosted in the Visual Studio designer, put the cursor where you want to add the content control, or select the text that you want the content control to replace.
Open the Toolbox and click the Word Controls tab.
Add the control one of the following ways:
Double-click a content control in the Toolbox.
or
Click a content control in the Toolbox and then press the Enter key.
or
Drag a content control from the Toolbox to the document. The content control is added at the current selection in the document, not at the location of the mouse pointer.
Note
You cannot add a GroupContentControl by using the Toolbox. You can only add a GroupContentControl in Word, or at run time.
Note
Note: Formulas in tables are a type of field code. Mac microsoft word multiple table of contents.
Visual Studio does not provide a check box content control in the Toolbox. To add a check box content control to the document, you must create a ContentControl object programmatically. For more information, see Content controls.
To add a content control to a document in Word
In the document that is hosted in the Visual Studio designer, put the cursor where you want to add the content control, or select the text that you want the content control to replace.
On the Ribbon, click the Developer tab.
Note
If the Developer tab is not visible, you must first show it. For more information, see How to: Show the Developer tab on the Ribbon.
In the Controls group, click the icon for the content control that you want to add.
Add content controls at run time in a document-level project
You can add content controls programmatically to your document at run time by using methods of the Controls property of the ThisDocument
class in your project. Each method has three overloads that you can use to add a content control in the following ways:
Add a control at the current selection.
Add a control at a specified range.
Add a control that is based on a native content control in the document.
Dynamically created content controls are not persisted in the document when the document is closed. However, a native content control remains in the document. You can recreate a content control that is based on a native content control the next time the document is opened. For more information, see Add controls to Office documents at run time.
Note
To add a check box content control to a document in a Word 2010 project, you must create a ContentControl object. For more information, see Content controls.
To add a content control at the current selection
Use a ControlCollection method that has the name
Add
<control class> (where control class is the class name of the content control that you want to add, such as AddRichTextContentControl), and that has a single parameter for the name of the new control.The following code example uses the AddRichTextContentControl method to add a new RichTextContentControl to the beginning of the document. To run this code, add the code to the
ThisDocument
class in your project, and call theAddRichTextControlAtSelection
method from theThisDocument_Startup
event handler.
To add a content control at a specified range
Use a ControlCollection method that has the name
Add
<control class> (where control class is the name of the content control class that you want to add, such as AddRichTextContentControl), and that has a Range parameter.The following code example uses the AddRichTextContentControl method to add a new RichTextContentControl to the beginning of the document. To run this code, add the code to the
ThisDocument
class in your project, and call theAddRichTextControlAtRange
method from theThisDocument_Startup
event handler.
To add a content control that is based on a native content control
Use a ControlCollection method that has the name
Add
<control class> (where control class is the name of the content control class that you want to add, such as AddRichTextContentControl), and that has aMicrosoft.Office.Interop.Word.ContentControl
parameter.The following code example uses the AddRichTextContentControl method to create a new RichTextContentControl for every native rich text control that is in the document. To run this code, add the code to the
ThisDocument
class in your project, and call theCreateRichTextControlsFromNativeControls
method from theThisDocument_Startup
event handler.
Add content controls at run time in a VSTO Add-in project
You can add content controls programmatically to any open document at run time by using a VSTO Add-in. To do this, generate a Document host item that is based on an open document, and then use methods of the Controls property of this host item. Each method has three overloads that you can use to add a content control in the following ways:
Add a control at the current selection.
Add a control at a specified range.
Add a control that is based on a native content control in the document.
Dynamically created content controls are not persisted in the document when the document is closed. However, a native content control remains in the document. You can recreate a content control that is based on a native content control the next time the document is opened. For more information, see Persist dynamic controls in Office documents.
For more information about generating host items in VSTO Add-in projects, see Extend Word documents and Excel workbooks in VSTO Add-ins at run time.
Note
To add a check box content control to a document, you must create a ContentControl object. For more information, see Content controls.
To add a content control at the current selection
Use a ControlCollection method that has the name
Add
<control class> (where control class is the class name of the content control that you want to add, such as AddRichTextContentControl), and that has a single parameter for the name of the new control.The following code example uses the AddRichTextContentControl method to add a new RichTextContentControl to the beginning of the active document. To run this code, add the code to the
ThisAddIn
class in your project, and call theAddRichTextControlAtSelection
method from theThisAddIn_Startup
event handler.
To add a content control at a specified range
Use a ControlCollection method that has the name
Add
<control class> (where control class is the name of the content control class that you want to add, such as AddRichTextContentControl), and that has a Range parameter.The following code example uses the AddRichTextContentControl method to add a new RichTextContentControl to the beginning of the active document. To run this code, add the code to the
ThisAddIn
class in your project, and call theAddRichTextControlAtRange
method from theThisAddIn_Startup
event handler.
To add a content control that is based on a native content control
Use a ControlCollection method that has the name
Add
<control class> (where control class is the name of the content control class that you want to add, such as AddRichTextContentControl), and that has aMicrosoft.Office.Interop.Word.ContentControl
parameter.The following code example uses the AddRichTextContentControl method to create a new RichTextContentControl for every native rich text control that is in a document, after the document is opened. To run this code, add the code to the
ThisAddIn
class in your project.For C#, you must also attach the
Application_DocumentOpen
event handler to the DocumentOpen event.
See also
-->In document-level Word projects, you can add content controls to the document in your project at design time or at run time. In Word VSTO Add-in projects, you can add content controls to any open document at run time.
Applies to: The information in this topic applies to document-level projects and VSTO Add-in projects for Word. For more information, see Features available by Office application and project type.
This topic describes the following tasks:
For information about content controls, see Content controls.
Add Content controls at design time
There are several ways to add content controls to the document in a document-level project at design time:
Add a content control from the Word Controls tab of the Toolbox.
Add a content control to your document in the same manner you would add a native content control in Word.
Drag a content control to your document from the Data Sources window. This is useful when you want to bind the control to data when the control is created. For more information, see How to: Populate documents with data from objects and How to: Populate documents with data from a database.
Note
Your computer might show different names or locations for some of the Visual Studio user interface elements in the following instructions. The Visual Studio edition that you have and the settings that you use determine these elements. For more information, see Personalize the IDE.
To add a content control to a document by using the Toolbox
In the document that is hosted in the Visual Studio designer, put the cursor where you want to add the content control, or select the text that you want the content control to replace.
Open the Toolbox and click the Word Controls tab.
Add the control one of the following ways:
Double-click a content control in the Toolbox.
or
Click a content control in the Toolbox and then press the Enter key.
or
Drag a content control from the Toolbox to the document. The content control is added at the current selection in the document, not at the location of the mouse pointer.
Note
You cannot add a GroupContentControl by using the Toolbox. You can only add a GroupContentControl in Word, or at run time.
Note
Visual Studio does not provide a check box content control in the Toolbox. To add a check box content control to the document, you must create a ContentControl object programmatically. For more information, see Content controls.
To add a content control to a document in Word
In the document that is hosted in the Visual Studio designer, put the cursor where you want to add the content control, or select the text that you want the content control to replace.
On the Ribbon, click the Developer tab.
Note
If the Developer tab is not visible, you must first show it. For more information, see How to: Show the Developer tab on the Ribbon.
In the Controls group, click the icon for the content control that you want to add.
Add content controls at run time in a document-level project
You can add content controls programmatically to your document at run time by using methods of the Controls property of the ThisDocument
class in your project. Each method has three overloads that you can use to add a content control in the following ways:
Add a control at the current selection.
Mar 19, 2020 All of my icons are mixed up. The undo button is a disc, like the save icon. The scroll down button is an undo icon. Very frustrating. Moved to Getting Started forum by moderator. Why are my icons wrong on microsoft office for mac? All of my icons are mixed up. The undo button is a disc, like the save icon. The scroll down button is.
Add a control at a specified range.
Add a control that is based on a native content control in the document.
Dynamically created content controls are not persisted in the document when the document is closed. However, a native content control remains in the document. You can recreate a content control that is based on a native content control the next time the document is opened. For more information, see Add controls to Office documents at run time.
Note
To add a check box content control to a document in a Word 2010 project, you must create a ContentControl object. For more information, see Content controls.
To add a content control at the current selection
Use a ControlCollection method that has the name
Add
<control class> (where control class is the class name of the content control that you want to add, such as AddRichTextContentControl), and that has a single parameter for the name of the new control.The following code example uses the AddRichTextContentControl method to add a new RichTextContentControl to the beginning of the document. To run this code, add the code to the
ThisDocument
class in your project, and call theAddRichTextControlAtSelection
method from theThisDocument_Startup
event handler.
To add a content control at a specified range
Word Content Control Macro
Use a ControlCollection method that has the name
Add
<control class> (where control class is the name of the content control class that you want to add, such as AddRichTextContentControl), and that has a Range parameter.The following code example uses the AddRichTextContentControl method to add a new RichTextContentControl to the beginning of the document. To run this code, add the code to the
ThisDocument
class in your project, and call theAddRichTextControlAtRange
method from theThisDocument_Startup
event handler.
To add a content control that is based on a native content control
Use a ControlCollection method that has the name
Add
<control class> (where control class is the name of the content control class that you want to add, such as AddRichTextContentControl), and that has aMicrosoft.Office.Interop.Word.ContentControl
parameter.The following code example uses the AddRichTextContentControl method to create a new RichTextContentControl for every native rich text control that is in the document. To run this code, add the code to the
ThisDocument
class in your project, and call theCreateRichTextControlsFromNativeControls
method from theThisDocument_Startup
event handler.
Microsoft Word Mac Update
Add content controls at run time in a VSTO Add-in project
You can add content controls programmatically to any open document at run time by using a VSTO Add-in. To do this, generate a Document host item that is based on an open document, and then use methods of the Controls property of this host item. Each method has three overloads that you can use to add a content control in the following ways:
Add a control at the current selection.
Add a control at a specified range.
Add a control that is based on a native content control in the document.
Dynamically created content controls are not persisted in the document when the document is closed. However, a native content control remains in the document. You can recreate a content control that is based on a native content control the next time the document is opened. For more information, see Persist dynamic controls in Office documents.
For more information about generating host items in VSTO Add-in projects, see Extend Word documents and Excel workbooks in VSTO Add-ins at run time.
Note
To add a check box content control to a document, you must create a ContentControl object. For more information, see Content controls.
To add a content control at the current selection
Microsoft Word Content Control
Use a ControlCollection method that has the name
Add
<control class> (where control class is the class name of the content control that you want to add, such as AddRichTextContentControl), and that has a single parameter for the name of the new control.The following code example uses the AddRichTextContentControl method to add a new RichTextContentControl to the beginning of the active document. To run this code, add the code to the
ThisAddIn
class in your project, and call theAddRichTextControlAtSelection
method from theThisAddIn_Startup
event handler.
To add a content control at a specified range
Use a ControlCollection method that has the name
Add
<control class> (where control class is the name of the content control class that you want to add, such as AddRichTextContentControl), and that has a Range parameter.The following code example uses the AddRichTextContentControl method to add a new RichTextContentControl to the beginning of the active document. To run this code, add the code to the
ThisAddIn
class in your project, and call theAddRichTextControlAtRange
method from theThisAddIn_Startup
event handler.
Microsoft Word Update Content Control Mac Free
To add a content control that is based on a native content control
Microsoft Word Update Content Control Mac Download
Use a ControlCollection method that has the name
Add
<control class> (where control class is the name of the content control class that you want to add, such as AddRichTextContentControl), and that has aMicrosoft.Office.Interop.Word.ContentControl
parameter.The following code example uses the AddRichTextContentControl method to create a new RichTextContentControl for every native rich text control that is in a document, after the document is opened. To run this code, add the code to the
ThisAddIn
class in your project.For C#, you must also attach the
Application_DocumentOpen
event handler to the DocumentOpen event.