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}Sets or returns an {{int}} that represents the number of consecutive lines that can be auto\-hyphenated by Word in this document.{excerpt}
{signature:C#}
 public int AllowedConsecutiveHyphens{ get; set; }
{signature}{signature:vb.net}
Public Property AllowedConsecutiveHyphens() As Integer
{signature}
{remarks}This option is set to No limit by default.

MS Word equivalent: Tools menu > Language > Hyphenation... > Limit consecutive hyphens to:

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

          //--- Return AllowedConsecutiveHyphens
          int allowedHyphens = hyphenSettings.AllowedConsecutiveHyphens;

          //--- Set AllowedConsecutiveHyphens
          hyphenSettings.AllowedConsecutiveHyphens = 1;
        {code}
{code:vb.net|title=vb.net}

          '--- Return AllowedConsecutiveHyphens
          Dim allowedHyphens As Boolean = hyphenSettings.AllowedConsecutiveHyphens

          '--- Set AllowedConsecutiveHyphens
          hyphenSettings.AllowedConsecutiveHyphens = 1
        {code}

{example}