DocumentBase.SummaryLength 속성
요약 길이를 문서 길이에 대한 백분율로 가져오거나 설정합니다.
네임스페이스: Microsoft.Office.Tools.Word
어셈블리: Microsoft.Office.Tools.Word.v4.0.Utilities(Microsoft.Office.Tools.Word.v4.0.Utilities.dll)
구문
‘선언
Public Property SummaryLength As Integer
public int SummaryLength { get; set; }
속성 값
형식: System.Int32
문서 길이에 대한 백분율로 표현된 요약 길이
설명
이 숫자가 클수록 요약에 포함된 내용이 자세합니다.
이 속성은 자동 요약 도구 모음이 표시되어 있으면 즉시 효과를 나타내며, 그렇지 않은 경우에는 AutoSummarize 메서드나 SummaryViewMode 속성이 다음에 문서에 적용될 때 효과를 나타냅니다.
예제
다음 코드 예제에서는 문서의 첫 번째 단락에 텍스트를 추가합니다. 그런 다음 요약을 표시하고 상세 수준을 50퍼센트로 설정합니다. 이 예제를 사용하려면 문서 수준 프로젝트 ThisDocument 클래스에서 실행하십시오.
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 보안
- 직접 실행 호출자의 경우 완전히 신뢰합니다. 이 멤버는 부분적으로 신뢰할 수 있는 코드에서 사용할 수 없습니다. 자세한 내용은 부분 신뢰 코드에서 라이브러리 사용을 참조하십시오.