Поделиться через


MarginHeight Class

Top and Bottom Margin for Frame.When the object is serialized out as xml, its qualified name is w:marH.

Inheritance Hierarchy

System.Object
  DocumentFormat.OpenXml.OpenXmlElement
    DocumentFormat.OpenXml.OpenXmlLeafElement
      DocumentFormat.OpenXml.Wordprocessing.PixelsMeasureType
        DocumentFormat.OpenXml.Wordprocessing.MarginHeight

Namespace:  DocumentFormat.OpenXml.Wordprocessing
Assembly:  DocumentFormat.OpenXml (in DocumentFormat.OpenXml.dll)

Syntax

'Декларация
Public Class MarginHeight _
    Inherits PixelsMeasureType
'Применение
Dim instance As MarginHeight
public class MarginHeight : PixelsMeasureType

Remarks

[ISO/IEC 29500-1 редакция 1]

17.15.2.25 marH (Top and Bottom Margin for Frame)

This element specifies the top and bottom margin height for a single frame in a frameset document, as follows:

DocumentFormat.OpenXml.Wordprocessing.MarginHeight

This height is expressed in pixels.

If this element is omitted, then no top or bottom margin shall be used for this frame.

[Example: Consider a document that has a frame, where the margin height has been specified and is represented as the following WordprocessingML:

<w:frame>
  <w:marH w:val="594"/>
</w:frame>

The marH element has a val attribute value of 594, which specifies that this frame has a top and bottom margin value of 594 pixels, resulting in 594 pixels of space between the content and the top and bottom margins of the frame. end example]

Parent Elements

frame (§17.15.2.16)

Attributes

Description

val (Measurement in Pixels)

Specifies a value whose contents shall contain a positive whole number, whose contents consist of a positive measurement in pixels.

The contents of this measurement shall be interpreted based on the context of the parent XML element.

[Example: Consider an attribute value of 960 whose simple type is ST_PixelsMeasure. This attribute value specifies a value of 960 pixels. end example]

The possible values for this attribute are defined by the ST_PixelsMeasure simple type (§17.18.67).

[Note: The W3C XML Schema definition of this element's content model (CT_PixelsMeasure) is located in §A.1. end note]

© ISO/IEC29500: 2008. Приведенный выше текст переведен с английского языка на русский корпорацией Майкрософт (или ее подрядчиками) и ISO не несет ответственности за эти переводы.

Thread Safety

Any public static (Shared in Visual Basic) members of this type are thread safe. Any instance members are not guaranteed to be thread safe.

See Also

Reference

MarginHeight Members

DocumentFormat.OpenXml.Wordprocessing Namespace