DocumentBase.ConsecutiveHyphensLimit, propriété

Obtient ou définit le nombre maximal de lignes consécutives pouvant se terminer par un trait d'union.

Espace de noms :  Microsoft.Office.Tools.Word
Assembly :  Microsoft.Office.Tools.Word.v4.0.Utilities (dans Microsoft.Office.Tools.Word.v4.0.Utilities.dll)

Syntaxe

'Déclaration
Public Property ConsecutiveHyphensLimit As Integer
    Get
    Set
public int ConsecutiveHyphensLimit { get; set; }

Valeur de propriété

Type : System.Int32
Nombre maximal de lignes consécutives pouvant se terminer par un trait d'union.

Notes

Si cette propriété a la valeur 0 (zéro), n'importe quel nombre de lignes consécutives peu terminer par un trait d'union.

Exemples

L'exemple de code suivant limite le nombre de lignes consécutives pouvant se terminer par un trait d'union à deux. Pour utiliser cet exemple, exécutez-le à partir de la classe ThisDocument dans un projet au niveau du document.

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

Sécurité .NET Framework

Voir aussi

Référence

DocumentBase Classe

Microsoft.Office.Tools.Word, espace de noms