Proprietà Document.SummaryLength (System 2007)
Aggiornamento: novembre 2007
Ottiene o imposta la lunghezza del riepilogo come percentuale della lunghezza del documento.
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 SummaryLength As Integer
Dim instance As Document
Dim value As Integer
value = instance.SummaryLength
instance.SummaryLength = value
[BrowsableAttribute(false)]
public int SummaryLength { get; set; }
Valore proprietà
Tipo: System.Int32
Lunghezza del riepilogo come percentuale della lunghezza del documento.
Note
Più elevato è il numero, più numerosi saranno i dettagli inclusi nel riepilogo.
La proprietà ha effetto immediatamente se la barra degli strumenti Sunto automatico è visualizzata; in caso contrario avrà effetto alla successiva applicazione del metodo AutoSummarize o della proprietà SummaryViewMode al documento.
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
- Attendibilità totale per il chiamante immediato. Impossibile utilizzare questo membro in codice parzialmente attendibile. Per ulteriori informazioni, vedere Utilizzo di librerie da codice parzialmente attendibile.