ContributorCollection class
ContributorCollection class
Represents bibliography source contributors.
Properties
| Name | Description |
|---|---|
| artist | Gets or sets the artist of a source. |
| author | Gets or sets the author of a source. |
| book_author | Gets or sets the book author of a source. |
| compiler | Gets or sets the compiler of a source. |
| composer | Gets or sets the composer of a source. |
| conductor | Gets or sets the conductor of a source. |
| counsel | Gets or sets the counsel of a source. |
| director | Gets or sets the director of a source. |
| editor | Gets or sets the editor of a source. |
| interviewee | Gets or sets the interviewee of a source. |
| interviewer | Gets or sets the interviewer of a source. |
| inventor | Gets or sets the inventor of a source. |
| performer | Gets or sets the performer of a source. |
| producer | Gets or sets the producer of a source. |
| translator | Gets or sets the translator of a source. |
| writer | Gets or sets the writer of a source. |
Examples
Shows how to get bibliography sources available in the document.
document = aw.Document(MY_DIR + 'Bibliography sources.docx')
bibliography = document.bibliography
self.assertEqual(12, len(bibliography.sources))
source = bibliography.sources[0]
self.assertEqual('Book 0 (No LCID)', source.title)
authors = source.contributors.author.as_person_collection()
self.assertEqual(2, authors.count)
person = authors[0]
self.assertEqual('Roxanne', person.first)
self.assertEqual('Brielle', person.middle)
self.assertEqual('Tejeda', person.last)
See Also
- module aspose.words.bibliography