Source
Contents
[
Hide
]Source class
Represents an individual source, such as a book, journal article, or interview.
public sealed class Source
Constructors
Name | Description |
---|---|
Source(string, SourceType) | Initialize a new instance of the Source class. |
Properties
Name | Description |
---|---|
AbbreviatedCaseNumber { get; set; } | Gets or sets the abbreviated case number of a source. |
AlbumTitle { get; set; } | Gets or sets the album title of a source. |
BookTitle { get; set; } | Gets or sets the book title of a source. |
Broadcaster { get; set; } | Gets or sets the broadcaster of a source. |
BroadcastTitle { get; set; } | Gets or sets the broadcast title of a source. |
CaseNumber { get; set; } | Gets or sets the case number of a source. |
ChapterNumber { get; set; } | Gets or sets the chapter number of a source. |
City { get; set; } | Gets or sets the city of a source. |
Comments { get; set; } | Gets or sets the comments of a source. |
ConferenceName { get; set; } | Gets or sets the conference or proceedings name of a source. |
Contributors { get; } | Gets contributors list (author, editor, writer etc) of a source. |
CountryOrRegion { get; set; } | Gets or sets the country or region of a source. |
Court { get; set; } | Gets or sets the court of a source. |
Day { get; set; } | Gets or sets the day of a source. |
DayAccessed { get; set; } | Gets or sets the day accessed of a source. |
Department { get; set; } | Gets or sets the department of a source. |
Distributor { get; set; } | Gets or sets the distributor of a source. |
Doi { get; set; } | Gets or sets the digital object identifier. |
Edition { get; set; } | Gets or sets the editor of a source. |
Guid { get; set; } | Gets or sets the guid of a source. |
Institution { get; set; } | Gets or sets the institution of a source. |
InternetSiteTitle { get; set; } | Gets or sets the internet site title of a source. |
Issue { get; set; } | Gets or sets the issue of a source. |
JournalName { get; set; } | Gets or sets the journal name of a source. |
Lcid { get; set; } | Gets or sets the locale ID of a source. |
Medium { get; set; } | Gets or sets the medium of a source. |
Month { get; set; } | Gets or sets the month of a source. |
MonthAccessed { get; set; } | Gets or sets the month accessed of a source. |
NumberVolumes { get; set; } | Gets or sets the number of volumes of a source. |
Pages { get; set; } | Gets or sets the pages of a source. |
PatentNumber { get; set; } | Gets or sets the patent number of a source. |
PeriodicalTitle { get; set; } | Gets or sets the periodical title of a source. |
ProductionCompany { get; set; } | Gets or sets the production company of a source. |
PublicationTitle { get; set; } | Gets or sets the publication title of a source. |
Publisher { get; set; } | Gets or sets the publisher of a source. |
RecordingNumber { get; set; } | Gets or sets the recording number of a source. |
RefOrder { get; set; } | Gets or sets the reference order of a source. |
Reporter { get; set; } | Gets or sets the reporter of a source. |
ShortTitle { get; set; } | Gets or sets the short title of a source. |
SourceType { get; set; } | Gets or sets the source type of a source. |
StandardNumber { get; set; } | Gets or sets the standard number of a source. |
StateOrProvince { get; set; } | Gets or sets the state or province of a source. |
Station { get; set; } | Gets or sets the station of a source. |
Tag { get; set; } | Gets or sets the identifying tag name of a source. |
Theater { get; set; } | Gets or sets the theater of a source. |
ThesisType { get; set; } | Gets or sets the thesis type of a source. |
Title { get; set; } | Gets or sets the title of a source. |
Type { get; set; } | Gets or sets the type of a source. |
Url { get; set; } | Gets or sets the url of a source. |
Version { get; set; } | Gets or sets the version of a source. |
Volume { get; set; } | Gets or sets the volume of a source. |
Year { get; set; } | Gets or sets the year of a source. |
YearAccessed { get; set; } | Gets or sets 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);
Assert.AreEqual(SourceType.Book, source.SourceType);
Assert.AreEqual(3, source.Contributors.Count());
Assert.IsNull(source.AbbreviatedCaseNumber);
Assert.IsNull(source.AlbumTitle);
Assert.IsNull(source.BookTitle);
Assert.IsNull(source.Broadcaster);
Assert.IsNull(source.BroadcastTitle);
Assert.IsNull(source.CaseNumber);
Assert.IsNull(source.ChapterNumber);
Assert.IsNull(source.Comments);
Assert.IsNull(source.ConferenceName);
Assert.IsNull(source.CountryOrRegion);
Assert.IsNull(source.Court);
Assert.IsNull(source.Day);
Assert.IsNull(source.DayAccessed);
Assert.IsNull(source.Department);
Assert.IsNull(source.Distributor);
Assert.IsNull(source.Edition);
Assert.IsNull(source.Guid);
Assert.IsNull(source.Institution);
Assert.IsNull(source.InternetSiteTitle);
Assert.IsNull(source.Issue);
Assert.IsNull(source.JournalName);
Assert.IsNull(source.Lcid);
Assert.IsNull(source.Medium);
Assert.IsNull(source.Month);
Assert.IsNull(source.MonthAccessed);
Assert.IsNull(source.NumberVolumes);
Assert.IsNull(source.Pages);
Assert.IsNull(source.PatentNumber);
Assert.IsNull(source.PeriodicalTitle);
Assert.IsNull(source.ProductionCompany);
Assert.IsNull(source.PublicationTitle);
Assert.IsNull(source.Publisher);
Assert.IsNull(source.RecordingNumber);
Assert.IsNull(source.RefOrder);
Assert.IsNull(source.Reporter);
Assert.IsNull(source.ShortTitle);
Assert.IsNull(source.StandardNumber);
Assert.IsNull(source.StateOrProvince);
Assert.IsNull(source.Station);
Assert.AreEqual("BookNoLCID", source.Tag);
Assert.IsNull(source.Theater);
Assert.IsNull(source.ThesisType);
Assert.IsNull(source.Type);
Assert.IsNull(source.Url);
Assert.IsNull(source.Version);
Assert.IsNull(source.Volume);
Assert.IsNull(source.Year);
Assert.IsNull(source.YearAccessed);
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