Message-ID: <2109019719.9461.1711691700996.JavaMail.web05$@web05> Subject: Exported From Confluence MIME-Version: 1.0 Content-Type: multipart/related; boundary="----=_Part_9460_1884396404.1711691700996" ------=_Part_9460_1884396404.1711691700996 Content-Type: text/html; charset=UTF-8 Content-Transfer-Encoding: quoted-printable Content-Location: file:///C:/exported.html ParagraphFormatting.WidowControl

ParagraphFormatting.WidowControl

Description=

=20

Sets or returns a boolean representing if Word will use Wid= ow 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 lin= e of a paragraph by itself at the bottom of a page (orphan).

=20
C#
=20
 public boolean WidowControl{ get; set; }
=20
=20
vb.net
=20
Public Property WidowControl() As Boolean
=20
=20

Remarks

=20

The default value for a new paragraph is true.

=20

MS Word equivalent: Format menu > Paragraph... > Line and Page Bre= aks tab > Pagination section > Widow/Orphan control

=20

Examples

=20
C#
=20

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

          //--- Set WidowControl
          oParagraphFormatting.WidowControl =3D false;
        
=20
=20
vb.net
=20

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

          '--- Set WidowControl
          oParagraphFormatting.WidowControl =3D False
        
=20
------=_Part_9460_1884396404.1711691700996--