Skip to content

Commit d0a01eb

Browse files
ES-992086-Changes added
1 parent fb8fe4e commit d0a01eb

2 files changed

Lines changed: 7 additions & 1 deletion

File tree

Binary file not shown.

Tables/Find-and-iterate-table-by-title/.NET/Find-and-iterate-table-by-title/Program.cs

Lines changed: 7 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,6 @@
11
using Syncfusion.DocIO;
22
using Syncfusion.DocIO.DLS;
3+
using Syncfusion.Drawing;
34

45
namespace Find_and_iterate_table_by_title
56
{
@@ -27,7 +28,12 @@ static void Main(string[] args)
2728
{
2829
//When the paragraph contains text Panda then insert new text into paragraph.
2930
if (paragraph.Text.Contains("panda"))
30-
paragraph.AppendText("_Modified");
31+
{
32+
WTextRange insertedText = paragraph.AppendText(" (Attributes)") as WTextRange;
33+
// Apply simple formatting only to the inserted text
34+
insertedText.CharacterFormat.Bold = true;
35+
insertedText.CharacterFormat.TextColor = Color.Red;
36+
}
3137
}
3238
}
3339
}

0 commit comments

Comments
 (0)