Share via


Document.ConsecutiveHyphensLimit Property (2007 System)

Gets or sets the maximum number of consecutive lines that can end with hyphens.

Namespace:  Microsoft.Office.Tools.Word
Assembly:  Microsoft.Office.Tools.Word.v9.0 (in Microsoft.Office.Tools.Word.v9.0.dll)

Syntax

'Declaration
Public Property ConsecutiveHyphensLimit As Integer
'Usage
Dim instance As Document 
Dim value As Integer 

value = instance.ConsecutiveHyphensLimit

instance.ConsecutiveHyphensLimit = value
public int ConsecutiveHyphensLimit { get; set; }
public:
property int ConsecutiveHyphensLimit {
    int get ();
    void set (int value);
}
public function get ConsecutiveHyphensLimit () : int 
public function set ConsecutiveHyphensLimit (value : int)

Property Value

Type: System.Int32
The maximum number of consecutive lines that can end with hyphens.

Remarks

If this property is set to 0 (zero), any number of consecutive lines can end with hyphens.

Examples

The following code example limits the number of consecutive lines that can end with hyphens to two.

This example is for a document-level customization.

Private Sub DocumentConsecutiveHyphensLimit()
    Me.AutoHyphenation = True 
    Me.ConsecutiveHyphensLimit = 2
End Sub
private void DocumentConsecutiveHyphensLimit()
{
    this.AutoHyphenation = true;
    this.ConsecutiveHyphensLimit = 2;
}

.NET Framework Security

See Also

Reference

Document Class

Document Members

Microsoft.Office.Tools.Word Namespace