Openize.Words.Examples
24.6.0
Suggested Alternatives
Additional Details
Openize.Words.Examples nuget package has been discontinued. Please use FileFormat.Words.Examples nuget package instead,
dotnet add package Openize.Words.Examples --version 24.6.0
NuGet\Install-Package Openize.Words.Examples -Version 24.6.0
This command is intended to be used within the Package Manager Console in Visual Studio, as it uses the NuGet module's version of Install-Package.
<PackageReference Include="Openize.Words.Examples" Version="24.6.0" />
For projects that support PackageReference, copy this XML node into the project file to reference the package.
paket add Openize.Words.Examples --version 24.6.0
The NuGet Team does not provide support for this client. Please contact its maintainers for support.
#r "nuget: Openize.Words.Examples, 24.6.0"
#r directive can be used in F# Interactive and Polyglot Notebooks. Copy this into the interactive tool or source code of the script to reference the package.
// Install Openize.Words.Examples as a Cake Addin #addin nuget:?package=Openize.Words.Examples&version=24.6.0 // Install Openize.Words.Examples as a Cake Tool #tool nuget:?package=Openize.Words.Examples&version=24.6.0
The NuGet Team does not provide support for this client. Please contact its maintainers for support.
Word Document SDK Usage Examples in C#
Openize.Words.Examples - C# code examples using Openize.Words for .NET - A robust native C# SDK for creating, loading, and modifying MS Word documents.
Table of Contents
- Create Word Document Paragraphs in C# - Explore gist
- Read Word Document Paragraphs in C# - Explore gist
- Modify Word Document Paragraphs in C# - Explore gist
- Create Word Document Images in C# - Explore gist
- Read Word Document Images in C# - Explore gist
- Modify Word Document Images in C# - Explore gist
- Create Word Document Tables in C# - Explore gist
- Read Word Document Tables in C# - Explore gist
- Modify Word Document Tables in C# - Explore gist
- Multiple Word Documents Concurrent Updating in C# - Explore gist
- Create Word Paragraph Alignment in C# - Explore gist
- Read Word Paragraph Alignment in C# - Explore gist
- Modify Word Paragraph Alignment in C# - Explore gist
- Create Word Paragraph Indent in C# - Explore gist
- Read Word Paragraph Indent in C# - Explore gist
- Modify Word Paragraph Indent in C# - Explore gist
- Create Numbered Word Paragraphs in C# - Explore gist
- Read Numbered Word Paragraphs in C# - Explore gist
- Modify Numbered Word Paragraphs in C# - Explore gist
- Create Roman Alphabetic Word Paragraphs in C# - Explore gist
- Read Roman Alphabetic Word Paragraphs in C# - Explore gist
- Modify Roman Alphabetic Word Paragraphs in C# - Explore gist
- Create Multiple Multilevel List Paragraphs of Word Document in C# - Explore gist
- Read Multiple Multilevel List Paragraphs of Word Document in C# - Explore gist
- Modify Multiple Multilevel List Paragraphs of Word Document in C# - Explore gist
- Create Multiple Frame Paragraphs of Word Document in C# - Explore gist
- Read Multiple Frame Paragraphs of Word Document in C# - Explore gist
- Modify Multiple Frame Paragraphs of Word Document in C# - Explore gist
- Resources
- System Requirements
- Quick Start
- License
Create Word Document Paragraphs in C#
- Creates a new Word Document with structured content using Openize.Words
- Generates paragraphs with heading styles defined by the Word document template.
- Adds normal paragraphs under each heading paragraph.
- Includes text runs with various fonts as per the template.
- Saves the newly created Word Document.
- Click here to explore gist.
Read Word Document Paragraphs in C#
- Loads an existing Word Document with structured content using Openize.Words
- Traverses paragraphs and displays associated styles as defined by the Word document template.
- Traverses through each run (text fragment) within each paragraph and displays fragment values.
- Click here to explore gist
Modify Word Document Paragraphs in C#
- Loads an existing Word Document with structured content using Openize.Words
- Modifies paragraphs by prepending 'Modified Heading :' for styled paragraphs and 'Modified Run :' for each run within normal paragraphs, preserving the existing format.
- Saves the modified Word Document.
- Click here to explore gist
Create Word Document Images in C#
- Creates a new Word Document with structured content using Openize.Words
- Loads images from the specified diretory and decodes using SkiaSharp.
- Creates a word document and appends loaded images to it.
- Saves the newly created Word Document.
- Click here to explore gist
Read Word Document Images in C#
- Loads an existing Word Document with structured content using Openize.Words
- Traverses images and displays image metadata.
- Click here to explore gist
Modify Word Document Images in C#
- Loads an existing Word Document with structured content using Openize.Words
- Gets images from the word document. Decodes image using SkiaSharp and encode to JPG.
- Resize image to 250(height) and 200(width).
- Saves the modified Word Document.
- Click here to explore gist
Create Word Document Tables in C#
- Creates a new Word Document with structured content using Openize.Words
- Generates 5(rows) x 3(cols) tables with table styles defined by the Word document template.
- Appends each table to the body of the word document.
- Saves the newly created Word Document.
- Click here to explore gist
Read Word Document Tables in C#
- Loads an existing Word Document with structured content using Openize.Words
- Traverses tables and displays associated styles as defined by the Word document template.
- Traverses through each row and then traverses columns within the row.
- Traverses through paragrpahs within each cell and displays paragraph plain text
- Click here to explore gist
Modify Word Document Tables in C#
- Loads an existing Word Document with structured content using Openize.Words
- Modifies tables by setting column widths to 2000
- Saves the modified Word Document.
- Click here to explore gist
Multiple Word Documents Concurrent Updating in C#
- Loads 3 existing Word Document with structured content using Openize.Words
- Appends paragraphs concurrently on three documents
- Saves the modified Word Documents.
- Click here to explore gist
Create Word Paragraph Alignment in C#
- Creates a new Word Document with structured content using Openize.Words
- Generates paragraphs with different alignments including left, center, right and justify.
- Saves the newly created Word Document.
- Click here to explore gist
Read Word Paragraph Alignment in C#
- Loads a Word Document with structured content using Openize.Words
- Traverses paragraphs and displays its text along with alignment.
- Click here to explore gist
Modify Word Paragraph Alignment in C#
- Loads a Word Document with structured content using Openize.Words
- Traverses through all paragraphs within the document.
- Modifies paragraphs by appending ' (alignment modified to justify)' with italic format and justify alignment.
- Saves the modified Word Document.
- Click here to explore gist
Create Word Paragraph Indent in C#
- Creates a new Word Document with structured content using Openize.Words
- Generates paragraphs with different indents including left, right, firstline and hanging.
- Saves the newly created Word Document.
- Click here to explore gist
Read Word Paragraph Indent in C#
- Loads a Word Document with structured content using Openize.Words
- Traverses paragraphs and displays its text along with indentation.
- Click here to explore gist
Modify Word Paragraph Indent in C#
- Loads a Word Document with structured content using Openize.Words
- Traverses through all paragraphs within the document.
- Modifies paragraphs by appending the relevant indent message in italic format and modifies the indent (if found) to 0.
- Saves the modified Word Document.
- Click here to explore gist
Create Numbered Word Paragraphs in C#
- Creates a new Word Document with structured content using Openize.Words
- Generates numbered paragraphs with nested levels.
- Saves the newly created Word Document.
- Click here to explore gist
Read Numbered Word Paragraphs in C#
- Loads a Word Document with structured content using Openize.Words
- Traverses paragraphs and displays its text, numbering and level.
- Click here to explore gist
Modify Numbered Word Paragraphs in C#
- Loads a Word Document with structured content using Openize.Words
- Traverses through all paragraphs within the document.
- If numbered, modifies paragraphs by appending ' (numering removed)' with italic format and paragraph number is removed.
- Saves the modified Word Document.
- Click here to explore gist
Create Roman Alphabetic Word Paragraphs in C#
- Creates a new Word Document with structured content using Openize.Words
- Generates roman and alphabetic paragraphs with nested levels.
- Saves the newly created Word Document.
- Click here to explore gist
Read Roman Alphabetic Word Paragraphs in C#
- Loads a Word Document with structured content using Openize.Words
- Traverses paragraphs and displays its text, roman/alphabetic status and level.
- Click here to explore gist
Modify Roman Alphabetic Word Paragraphs in C#
- Loads a Word Document with structured content using Openize.Words
- Traverses through all paragraphs within the document.
- If alphabetic, modifies paragraphs by appending ' (alphabetic removed)' with italic format and paragraph alphabetic is removed.
- Saves the modified Word Document.
- Click here to explore gist
Create Multiple Multilevel List Paragraphs of Word Document in C#
- Creates a new Word Document with structured content using Openize.Words
- Generates two multilevel lists with different prefixes at different levels.
- Saves the newly created Word Document.
- Click here to explore gist
Read Multiple Multilevel List Paragraphs of Word Document in C#
- Loads a Word Document with structured content using Openize.Words
- Traverses paragraphs and displays its text, numbering id, numbering type and level.
- Click here to explore gist
Modify Multiple Multilevel List Paragraphs of Word Document in C#
- Loads a Word Document with structured content using Openize.Words
- Traverses through all paragraphs within the document.
- If list paragraphs, modifies paragraphs by appending ' (numbering type changed to numeric)' with italic format and paragraph numbering type is changed to numeric.
- Saves the modified Word Document.
- Click here to explore gist
Create Multiple Frame Paragraphs of Word Document in C#
- Creates a new Word Document with structured content using Openize.Words
- Generates two multilevel lists with different prefixes at different levels.
- Saves the newly created Word Document.
- Click here to explore gist
Read Multiple Frame Paragraphs of Word Document in C#
- Loads a Word Document with structured content using Openize.Words
- Traverses paragraphs and displays its text, numbering id, numbering type and level.
- Click here to explore gist
Modify Multiple Frame Paragraphs of Word Document in C#
- Loads a Word Document with structured content using Openize.Words
- Traverses through all paragraphs within the document.
- If list paragraphs, modifies paragraphs by appending ' (numbering type changed to numeric)' with italic format and paragraph numbering type is changed to numeric.
- Saves the modified Word Document.
- Click here to explore gist
Resources
System Requirements
- Make sure to have below nuget packages installed:
Quick Start
// Prepares directory at the root of your project.
// Default is 'Documents/Paragraph' unless specified otherwise as param.
var paragraphExamples = new ParagraphExamples();
// Creates a word document with paragraphs and saves word document to the specified
// directory. Default is 'Documents/Paragraph/WordParagraphs.docx' unless specified otherwise as param.
paragraphExamples.CreateWordParagraphs();
// Reads Paragraphs from the specified Word Document and displays plain text and formatting.
// Default is 'Documents/Paragraph/WordParagraphs.docx' unless specified otherwise as param.
paragraphExamples.ReadWordParagraphs();
// Modifies Paragraphs in the specified Word Document and saves the modified word document.
// Default document to modify is 'Documents/Paragraph/WordParagraphs.docx' unless specified otherise as param.
// Default modified document is saved as 'Documents/Paragraph/WordParagraphs.docx' unless specified otherise as param.
paragraphExamples.ModifyWordParagraphs();
License
This project is licensed under the MIT License - see the LICENSE file for details.
Product | Versions Compatible and additional computed target framework versions. |
---|---|
.NET | net5.0 was computed. net5.0-windows was computed. net6.0 was computed. net6.0-android was computed. net6.0-ios was computed. net6.0-maccatalyst was computed. net6.0-macos was computed. net6.0-tvos was computed. net6.0-windows was computed. net7.0 was computed. net7.0-android was computed. net7.0-ios was computed. net7.0-maccatalyst was computed. net7.0-macos was computed. net7.0-tvos was computed. net7.0-windows was computed. net8.0 was computed. net8.0-android was computed. net8.0-browser was computed. net8.0-ios was computed. net8.0-maccatalyst was computed. net8.0-macos was computed. net8.0-tvos was computed. net8.0-windows was computed. |
.NET Core | netcoreapp3.1 is compatible. |
Compatible target framework(s)
Included target framework(s) (in package)
Learn more about Target Frameworks and .NET Standard.
-
.NETCoreApp 3.1
- Openize.Words (>= 24.6.0)
- SkiaSharp (>= 2.88.8)
NuGet packages
This package is not used by any NuGet packages.
GitHub repositories
This package is not used by any popular GitHub repositories.