public void PageBorders()
{
//ExStart
//ExFor:PageSetup.Borders
//ExFor:Border.Shadow
//ExFor:BorderCollection.LineStyle
//ExFor:BorderCollection.LineWidth
//ExFor:BorderCollection.Color
//ExFor:BorderCollection.DistanceFromText
//ExFor:BorderCollection.Shadow
//ExSummary:Creates a fancy looking green wavy page border with a shadow.
Document doc = new Document();
PageSetup ps = doc.Sections[0].PageSetup;
ps.Borders.LineStyle = LineStyle.DoubleWave;
ps.Borders.LineWidth = 2;
ps.Borders.Color = Color.Green;
ps.Borders.DistanceFromText = 24;
ps.Borders.Shadow = true;
doc.Save(MyDir + @"\Artifacts\PageSetup.PageBorders.doc");
//ExEnd
}