Visitar URL original
Task(265104) -How to remove the contents after a specific text in a Word document ? by GOPINATH-SF4767 · Pull Request #623 · SyncfusionExamples/DocIO-Examples · GitHub
Skip to content

Task(265104) -How to remove the contents after a specific text in a Word document ? - #623

Open
GOPINATH-SF4767 wants to merge 2 commits into
mainfrom
265104-RemoveContents
Open

GOPINATH-SF4767 wants to merge 2 commits into
mainfrom
265104-RemoveContents

Conversation

@GOPINATH-SF4767

Copy link
Copy Markdown
Collaborator

Description :
Added sample for How to remove the contents after a specific text in a Word document ?

@GOPINATH-SF4767 GOPINATH-SF4767 added the documentation Improvements or additions to documentation label Oct 21, 2026
using (WordDocument document = new WordDocument(fileStream, FormatType.Automatic))
{
// Find all TextRange entities with the text "ExampleText".
List<Entity> textRange = document.FindAllItemsByProperty(EntityType.TextRange, "Text", "ExampleText");

Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

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

How it should be correct instead of using Find API

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

documentation Improvements or additions to documentation

Development

Successfully merging this pull request may close these issues.

2 participants