word限制编辑区域 背景颜色的定制

Viewed 1

image.png

   const Range =  wpsSdk.Application.ActiveDocument.ActiveWindow.Selection.Range;
  	// or
	// const Range = await wpsSdk.Application.ActiveDocument.GetDocumentRange();
  Range.HighlightColorIndex = wpsSdk.Enum.WdColorIndex.wdGray25;

尝试用这个方法修改 没有生效;

0 Answers