Właściwość DocumentBase.SummaryLength —

Pobiera lub ustawia długość podsumowania w procentach długości dokumentu.

Przestrzeń nazw:  Microsoft.Office.Tools.Word
Zestaw:  Microsoft.Office.Tools.Word.v4.0.Utilities (w Microsoft.Office.Tools.Word.v4.0.Utilities.dll)

Składnia

'Deklaracja
Public Property SummaryLength As Integer
public int SummaryLength { get; set; }

Wartość właściwości

Typ: System.Int32
Długość podsumowania w procentach długości dokumentu.

Uwagi

Większa liczba, bardziej szczegółowo zawarte w podsumowaniu.

Właściwość ta staje się skuteczne niezwłocznie, jeśli Autopodsumowanie jest wyświetlany pasek narzędzi; w przeciwnym razie to staje się skuteczne po następnym AutoSummarize metoda lub SummaryViewMode właściwość jest stosowana do dokumentu.

Przykłady

Poniższy kod dodaje tekst w akapicie pierwszym dokumentu.Następnie kod wyświetla podsumowanie i ustawia poziom szczegółowości 50 procent.Aby wykorzystać ten przykład, należy uruchomić go z klasy ThisDocument w projekcie na poziomie dokumentu.

Private Sub DocumentSummaryLength()

    Me.Paragraphs(1).Range.InsertParagraphBefore()
    Me.Paragraphs(1).Range.Text = "The SummaryLength property" & _
        " returns or sets the length of the summary as a " & _
        " percentage of the document length. The larger the number," & _
        " the more detail that's included in the summary."

    Me.SummaryViewMode = Word.WdSummaryMode.wdSummaryModeHighlight

    Me.ShowSummary = True
    Me.SummaryLength = 50
End Sub 
private void DocumentSummaryLength()
{

    this.Paragraphs[1].Range.InsertParagraphBefore();
    this.Paragraphs[1].Range.Text = "The SummaryLength property"
        + " returns or sets the length of the summary as a "
        + " percentage of the document length. The larger the number,"
        + " the more detail that's included in the summary.";

    this.SummaryViewMode = Word.WdSummaryMode.wdSummaryModeHighlight;

    this.ShowSummary = true;
    this.SummaryLength = 50;
}

Zabezpieczenia programu .NET Framework

Zobacz też

Informacje

DocumentBase Klasa

Przestrzeń nazw Microsoft.Office.Tools.Word