Document.SummaryLength Property (2007 System)
Gets or sets the length of the summary as a percentage of the document length.
Namespace: Microsoft.Office.Tools.Word
Assembly: Microsoft.Office.Tools.Word.v9.0 (in Microsoft.Office.Tools.Word.v9.0.dll)
Syntax
'Declaration
<BrowsableAttribute(False)> _
Public Property SummaryLength As Integer
'Usage
Dim instance As Document
Dim value As Integer
value = instance.SummaryLength
instance.SummaryLength = value
[BrowsableAttribute(false)]
public int SummaryLength { get; set; }
[BrowsableAttribute(false)]
public:
property int SummaryLength {
int get ();
void set (int value);
}
public function get SummaryLength () : int
public function set SummaryLength (value : int)
Property Value
Type: System.Int32
The length of the summary as a percentage of the document length.
Remarks
The larger the number, the more detail is included in the summary.
This property takes effect immediately if the AutoSummarize toolbar is displayed; otherwise, it takes effect the next time the AutoSummarize method or the SummaryViewMode property is applied to the document.
Examples
The following code example adds text to the first paragraph of the document. The code then displays the summary and sets the level of detail to 50 percent.
This example is for a document-level customization.
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 Security
- Full trust for the immediate caller. This member cannot be used by partially trusted code. For more information, see Using Libraries from Partially Trusted Code.