Source
Contents
[
Hide
]Source class
Represents an individual source, such as a book, journal article, or interview.
public sealed class Source
Properties
Name | Description |
---|---|
AbbreviatedCaseNumber { get; } | Gets the abbreviated case number of a source. |
AlbumTitle { get; } | Gets the album title of a source. |
BookTitle { get; } | Gets the book title of a source. |
Broadcaster { get; } | Gets the broadcaster of a source. |
BroadcastTitle { get; } | Gets the broadcast title of a source. |
CaseNumber { get; } | Gets the case number of a source. |
ChapterNumber { get; } | Gets the chapter number of a source. |
City { get; } | Gets the city of a source. |
Comments { get; } | Gets the comments of a source. |
ConferenceName { get; } | Gets the conference or proceedings name of a source. |
Contributors { get; } | Gets contributors list (author, editor, writer etc) of a source. |
CountryOrRegion { get; } | Gets the country or region of a source. |
Court { get; } | Gets the court of a source. |
Day { get; } | Gets the day of a source. |
DayAccessed { get; } | Gets the day accessed of a source. |
Department { get; } | Gets the department of a source. |
Distributor { get; } | Gets the distributor of a source. |
Edition { get; } | Gets the editor of a source. |
Guid { get; } | Gets the guid of a source. |
Institution { get; } | Gets the institution of a source. |
InternetSiteTitle { get; } | Gets the internet site title of a source. |
Issue { get; } | Gets the issue of a source. |
JournalName { get; } | Gets the journal name of a source. |
Lcid { get; } | Gets the locale ID of a source. |
Medium { get; } | Gets the medium of a source. |
Month { get; } | Gets the month of a source. |
MonthAccessed { get; } | Gets the month accessed of a source. |
NumberVolumes { get; } | Gets the number of volumes of a source. |
Pages { get; } | Gets the pages of a source. |
PatentNumber { get; } | Gets the patent number of a source. |
PeriodicalTitle { get; } | Gets the periodical title of a source. |
ProductionCompany { get; } | Gets the production company of a source. |
PublicationTitle { get; } | Gets the publication title of a source. |
Publisher { get; } | Gets the publisher of a source. |
RecordingNumber { get; } | Gets the recording number of a source. |
RefOrder { get; } | Gets the reference order of a source. |
Reporter { get; } | Gets the reporter of a source. |
ShortTitle { get; } | Gets the short title of a source. |
SourceType { get; } | Gets the source type of a source. |
StandardNumber { get; } | Gets the standard number of a source. |
StateOrProvince { get; } | Gets the state or province of a source. |
Station { get; } | Gets the station of a source. |
Tag { get; } | Gets the identifying tag name of a source. |
Theater { get; } | Gets the theater of a source. |
ThesisType { get; } | Gets the thesis type of a source. |
Title { get; } | Gets the title of a source. |
Type { get; } | Gets the type of a source. |
Url { get; } | Gets the url of a source. |
Version { get; } | Gets the version of a source. |
Volume { get; } | Gets the volume of a source. |
Year { get; } | Gets the year of a source. |
YearAccessed { get; } | Gets the year accessed of a source. |
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;
Assert.IsNull(contributors.Artist);
Assert.IsNull(contributors.BookAuthor);
Assert.IsNull(contributors.Compiler);
Assert.IsNull(contributors.Composer);
Assert.IsNull(contributors.Conductor);
Assert.IsNull(contributors.Counsel);
Assert.IsNull(contributors.Director);
Assert.IsNotNull(contributors.Editor);
Assert.IsNull(contributors.Interviewee);
Assert.IsNull(contributors.Interviewer);
Assert.IsNull(contributors.Inventor);
Assert.IsNull(contributors.Performer);
Assert.IsNull(contributors.Producer);
Assert.IsNotNull(contributors.Translator);
Assert.IsNull(contributors.Writer);
Contributor editor = contributors.Editor;
Assert.AreEqual(2, ((PersonCollection)editor).Count());
PersonCollection authors = (PersonCollection)contributors.Author;
Assert.AreEqual(2, authors.Count());
Person person = authors[0];
Assert.AreEqual("Roxanne", person.First);
Assert.AreEqual("Brielle", person.Middle);
Assert.AreEqual("Tejeda", person.Last);
See Also
- namespace Aspose.Words.Bibliography
- assembly Aspose.Words