Forums     Knowledge Base     OfficeWriter Online     
 
 
This documentation is for
OfficeWriter v3.8.1
.NET Platform

View Docs for Another
Version or Platform

Programmer's Reference > WordApplication API > ParagraphFormatting > WidowControl

WidowControl Property


C# Signature:

VB.NET Signature:


Description:

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).

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

WidowControl is a read / write property.



Examples:

[csharp]
// Return WidowControl
bool widowControl = oParagraphFormatting.WidowControl;
// Set WidowControl
oParagraphFormatting.WidowControl = false;
[vbnet]
' Return WidowControl
Dim widowControl As Boolean = oParagraphFormatting.WidowControl
' Set WidowControl
oParagraphFormatting.WidowControl = False


Getter

Signature:

public boolean WidowControl

Returns:

boolean A boolean representing if Word will use Widow Control for a paragraph.

Setter

Signature:

public void WidowControl boolean widow

Type:

boolean



Copyright 2007 © SoftArtisans, Inc. All Rights Reserved.