DocGrid.Type 属性

定义

文档网格类型

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

[DocumentFormat.OpenXml.SchemaAttr(23, "type")]
public DocumentFormat.OpenXml.EnumValue<DocumentFormat.OpenXml.Wordprocessing.DocGridValues> Type { get; set; }
public DocumentFormat.OpenXml.EnumValue<DocumentFormat.OpenXml.Wordprocessing.DocGridValues> Type { get; set; }
[DocumentFormat.OpenXml.SchemaAttr(23, "type")]
public DocumentFormat.OpenXml.EnumValue<DocumentFormat.OpenXml.Wordprocessing.DocGridValues>? Type { get; set; }
[DocumentFormat.OpenXml.SchemaAttr("w:type")]
public DocumentFormat.OpenXml.EnumValue<DocumentFormat.OpenXml.Wordprocessing.DocGridValues>? Type { get; set; }
public DocumentFormat.OpenXml.EnumValue<DocumentFormat.OpenXml.Wordprocessing.DocGridValues>? Type { get; set; }
member this.Type : DocumentFormat.OpenXml.EnumValue<DocumentFormat.OpenXml.Wordprocessing.DocGridValues> with get, set
[<DocumentFormat.OpenXml.SchemaAttr(23, "type")>]
member this.Type : DocumentFormat.OpenXml.EnumValue<DocumentFormat.OpenXml.Wordprocessing.DocGridValues> with get, set
[<DocumentFormat.OpenXml.SchemaAttr("w:type")>]
member this.Type : DocumentFormat.OpenXml.EnumValue<DocumentFormat.OpenXml.Wordprocessing.DocGridValues> with get, set
Public Property Type As EnumValue(Of DocGridValues)

属性值

返回 EnumValue<T>

属性

注解

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

指定定义网格行为的当前文档网格的类型。

网格可以定义一个网格,该网格将所有东亚字符对齐到网格位置,但保留拉丁文本的默认间距:一个网格,它将指定的字符间距添加到每一行上的每个字符;或仅影响当前部分的线条间距的网格。

考虑上面讨论的文档,文档网格定义为允许每行 20 个字符,每页 20 行,方法是将字符贴靠在网格上,如下所示:

e0361fbb-cda2-4849-adfe-35193d444dcf

此文档的类型属性为 snapToChars,该属性指定网格应强制东亚字符将 20 适合一行。

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

适用于