BodyProperties.Vertical 属性

定义

垂直文本

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

[DocumentFormat.OpenXml.SchemaAttr(0, "vert")]
public DocumentFormat.OpenXml.EnumValue<DocumentFormat.OpenXml.Drawing.TextVerticalValues> Vertical { get; set; }
public DocumentFormat.OpenXml.EnumValue<DocumentFormat.OpenXml.Drawing.TextVerticalValues> Vertical { get; set; }
[DocumentFormat.OpenXml.SchemaAttr(0, "vert")]
public DocumentFormat.OpenXml.EnumValue<DocumentFormat.OpenXml.Drawing.TextVerticalValues>? Vertical { get; set; }
[DocumentFormat.OpenXml.SchemaAttr("vert")]
public DocumentFormat.OpenXml.EnumValue<DocumentFormat.OpenXml.Drawing.TextVerticalValues>? Vertical { get; set; }
public DocumentFormat.OpenXml.EnumValue<DocumentFormat.OpenXml.Drawing.TextVerticalValues>? Vertical { get; set; }
member this.Vertical : DocumentFormat.OpenXml.EnumValue<DocumentFormat.OpenXml.Drawing.TextVerticalValues> with get, set
[<DocumentFormat.OpenXml.SchemaAttr(0, "vert")>]
member this.Vertical : DocumentFormat.OpenXml.EnumValue<DocumentFormat.OpenXml.Drawing.TextVerticalValues> with get, set
[<DocumentFormat.OpenXml.SchemaAttr("vert")>]
member this.Vertical : DocumentFormat.OpenXml.EnumValue<DocumentFormat.OpenXml.Drawing.TextVerticalValues> with get, set
Public Property Vertical As EnumValue(Of TextVerticalValues)

属性值

返回 EnumValue<T>

属性

注解

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

确定是否应垂直显示给定文本正文中的文本。 如果省略此属性,则隐含值 horz,这意味着 没有垂直文本

请考虑这样一种情况:用户需要显示垂直显示的文本,并且其列具有从右到左的流。

<p:txBody>  
  <a:bodyPr vert="wordArtVertRtl" … />  
  …  
  <a:p>  
    …  
    <a:t>This is</a:t>  
    …  
  </a:p>  
  <a:p>  
    …  
    <a:t>some text.</a:t>  
    …  
  </a:p>  
</p:txBody>  

在上面的示例 DrawingML 中,有两个段落表示文本之间的分隔,否则它们称为换行符或段落分隔符。 由于 wordArtVertRtl 在此处使用,因此,此文本不仅将以从上到下流动的堆叠方式显示,而且还会在第二个段落的右侧显示第一段。 这是因为它既是垂直文本,也是从右到左。

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

适用于