GetParagraphMarkTextPr
返回用于标记段落结尾的段落标记的文本属性。该标记也可以 具有常见的文本属性,如粗体、斜体、下划线等。
语法
expression.GetParagraphMarkTextPr();
expression - 表示 ApiParagraph 类的变量。
参数
此方法没有任何参数。
返回值
示例
此示例展示如何获取用于标记段落结尾的段落标记的文本属性。
// Get the mark text properties of the paragraph.
// How to update the text properties of the paragraph mark.
let doc = Api.GetDocument();
let paragraph = doc.GetElement(0);
paragraph.AddText("We set the font size, font color and spacing for the paragraph mark. ");
paragraph.AddText("You can see it if you download the document, open it and enable the invisible symbols display.");
let paragraphMarkTextPr = paragraph.GetParagraphMarkTextPr();
paragraphMarkTextPr.SetFontSize(52);
paragraphMarkTextPr.SetColor(Api.HexColor('#FFFF00'));
paragraphMarkTextPr.SetSpacing(5);