GetBorderEffectIntensity
获取批注边框效果强度。
语法
expression.GetBorderEffectIntensity();
expression - 表示 ApiBaseAnnotation 类的变量。
参数
此方法没有任何参数。
返回值
number
示例
检索 PDF 中注释上边框效果的强度级别。
// What is the border effect intensity value for an annotation in a PDF?
// Check the strength of a cloud or other border effect applied to an annotation in a PDF.
let doc = Api.GetDocument();
let squareAnnot = Api.CreateSquareAnnot([10, 10, 160, 32]);
squareAnnot.SetBorderEffectStyle("cloud");
squareAnnot.SetBorderEffectIntensity(1);
let page = doc.GetPage(0);
page.AddObject(squareAnnot);
console.log(`Annotation border effect intensity is: ${squareAnnot.GetBorderEffectIntensity()}`);