Skip to content

Commit ee8c8e8

Browse files
authored
Merge pull request #1704 from tonyqus/xssfreaderbenchmark
Add new CreateFieldRun overload method to help ease the use of creating field run
2 parents dd8af17 + 87ca096 commit ee8c8e8

File tree

1 file changed

+7
-0
lines changed

1 file changed

+7
-0
lines changed

ooxml/XWPF/Usermodel/XWPFParagraph.cs

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1851,6 +1851,13 @@ public XWPFFieldRun CreateFieldRun()
18511851
iRuns.Add(newRun);
18521852
return newRun;
18531853
}
1854+
public XWPFFieldRun CreateFieldRun(string instruction, string text)
1855+
{
1856+
var fieldrun = this.CreateFieldRun();
1857+
fieldrun.FieldInstruction= instruction;
1858+
fieldrun.SetText(text);
1859+
return fieldrun;
1860+
}
18541861

18551862
public void ChangeOrientation(ST_PageOrientation orientation)
18561863
{

0 commit comments

Comments
 (0)