DocGrid.LinePitch 属性

定义

文档网格线条间距

表示架构中的以下属性:w:linePitch

[DocumentFormat.OpenXml.SchemaAttr(23, "linePitch")]
public DocumentFormat.OpenXml.Int32Value LinePitch { get; set; }
public DocumentFormat.OpenXml.Int32Value LinePitch { get; set; }
[DocumentFormat.OpenXml.SchemaAttr(23, "linePitch")]
public DocumentFormat.OpenXml.Int32Value? LinePitch { get; set; }
[DocumentFormat.OpenXml.SchemaAttr("w:linePitch")]
public DocumentFormat.OpenXml.Int32Value? LinePitch { get; set; }
public DocumentFormat.OpenXml.Int32Value? LinePitch { get; set; }
member this.LinePitch : DocumentFormat.OpenXml.Int32Value with get, set
[<DocumentFormat.OpenXml.SchemaAttr(23, "linePitch")>]
member this.LinePitch : DocumentFormat.OpenXml.Int32Value with get, set
[<DocumentFormat.OpenXml.SchemaAttr("w:linePitch")>]
member this.LinePitch : DocumentFormat.OpenXml.Int32Value with get, set
Public Property LinePitch As Int32Value

属性值

返回 Int32Value

属性

注解

使用此类时,ECMA 国际标准 ECMA-376 中的以下信息可能很有用。

指定在当前页的文档网格上允许的行数,前提是所有行都应用了相等的行距。 除非文档的兼容性设置中存在元素, adjustLineHeightInTable 否则不应将此行间距添加到表单元格内出现的任何行。

此属性以点的二十分之二十指定,并定义此页上每一行文本的间距,以便所需的单行距文本行数适合当前页。

考虑一个标准的 8.5 x 11 英寸页面,其中定义了一个 20 个字符宽、20 行的文档网格。 生成的 WordprocessingML 定义如下:

<w:docGrid w:linePitch="684" …/>  

属性 linePitch 指定 34.2 磅表示此页上每行允许的间距量,以便维护特定的文档网格。

单个段落可以通过以下任一项替代为文档网格指定的行距信息:

  • 使用 lineRule 元素上的 spacing value exact 属性指定确切的行距值

  • 指定段落文本不能通过 snapToGrid 元素与文档网格对齐

此属性的可能值由 ST_DecimalNumber 简单类型定义。

适用于