const Range = wpsSdk.Application.ActiveDocument.ActiveWindow.Selection.Range;
// or
// const Range = await wpsSdk.Application.ActiveDocument.GetDocumentRange();
Range.HighlightColorIndex = wpsSdk.Enum.WdColorIndex.wdGray25;
尝试用这个方法修改 没有生效;
const Range = wpsSdk.Application.ActiveDocument.ActiveWindow.Selection.Range;
// or
// const Range = await wpsSdk.Application.ActiveDocument.GetDocumentRange();
Range.HighlightColorIndex = wpsSdk.Enum.WdColorIndex.wdGray25;
尝试用这个方法修改 没有生效;