DocumentBase.NoLineBreakBefore Property

Definition

Gets or sets the kinsoku characters before which Microsoft Office Word will not break a line.

public string NoLineBreakBefore { get; set; }

Property Value

String

The kinsoku characters before which Microsoft Office Word will not break a line.

Examples

The following code example sets "!", ")", and "]" as the kinsoku characters before which Word will not break a line in the active document. To use this example, run it from the ThisDocument class in a document-level project.

private void DocumentNoLineBreakBefore()
{
    this.NoLineBreakBefore = "!)]";
}
Private Sub DocumentNoLineBreakBefore()
    Me.NoLineBreakBefore = "!)]"
End Sub 

Applies to