SetShd
指定应用于段落内容的底纹。
继承自 ApiParaPr.SetShd。
示例
指定在文档中应用于段落内容的底纹。
// How to add shading to the paragraph in a document.
// Apply the clear shading to the paragraph in a document.
let doc = Api.GetDocument();
let myStyle = doc.CreateStyle('My document style');
let paraPr = myStyle.GetParaPr();
paraPr.SetShd('clear', Api.RGB(255, 111, 61));
let paragraph = doc.GetElement(0);
paragraph.AddText('This is an example of setting a shading to a paragraph.');
paragraph.SetStyle(myStyle);