Person

Person class

Represents individual (a person) bibliography source contributor.

public sealed class Person

Properties

NameDescription
First { get; }Gets the first name of a person.
Last { get; }Gets the last name of a person.
Middle { get; }Gets the middle name of a person.

Methods

NameDescription
override Equals(object)
override GetHashCode()

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