DoNotVerticallyAlignInTextBox-Klasse
Ignore Vertical Alignment in Textboxes.
Vererbungshierarchie
System.Object
DocumentFormat.OpenXml.OpenXmlElement
DocumentFormat.OpenXml.OpenXmlLeafElement
DocumentFormat.OpenXml.Wordprocessing.OnOffType
DocumentFormat.OpenXml.Wordprocessing.DoNotVerticallyAlignInTextBox
Namespace: DocumentFormat.OpenXml.Wordprocessing
Assembly: DocumentFormat.OpenXml (in DocumentFormat.OpenXml.dll)
Syntax
'Declaration
Public Class DoNotVerticallyAlignInTextBox _
Inherits OnOffType
'Usage
Dim instance As DoNotVerticallyAlignInTextBox
public class DoNotVerticallyAlignInTextBox : OnOffType
Hinweise
[ISO/IEC 29500-1 1. Ausgabe]
9.7.3.18 doNotVertAlignInTxbx (Ignore Vertical Alignment in Textboxes)
This element specifies whether applications shall allow text within text boxes to be vertically aligned when the v-text-anchor property is set within the parent VML shape.
Typically, if when the v-text-anchor property is set within the parent VML shape, then based on the value of that property, the text is top, center, or bottom aligned appropriately. This element, when present with a val attribute value of true (or equivalent), specifies that the property shall be ignored, and instead the contents of the table shall always be top-aligned.
[Example: Consider a WordprocessingML table with a single center-aligned text box:
<v:shape id="_x0000_s1026" type="#_x0000_t202" style="v-text-anchor:middle">
<v:textbox>
<w:txbxContent>
<w:p>
<w:r>
<w:t>This text is centered vertically.</w:t>
</w:r>
</w:p>
</w:txbxContent>
</v:textbox>
</v:shape>
The default presentation of this document results in the contents of the text box being center aligned, as follows:
However, if this compatibility setting is turned on:
<w:compat>
<w:doNotVertAlignInTxbx />
</w:compat>
Then the text must always be top aligned, regardless of the -text-anchor property, resulting in the following output:
end example]
Parent Elements |
---|
compat (Part 1, §17.15.1.21) |
This element's content model is defined by the common boolean property definition in Part 1, §17.17.4.
© 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.