builder.Write("The start of the paragraph ");
builder.Font.Bold = true;
builder.Font.Underline = Underline.Single;
builder.Write("underlined bolded text");
builder.Font.Bold = false;
builder.Font.Underline = Underline.None;
builder.Write(" the end of the paragraph.");
1 回答
我一直在努力,通过使用DocumentBuilder.Write()而不是DocumentBuilder.Writeln()来实现所需的结果: