Skip to content

Commit 53a47da

Browse files
642301-Find-and-replace-image-by-title
1 parent 4d9e98b commit 53a47da

File tree

2 files changed

+1
-1
lines changed
  • Find-item-in-word-document/Find-and-replace-image-by-title/.NET/Find-and-replace-image-by-title

2 files changed

+1
-1
lines changed

Find-item-in-word-document/Find-and-replace-image-by-title/.NET/Find-and-replace-image-by-title/Program.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,7 @@ static void Main(string[] args)
1414
using (WordDocument document = new WordDocument(fileStreamPath, FormatType.Automatic))
1515
{
1616
// Find a picture in the document by its Title property.
17-
WPicture picture = document.FindItemByProperty(EntityType.Picture, "Title", "Adventure Works Cycles") as WPicture;
17+
WPicture picture = document.FindItemByProperty(EntityType.Picture, "Title", "Adventure Works Cycle") as WPicture;
1818

1919
// If the picture is found, modify its Title property.
2020
if (picture != null)

0 commit comments

Comments
 (0)