You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: docs/install/modify-visual-studio.md
+12-3Lines changed: 12 additions & 3 deletions
Original file line number
Diff line number
Diff line change
@@ -40,7 +40,17 @@ Here's how.
40
40
41
41
## Modify workloads
42
42
43
-
[Workloads](https://visualstudio.microsoft.com/vs/visual-studio-workloads/) contain the features you need for the programming language or platform that you're using. Use workloads to modify Visual Studio so that it supports the work you want to do, when you want to do it.
43
+
::: moniker range="vs-2017"
44
+
45
+
[Workloads](https://visualstudio.microsoft.com/vs/support/selecting-workloads-visual-studio-2017/) contain the features you need for the programming language or platform that you're using. Use workloads to modify Visual Studio so that it supports the work you want to do, when you want to do it.
46
+
47
+
::: moniker-end
48
+
49
+
::: moniker range="vs-2019"
50
+
51
+
Workloads contain the features you need for the programming language or platform that you're using. Use workloads to modify Visual Studio so that it supports the work you want to do, when you want to do it.
52
+
53
+
::: moniker-end
44
54
45
55
>[!NOTE]
46
56
> The following procedure assumes that you have an internet connection.
@@ -113,13 +123,12 @@ Here's how.
113
123
114
124
## Modify individual components
115
125
116
-
If you don't want to install [workloads](https://visualstudio.microsoft.com/vs/visual-studio-workloads/) to customize your Visual Studio installation, choose the **Individual Components** tab from the Visual Studio Installer, select what you want, and then follow the prompts.
126
+
If you don't want to install workloads to customize your Visual Studio installation, choose the **Individual Components** tab from the Visual Studio Installer, select what you want, and then follow the prompts.
> You can also search for templates by typing the name of the Office product in the Search text box at the top of the **Create a New Project** dialog. For example, typing **Excel** will show you all of the project templates for Excel.
3
+
You can also filter the list of templates to show only the templates for Office by selecting **Office** in the Project type dropdown box. For more information see [Create a new project in Visual Studio](../../ide/create-new-project.md).
Copy file name to clipboardExpand all lines: docs/vsto/walkthrough-creating-your-first-document-level-customization-for-excel.md
+22-5Lines changed: 22 additions & 5 deletions
Original file line number
Diff line number
Diff line change
@@ -16,6 +16,7 @@ ms.workload:
16
16
- "office"
17
17
---
18
18
# Walkthrough: Create your first document-level customization for Excel
19
+
19
20
This introductory walkthrough shows you how to create a document-level customization for Microsoft Office Excel. The features that you create in this kind of solution are available only when a specific workbook is open. You cannot use a document-level customization to make application-wide changes, for example, displaying a new Ribbon tab when any workbook is open.
5. Type **FirstWorkbookCustomization** in the **Name** box on the **Configure your new project** dialog and click **Create**.
74
+
75
+
6. Select **Create a new document** from the **Visual Studio Tools for Office Project Wizard**, and click **OK**.
76
+
::: moniker-end
66
77
-[!INCLUDE[vsprvs](../sharepoint/includes/vsprvs-md.md)] creates the **FirstWorkbookCustomization** project, and adds the following files to the project.
67
78
68
79
-*FirstWorkbookCustomization*.xlsx - Represents the Excel workbook in the project. Contains all the worksheets and charts.
@@ -78,6 +89,7 @@ ms.workload:
78
89
The Sheet1 code file is opened automatically in the designer.
79
90
80
91
## Close and reopen worksheets in the designer
92
+
81
93
If you deliberately or accidentally close a workbook or a worksheet in the designer while you are developing your project, you can reopen it.
82
94
83
95
### To close and reopen a worksheet in the designer
@@ -91,6 +103,7 @@ ms.workload:
91
103
In **Solution Explorer**, double-click the **Sheet1** code file.
92
104
93
105
## Add text to a worksheet in the designer
106
+
94
107
You can design the user interface (UI) of your customization by modifying the worksheet that is open in the designer. For example, you can add text to cells, apply formulas, or add Excel controls. For more information about how to use the designer, see [Office projects in the Visual Studio environment](../vsto/office-projects-in-the-visual-studio-environment.md).
95
108
96
109
### To add text to a worksheet by using the designer
@@ -103,6 +116,7 @@ ms.workload:
103
116
> If you add this line of text to cell **A2**, it will be overwritten by other code in this example.
104
117
105
118
## Add text to a worksheet programmatically
119
+
106
120
Next, add code to the Sheet1 code file. The new code uses the object model of Excel to add a second line of text to the workbook. By default, the Sheet1 code file contains the following generated code:
107
121
108
122
- A partial definition of the `Sheet1` class, which represents the programming model of the worksheet and provides access to the object model of Excel. For more information, [Worksheet host item](../vsto/worksheet-host-item.md) and [Word object model overview](../vsto/word-object-model-overview.md). The remainder of the `Sheet1` class is defined in a hidden code file that you should not modify.
@@ -137,13 +151,15 @@ ms.workload:
137
151
3. Close the workbook.
138
152
139
153
## Clean up the project
154
+
140
155
When you finish developing a project, you should remove the files in the build output folder and the security settings created by the build process.
141
156
142
157
### To clean up the completed project on your development computer
143
158
144
159
1. In Visual Studio, on the **Build** menu, click **Clean Solution**.
145
160
146
161
## Next steps
162
+
147
163
Now that you have created a basic document-level customization for Excel, you can learn more about how to develop customizations from these topics:
148
164
149
165
- General programming tasks that you can perform in document-level customizations: [Program document-level customizations](../vsto/programming-document-level-customizations.md).
@@ -161,6 +177,7 @@ ms.workload:
161
177
- Deploying document-level customizations for Excel: [Deploy an Office solution](../vsto/deploying-an-office-solution.md).
162
178
163
179
## See also
180
+
164
181
-[Office solutions development overview (VSTO)](../vsto/office-solutions-development-overview-vsto.md)
Copy file name to clipboardExpand all lines: docs/vsto/walkthrough-creating-your-first-document-level-customization-for-word.md
+23-6Lines changed: 23 additions & 6 deletions
Original file line number
Diff line number
Diff line change
@@ -16,6 +16,7 @@ ms.workload:
16
16
- "office"
17
17
---
18
18
# Walkthrough: Create your first document-level customization for Word
19
+
19
20
This introductory walkthrough shows you how to create a document-level customization for Microsoft Office Word. The features that you create in this kind of solution are available only when a specific document is open. You cannot use a document-level customization to make application-wide changes, for example, displaying a new Ribbon tab when any document is open.
[!INCLUDE[vsprvs](../sharepoint/includes/vsprvs-md.md)] creates the **FirstDocumentCustomization** project, and adds the **FirstDocumentCustomization** document and ThisDocument code file to the project. The **FirstDocumentCustomization** document is opened automatically in the designer.
71
+
4. Click **Next**.
72
+
73
+
5. Type **FirstWorkbookCustomization** in the **Name** box on the **Configure your new project** dialog and click **Create**.
74
+
75
+
6. Select **Create a new document** from the **Visual Studio Tools for Office Project Wizard**, and click **OK**.
76
+
::: moniker-end
77
+
-[!INCLUDE[vsprvs](../sharepoint/includes/vsprvs-md.md)] creates the **FirstDocumentCustomization** project, and adds the **FirstDocumentCustomization** document and ThisDocument code file to the project. The **FirstDocumentCustomization** document is opened automatically in the designer.
67
78
68
79
## Close and reopen the document in the designer
80
+
69
81
If you deliberately or accidentally close the document in the designer while you are developing your project, you can reopen it.
70
82
71
83
### To close and reopen the document in the designer
@@ -79,6 +91,7 @@ ms.workload:
79
91
In **Solution Explorer**, double-click the **ThisDocument** code file.
80
92
81
93
## Add text to the document in the designer
94
+
82
95
You can design the user interface (UI) of your customization by modifying the document that is open in the designer. For example, you can add text, tables, or Word controls. For more information about how to use the designer, see [Office projects in the Visual Studio environment](../vsto/office-projects-in-the-visual-studio-environment.md).
83
96
84
97
### To add text to your document by using the designer
@@ -88,6 +101,7 @@ ms.workload:
88
101
**This text was added by using the designer.**
89
102
90
103
## Add text to the document programmatically
104
+
91
105
Next, add code to the ThisDocument code file. The new code uses the object model of Word to add a second paragraph of text to the document. By default, the ThisDocument code file contains the following generated code:
92
106
93
107
- A partial definition of the `ThisDocument` class, which represents the programming model of the document and provides access to the object model of Word. For more information, see [Document host item](../vsto/document-host-item.md) and [Word object model overview](../vsto/word-object-model-overview.md). The remainder of the `ThisDocument` class is defined in a hidden code file that you should not modify.
@@ -125,13 +139,15 @@ ms.workload:
125
139
3. Close the document.
126
140
127
141
## Clean up the project
142
+
128
143
When you finish developing a project, you should remove the files in the build output folder and the security settings created by the build process.
129
144
130
145
### To clean up the completed project on your development computer
131
146
132
147
1. In Visual Studio, on the **Build** menu, click **Clean Solution**.
133
148
134
149
## Next steps
150
+
135
151
Now that you have created a basic document-level customization for Word, you can learn more about how to develop customizations from these topics:
136
152
137
153
- General programming tasks that you can perform in document-level customizations: [Program document-level customizations](../vsto/programming-document-level-customizations.md).
@@ -149,6 +165,7 @@ ms.workload:
149
165
- Deploying document-level customizations for Word: [Deploy an Office solution](../vsto/deploying-an-office-solution.md).
150
166
151
167
## See also
168
+
152
169
-[Office solutions development overview (VSTO)](../vsto/office-solutions-development-overview-vsto.md)
0 commit comments