Sources
Bibliography.Sources property
Gets a collection that represents all the sources contained in a bibliography.
public ICollection<Source> Sources { get; }
Examples
Shows how to get bibliography sources available in the document.
Document document = new Document(MyDir + "Bibliography sources.docx");
Bibliography bibliography = document.Bibliography;
Assert.AreEqual(12, bibliography.Sources.Count);
Source source = bibliography.Sources.FirstOrDefault();
Assert.AreEqual("Book 0 (No LCID)", source.Title);
ContributorCollection contributors = source.Contributors;
PersonCollection authors = (PersonCollection)contributors.Author;
Assert.AreEqual(2, authors.Count());
Person person = authors.FirstOrDefault();
Assert.AreEqual("Roxanne", person.First);
Assert.AreEqual("Brielle", person.Middle);
Assert.AreEqual("Tejeda", person.Last);
See Also
- class Source
- class Bibliography
- namespace Aspose.Words.Bibliography
- assembly Aspose.Words