次の方法で共有


Compatibility Class

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

Inheritance Hierarchy

System.Object
DocumentFormat.OpenXml.OpenXmlElement
DocumentFormat.OpenXml.OpenXmlCompositeElement
DocumentFormat.OpenXml.Wordprocessing.Compatibility

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

Syntax

'宣言
<ChildElementInfoAttribute(GetType(AlignTablesRowByRow))> _
<ChildElementInfoAttribute(GetType(CompatibilitySetting))> _
<ChildElementInfoAttribute(GetType(WordPerfectJustification))> _
<ChildElementInfoAttribute(GetType(NoTabHangIndent))> _
<ChildElementInfoAttribute(GetType(NoLeading))> _
<ChildElementInfoAttribute(GetType(SpaceForUnderline))> _
<ChildElementInfoAttribute(GetType(NoColumnBalance))> _
<ChildElementInfoAttribute(GetType(BalanceSingleByteDoubleByteWidth))> _
<ChildElementInfoAttribute(GetType(NoExtraLineSpacing))> _
<ChildElementInfoAttribute(GetType(DoNotLeaveBackslashAlone))> _
<ChildElementInfoAttribute(GetType(UnderlineTrailingSpaces))> _
<ChildElementInfoAttribute(GetType(DoNotExpandShiftReturn))> _
<ChildElementInfoAttribute(GetType(SpacingInWholePoints))> _
<ChildElementInfoAttribute(GetType(LineWrapLikeWord6))> _
<ChildElementInfoAttribute(GetType(PrintBodyTextBeforeHeader))> _
<ChildElementInfoAttribute(GetType(PrintColorBlackWhite))> _
<ChildElementInfoAttribute(GetType(WordPerfectSpaceWidth))> _
<ChildElementInfoAttribute(GetType(ShowBreaksInFrames))> _
<ChildElementInfoAttribute(GetType(SubFontBySize))> _
<ChildElementInfoAttribute(GetType(SuppressBottomSpacing))> _
<ChildElementInfoAttribute(GetType(SuppressTopSpacing))> _
<ChildElementInfoAttribute(GetType(SuppressSpacingAtTopOfPage))> _
<ChildElementInfoAttribute(GetType(SuppressTopSpacingWordPerfect))> _
<ChildElementInfoAttribute(GetType(SuppressSpacingBeforeAfterPageBreak))> _
<ChildElementInfoAttribute(GetType(SwapBordersFacingPages))> _
<ChildElementInfoAttribute(GetType(ConvertMailMergeEscape))> _
<ChildElementInfoAttribute(GetType(TruncateFontHeightsLikeWordPerfect))> _
<ChildElementInfoAttribute(GetType(MacWordSmallCaps))> _
<ChildElementInfoAttribute(GetType(UsePrinterMetrics))> _
<ChildElementInfoAttribute(GetType(DoNotSuppressParagraphBorders))> _
<ChildElementInfoAttribute(GetType(WrapTrailSpaces))> _
<ChildElementInfoAttribute(GetType(FootnoteLayoutLikeWord8))> _
<ChildElementInfoAttribute(GetType(ShapeLayoutLikeWord8))> _
<ChildElementInfoAttribute(GetType(UseSingleBorderForContiguousCells))> _
<ChildElementInfoAttribute(GetType(ForgetLastTabAlignment))> _
<ChildElementInfoAttribute(GetType(AdjustLineHeightInTable))> _
<ChildElementInfoAttribute(GetType(AutoSpaceLikeWord95))> _
<ChildElementInfoAttribute(GetType(NoSpaceRaiseLower))> _
<ChildElementInfoAttribute(GetType(DoNotUseHTMLParagraphAutoSpacing))> _
<ChildElementInfoAttribute(GetType(LayoutRawTableWidth))> _
<ChildElementInfoAttribute(GetType(LayoutTableRowsApart))> _
<ChildElementInfoAttribute(GetType(UseWord97LineBreakRules))> _
<ChildElementInfoAttribute(GetType(DoNotBreakWrappedTables))> _
<ChildElementInfoAttribute(GetType(DoNotSnapToGridInCell))> _
<ChildElementInfoAttribute(GetType(SelectFieldWithFirstOrLastChar))> _
<ChildElementInfoAttribute(GetType(ApplyBreakingRules))> _
<ChildElementInfoAttribute(GetType(DoNotWrapTextWithPunctuation))> _
<ChildElementInfoAttribute(GetType(DoNotUseEastAsianBreakRules))> _
<ChildElementInfoAttribute(GetType(UseWord2002TableStyleRules))> _
<ChildElementInfoAttribute(GetType(GrowAutofit))> _
<ChildElementInfoAttribute(GetType(UseFarEastLayout))> _
<ChildElementInfoAttribute(GetType(UseNormalStyleForList))> _
<ChildElementInfoAttribute(GetType(DoNotUseIndentAsNumberingTabStop))> _
<ChildElementInfoAttribute(GetType(UseAltKinsokuLineBreakRules))> _
<ChildElementInfoAttribute(GetType(AllowSpaceOfSameStyleInTable))> _
<ChildElementInfoAttribute(GetType(DoNotSuppressIndentation))> _
<ChildElementInfoAttribute(GetType(DoNotAutofitConstrainedTables))> _
<ChildElementInfoAttribute(GetType(AutofitToFirstFixedWidthCell))> _
<ChildElementInfoAttribute(GetType(UnderlineTabInNumberingList))> _
<ChildElementInfoAttribute(GetType(DisplayHangulFixedWidth))> _
<ChildElementInfoAttribute(GetType(SplitPageBreakAndParagraphMark))> _
<ChildElementInfoAttribute(GetType(DoNotVerticallyAlignCellWithShape))> _
<ChildElementInfoAttribute(GetType(DoNotBreakConstrainedForcedTable))> _
<ChildElementInfoAttribute(GetType(DoNotVerticallyAlignInTextBox))> _
<ChildElementInfoAttribute(GetType(UseAnsiKerningPairs))> _
<ChildElementInfoAttribute(GetType(CachedColumnBalance))> _
Public Class Compatibility _
    Inherits OpenXmlCompositeElement
'使用
Dim instance As Compatibility
[ChildElementInfoAttribute(typeof(AlignTablesRowByRow))]
[ChildElementInfoAttribute(typeof(CompatibilitySetting))]
[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(ConvertMailMergeEscape))]
[ChildElementInfoAttribute(typeof(TruncateFontHeightsLikeWordPerfect))]
[ChildElementInfoAttribute(typeof(MacWordSmallCaps))]
[ChildElementInfoAttribute(typeof(UsePrinterMetrics))]
[ChildElementInfoAttribute(typeof(DoNotSuppressParagraphBorders))]
[ChildElementInfoAttribute(typeof(WrapTrailSpaces))]
[ChildElementInfoAttribute(typeof(FootnoteLayoutLikeWord8))]
[ChildElementInfoAttribute(typeof(ShapeLayoutLikeWord8))]
[ChildElementInfoAttribute(typeof(UseSingleBorderForContiguousCells))]
[ChildElementInfoAttribute(typeof(ForgetLastTabAlignment))]
[ChildElementInfoAttribute(typeof(AdjustLineHeightInTable))]
[ChildElementInfoAttribute(typeof(AutoSpaceLikeWord95))]
[ChildElementInfoAttribute(typeof(NoSpaceRaiseLower))]
[ChildElementInfoAttribute(typeof(DoNotUseHTMLParagraphAutoSpacing))]
[ChildElementInfoAttribute(typeof(LayoutRawTableWidth))]
[ChildElementInfoAttribute(typeof(LayoutTableRowsApart))]
[ChildElementInfoAttribute(typeof(UseWord97LineBreakRules))]
[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))]
public class Compatibility : OpenXmlCompositeElement

Remarks

The following table lists the possible child types:

  • UseSingleBorderForContiguousCells <w:useSingleBorderforContiguousCells>

  • WordPerfectJustification <w:wpJustification>

  • NoTabHangIndent <w:noTabHangInd>

  • NoLeading <w:noLeading>

  • SpaceForUnderline <w:spaceForUL>

  • NoColumnBalance <w:noColumnBalance>

  • BalanceSingleByteDoubleByteWidth <w:balanceSingleByteDoubleByteWidth>

  • NoExtraLineSpacing <w:noExtraLineSpacing>

  • DoNotLeaveBackslashAlone <w:doNotLeaveBackslashAlone>

  • UnderlineTrailingSpaces <w:ulTrailSpace>

  • DoNotExpandShiftReturn <w:doNotExpandShiftReturn>

  • SpacingInWholePoints <w:spacingInWholePoints>

  • LineWrapLikeWord6 <w:lineWrapLikeWord6>

  • PrintBodyTextBeforeHeader <w:printBodyTextBeforeHeader>

  • PrintColorBlackWhite <w:printColBlack>

  • WordPerfectSpaceWidth <w:wpSpaceWidth>

  • ShowBreaksInFrames <w:showBreaksInFrames>

  • SubFontBySize <w:subFontBySize>

  • SuppressBottomSpacing <w:suppressBottomSpacing>

  • SuppressTopSpacing <w:suppressTopSpacing>

  • SuppressSpacingAtTopOfPage <w:suppressSpacingAtTopOfPage>

  • SuppressTopSpacingWordPerfect <w:suppressTopSpacingWP>

  • SuppressSpacingBeforeAfterPageBreak <w:suppressSpBfAfterPgBrk>

  • SwapBordersFacingPages <w:swapBordersFacingPages>

  • ConvertMailMergeEscape <w:convMailMergeEsc>

  • TruncateFontHeightsLikeWordPerfect <w:truncateFontHeightsLikeWP6>

  • MacWordSmallCaps <w:mwSmallCaps>

  • UsePrinterMetrics <w:usePrinterMetrics>

  • DoNotSuppressParagraphBorders <w:doNotSuppressParagraphBorders>

  • WrapTrailSpaces <w:wrapTrailSpaces>

  • FootnoteLayoutLikeWord8 <w:footnoteLayoutLikeWW8>

  • ShapeLayoutLikeWord8 <w:shapeLayoutLikeWW8>

  • AlignTablesRowByRow <w:alignTablesRowByRow>

  • ForgetLastTabAlignment <w:forgetLastTabAlignment>

  • AdjustLineHeightInTable <w:adjustLineHeightInTable>

  • AutoSpaceLikeWord95 <w:autoSpaceLikeWord95>

  • NoSpaceRaiseLower <w:noSpaceRaiseLower>

  • DoNotUseHTMLParagraphAutoSpacing <w:doNotUseHTMLParagraphAutoSpacing>

  • LayoutRawTableWidth <w:layoutRawTableWidth>

  • LayoutTableRowsApart <w:layoutTableRowsApart>

  • UseWord97LineBreakRules <w:useWord97LineBreakRules>

  • DoNotBreakWrappedTables <w:doNotBreakWrappedTables>

  • DoNotSnapToGridInCell <w:doNotSnapToGridInCell>

  • SelectFieldWithFirstOrLastChar <w:selectFldWithFirstOrLastChar>

  • ApplyBreakingRules <w:applyBreakingRules>

  • DoNotWrapTextWithPunctuation <w:doNotWrapTextWithPunct>

  • DoNotUseEastAsianBreakRules <w:doNotUseEastAsianBreakRules>

  • UseWord2002TableStyleRules <w:useWord2002TableStyleRules>

  • GrowAutofit <w:growAutofit>

  • UseFarEastLayout <w:useFELayout>

  • UseNormalStyleForList <w:useNormalStyleForList>

  • DoNotUseIndentAsNumberingTabStop <w:doNotUseIndentAsNumberingTabStop>

  • UseAltKinsokuLineBreakRules <w:useAltKinsokuLineBreakRules>

  • AllowSpaceOfSameStyleInTable <w:allowSpaceOfSameStyleInTable>

  • DoNotSuppressIndentation <w:doNotSuppressIndentation>

  • DoNotAutofitConstrainedTables <w:doNotAutofitConstrainedTables>

  • AutofitToFirstFixedWidthCell <w:autofitToFirstFixedWidthCell>

  • UnderlineTabInNumberingList <w:underlineTabInNumList>

  • DisplayHangulFixedWidth <w:displayHangulFixedWidth>

  • SplitPageBreakAndParagraphMark <w:splitPgBreakAndParaMark>

  • DoNotVerticallyAlignCellWithShape <w:doNotVertAlignCellWithSp>

  • DoNotBreakConstrainedForcedTable <w:doNotBreakConstrainedForcedTable>

  • DoNotVerticallyAlignInTextBox <w:doNotVertAlignInTxbx>

  • UseAnsiKerningPairs <w:useAnsiKerningPairs>

  • CachedColumnBalance <w:cachedColBalance>

  • CompatibilitySetting <w:compatSetting>

[ISO/IEC 29500-1 初版]

17.15.1.21 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. 上記の引用はマイクロソフト (またはその代理) によって英語から日本語に翻訳されたものであり、ISO はこうした翻訳に対する責任を一切負いません。

Thread Safety

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

See Also

Reference

Compatibility Members

DocumentFormat.OpenXml.Wordprocessing Namespace