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

...

Description

Excerpt

Sets or returns a boolean representing if Word will use Widow Control for a paragraph. When set to true, Word will not print the last line of a paragraph by itself at the top of a page (widow) or the first line of a paragraph by itself at the bottom of a page (orphan).

Signature
C#
C#
 public boolean WidowControl{ get; set; }
{signature}{signature:
}
Signature
vb.net
vb.net
Public Property WidowControl() As Boolean
{signature}
{remarks}The default value for a new paragraph is {{true}}.

MS Word equivalent: Format menu > 
Remarks

The default value for a new paragraph is true.

MS Word equivalent: Format menu > Paragraph...

>

Line

and

Page

Breaks

tab

>

Pagination

section

>

Widow/Orphan

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

control

Example
Code Block
csharp
csharp
titleC#


          //--- Return WidowControl
          bool widowControl = oParagraphFormatting.WidowControl;

          //--- Set WidowControl
          oParagraphFormatting.WidowControl = false;
        
{code} {code:
Code Block
vb.net
|title=
vb.net
titlevb.net
}


          '--- Return WidowControl
          Dim widowControl As Boolean = oParagraphFormatting.WidowControl

          '--- Set WidowControl
          oParagraphFormatting.WidowControl = False
        
{code} {example}