Skip to content

Commit 8cda14f

Browse files
authored
Merge pull request #563 from TodorVyagov/patch-1
Update text-markup.md
2 parents 69b3a9f + 41a283a commit 8cda14f

File tree

1 file changed

+5
-5
lines changed

1 file changed

+5
-5
lines changed

libraries/radpdfprocessing/model/annotations/text-markup.md

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -154,11 +154,11 @@ Depending on the TextMarkupAnnotationType the respective type of the TextMarkup
154154

155155
TextSearch search = new Search.TextSearch(fixedDocument);
156156
IEnumerable<SearchResult> strikeoutSearch = search.FindAll("strikeout", TextSearchOptions.Default);
157-
Rect underlineRectangle = strikeoutSearch.First().GetWordBoundingRect();
158-
TextMarkupAnnotation underlineAnnotation = page.Annotations.AddStrikeout(underlineRectangle);
159-
underlineAnnotation.Color = new RgbColor(0, 0, 0);
160-
underlineAnnotation.Opacity = 0.90;
161-
underlineAnnotation.RecalculateContent();
157+
Rect strikeoutRectangle = strikeoutSearch.First().GetWordBoundingRect();
158+
TextMarkupAnnotation strikeoutAnnotation = page.Annotations.AddStrikeout(strikeoutRectangle);
159+
strikeoutAnnotation.Color = new RgbColor(0, 0, 255);
160+
strikeoutAnnotation.Opacity = 0.90;
161+
strikeoutAnnotation.RecalculateContent();
162162
```
163163

164164
![Create StrikeOut Annotation](images/pdf-processing-create-strikeOut-annotation.png)

0 commit comments

Comments
 (0)