Sdílet prostřednictvím


DocumentBase.SummaryViewMode – vlastnost

Získá nebo nastaví způsob, jakým se zobrazí souhrn.

Obor názvů:  Microsoft.Office.Tools.Word
Sestavení:  Microsoft.Office.Tools.Word.v4.0.Utilities (v Microsoft.Office.Tools.Word.v4.0.Utilities.dll)

Syntaxe

'Deklarace
Public Property SummaryViewMode As WdSummaryMode
public WdSummaryMode SummaryViewMode { get; set; }

Hodnota vlastnosti

Typ: Microsoft.Office.Interop.Word.WdSummaryMode
Jedna z hodnot WdSummaryMode

Poznámky

Tato vlastnost odpovídá Typ shrnutí možnosti Shrnutí dialogové okno.

Příklady

Následující příklad kódu přidá text prvního odstavce v dokumentu.Kód poté zobrazí souhrn a nastaví úroveň podrobností na 50 procent.Chcete-li tento příklad použít, spusťte jej ze třídy ThisDocument v projektu na úrovni 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;
}

Zabezpečení rozhraní .NET Framework

Viz také

Referenční dokumentace

DocumentBase Třída

Microsoft.Office.Tools.Word – obor názvů