Page tree

Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.
Comment: Migration of unmigrated content due to installation of a new plugin
Wiki Markup
{description}
{excerpt}This class contains various settings so imported documents from other versions of Word and competing products will look the way they were intended to.{excerpt}
{signature:C#}
 public sealed class CompatibilitySettings
{signature}{signature:vb.net}
Public NotInheritable Class CompatibilitySettings
{signature}
{remarks}You cannot create a [CompatibilitySettings|CompatibilitySettings] object using the {{new}} keyword. You must get an existing {{CompatibilitySettings}} object from a [Document].

The following sample gets the CompatibilitySettings of a document so you can start working with these properties.

{remarks}
{example}{code:csharp|title=C#}

          WordApplication app = new WordApplication();
          Document doc = app.Create();
          CompatibilitySettings cs = doc.CompatibilitySettings;
        {code}
{code:vbnet|title=vb.net}

          Dim app As New WordApplication()
          Dim doc As Document = app.Create()
          Dim cs As CompatibilitySettings = doc.CompatibilitySettings
        {code}

{example}
{properties}
||Name||Description||
|[AdjustTableLineHeight|CompatibilitySettings.AdjustTableLineHeight]|{excerpt-include:CompatibilitySettings.AdjustTableLineHeight|nopanel=true}|
|[AlignRowsIndependent|CompatibilitySettings.AlignRowsIndependent]|{excerpt-include:CompatibilitySettings.AlignRowsIndependent|nopanel=true}|
|[AllowLeading|CompatibilitySettings.AllowLeading]|{excerpt-include:CompatibilitySettings.AllowLeading|nopanel=true}|
|[AllowSnapInCells|CompatibilitySettings.AllowSnapInCells]|{excerpt-include:CompatibilitySettings.AllowSnapInCells|nopanel=true}|
|[AllowTableBreaks|CompatibilitySettings.AllowTableBreaks]|{excerpt-include:CompatibilitySettings.AllowTableBreaks|nopanel=true}|
|[ApplyBreakingRules|CompatibilitySettings.ApplyBreakingRules]|{excerpt-include:CompatibilitySettings.ApplyBreakingRules|nopanel=true}|
|[AutospaceLike95|CompatibilitySettings.AutospaceLike95]|{excerpt-include:CompatibilitySettings.AutospaceLike95|nopanel=true}|
|[BalanceColumns|CompatibilitySettings.BalanceColumns]|{excerpt-include:CompatibilitySettings.BalanceColumns|nopanel=true}|
|[BorderRulesLike6|CompatibilitySettings.BorderRulesLike6]|{excerpt-include:CompatibilitySettings.BorderRulesLike6|nopanel=true}|
|[ConvertMailMergeEsc|CompatibilitySettings.ConvertMailMergeEsc]|{excerpt-include:CompatibilitySettings.ConvertMailMergeEsc|nopanel=true}|
|[ExactOnTop|CompatibilitySettings.ExactOnTop]|{excerpt-include:CompatibilitySettings.ExactOnTop|nopanel=true}|
|[ExpandShiftReturn|CompatibilitySettings.ExpandShiftReturn]|{excerpt-include:CompatibilitySettings.ExpandShiftReturn|nopanel=true}|
|[FootnotesLike97|CompatibilitySettings.FootnotesLike97]|{excerpt-include:CompatibilitySettings.FootnotesLike97|nopanel=true}|
|[GrowTableAutoFit|CompatibilitySettings.GrowTableAutoFit]|{excerpt-include:CompatibilitySettings.GrowTableAutoFit|nopanel=true}|
|[JustifyLikeWP6|CompatibilitySettings.JustifyLikeWP6]|{excerpt-include:CompatibilitySettings.JustifyLikeWP6|nopanel=true}|
|[LeaveBackslashAlone|CompatibilitySettings.LeaveBackslashAlone]|{excerpt-include:CompatibilitySettings.LeaveBackslashAlone|nopanel=true}|
|[LineBreaksLike97|CompatibilitySettings.LineBreaksLike97]|{excerpt-include:CompatibilitySettings.LineBreaksLike97|nopanel=true}|
|[LineWrapLike6|CompatibilitySettings.LineWrapLike6]|{excerpt-include:CompatibilitySettings.LineWrapLike6|nopanel=true}|
|[MapPrintColor|CompatibilitySettings.MapPrintColor]|{excerpt-include:CompatibilitySettings.MapPrintColor|nopanel=true}|
|[MirrorMargins|CompatibilitySettings.MirrorMargins]|{excerpt-include:CompatibilitySettings.MirrorMargins|nopanel=true}|
|[NoSpaceForRaisedLower|CompatibilitySettings.NoSpaceForRaisedLower]|{excerpt-include:CompatibilitySettings.NoSpaceForRaisedLower|nopanel=true}|
|[NoTabForIndent|CompatibilitySettings.NoTabForIndent]|{excerpt-include:CompatibilitySettings.NoTabForIndent|nopanel=true}|
|[ShapesLike97|CompatibilitySettings.ShapesLike97]|{excerpt-include:CompatibilitySettings.ShapesLike97|nopanel=true}|
|[ShowBreaksInFrames|CompatibilitySettings.ShowBreaksInFrames]|{excerpt-include:CompatibilitySettings.ShowBreaksInFrames|nopanel=true}|
|[SnapPageBorder|CompatibilitySettings.SnapPageBorder]|{excerpt-include:CompatibilitySettings.SnapPageBorder|nopanel=true}|
|[SpaceLikeWP5|CompatibilitySettings.SpaceLikeWP5]|{excerpt-include:CompatibilitySettings.SpaceLikeWP5|nopanel=true}|
|[SubBasedOnSize|CompatibilitySettings.SubBasedOnSize]|{excerpt-include:CompatibilitySettings.SubBasedOnSize|nopanel=true}|
|[SuppressExtraAfter|CompatibilitySettings.SuppressExtraAfter]|{excerpt-include:CompatibilitySettings.SuppressExtraAfter|nopanel=true}|
|[SuppressSpaceAfterPageBreak|CompatibilitySettings.SuppressSpaceAfterPageBreak]|{excerpt-include:CompatibilitySettings.SuppressSpaceAfterPageBreak|nopanel=true}|
|[SuppressSpacingLike5|CompatibilitySettings.SuppressSpacingLike5]|{excerpt-include:CompatibilitySettings.SuppressSpacingLike5|nopanel=true}|
|[SuppressSpacingLikeWP|CompatibilitySettings.SuppressSpacingLikeWP]|{excerpt-include:CompatibilitySettings.SuppressSpacingLikeWP|nopanel=true}|
|[SupressTopSpacing|CompatibilitySettings.SupressTopSpacing]|{excerpt-include:CompatibilitySettings.SupressTopSpacing|nopanel=true}|
|[SwapBorders|CompatibilitySettings.SwapBorders]|{excerpt-include:CompatibilitySettings.SwapBorders|nopanel=true}|
|[TableRowsApart|CompatibilitySettings.TableRowsApart]|{excerpt-include:CompatibilitySettings.TableRowsApart|nopanel=true}|
|[TruncateFontHeight|CompatibilitySettings.TruncateFontHeight]|{excerpt-include:CompatibilitySettings.TruncateFontHeight|nopanel=true}|
|[UnderlineTrailingSpaces|CompatibilitySettings.UnderlineTrailingSpaces]|{excerpt-include:CompatibilitySettings.UnderlineTrailingSpaces|nopanel=true}|
|[UseAsianBreakingRules|CompatibilitySettings.UseAsianBreakingRules]|{excerpt-include:CompatibilitySettings.UseAsianBreakingRules|nopanel=true}|
|[UseLargerSmallCaps|CompatibilitySettings.UseLargerSmallCaps]|{excerpt-include:CompatibilitySettings.UseLargerSmallCaps|nopanel=true}|
|[UsePrinterMetrics|CompatibilitySettings.UsePrinterMetrics]|{excerpt-include:CompatibilitySettings.UsePrinterMetrics|nopanel=true}|
|[UseTableRawWidth|CompatibilitySettings.UseTableRawWidth]|{excerpt-include:CompatibilitySettings.UseTableRawWidth|nopanel=true}|
|[UseTableStylesLike2002|CompatibilitySettings.UseTableStylesLike2002]|{excerpt-include:CompatibilitySettings.UseTableStylesLike2002|nopanel=true}|
|[WrapTextWithPunct|CompatibilitySettings.WrapTextWithPunct]|{excerpt-include:CompatibilitySettings.WrapTextWithPunct|nopanel=true}|
|[WrapTrailingSpaces|CompatibilitySettings.WrapTrailingSpaces]|{excerpt-include:CompatibilitySettings.WrapTrailingSpaces|nopanel=true}|