Share via


Paragraph.WidowControl Property

Determines if the first and last lines in the specified paragraph remain on the same page as the rest of the paragraph when Microsoft Word repaginates the document.

Namespace:  Microsoft.Office.Interop.Word
Assembly:  Microsoft.Office.Interop.Word (in Microsoft.Office.Interop.Word.dll)

Syntax

'Declaration
Property WidowControl As Integer
    Get
    Set
'Usage
Dim instance As Paragraph
Dim value As Integer

value = instance.WidowControl

instance.WidowControl = value
int WidowControl { get; set; }

Property Value

Type: System.Int32

Remarks

This property returns True if the first and last lines in the specified paragraph remain on the same page as the rest of the paragraph when Word repaginates the document, and False if not. Set the property value to True or False to enable or disable the functionality.

Possible values are True, False and wdUndefined.

See Also

Reference

Paragraph Interface

Paragraph Members

Microsoft.Office.Interop.Word Namespace