Skip to content

Conversation

@twsouthwick
Copy link
Collaborator

Fixes #165

@learn-build-service-prod

This comment was marked as outdated.

## Get a WordprocessingDocument object

The code starts with opening a package file by passing a file name to one of the overloaded **[Open()](/dotnet/api/documentformat.openxml.packaging.wordprocessingdocument.open)** methods of the **[DocumentFormat.OpenXml.Packaging.WordprocessingDocument](/dotnet/api/documentformat.openxml.packaging.wordprocessingdocument)** that takes a string and a Boolean value that specifies whether the file should be opened for editing or for read-only access. In this case, the Boolean value is **true** specifying that the file should be opened in read/write mode.
The code starts with opening a package file by passing a file name to one of the overloaded <xref:DocumentFormat.OpenXml.Packaging.WordprocessingDocument.Open%2A> methods of the <xref:DocumentFormat.OpenXml.Packaging.WordprocessingDocument> that takes a string and a Boolean value that specifies whether the file should be opened for editing or for read-only access. In this case, the Boolean value is `true` specifying that the file should be opened in read/write mode.
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

There are a lot of links like this. Do they all need to be updated to use xref?

Copy link
Collaborator Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

yup, ideally - they'll have a consistent display and be updated correctly if changes occur

@learn-build-service-prod

This comment was marked as outdated.

@learn-build-service-prod

This comment was marked as outdated.

@learn-build-service-prod
Copy link
Contributor

Learn Build status updates of commit 66d9c5e:

✅ Validation status: passed

File Status Preview URL Details
.openpublishing.publish.config.json ✅Succeeded
docs/general/features.md ✅Succeeded
docs/general/how-to-add-a-new-document-part-to-a-package.md ✅Succeeded
docs/general/how-to-copy-the-contents-of-an-open-xml-package-part-to-a-document-part-in-a-dif.md ✅Succeeded
docs/general/how-to-create-a-package.md ✅Succeeded
docs/general/how-to-get-the-contents-of-a-document-part-from-a-package.md ✅Succeeded
docs/general/how-to-remove-a-document-part-from-a-package.md ✅Succeeded
docs/general/how-to-replace-the-theme-part-in-a-word-processing-document.md ✅Succeeded
docs/general/how-to-search-and-replace-text-in-a-document-part.md ✅Succeeded
docs/general/overview.md ✅Succeeded
docs/word/how-to-apply-a-style-to-a-paragraph-in-a-word-processing-document.md ✅Succeeded
docs/word/how-to-change-text-in-a-table-in-a-word-processing-document.md ✅Succeeded
docs/word/how-to-create-a-word-processing-document-by-providing-a-file-name.md ✅Succeeded
docs/word/how-to-insert-a-comment-into-a-word-processing-document.md ✅Succeeded
docs/word/how-to-insert-a-picture-into-a-word-processing-document.md ✅Succeeded
docs/word/how-to-insert-a-table-into-a-word-processing-document.md ✅Succeeded
docs/word/how-to-open-and-add-text-to-a-word-processing-document.md ✅Succeeded
docs/word/how-to-open-a-word-processing-document-for-read-only-access.md ✅Succeeded
docs/word/how-to-open-a-word-processing-document-from-a-stream.md ✅Succeeded
docs/word/how-to-remove-hidden-text-from-a-word-processing-document.md ✅Succeeded
docs/word/how-to-retrieve-application-property-values-from-a-word-processing-document.md ✅Succeeded
docs/word/how-to-retrieve-comments-from-a-word-processing-document.md ✅Succeeded
docs/word/how-to-set-a-custom-property-in-a-word-processing-document.md ✅Succeeded
docs/word/how-to-set-the-font-for-a-text-run.md ✅Succeeded
docs/word/overview.md ✅Succeeded

For more details, please refer to the build report.

For any questions, please:

@twsouthwick twsouthwick merged commit da68a69 into main Jan 25, 2024
@twsouthwick twsouthwick deleted the xref-monikers branch January 25, 2024 23:48
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

API xref syntax not supported?

3 participants