コード例 #1
0
 // ---------------------------------------------------------------------------
 /**
  * Creates a Phrase containing the name of a Director.
  * @param director a Director object
  * @return a Phrase object
  */
 public static Phrase GetDirectorPhrase(Director director)
 {
     Phrase phrase = new Phrase();
     phrase.Add(new Chunk(director.Name, FilmFonts.BOLD));
     phrase.Add(new Chunk(", ", FilmFonts.BOLD));
     phrase.Add(new Chunk(director.GivenName, FilmFonts.NORMAL));
     return phrase;
 }
コード例 #2
0
ファイル: Movie.cs プロジェクト: kuujinbo/iTextInAction2Ed
 // ---------------------------------------------------------------------------
 /**
  * Adds a director.
  * @param director one of the directors of the movie
  */
 public void AddDirector(Director director)
 {
     _directors.Add(director);
 }