pro_cessor

Fluent PowerPoint

Nov 13th, 2013
89
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
C# 0.83 KB | None | 0 0
  1. const string template = "Pink Template.potx";
  2. using (var maker = new Maker())
  3. using (var presentation = maker.OpenFrom(template))
  4. {
  5.     presentation
  6.         .AddTitleSlide()
  7.             .Title("I <3 NY")
  8.         .AddSlide("Image")
  9.             .File("image.jpg")
  10.             .Caption("Brooklyn Bridge")
  11.             .Title("A Day in Manhattan")
  12.         .AddSlide("Content")
  13.             .Top("I love...")
  14.             .Center("New York")
  15.             .Bottom("...this city")
  16.         .AddSlide("Content")
  17.             .Top("Stay away from")
  18.             .Center("CENTRAL PARK")
  19.             .Bottom("during nighttime...")
  20.         .AddSlide("Sourcecode")
  21.             .Code("code.cs")
  22.             .FontSize(18)
  23.             .HightlightLine(1)
  24.             .HightlightLine(9)
  25.             .HightlightLine(14)
  26.         .Save("I-love-NY");
  27. }
Advertisement
Add Comment
Please, Sign In to add comment