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.
- الثقة الكاملة للمتصل الفوري. يتعذر استخدام هذا العضو بواسطة التعليمات البرمجية الموثوق بها جزئيًا. لمزيد من المعلومات، راجع باستخدام مكتبات من تعليمات برمجية موثوق بها جزئي.
راجع أيضًَا
المرجع
Microsoft.Office.Tools.Word مساحة الاسم