SpacingBetweenLines.Line Property
Definition
Important
Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.
Spacing Between Lines in Paragraph
Represents the following attribute in the schema: 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, set
Public Property Line As StringValue
Property Value
Returns Int32Value.
- Attributes
Remarks
The following information from the ECMA International Standard ECMA-376 can be useful when working with this class.
This attribute specifies the amount of vertical spacing between lines of text within this paragraph.
If this element is omitted on a given paragraph, its value is determined by the setting previously set at any level of the style hierarchy (in other words, that previous setting remains unchanged). If this setting is never specified in the style hierarchy, then no line spacing shall be applied to lines within this paragraph.
If the value of the lineRule
attribute is either atLeast
or exactly
, then the value of this attribute shall be interpreted as twentieths of a point. When the value of the lineRule
attribute is either atLeast
or exactly
, the text shall be positioned as follows within that line height:
When the line height is too small, the text shall be positioned at the bottom of the line (in other words, clipped from the top down).
When the line height is too large, the text shall be centered in the available space.
If the value of the lineRule
attribute is auto
, then the value of the line attribute shall be interpreted as 240ths of a line, in the manner described by the simple type's values.
Consider the following WordprocessingML paragraph which should have an inter-line spacing of 1.15 times the line height. This constraint would be specified using the following WordprocessingML:
<w:pPr>
<w:spacing w:line="276" w:lineRule="auto" />
</w:pPr>
The lineRule
attribute value of auto
specifies that the value of the line
attribute is to be interpreted in 240ths of a single line height, which means that the net spacing is 276/240 lines, or 1.15 lines, tall.
The possible values for this attribute are defined by the ST_SignedTwipsMeasure
simple type.
Applies to
意見反應
https://aka.ms/ContentUserFeedback。
即將登場:在 2024 年,我們將逐步淘汰 GitHub 問題作為內容的意見反應機制,並將它取代為新的意見反應系統。 如需詳細資訊,請參閱:提交並檢視相關的意見反應