Export (0) Print
Expand All

Compatibility class

Compatibility Settings. When the object is serialized out as xml, its qualified name is w:compat.

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

[ChildElementInfoAttribute(typeof(ConvertMailMergeEscape))]
[ChildElementInfoAttribute(typeof(AutoSpaceLikeWord95))]
[ChildElementInfoAttribute(typeof(NoSpaceRaiseLower))]
[ChildElementInfoAttribute(typeof(LayoutTableRowsApart))]
[ChildElementInfoAttribute(typeof(UseWord97LineBreakRules))]
[ChildElementInfoAttribute(typeof(UseSingleBorderForContiguousCells))]
[ChildElementInfoAttribute(typeof(WordPerfectJustification))]
[ChildElementInfoAttribute(typeof(NoTabHangIndent))]
[ChildElementInfoAttribute(typeof(NoLeading))]
[ChildElementInfoAttribute(typeof(SpaceForUnderline))]
[ChildElementInfoAttribute(typeof(NoColumnBalance))]
[ChildElementInfoAttribute(typeof(BalanceSingleByteDoubleByteWidth))]
[ChildElementInfoAttribute(typeof(NoExtraLineSpacing))]
[ChildElementInfoAttribute(typeof(DoNotLeaveBackslashAlone))]
[ChildElementInfoAttribute(typeof(UnderlineTrailingSpaces))]
[ChildElementInfoAttribute(typeof(DoNotExpandShiftReturn))]
[ChildElementInfoAttribute(typeof(SpacingInWholePoints))]
[ChildElementInfoAttribute(typeof(LineWrapLikeWord6))]
[ChildElementInfoAttribute(typeof(PrintBodyTextBeforeHeader))]
[ChildElementInfoAttribute(typeof(PrintColorBlackWhite))]
[ChildElementInfoAttribute(typeof(WordPerfectSpaceWidth))]
[ChildElementInfoAttribute(typeof(ShowBreaksInFrames))]
[ChildElementInfoAttribute(typeof(SubFontBySize))]
[ChildElementInfoAttribute(typeof(SuppressBottomSpacing))]
[ChildElementInfoAttribute(typeof(SuppressTopSpacing))]
[ChildElementInfoAttribute(typeof(SuppressSpacingAtTopOfPage))]
[ChildElementInfoAttribute(typeof(SuppressTopSpacingWordPerfect))]
[ChildElementInfoAttribute(typeof(SuppressSpacingBeforeAfterPageBreak))]
[ChildElementInfoAttribute(typeof(SwapBordersFacingPages))]
[ChildElementInfoAttribute(typeof(TruncateFontHeightsLikeWordPerfect))]
[ChildElementInfoAttribute(typeof(MacWordSmallCaps))]
[ChildElementInfoAttribute(typeof(UsePrinterMetrics))]
[ChildElementInfoAttribute(typeof(DoNotSuppressParagraphBorders))]
[ChildElementInfoAttribute(typeof(WrapTrailSpaces))]
[ChildElementInfoAttribute(typeof(FootnoteLayoutLikeWord8))]
[ChildElementInfoAttribute(typeof(ShapeLayoutLikeWord8))]
[ChildElementInfoAttribute(typeof(AlignTablesRowByRow))]
[ChildElementInfoAttribute(typeof(ForgetLastTabAlignment))]
[ChildElementInfoAttribute(typeof(AdjustLineHeightInTable))]
[ChildElementInfoAttribute(typeof(DoNotUseHTMLParagraphAutoSpacing))]
[ChildElementInfoAttribute(typeof(LayoutRawTableWidth))]
[ChildElementInfoAttribute(typeof(DoNotBreakWrappedTables))]
[ChildElementInfoAttribute(typeof(DoNotSnapToGridInCell))]
[ChildElementInfoAttribute(typeof(SelectFieldWithFirstOrLastChar))]
[ChildElementInfoAttribute(typeof(ApplyBreakingRules))]
[ChildElementInfoAttribute(typeof(DoNotWrapTextWithPunctuation))]
[ChildElementInfoAttribute(typeof(DoNotUseEastAsianBreakRules))]
[ChildElementInfoAttribute(typeof(UseWord2002TableStyleRules))]
[ChildElementInfoAttribute(typeof(GrowAutofit))]
[ChildElementInfoAttribute(typeof(UseFarEastLayout))]
[ChildElementInfoAttribute(typeof(UseNormalStyleForList))]
[ChildElementInfoAttribute(typeof(DoNotUseIndentAsNumberingTabStop))]
[ChildElementInfoAttribute(typeof(UseAltKinsokuLineBreakRules))]
[ChildElementInfoAttribute(typeof(AllowSpaceOfSameStyleInTable))]
[ChildElementInfoAttribute(typeof(DoNotSuppressIndentation))]
[ChildElementInfoAttribute(typeof(DoNotAutofitConstrainedTables))]
[ChildElementInfoAttribute(typeof(AutofitToFirstFixedWidthCell))]
[ChildElementInfoAttribute(typeof(UnderlineTabInNumberingList))]
[ChildElementInfoAttribute(typeof(DisplayHangulFixedWidth))]
[ChildElementInfoAttribute(typeof(SplitPageBreakAndParagraphMark))]
[ChildElementInfoAttribute(typeof(DoNotVerticallyAlignCellWithShape))]
[ChildElementInfoAttribute(typeof(DoNotBreakConstrainedForcedTable))]
[ChildElementInfoAttribute(typeof(DoNotVerticallyAlignInTextBox))]
[ChildElementInfoAttribute(typeof(UseAnsiKerningPairs))]
[ChildElementInfoAttribute(typeof(CachedColumnBalance))]
[ChildElementInfoAttribute(typeof(CompatibilitySetting))]
public class Compatibility : OpenXmlCompositeElement

[ISO/IEC 29500-1 1st Edition]

compat (Compatibility Settings)

This element specifies a set of optional compatibility options for the current document.

[Example: Consider a WordprocessingML document with a series of compatibility settings:

<w:settings>
  <w:compat>
    …  </w:compat>
</w:settings>

The compat element specifies the set of compatibility settings for a document. end example]

Parent Elements

settings (§17.15.1.78)

Child Elements

Subclause

adjustLineHeightInTable (Add Document Grid Line Pitch To Lines in Table Cells)

§17.15.3.1

applyBreakingRules (Use Legacy Ethiopic and Amharic Line Breaking Rules)

§17.15.3.2

balanceSingleByteDoubleByteWidth (Balance Single Byte and Double Byte Characters)

§17.15.3.3

compatSetting (Custom Compatibility Setting)

§17.15.3.4

doNotExpandShiftReturn (Don't Justify Lines Ending in Soft Line Break)

§17.15.3.5

doNotLeaveBackslashAlone (Display Backslash As Yen Sign)

§17.15.3.6

spaceForUL (Add Additional Space Below Baseline For Underlined East Asian Text)

§17.15.3.7

ulTrailSpace (Underline All Trailing Spaces)

§17.15.3.8

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

© ISO/IEC29500: 2008.

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

Community Additions

ADD
Show:
© 2014 Microsoft