Skip to content

Commit 743e167

Browse files
authored
Merge pull request #155 from OfficeDev/main
[admin] merge to live
2 parents 6fb0afe + af42b5e commit 743e167

File tree

39 files changed

+87
-44
lines changed

39 files changed

+87
-44
lines changed

README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
# Open XML documentation
22

3-
This repo is the source markdown for documentation published at /office/open-xml/open-xml-sdk.md.
3+
This repo is the source markdown for documentation published at /office/open-xml/open-xml-sdk.
44

55
## Contributing
66

SECURITY.md

Lines changed: 41 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,41 @@
1+
<!-- BEGIN MICROSOFT SECURITY.MD V0.0.8 BLOCK -->
2+
3+
## Security
4+
5+
Microsoft takes the security of our software products and services seriously, which includes all source code repositories managed through our GitHub organizations, which include [Microsoft](https://github.com/microsoft), [Azure](https://github.com/Azure), [DotNet](https://github.com/dotnet), [AspNet](https://github.com/aspnet), [Xamarin](https://github.com/xamarin), and [our GitHub organizations](https://opensource.microsoft.com/).
6+
7+
If you believe you have found a security vulnerability in any Microsoft-owned repository that meets [Microsoft's definition of a security vulnerability](https://aka.ms/opensource/security/definition), please report it to us as described below.
8+
9+
## Reporting Security Issues
10+
11+
**Please do not report security vulnerabilities through public GitHub issues.**
12+
13+
Instead, please report them to the Microsoft Security Response Center (MSRC) at [https://msrc.microsoft.com/create-report](https://aka.ms/opensource/security/create-report).
14+
15+
If you prefer to submit without logging in, send email to [secure@microsoft.com](mailto:secure@microsoft.com). If possible, encrypt your message with our PGP key; please download it from the [Microsoft Security Response Center PGP Key page](https://aka.ms/opensource/security/pgpkey).
16+
17+
You should receive a response within 24 hours. If for some reason you do not, please follow up via email to ensure we received your original message. Additional information can be found at [microsoft.com/msrc](https://aka.ms/opensource/security/msrc).
18+
19+
Please include the requested information listed below (as much as you can provide) to help us better understand the nature and scope of the possible issue:
20+
21+
* Type of issue (e.g. buffer overflow, SQL injection, cross-site scripting, etc.)
22+
* Full paths of source file(s) related to the manifestation of the issue
23+
* The location of the affected source code (tag/branch/commit or direct URL)
24+
* Any special configuration required to reproduce the issue
25+
* Step-by-step instructions to reproduce the issue
26+
* Proof-of-concept or exploit code (if possible)
27+
* Impact of the issue, including how an attacker might exploit the issue
28+
29+
This information will help us triage your report more quickly.
30+
31+
If you are reporting for a bug bounty, more complete reports can contribute to a higher bounty award. Please visit our [Microsoft Bug Bounty Program](https://aka.ms/opensource/security/bounty) page for more details about our active programs.
32+
33+
## Preferred Languages
34+
35+
We prefer all communications to be in English.
36+
37+
## Policy
38+
39+
Microsoft follows the principle of [Coordinated Vulnerability Disclosure](https://aka.ms/opensource/security/cvd).
40+
41+
<!-- END MICROSOFT SECURITY.MD BLOCK -->

docs/how-to-add-custom-ui-to-a-spreadsheet-document.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -253,6 +253,6 @@ The following is the complete **AddCustomUI** code sample in C\# and Visual Basi
253253

254254
## See also
255255

256-
- [Open XML SDK 2.5 class library reference](/dotnet/api/overview/openxml/)
256+
- [Open XML SDK 2.5 class library reference](/office/open-xml/open-xml-sdk)
257257
- [Ribbon Designer](https://msdn.microsoft.com/library/26617206-f4da-416f-a18a-d817b2d4872d(Office.15).aspx)
258258
- [Walkthrough: Creating a Custom Tab by Using the Ribbon Designer](https://msdn.microsoft.com/library/312865e6-950f-46ab-88de-fe7eb8036bfe(Office.15).aspx)

docs/how-to-calculate-the-sum-of-a-range-of-cells-in-a-spreadsheet-document.md

Lines changed: 7 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -241,7 +241,7 @@ The code inserts a new cell for the result into the worksheet by calling the **I
241241
End Sub
242242
```
243243
To get the row index the code passes a parameter that represents the name of the cell, and creates a new regular expression to match the row
244-
index portion of the cell name. For more information about regular expressions, see [Regular Expression Language Elements](/dotnet/standard/base-types/regular-expression-language-quick-reference.md). It gets the row index by calling the **[Regex.Match](https://msdn2.microsoft.com/library/3zy662f6)** method, and then returns the row index.
244+
index portion of the cell name. For more information about regular expressions, see [Regular Expression Language Elements](/dotnet/standard/base-types/regular-expression-language-quick-reference). It gets the row index by calling the **[Regex.Match](https://msdn2.microsoft.com/library/3zy662f6)** method, and then returns the row index.
245245

246246
```csharp
247247
// Given a cell name, parses the specified cell to get the row index.
@@ -266,7 +266,7 @@ index portion of the cell name. For more information about regular expressions,
266266
End Function
267267
```
268268

269-
The code then gets the column name by passing a parameter that represents the name of the cell, and creates a new regular expression to match the column name portion of the cell name. This regular expression matches any combination of uppercase or lowercase letters. It gets the column name by calling the **[Regex.Match](/dotnet/api/system.text.regularexpressions.regex.match.md)** method, and then returns the column name.
269+
The code then gets the column name by passing a parameter that represents the name of the cell, and creates a new regular expression to match the column name portion of the cell name. This regular expression matches any combination of uppercase or lowercase letters. It gets the column name by calling the **[Regex.Match](/dotnet/api/system.text.regularexpressions.regex.match)** method, and then returns the column name.
270270

271271
```csharp
272272
// Given a cell name, parses the specified cell to get the column name.
@@ -325,7 +325,7 @@ To compare two columns the code passes in two parameters that represent the colu
325325
End Function
326326
```
327327

328-
To insert a **SharedStringItem**, the code passes in a parameter that represents the text to insert into the cell and a parameter that represents the **SharedStringTablePart** object for the spreadsheet. If the **ShareStringTablePart** object does not contain a **[SharedStringTable](https://msdn.microsoft.com/library/office/documentformat.openxml.spreadsheet.sharedstringtable.aspx)** object then it creates one. If the text already exists in the **ShareStringTable** object, then it returns the index for the **[SharedStringItem](/dotnet/api/documentformat.openxml.spreadsheet.sharedstringitem.md)** object that represents the text. If the text does not exist, create a new **SharedStringItem** object that represents the text. It then returns the index for the **SharedStringItem** object that represents the text.
328+
To insert a **SharedStringItem**, the code passes in a parameter that represents the text to insert into the cell and a parameter that represents the **SharedStringTablePart** object for the spreadsheet. If the **ShareStringTablePart** object does not contain a **[SharedStringTable](https://msdn.microsoft.com/library/office/documentformat.openxml.spreadsheet.sharedstringtable.aspx)** object then it creates one. If the text already exists in the **ShareStringTable** object, then it returns the index for the **[SharedStringItem](/dotnet/api/documentformat.openxml.spreadsheet.sharedstringitem)** object that represents the text. If the text does not exist, create a new **SharedStringItem** object that represents the text. It then returns the index for the **SharedStringItem** object that represents the text.
329329

330330
```csharp
331331
// Given text and a SharedStringTablePart, creates a SharedStringItem with the specified text
@@ -385,7 +385,7 @@ To insert a **SharedStringItem**, the code passes in a parameter that represents
385385
End Function
386386
```
387387

388-
The final step is to insert a cell into the worksheet. The code does that by passing in parameters that represent the name of the column and the number of the row of the cell, and a parameter that represents the worksheet that contains the cell. If the specified row does not exist, it creates the row and append it to the worksheet. If the specified column exists, it finds the cell that matches the row in that column and returns the cell. If the specified column does not exist, it creates the column and inserts it into the worksheet. It then determines where to insert the new cell in the column by iterating through the row elements to find the cell that comes directly after the specified row, in sequential order. It saves this row in the **refCell** variable. It inserts the new cell before the cell referenced by **refCell** using the **[InsertBefore](/dotnet/api/documentformat.openxml.openxmlcompositeelement.insertbefore.md)** method. It then returns the new **Cell** object.
388+
The final step is to insert a cell into the worksheet. The code does that by passing in parameters that represent the name of the column and the number of the row of the cell, and a parameter that represents the worksheet that contains the cell. If the specified row does not exist, it creates the row and append it to the worksheet. If the specified column exists, it finds the cell that matches the row in that column and returns the cell. If the specified column does not exist, it creates the column and inserts it into the worksheet. It then determines where to insert the new cell in the column by iterating through the row elements to find the cell that comes directly after the specified row, in sequential order. It saves this row in the **refCell** variable. It inserts the new cell before the cell referenced by **refCell** using the **[InsertBefore](/dotnet/api/documentformat.openxml.openxmlcompositeelement.insertbefore)** method. It then returns the new **Cell** object.
389389

390390
```csharp
391391
// Given a column name, a row index, and a WorksheetPart, inserts a cell into the worksheet.
@@ -821,8 +821,8 @@ The following is the complete sample code in both C\# and Visual Basic.
821821

822822
## See also
823823

824-
- [Open XML SDK 2.5 class library reference](/office/open-xml/open-xml-sdk.md)
824+
- [Open XML SDK 2.5 class library reference](/office/open-xml/open-xml-sdk)
825825
- [Language-Integrated Query (LINQ) (C#)](/dotnet/csharp/programming-guide/concepts/linq/)
826826
- [Language-Integrated Query (LINQ) (Visual Basic)](/dotnet/visual-basic/programming-guide/concepts/linq/)
827-
- [Lambda Expressions (C#)](/dotnet/csharp/language-reference/operators/lambda-expressions.md)
828-
- [Lambda Expressions (Visual Basic)](/dotnet/visual-basic/programming-guide/language-features/procedures/lambda-expressions.md)
827+
- [Lambda Expressions (C#)](/dotnet/csharp/language-reference/operators/lambda-expressions)
828+
- [Lambda Expressions (Visual Basic)](/dotnet/visual-basic/programming-guide/language-features/procedures/lambda-expressions)

docs/how-to-create-a-spreadsheet-document-by-providing-a-file-name.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -236,4 +236,4 @@ Following is the complete sample code in both C\# and Visual Basic.
236236
## See also
237237

238238

239-
- [Open XML SDK 2.5 class library reference](/dotnet/api/overview/openxml/)
239+
- [Open XML SDK 2.5 class library reference](/office/open-xml/open-xml-sdk)

docs/how-to-create-a-word-processing-document-by-providing-a-file-name.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -223,4 +223,4 @@ Following is the complete code example in both C\# and Visual Basic.
223223
## See also
224224

225225

226-
- [Open XML SDK 2.5 class library reference](/office/open-xml/open-xml-sdk.md)
226+
- [Open XML SDK 2.5 class library reference](/office/open-xml/open-xml-sdk)

docs/how-to-delete-all-the-comments-by-an-author-from-all-the-slides-in-a-presentatio.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -443,4 +443,4 @@ The following is the complete sample code in both C\# and Visual Basic.
443443

444444

445445

446-
- [Open XML SDK 2.5 class library reference](/office/open-xml/open-xml-sdk.md)
446+
- [Open XML SDK 2.5 class library reference](/office/open-xml/open-xml-sdk)

docs/how-to-get-a-column-heading-in-a-spreadsheet.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -410,7 +410,7 @@ Following is the complete sample code in both C\# and Visual Basic.
410410

411411

412412

413-
[Open XML SDK 2.5 class library reference](/dotnet/api/overview/openxml/)
413+
[Open XML SDK 2.5 class library reference](/office/open-xml/open-xml-sdk)
414414

415415
[Language-Integrated Query (LINQ)](https://msdn.microsoft.com/library/bb397926.aspx)
416416

docs/how-to-insert-a-comment-into-a-word-processing-document.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -364,7 +364,7 @@ Following is the complete sample code in both C\# and Visual Basic.
364364
## See also
365365

366366

367-
- [Open XML SDK 2.5 class library reference](/office/open-xml/open-xml-sdk.md)
367+
- [Open XML SDK 2.5 class library reference](/office/open-xml/open-xml-sdk)
368368

369369
[Language-Integrated Query (LINQ)](https://msdn.microsoft.com/library/bb397926.aspx)
370370

docs/how-to-insert-a-new-slide-into-a-presentation.md

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -227,6 +227,8 @@ its properties.
227227

228228
// Specify the group shape properties of the new slide.
229229
slide.CommonSlideData.ShapeTree.AppendChild(new GroupShapeProperties());
230+
231+
}
230232
```
231233

232234
```vb
@@ -749,4 +751,4 @@ The following is the complete sample code in both C\# and Visual Basic.
749751

750752

751753

752-
- [Open XML SDK 2.5 class library reference](/office/open-xml/open-xml-sdk.md)
754+
- [Open XML SDK 2.5 class library reference](/office/open-xml/open-xml-sdk)

0 commit comments

Comments
 (0)