Exemplo n.º 1
0
 internal PageMargins(DocX document)
 {
     this.document = document;
     pageMargin    = document.GetBodySectionProperty().GetOrCreate <PageMargin>();
 }
Exemplo n.º 2
0
 /// <summary>
 /// Adds an image to the container which can then be added to a paragraph
 /// </summary>
 /// <param name="stream"></param>
 /// <param name="contentType"></param>
 /// <param name="width">The width of the image in English Metric Units (EMU)</param>
 /// <param name="height">The height of the image in English Metric Units (EMU)</param>
 /// <param name="name">The name of the image. Leave blank to generate a Guid</param>
 /// <returns></returns>
 public Drawing AddImage(Stream stream, string contentType, Int64Value width, Int64Value height, string name = "")
 {
     return(DocX.CreateDrawing(AddImagePart(stream, contentType), width, height, name));
 }
Exemplo n.º 3
0
 public List(DocX document)
 {
     _document = document;
 }