Freigeben über


MarginWidth-Klasse

Left and Right Margin for Frame.When the object is serialized out as xml, its qualified name is w:marW.

Vererbungshierarchie

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

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

Syntax

'Declaration
Public Class MarginWidth _
    Inherits PixelsMeasureType
'Usage
Dim instance As MarginWidth
public class MarginWidth : PixelsMeasureType

Hinweise

[ISO/IEC 29500-1 1. Ausgabe]

17.15.2.29 marW (Left and Right Margin for Frame)

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

DocumentFormat.OpenXml.Wordprocessing.MarginWidth-

This height is expressed in pixels.

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

[Example: Consider a document that has a frame, where the frame's margins have been specified and is represented as the following WordprocessingML:

<w:frame>
  <w:marW w:val="294"/>
</w:frame>

The marW element has a val attribute value of 294, which specifies that this frame has a left and right margin value of 294 pixels, resulting in 294 pixels of space between the content and the left and right 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. Die oben aufgeführten Textauszüge wurden von Microsoft (und/oder den Microsoft-Vendoren) von Englisch nach Deutsch übersetzt, und im Rahmen von ISO wird keinerlei Verantwortung für diese Übersetzungen übernommen.

Threadsicherheit

Alle öffentlichen static (Shared in Visual Basic) Member dieses Typs sind threadsicher. Bei Instanzmembern ist die Threadsicherheit nicht gewährleistet.

Siehe auch

Referenz

MarginWidth-Member

DocumentFormat.OpenXml.Wordprocessing-Namespace