DocumentBase.NoLineBreakBefore Property
Gets or sets the kinsoku characters before which Microsoft Office Word will not break a line.
Namespace: Microsoft.Office.Tools.Word
Assembly: Microsoft.Office.Tools.Word.v4.0.Utilities (in Microsoft.Office.Tools.Word.v4.0.Utilities.dll)
Syntax
'Declaration
Public Property NoLineBreakBefore As String
Get
Set
public string NoLineBreakBefore { get; set; }
Property Value
Type: System.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 Sub DocumentNoLineBreakBefore()
Me.NoLineBreakBefore = "!)]"
End Sub
private void DocumentNoLineBreakBefore()
{
this.NoLineBreakBefore = "!)]";
}
.NET Framework Security
- Full trust for the immediate caller. This member cannot be used by partially trusted code. For more information, see Using Libraries from Partially Trusted Code.