SpacingBetweenLines.Line 属性   
定义
重要
一些信息与预发行产品相关,相应产品在发行之前可能会进行重大修改。 对于此处提供的信息,Microsoft 不作任何明示或暗示的担保。
段落中的行间距
表示架构中的以下属性:w:line
[DocumentFormat.OpenXml.SchemaAttr(23, "line")]
public DocumentFormat.OpenXml.StringValue Line { get; set; }public DocumentFormat.OpenXml.StringValue Line { get; set; }[DocumentFormat.OpenXml.SchemaAttr(23, "line")]
public DocumentFormat.OpenXml.StringValue? Line { get; set; }[DocumentFormat.OpenXml.SchemaAttr("w:line")]
public DocumentFormat.OpenXml.StringValue? Line { get; set; }public DocumentFormat.OpenXml.StringValue? Line { get; set; }member this.Line : DocumentFormat.OpenXml.StringValue with get, set[<DocumentFormat.OpenXml.SchemaAttr(23, "line")>]
member this.Line : DocumentFormat.OpenXml.StringValue with get, set[<DocumentFormat.OpenXml.SchemaAttr("w:line")>]
member this.Line : DocumentFormat.OpenXml.StringValue with get, setPublic Property Line As StringValue属性值
返回 Int32Value。
- 属性
注解
使用此类时,ECMA 国际标准 ECMA-376 中的以下信息可能很有用。
此属性指定此段落中文本行之间的垂直间距量。
如果在给定段落中省略此元素,则其值由先前在样式层次结构的任何级别设置 (确定,换句话说,该上一个设置) 保持不变。 如果从未在样式层次结构中指定此设置,则不应将行距应用于此段落中的行距。
如果特性atLeast的lineRule值为 或 exactly,则此属性的值应解释为点的二十分之二十。 当 特性atLeast的lineRule值为 或 exactly时,文本应位于该行高度内,如下所示:
- 当行高太小时,文本应位于行的底部, (换句话说,从上到下剪裁) 。 
- 当行高过大时,文本应在可用空间中居中。 
如果特性auto的lineRule值为 ,则行属性的值应按简单类型的值描述的方式解释为行的 240。
请考虑以下 WordprocessingML 段落,该段落的行间间距应是行高 1.15 倍。 可以使用以下 WordprocessingML 指定此约束:
<w:pPr>  
  <w:spacing w:line="276" w:lineRule="auto" />  
</w:pPr>  
的lineRuleauto属性值指定属性的值将在单行高度的 line 240 秒内解释,这意味着净间距为 276/240 行或 1.15 行高。
此属性的可能值由 ST_SignedTwipsMeasure 简单类型定义。