Aracılığıyla paylaş


DocumentBase.SummaryLength Özellik

Alır veya Özet uzunluğu belge uzunluğu yüzde olarak ayarlar.

Ad alanı:  Microsoft.Office.Tools.Word
Derleme:  Microsoft.Office.Tools.Word.v4.0.Utilities (Microsoft.Office.Tools.Word.v4.0.Utilities.dll içinde)

Sözdizimi

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

Özellik Değeri

Tür: System.Int32
Özet belgenin uzunluğu yüzdesi olarak uzunluğu.

Notlar

Daha büyük sayı, daha ayrıntılı özeti bilgilerine dahildir.

Bu özelliğin etkili olur, hemen Otomatik Özetleme araç çubuğu görüntülenir; Aksi takdirde, bir sonraki açışınızda etkili olur AutoSummarize yöntemini veya SummaryViewMode özelliği, belgeye uygulanır.

Örnekler

Aşağıdaki kod örneğinde, belgede ilk paragrafa metin eklenir.Kod özeti görüntüler ve yüzde 50'ye ayrıntı düzeyini ayarlar.Bu örneği kullanmak için çalıştırın ThisDocument bir belge düzeyi projesinde sınıf.

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

.NET Framework Güvenliği

Ayrıca bkz.

Başvuru

DocumentBase Sınıf

Microsoft.Office.Tools.Word Ad Alanı