Freigeben über


TruncateFontHeightsLikeWordPerfect-Klasse

Emulate WordPerfect 6.x Font Height Calculation.When the object is serialized out as xml, its qualified name is w:truncateFontHeightsLikeWP6.

Vererbungshierarchie

System.Object
  DocumentFormat.OpenXml.OpenXmlElement
    DocumentFormat.OpenXml.OpenXmlLeafElement
      DocumentFormat.OpenXml.Wordprocessing.OnOffType
        DocumentFormat.OpenXml.Wordprocessing.TruncateFontHeightsLikeWordPerfect

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

Syntax

'Declaration
Public Class TruncateFontHeightsLikeWordPerfect _
    Inherits OnOffType
'Usage
Dim instance As TruncateFontHeightsLikeWordPerfect
public class TruncateFontHeightsLikeWordPerfect : OnOffType

Hinweise

[ISO/IEC 29500-1 1. Ausgabe]

9.7.3.46 truncateFontHeightsLikeWP6 (Use Truncated Integer Division For Font Calculation)

This element specifies that applications should perform a specific method of calculation when converting font heights, specified in points using the sz (Part 1, §17.3.2.38) and szCs (Part 1, §17.3.2.39) elements, into pixels. This algorithm often results in a smaller than typical visual appearance of text for a given point size.

Typically, applications convert points to pixels using any approximate mathematical conversion mechanism (often, rounded integer division). This element, when present with a val attribute value of true (or equivalent), specifies that applications should use truncated integer division when performing this conversion (any non-integer value is truncated to determine the integer value resulting from the conversions).

[Example: If this compatibility setting is turned on:

<w:compat>
<w:truncateFontHeightsLikeWP6 />
</w:compat>

Then applications shall use truncated integer division when calculating the height of characters.

For example, if the conversion is done as follows:

where:

Converting a 14 point font on a 96 dpi device results in. If this setting is on, the result is truncated and the font is displayed using 18 pixels, even though 19 would be closer to the actual value. 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.

Siehe auch

Referenz

TruncateFontHeightsLikeWordPerfect-Member

DocumentFormat.OpenXml.Wordprocessing-Namespace