Code to Add Emphasis Mark Symbols above or below Chinese Characters in Word Document using C# .NET or Java

image.png (2.3 KB)

@murphyfei,

我担心,目前不支持所请求的功能。 我们已在问题跟踪系统中记录您的要求。 我们将在Aspose.Words中添加一个功能,以支持“Emphasis Mark”字体设置。 您的票号是WORDSNET-13983。 我们将进一步研究此要求的详细信息,并随时向您通报此问题的状态。

The issues you have found earlier (filed as WORDSNET-13983) have been fixed in this Aspose.Words for .NET 20.6 update and this Aspose.Words for Java 20.6 update.

@murphyfei,

从20.6版本开始,我们在Aspose.Words for .NETAspose.Words for Java API中添加了支持,以使用C#或Java在Word文档中的文本中添加强调标记。 强调标记是一个附加字符,它在下面的枚举中指定的主字符字形之上或之下呈现。 我们在Aspose.Words API中添加了以下新的公共属性和枚举:

以下C#代码示例说明如何通过DocumentBuilder设置Font.EmphasisMark:

Document document = new Document();
DocumentBuilder builder = new DocumentBuilder(document);

builder.Font.EmphasisMark = EmphasisMark.UnderSolidCircle;

builder.Write("在Word文档中的文本上添加强调标记");
builder.Writeln();
builder.Font.ClearFormatting();
builder.Write("Simple text");

document.Save("E:\\temp\\20.6.docx");