BodyProperties.UseParagraphSpacing 属性

定义

段落间距

表示架构中的以下属性:spcFirstLastPara

[DocumentFormat.OpenXml.SchemaAttr(0, "spcFirstLastPara")]
public DocumentFormat.OpenXml.BooleanValue UseParagraphSpacing { get; set; }
public DocumentFormat.OpenXml.BooleanValue UseParagraphSpacing { get; set; }
[DocumentFormat.OpenXml.SchemaAttr(0, "spcFirstLastPara")]
public DocumentFormat.OpenXml.BooleanValue? UseParagraphSpacing { get; set; }
[DocumentFormat.OpenXml.SchemaAttr("spcFirstLastPara")]
public DocumentFormat.OpenXml.BooleanValue? UseParagraphSpacing { get; set; }
public DocumentFormat.OpenXml.BooleanValue? UseParagraphSpacing { get; set; }
member this.UseParagraphSpacing : DocumentFormat.OpenXml.BooleanValue with get, set
[<DocumentFormat.OpenXml.SchemaAttr(0, "spcFirstLastPara")>]
member this.UseParagraphSpacing : DocumentFormat.OpenXml.BooleanValue with get, set
[<DocumentFormat.OpenXml.SchemaAttr("spcFirstLastPara")>]
member this.UseParagraphSpacing : DocumentFormat.OpenXml.BooleanValue with get, set
Public Property UseParagraphSpacing As BooleanValue

属性值

返回 BooleanValue

属性

注解

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

指定是否遵循用户定义的前后段落间距。 虽然段落之间的间距很有用,但能够设置一个标志来确定是否在文本正文的边缘后跟此间距(换句话说,文本正文中的第一段和最后一段)也很有用。 更确切地说,由于这是一个文本正文级别属性,它只应影响给定文本正文的第一段前段间距和最后一段后段间距。 如果省略此属性,则隐含值 0,即 false

请考虑使用 spcBefspcAft 段落间距属性在文本正文中的多个段落之间定义间距的情况。 但是,对于此文本正文,用户希望边缘段落不遵循此内容,因此我们具有以下 DrawingML。

<p:txBody>  
  <a:bodyPr spcFirstLastPara="0" … />  
  …  
  <a:p>  
      <a:pPr>  
        <a:spcBef>  
        <a:spcPts val="1800"/>  
      </a:spcBef>  
      <a:spcAft>  
        <a:spcPts val="600"/>  
      </a:spcAft>  
      </a:pPr>  
    …  
    (Some text)  
    …  
  </a:p>  
  <a:p>  
      <a:pPr>  
        <a:spcBef>  
        <a:spcPts val="1800"/>  
      </a:spcBef>  
      <a:spcAft>  
        <a:spcPts val="600"/>  
      </a:spcAft>  
      </a:pPr>  
    …  
    (Some text)  
    …  
  </a:p>  
  …  
</p:txBody>  

此属性的可能值由 XML 架构 boolean 数据类型定义。

适用于