DocumentBase.NoLineBreakBefore Property

Definition

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

public:
 property System::String ^ NoLineBreakBefore { System::String ^ get(); void set(System::String ^ value); };
public string NoLineBreakBefore { get; set; }
member this.NoLineBreakBefore : string with get, set
Public Property NoLineBreakBefore As String

Property Value

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