Proprietà Document.SummaryViewMode (System 2007)

Aggiornamento: novembre 2007

Ottiene o imposta la modalità di visualizzazione di un riepilogo.

Spazio dei nomi:  Microsoft.Office.Tools.Word
Assembly:  Microsoft.Office.Tools.Word.v9.0 (in Microsoft.Office.Tools.Word.v9.0.dll)

Sintassi

<BrowsableAttribute(False)> _
Public Property SummaryViewMode As WdSummaryMode

Dim instance As Document
Dim value As WdSummaryMode

value = instance.SummaryViewMode

instance.SummaryViewMode = value
[BrowsableAttribute(false)]
public WdSummaryMode SummaryViewMode { get; set; }

Valore proprietà

Tipo: Microsoft.Office.Interop.Word.WdSummaryMode

Uno dei valori di WdSummaryMode.

Note

La proprietà corrisponde alle opzioni relative al tipo di riepilogo della finestra di dialogo Sunto automatico.

Esempi

Nell'esempio di codice riportato di seguito viene illustrato come aggiungere testo al primo paragrafo del documento. Nell'esempio viene quindi illustrato come visualizzare il riepilogo e come impostare il livello di dettagli su 50%.

Questo esempio è per una personalizzazione a livello di documento.

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;
}

Autorizzazioni

Vedere anche

Riferimenti

Document Classe

Membri Document

Spazio dei nomi Microsoft.Office.Tools.Word