Skip to content

Commit 97fb6df

Browse files
authored
Add missing separators in code snippets.
1 parent a0323d3 commit 97fb6df

File tree

1 file changed

+8
-6
lines changed

1 file changed

+8
-6
lines changed

docs/vsto/actions-pane-overview.md

Lines changed: 8 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -41,11 +41,11 @@ ms.subservice: office-development
4141

4242
### [C#](#tab/csharp)
4343
:::code language="csharp" source="../vsto/codesnippet/CSharp/Trin_VstcoreActionsPaneWordCS/ThisDocument.cs" id="Snippet7":::
44-
---
4544

4645
### [VB](#tab/vb)
4746
:::code language="vb" source="../vsto/codesnippet/VisualBasic/Trin_VstcoreActionsPaneWordVB/ThisDocument.vb" id="Snippet7":::
4847
---
48+
4949
The actions pane becomes visible at run time as soon as you explicitly add a control to it. After the actions pane is displayed, you can dynamically add or remove controls in response to the user's actions. Typically, you add the code to display the actions pane in the `Startup` event handler of `ThisDocument` or `ThisWorkbook` so that the actions pane is visible when the user first opens the document. However, you might want to display the actions pane only in response to a user's action in the document. For example, you might add the code to the `Click` event of a control on the document.
5050

5151
### Add multiple controls to the actions pane
@@ -74,6 +74,7 @@ ms.subservice: office-development
7474

7575
### [VB](#tab/vb)
7676
:::code language="vb" source="../vsto/codesnippet/VisualBasic/Trin_VstcoreActionsPaneWordVB/ThisDocument.vb" id="Snippet34":::
77+
---
7778

7879
- For Excel, set the <xref:Microsoft.Office.Interop.Excel._Application.DisplayDocumentActionTaskPane%2A> property of the <xref:Microsoft.Office.Tools.Excel.Workbook.Application%2A> object to **false**. The following code example is intended to be run from the `ThisWorkbook` class in your project.
7980

@@ -82,14 +83,16 @@ ms.subservice: office-development
8283

8384
### [VB](#tab/vb)
8485
:::code language="vb" source="../vsto/codesnippet/VisualBasic/Trin_VstcoreActionsPaneExcelVB/ThisWorkbook.vb" id="Snippet11":::
85-
86+
---
87+
8688
- For Word or Excel, you can alternatively set the <xref:Microsoft.Office.Core.CommandBar.Visible%2A> property of the command bar that represents the task pane to **false**. The following code example is intended to be run from the `ThisDocument` or `ThisWorkbook` class in your project.
8789

8890
### [C#](#tab/csharp)
8991
:::code language="csharp" source="../vsto/codesnippet/CSharp/Trin_VstcoreActionsPaneExcelCS/ThisWorkbook.cs" id="Snippet9":::
9092

9193
### [VB](#tab/vb)
9294
:::code language="vb" source="../vsto/codesnippet/VisualBasic/Trin_VstcoreActionsPaneExcelVB/ThisWorkbook.vb" id="Snippet9":::
95+
---
9396

9497
### Clear the actions pane when the document is opened
9598
When a user saves the document while the actions pane is visible, the actions pane is visible every time the document is opened, whether or not the actions pane contains any controls. If you want to control when it appears, call the <xref:Microsoft.Office.Tools.ActionsPane.Clear%2A> method of the `ActionsPane` field in the `Startup` event handler of `ThisDocument` or `ThisWorkbook` to ensure that the actions pane is not visible when the document is opened.
@@ -135,11 +138,11 @@ ms.subservice: office-development
135138

136139
### [C#](#tab/csharp)
137140
:::code language="csharp" source="../vsto/codesnippet/CSharp/Trin_VstcoreActionsPaneExcelCS/ThisWorkbook.cs" id="Snippet10":::
138-
---
139141

140142
### [VB](#tab/vb)
141143
:::code language="vb" source="../vsto/codesnippet/VisualBasic/Trin_VstcoreActionsPaneExcelVB/ThisWorkbook.vb" id="Snippet10":::
142144
---
145+
143146
## Anchor controls
144147
If the user resizes the actions pane at run time, the controls can resize with the actions pane. You can use the <xref:System.Windows.Forms.Control.Anchor%2A> property of a Windows Forms control to anchor controls to the actions pane. You can also anchor the Windows Forms controls onto the user control in the same manner. For more information, see [How to: Anchor controls on Windows Forms](/dotnet/framework/winforms/controls/how-to-anchor-controls-on-windows-forms).
145148

@@ -150,7 +153,6 @@ ms.subservice: office-development
150153

151154
### [C#](#tab/csharp)
152155
:::code language="csharp" source="../vsto/codesnippet/CSharp/Trin_VstcoreActionsPaneWordCS/ThisDocument.cs" id="Snippet102":::
153-
---
154156

155157
### [VB](#tab/vb)
156158
:::code language="vb" source="../vsto/codesnippet/VisualBasic/Trin_VstcoreActionsPaneWordVB/ThisDocument.vb" id="Snippet102":::
@@ -163,7 +165,7 @@ ms.subservice: office-development
163165

164166
### [C#](#tab/csharp)
165167
:::code language="csharp" source="../vsto/codesnippet/CSharp/Trin_VstcoreActionsPaneWordCS/ThisDocument.cs" id="Snippet100":::
166-
---
168+
167169

168170
### [VB](#tab/vb)
169171
:::code language="vb" source="../vsto/codesnippet/VisualBasic/Trin_VstcoreActionsPaneWordVB/ThisDocument.vb" id="Snippet100":::
@@ -178,7 +180,7 @@ ms.subservice: office-development
178180

179181
### [C#](#tab/csharp)
180182
:::code language="csharp" source="../vsto/codesnippet/CSharp/Trin_VstcoreActionsPaneWordCS/ThisDocument.cs" id="Snippet101":::
181-
---
183+
182184

183185
### [VB](#tab/vb)
184186
:::code language="vb" source="../vsto/codesnippet/VisualBasic/Trin_VstcoreActionsPaneWordVB/ThisDocument.vb" id="Snippet101":::

0 commit comments

Comments
 (0)