Share via


DocumentBase.Bibliography 속성

문서 내에 포함된 참고 문헌 참조를 가져옵니다.

네임스페이스:  Microsoft.Office.Tools.Word
어셈블리:  Microsoft.Office.Tools.Word.v4.0.Utilities(Microsoft.Office.Tools.Word.v4.0.Utilities.dll)

구문

‘선언
Public ReadOnly Property Bibliography As Bibliography
    Get
public Bibliography Bibliography { get; }

속성 값

형식: Microsoft.Office.Interop.Word.Bibliography
문서 내에 포함된 참고 문헌 참조를 나타내는 Bibliography입니다.

예제

다음 코드 예제에서는 현재 목록과 마스터 소스 목록에 소스를 추가합니다. 그런 다음 문서의 맨 끝에 새 단락을 추가하고 문서의 마지막 단락이 되는 이 단락에 참고 문헌을 삽입합니다. 이 예제를 사용하려면 문서 수준 프로젝트 ThisDocument 클래스에서 실행하십시오.

Private Sub AddBibliography()
    Dim guid As String = System.Guid.NewGuid().ToString()
    Dim src As String = _
        "<b:Source><b:Tag>Jam08</b:Tag><b:SourceType>Book</b:SourceType>" _
        + "<b:Guid>" + guid + "</b:Guid><b:LCID>0</b:LCID><b:Author>" _
        + "<b:Author><b:NameList><b:Person><b:Last>Persse</b:Last>" _
        + "<b:First>James</b:First></b:Person></b:NameList></b:Author>" _
        + "</b:Author><b:Title>Hollywood Secrets of Project Management " _
        + "Success</b:Title><b:Year>2008</b:Year><b:City>Redmond</b:City>" _
        + "<b:Publisher>Microsoft Press</b:Publisher></b:Source>"
    Me.Bibliography.Sources.Add(src)

    Me.Bibliography.BibliographyStyle = "APA"
    Me.Paragraphs.Last.Range.InsertParagraphAfter()
    Me.Fields.Add(Me.Paragraphs.Last.Range, _
        Word.WdFieldType.wdFieldBibliography)
End Sub
private void AddBibliography()
{
    string guid = System.Guid.NewGuid().ToString();
    string src = 
        "<b:Source><b:Tag>Jam08</b:Tag><b:SourceType>Book</b:SourceType>" 
        + "<b:Guid>" + guid + "</b:Guid><b:LCID>0</b:LCID><b:Author>" 
        + "<b:Author><b:NameList><b:Person><b:Last>Persse</b:Last>" 
        + "<b:First>James</b:First></b:Person></b:NameList></b:Author>" 
        + "</b:Author><b:Title>Hollywood Secrets of Project Management "
        + "Success</b:Title><b:Year>2008</b:Year><b:City>Redmond</b:City>"
        + "<b:Publisher>Microsoft Press</b:Publisher></b:Source>";
    this.Bibliography.Sources.Add(src);

    this.Bibliography.BibliographyStyle = "APA";
    this.Paragraphs.Last.Range.InsertParagraphAfter();
    object fieldType = Word.WdFieldType.wdFieldBibliography;
    this.Fields.Add(
        this.Paragraphs.Last.Range, 
        ref fieldType, 
        ref missing, 
        ref missing);
}

.NET Framework 보안

  • 직접 실행 호출자의 경우 완전히 신뢰합니다. 이 멤버는 부분적으로 신뢰할 수 있는 코드에서 사용할 수 없습니다. 자세한 내용은 부분 신뢰 코드에서 라이브러리 사용을 참조하십시오.

참고 항목

참조

DocumentBase 클래스

Microsoft.Office.Tools.Word 네임스페이스

기타 리소스

Working with Bibliographies