## Source class

Representa una fuente individual, como un libro, un artículo de revista o una entrevista.

```csharp
public sealed class Source
```

## Constructores

| Nombre | Descripción |
| --- | --- |
| [Source](source/)(*string, [SourceType](../sourcetype/)*) | Inicializar una nueva instancia del`Source` clase. |

## Propiedades

| Nombre | Descripción |
| --- | --- |
| [AbbreviatedCaseNumber](../../aspose.words.bibliography/source/abbreviatedcasenumber/) { get; set; } | Obtiene o establece el número de caso abreviado de una fuente. |
| [AlbumTitle](../../aspose.words.bibliography/source/albumtitle/) { get; set; } | Obtiene o establece el título del álbum de una fuente. |
| [BookTitle](../../aspose.words.bibliography/source/booktitle/) { get; set; } | Obtiene o establece el título del libro de una fuente. |
| [Broadcaster](../../aspose.words.bibliography/source/broadcaster/) { get; set; } | Obtiene o establece el transmisor de una fuente. |
| [BroadcastTitle](../../aspose.words.bibliography/source/broadcasttitle/) { get; set; } | Obtiene o establece el título de transmisión de una fuente. |
| [CaseNumber](../../aspose.words.bibliography/source/casenumber/) { get; set; } | Obtiene o establece el número de caso de una fuente. |
| [ChapterNumber](../../aspose.words.bibliography/source/chapternumber/) { get; set; } | Obtiene o establece el número de capítulo de una fuente. |
| [City](../../aspose.words.bibliography/source/city/) { get; set; } | Obtiene o establece la ciudad de una fuente. |
| [Comments](../../aspose.words.bibliography/source/comments/) { get; set; } | Obtiene o establece los comentarios de una fuente. |
| [ConferenceName](../../aspose.words.bibliography/source/conferencename/) { get; set; } | Obtiene o establece el nombre de la conferencia o actas de una fuente. |
| [Contributors](../../aspose.words.bibliography/source/contributors/) { get; } | Obtiene la lista de colaboradores (autor, editor, escritor, etc.) de una fuente. |
| [CountryOrRegion](../../aspose.words.bibliography/source/countryorregion/) { get; set; } | Obtiene o establece el país o la región de una fuente. |
| [Court](../../aspose.words.bibliography/source/court/) { get; set; } | Obtiene o establece el tribunal de una fuente. |
| [Day](../../aspose.words.bibliography/source/day/) { get; set; } | Obtiene o establece el día de una fuente. |
| [DayAccessed](../../aspose.words.bibliography/source/dayaccessed/) { get; set; } | Obtiene o establece el día en que se accedió a una fuente. |
| [Department](../../aspose.words.bibliography/source/department/) { get; set; } | Obtiene o establece el departamento de una fuente. |
| [Distributor](../../aspose.words.bibliography/source/distributor/) { get; set; } | Obtiene o establece el distribuidor de una fuente. |
| [Doi](../../aspose.words.bibliography/source/doi/) { get; set; } | Obtiene o establece el identificador del objeto digital. |
| [Edition](../../aspose.words.bibliography/source/edition/) { get; set; } | Obtiene o establece el editor de una fuente. |
| [Guid](../../aspose.words.bibliography/source/guid/) { get; set; } | Obtiene o establece el guid de una fuente. |
| [Institution](../../aspose.words.bibliography/source/institution/) { get; set; } | Obtiene o establece la institución de una fuente. |
| [InternetSiteTitle](../../aspose.words.bibliography/source/internetsitetitle/) { get; set; } | Obtiene o establece el título del sitio de Internet de una fuente. |
| [Issue](../../aspose.words.bibliography/source/issue/) { get; set; } | Obtiene o establece el problema de una fuente. |
| [JournalName](../../aspose.words.bibliography/source/journalname/) { get; set; } | Obtiene o establece el nombre del diario de una fuente. |
| [Lcid](../../aspose.words.bibliography/source/lcid/) { get; set; } | Obtiene o establece el ID de configuración regional de una fuente. |
| [Medium](../../aspose.words.bibliography/source/medium/) { get; set; } | Obtiene o establece el medio de una fuente. |
| [Month](../../aspose.words.bibliography/source/month/) { get; set; } | Obtiene o establece el mes de una fuente. |
| [MonthAccessed](../../aspose.words.bibliography/source/monthaccessed/) { get; set; } | Obtiene o establece el mes en el que se accedió a una fuente. |
| [NumberVolumes](../../aspose.words.bibliography/source/numbervolumes/) { get; set; } | Obtiene o establece el número de volúmenes de una fuente. |
| [Pages](../../aspose.words.bibliography/source/pages/) { get; set; } | Obtiene o establece las páginas de una fuente. |
| [PatentNumber](../../aspose.words.bibliography/source/patentnumber/) { get; set; } | Obtiene o establece el número de patente de una fuente. |
| [PeriodicalTitle](../../aspose.words.bibliography/source/periodicaltitle/) { get; set; } | Obtiene o establece el título periódico de una fuente. |
| [ProductionCompany](../../aspose.words.bibliography/source/productioncompany/) { get; set; } | Obtiene o establece la empresa productora de una fuente. |
| [PublicationTitle](../../aspose.words.bibliography/source/publicationtitle/) { get; set; } | Obtiene o establece el título de publicación de una fuente. |
| [Publisher](../../aspose.words.bibliography/source/publisher/) { get; set; } | Obtiene o establece el editor de una fuente. |
| [RecordingNumber](../../aspose.words.bibliography/source/recordingnumber/) { get; set; } | Obtiene o establece el número de grabación de una fuente. |
| [RefOrder](../../aspose.words.bibliography/source/reforder/) { get; set; } | Obtiene o establece el orden de referencia de una fuente. |
| [Reporter](../../aspose.words.bibliography/source/reporter/) { get; set; } | Obtiene o establece el reportero de una fuente. |
| [ShortTitle](../../aspose.words.bibliography/source/shorttitle/) { get; set; } | Obtiene o establece el título corto de una fuente. |
| [SourceType](../../aspose.words.bibliography/source/sourcetype/) { get; set; } | Obtiene o establece el tipo de fuente de una fuente. |
| [StandardNumber](../../aspose.words.bibliography/source/standardnumber/) { get; set; } | Obtiene o establece el número estándar de una fuente. |
| [StateOrProvince](../../aspose.words.bibliography/source/stateorprovince/) { get; set; } | Obtiene o establece el estado o provincia de una fuente. |
| [Station](../../aspose.words.bibliography/source/station/) { get; set; } | Obtiene o establece la estación de una fuente. |
| [Tag](../../aspose.words.bibliography/source/tag/) { get; set; } | Obtiene o establece el nombre de la etiqueta de identificación de una fuente. |
| [Theater](../../aspose.words.bibliography/source/theater/) { get; set; } | Obtiene o establece el teatro de una fuente. |
| [ThesisType](../../aspose.words.bibliography/source/thesistype/) { get; set; } | Obtiene o establece el tipo de tesis de una fuente. |
| [Title](../../aspose.words.bibliography/source/title/) { get; set; } | Obtiene o establece el título de una fuente. |
| [Type](../../aspose.words.bibliography/source/type/) { get; set; } | Obtiene o establece el tipo de una fuente. |
| [Url](../../aspose.words.bibliography/source/url/) { get; set; } | Obtiene o establece la URL de una fuente. |
| [Version](../../aspose.words.bibliography/source/version/) { get; set; } | Obtiene o establece la versión de una fuente. |
| [Volume](../../aspose.words.bibliography/source/volume/) { get; set; } | Obtiene o establece el volumen de una fuente. |
| [Year](../../aspose.words.bibliography/source/year/) { get; set; } | Obtiene o establece el año de una fuente. |
| [YearAccessed](../../aspose.words.bibliography/source/yearaccessed/) { get; set; } | Obtiene o establece el año de acceso a una fuente. |

## Ejemplos

Muestra cómo obtener fuentes bibliográficas disponibles en el documento.

```csharp
Document document = new Document(MyDir + "Bibliography sources.docx");

Bibliography bibliography = document.Bibliography;
Assert.AreEqual(12, bibliography.Sources.Count);

// Obtener datos predeterminados de fuentes bibliográficas.
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.Doi);
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);

//También puedes crear una nueva fuente.
Source newSource = new Source("New source", SourceType.Misc);

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);
```

### Ver también

* espacio de nombres [Aspose.Words.Bibliography](../../aspose.words.bibliography/)
* asamblea [Aspose.Words](../../)
