Skip to content

Commit 3bb4b92

Browse files
Removed empty lines
1 parent d4e2f77 commit 3bb4b92

File tree

1 file changed

+0
-5
lines changed
  • Bookmarks/Remove-background-color-to-bookmark-content/.NET/Remove-background-color-to-bookmark-content

1 file changed

+0
-5
lines changed

Bookmarks/Remove-background-color-to-bookmark-content/.NET/Remove-background-color-to-bookmark-content/Program.cs

Lines changed: 0 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -15,19 +15,14 @@ static void Main(string[] args)
1515
{
1616
// Create the bookmark navigator instance
1717
BookmarksNavigator bookmarkNavigator = new BookmarksNavigator(document);
18-
1918
// Move to the bookmark
2019
bookmarkNavigator.MoveToBookmark("bkmk1");
21-
2220
// Get the bookmark content
2321
TextBodyPart part = bookmarkNavigator.GetBookmarkContent();
24-
2522
// Iterate through the content (implement this according to your needs)
2623
IterateTextBody(part.BodyItems);
27-
2824
// Replace the bookmark content with modified content
2925
bookmarkNavigator.ReplaceBookmarkContent(part);
30-
3126
//Creates file stream.
3227
using (FileStream outputFileStream = new FileStream(Path.GetFullPath(@"Output/Result.docx"), FileMode.Create, FileAccess.ReadWrite))
3328
{

0 commit comments

Comments
 (0)