Skip to content

Commit

Permalink
Merge pull request #154 from OfficeDev/lindalu-fix-broken-links
Browse files Browse the repository at this point in the history
[admin] fix broken links
  • Loading branch information
lindalu-MSFT authored Aug 8, 2023
2 parents 14c806b + 992f001 commit af42b5e
Show file tree
Hide file tree
Showing 24 changed files with 30 additions and 30 deletions.
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
# Open XML documentation

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

## Contributing

Expand Down
2 changes: 1 addition & 1 deletion docs/how-to-add-custom-ui-to-a-spreadsheet-document.md
Original file line number Diff line number Diff line change
Expand Up @@ -253,6 +253,6 @@ The following is the complete **AddCustomUI** code sample in C\# and Visual Basi

## See also

- [Open XML SDK 2.5 class library reference](/dotnet/api/overview/openxml/)
- [Open XML SDK 2.5 class library reference](/office/open-xml/open-xml-sdk)
- [Ribbon Designer](https://msdn.microsoft.com/library/26617206-f4da-416f-a18a-d817b2d4872d(Office.15).aspx)
- [Walkthrough: Creating a Custom Tab by Using the Ribbon Designer](https://msdn.microsoft.com/library/312865e6-950f-46ab-88de-fe7eb8036bfe(Office.15).aspx)
Original file line number Diff line number Diff line change
Expand Up @@ -241,7 +241,7 @@ The code inserts a new cell for the result into the worksheet by calling the **I
End Sub
```
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
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.
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.

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

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.
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.

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

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.
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.

```csharp
// Given text and a SharedStringTablePart, creates a SharedStringItem with the specified text
Expand Down Expand Up @@ -385,7 +385,7 @@ To insert a **SharedStringItem**, the code passes in a parameter that represents
End Function
```

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.
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.

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

## See also

- [Open XML SDK 2.5 class library reference](/office/open-xml/open-xml-sdk.md)
- [Open XML SDK 2.5 class library reference](/office/open-xml/open-xml-sdk)
- [Language-Integrated Query (LINQ) (C#)](/dotnet/csharp/programming-guide/concepts/linq/)
- [Language-Integrated Query (LINQ) (Visual Basic)](/dotnet/visual-basic/programming-guide/concepts/linq/)
- [Lambda Expressions (C#)](/dotnet/csharp/language-reference/operators/lambda-expressions.md)
- [Lambda Expressions (Visual Basic)](/dotnet/visual-basic/programming-guide/language-features/procedures/lambda-expressions.md)
- [Lambda Expressions (C#)](/dotnet/csharp/language-reference/operators/lambda-expressions)
- [Lambda Expressions (Visual Basic)](/dotnet/visual-basic/programming-guide/language-features/procedures/lambda-expressions)
Original file line number Diff line number Diff line change
Expand Up @@ -236,4 +236,4 @@ Following is the complete sample code in both C\# and Visual Basic.
## See also


- [Open XML SDK 2.5 class library reference](/dotnet/api/overview/openxml/)
- [Open XML SDK 2.5 class library reference](/office/open-xml/open-xml-sdk)
Original file line number Diff line number Diff line change
Expand Up @@ -223,4 +223,4 @@ Following is the complete code example in both C\# and Visual Basic.
## See also


- [Open XML SDK 2.5 class library reference](/office/open-xml/open-xml-sdk.md)
- [Open XML SDK 2.5 class library reference](/office/open-xml/open-xml-sdk)
Original file line number Diff line number Diff line change
Expand Up @@ -443,4 +443,4 @@ The following is the complete sample code in both C\# and Visual Basic.



- [Open XML SDK 2.5 class library reference](/office/open-xml/open-xml-sdk.md)
- [Open XML SDK 2.5 class library reference](/office/open-xml/open-xml-sdk)
2 changes: 1 addition & 1 deletion docs/how-to-get-a-column-heading-in-a-spreadsheet.md
Original file line number Diff line number Diff line change
Expand Up @@ -410,7 +410,7 @@ Following is the complete sample code in both C\# and Visual Basic.



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

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

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -364,7 +364,7 @@ Following is the complete sample code in both C\# and Visual Basic.
## See also


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

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

Expand Down
2 changes: 1 addition & 1 deletion docs/how-to-insert-a-new-slide-into-a-presentation.md
Original file line number Diff line number Diff line change
Expand Up @@ -751,4 +751,4 @@ The following is the complete sample code in both C\# and Visual Basic.



- [Open XML SDK 2.5 class library reference](/office/open-xml/open-xml-sdk.md)
- [Open XML SDK 2.5 class library reference](/office/open-xml/open-xml-sdk)
2 changes: 1 addition & 1 deletion docs/how-to-insert-a-new-worksheet-into-a-spreadsheet.md
Original file line number Diff line number Diff line change
Expand Up @@ -296,7 +296,7 @@ Following is the complete sample code in both C\# and Visual Basic.
## See also


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

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

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -411,4 +411,4 @@ The following is the complete sample code in both C\# and Visual Basic.

## See also

- [Open XML SDK 2.5 class library reference](/dotnet/api/overview/openxml/)
- [Open XML SDK 2.5 class library reference](/office/open-xml/open-xml-sdk)
2 changes: 1 addition & 1 deletion docs/how-to-insert-text-into-a-cell-in-a-spreadsheet.md
Original file line number Diff line number Diff line change
Expand Up @@ -762,7 +762,7 @@ The following is the complete sample code in both C\# and Visual Basic.
## See also


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

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

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -302,4 +302,4 @@ The following is the complete sample code in both C\# and Visual Basic.
## See also


- [Open XML SDK 2.5 class library reference](/office/open-xml/open-xml-sdk.md)
- [Open XML SDK 2.5 class library reference](/office/open-xml/open-xml-sdk)
2 changes: 1 addition & 1 deletion docs/how-to-open-a-spreadsheet-document-from-a-stream.md
Original file line number Diff line number Diff line change
Expand Up @@ -280,4 +280,4 @@ The following is the complete sample code in both C\# and Visual Basic.
## See also


- [Open XML SDK 2.5 class library reference](/dotnet/api/overview/openxml/)
- [Open XML SDK 2.5 class library reference](/office/open-xml/open-xml-sdk)
Original file line number Diff line number Diff line change
Expand Up @@ -359,4 +359,4 @@ The following is the complete sample code in C\# and VB.
## See also


- [Open XML SDK 2.5 class library reference](/dotnet/api/overview/openxml/)
- [Open XML SDK 2.5 class library reference](/office/open-xml/open-xml-sdk)
Original file line number Diff line number Diff line change
Expand Up @@ -233,4 +233,4 @@ Following is the complete sample code in both C\# and Visual Basic.



- [Open XML SDK 2.5 class library reference](/dotnet/api/overview/openxml/)
- [Open XML SDK 2.5 class library reference](/office/open-xml/open-xml-sdk)
Original file line number Diff line number Diff line change
Expand Up @@ -222,4 +222,4 @@ of **OpenSettings**.
## See also


- [Open XML SDK 2.5 class library reference](/dotnet/api/overview/openxml/)
- [Open XML SDK 2.5 class library reference](/office/open-xml/open-xml-sdk)
2 changes: 1 addition & 1 deletion docs/how-to-parse-and-read-a-large-spreadsheet.md
Original file line number Diff line number Diff line change
Expand Up @@ -282,4 +282,4 @@ The following is the complete code sample in both C\# and Visual Basic.



- [Open XML SDK 2.5 class library reference](/dotnet/api/overview/openxml/)
- [Open XML SDK 2.5 class library reference](/office/open-xml/open-xml-sdk)
Original file line number Diff line number Diff line change
Expand Up @@ -240,4 +240,4 @@ Following is the complete sample code in both C\# and Visual Basic.

## See also

- [Open XML SDK 2.5 class library reference]/office/open-xml/open-xml-sdk.md)
- [Open XML SDK 2.5 class library reference]/office/open-xml/open-xml-sdk)
Original file line number Diff line number Diff line change
Expand Up @@ -289,4 +289,4 @@ Following is the complete sample code in both C\# and Visual Basic.



- [Open XML SDK 2.5 class library reference](/office/open-xml/open-xml-sdk.md)
- [Open XML SDK 2.5 class library reference](/office/open-xml/open-xml-sdk)
Original file line number Diff line number Diff line change
Expand Up @@ -540,4 +540,4 @@ The following is the complete **GetCellValue** code sample in C\# and Visual Bas

## See also

- [Open XML SDK 2.5 class library reference](/dotnet/api/overview/openxml/)
- [Open XML SDK 2.5 class library reference](/office/open-xml/open-xml-sdk)
2 changes: 1 addition & 1 deletion docs/how-to-search-and-replace-text-in-a-document-part.md
Original file line number Diff line number Diff line change
Expand Up @@ -199,6 +199,6 @@ The following is the complete sample code in both C\# and Visual Basic.
## See also


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

[Regular Expressions](https://msdn.microsoft.com/library/hs600312.aspx)
Original file line number Diff line number Diff line change
Expand Up @@ -728,4 +728,4 @@ The following is the complete **SetCustomProperty** code sample in C\# and Visua

## See also

- [Open XML SDK 2.5 class library reference](/dotnet/api/overview/openxml/)
- [Open XML SDK 2.5 class library reference](/office/open-xml/open-xml-sdk)
2 changes: 1 addition & 1 deletion docs/open-xml-sdk.md
Original file line number Diff line number Diff line change
Expand Up @@ -49,7 +49,7 @@ Portions of ISO/IEC 29500:2008<sup>1</sup> are referenced in the SDK.
- [Getting started with the Open XML SDK 2.5 for Office](getting-started.md)
- [Understanding the Open XML file formats](understanding-the-open-xml-file-formats.md)
- [How do I... (Open XML SDK)](how-do-i.md)
- [Open XML SDK 2.5 class library reference](/dotnet/api/overview/openxml/)
- [Open XML SDK 2.5 class library reference](/office/open-xml/open-xml-sdk)

## See also

Expand Down

0 comments on commit af42b5e

Please sign in to comment.