Freigeben über


RightMarginDiv-Klasse

Right Margin for HTML div.When the object is serialized out as xml, its qualified name is w:marRight.

Vererbungshierarchie

System.Object
  DocumentFormat.OpenXml.OpenXmlElement
    DocumentFormat.OpenXml.OpenXmlLeafElement
      DocumentFormat.OpenXml.Wordprocessing.SignedTwipsMeasureType
        DocumentFormat.OpenXml.Wordprocessing.RightMarginDiv

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

Syntax

'Declaration
Public Class RightMarginDiv _
    Inherits SignedTwipsMeasureType
'Usage
Dim instance As RightMarginDiv
public class RightMarginDiv : SignedTwipsMeasureType

Hinweise

[ISO/IEC 29500-1 1. Ausgabe]

17.15.2.27 marRight (Right Margin for HTML div)

This element specifies the margin which shall be displayed at the right of the boundaries of the current HTML div object.

If this element is omitted, then this HTML div object shall not have a right margin.

[Example: Consider a simple HTML document defined as follows:

<html>
<body>
<div style="margin-top:100px; margin-left:200px; margin-right:50px; margin-bottom:100px">
      <p>paragraph of text</p>
    </div>
    <p>another paragraph of text</p>
  </body>
</html>

This HTML would therefore normally appear as follows (image scaled appropriately):

DocumentFormat.OpenXml.Wordprocessing.RightMarginD

Now, when this document is saved in the WordprocessingML format, the information stored on the div elements is stored in the web setting part as follows:

<w:divs>
<w:div w:id="1785730240">
<w:marLeft w:val="3000" />
<w:marRight w:val="750" />
<w:marTop w:val="1500" />
<w:marBottom w:val="1500" />
</w:div>
</w:divs>

The marRight element specifies margin information about the right margin for the single HTML div structure in the document; in this case, a 37.5 point right margin. The initial 50 pixel margin was converted to 37.5 points using the following logic:

end example]

Parent Elements

div (§17.15.2.6)

Attributes

Description

val (Positive or Negative Value in Twentieths of a Point)

Specifies a positive or negative measurement in twentieths of a point (equivalent to 1/1440th of an inch).

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

[Example: Consider an attribute value of -720 whose type is ST_SignedTwipsMeasure. This attribute value specifies a value of negative one-half of an inch or -36 points (-720 twentieths of a point = -36 points = -0.5 inches). end example]

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

[Note: The W3C XML Schema definition of this element's content model (CT_SignedTwipsMeasure) 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

RightMarginDiv-Member

DocumentFormat.OpenXml.Wordprocessing-Namespace