File tree Expand file tree Collapse file tree 1 file changed +4
-4
lines changed Expand file tree Collapse file tree 1 file changed +4
-4
lines changed Original file line number Diff line number Diff line change 15
15
$ textrun = $ section ->addTextRun ();
16
16
$ textrun ->addText ('This ' );
17
17
$ text = $ textrun ->addText ('is ' );
18
- $ text ->setCommentStart ($ comment );
18
+ $ text ->setCommentRangeStart ($ comment );
19
19
$ textrun ->addText (' a test ' );
20
20
21
21
$ section ->addTextBreak (2 );
28
28
$ textrunWithEnd = $ section ->addTextRun ();
29
29
$ textrunWithEnd ->addText ('This ' );
30
30
$ textToStartOn = $ textrunWithEnd ->addText ('is ' , array ('bold ' => true ));
31
- $ textToStartOn ->setCommentStart ($ commentWithStartAndEnd );
31
+ $ textToStartOn ->setCommentRangeStart ($ commentWithStartAndEnd );
32
32
$ textrunWithEnd ->addText (' another ' , array ('italic ' => true ));
33
33
$ textToEndOn = $ textrunWithEnd ->addText (' test ' );
34
- $ textToEndOn ->setCommentEnd ($ commentWithStartAndEnd );
34
+ $ textToEndOn ->setCommentRangeEnd ($ commentWithStartAndEnd );
35
35
36
36
$ section ->addTextBreak (2 );
37
37
42
42
$ imageComment ->addText ('red ' , array ('color ' => 'FF0000 ' ));
43
43
$ phpWord ->addComment ($ commentOnImage );
44
44
$ image = $ section ->addImage ('resources/_mars.jpg ' );
45
- $ image ->setCommentStart ($ commentOnImage );
45
+ $ image ->setCommentRangeStart ($ commentOnImage );
46
46
47
47
$ section ->addTextBreak (2 );
48
48
You can’t perform that action at this time.
0 commit comments