Word文档设置多倍行距怎么设置1.25,为什么打印出来的却比同学的窄呢,请问是什么

1005人阅读
c# to office(3)
以下是官网上论坛上找的例子
// Create empty docuemnt and DocumentBuilder
Document doc = new Document();
DocumentBuilder builder = new DocumentBuilder(doc);
// Specify linespacing 1.5 line
builder.ParagraphFormat.LineSpacingRule = LineSpacingRule.M
// The line spacing is specified in the LineSpacing property as the number of lines.
// One line equals 12 points. so 1.5 lines = 18 points
builder.ParagraphFormat.LineSpacing = 15.6;
// Insert some text
builder.Writeln(&This is paragraph with '1.5 line' spacing rule&);
builder.Writeln(&Test1&);
// The same technique you can use to specify Document spacing rule
builder.ParagraphFormat.LineSpacingRule = LineSpacingRule.M
builder.ParagraphFormat.LineSpacing = 24;
builder.Writeln(&This is paragraph with 'Double' spacing rule&);
//Save output documnt
doc.Save(&out.doc&);
解释:&builder.ParagraphFormat.LineSpacingRule = LineSpacingRule.M
& & & & & & builder.ParagraphFormat.LineSpacing = 12; 设置1倍行距 12就是一倍行距&
同理&builder.ParagraphFormat.LineSpacingRule = LineSpacingRule.M
& & & & & & builder.ParagraphFormat.LineSpacing = 15.6; 设置1.3倍行距
builder.ParagraphFormat.LineSpacingRule = LineSpacingRule.M
& & & & & & builder.ParagraphFormat.LineSpacing = 24; 设置2倍行距
参考知识库
* 以上用户言论只代表其个人观点,不代表CSDN网站的观点或立场
访问:39532次
排名:千里之外
原创:50篇
评论:22条
(1)(3)(3)(4)(1)(1)(1)(1)(6)(4)(5)(4)(1)(1)(1)(2)(16)使用Aspose.Words设立word文档多倍行距 - 操作系统当前位置:& &&&使用Aspose.Words设立word文档多倍行距使用Aspose.Words设立word文档多倍行距&&网友分享于:&&浏览:0次使用Aspose.Words设置word文档多倍行距以下是官网上论坛上找的例子
// Create empty docuemnt and DocumentBuilder
Document doc = new Document();
DocumentBuilder builder = new DocumentBuilder(doc);
// Specify linespacing 1.5 line
builder.ParagraphFormat.LineSpacingRule = LineSpacingRule.M
// The line spacing is specified in the LineSpacing property as the number of lines.
// One line equals 12 points. so 1.5 lines = 18 points
builder.ParagraphFormat.LineSpacing = 15.6;
// Insert some text
builder.Writeln(&This is paragraph with '1.5 line' spacing rule&);
builder.Writeln(&Test1&);
// The same technique you can use to specify Document spacing rule
builder.ParagraphFormat.LineSpacingRule = LineSpacingRule.M
builder.ParagraphFormat.LineSpacing = 24;
builder.Writeln(&This is paragraph with 'Double' spacing rule&);
//Save output documnt
doc.Save(&out.doc&);
解释:&builder.ParagraphFormat.LineSpacingRule = LineSpacingRule.M
& & & & & & builder.ParagraphFormat.LineSpacing = 12; 设置1倍行距 12就是一倍行距&
同理&builder.ParagraphFormat.LineSpacingRule = LineSpacingRule.M
& & & & & & builder.ParagraphFormat.LineSpacing = 15.6; 设置1.3倍行距
builder.ParagraphFormat.LineSpacingRule = LineSpacingRule.M
& & & & & & builder.ParagraphFormat.LineSpacing = 24; 设置2倍行距
12345678910
12345678910
12345678910 上一篇:下一篇:文章评论相关解决方案 1234567891011 Copyright & &&版权所有

我要回帖

更多关于 单倍行距变为多倍行距 的文章

 

随机推荐