예제 #1
0
 /// <summary>
 /// Initializes a new instance of the <see cref="ReplaceDocxParagraphRequest" /> class.
 /// </summary>
 /// <param name="inputFileBytes">Optional: Bytes of the input file to operate on.</param>
 /// <param name="inputFileUrl">Optional: URL of a file to operate on as input.  This can be a public URL, or you can also use the begin-editing API to upload a document and pass in the secure URL result from that operation as the URL here (this URL is not public)..</param>
 /// <param name="findString">Required: The target string to search for in the paragraphs of the document.</param>
 /// <param name="matchCase">Optional: True to match case, false to ignore case when matching.</param>
 /// <param name="replacementImage">Optional: Image to replace the paragraph with; note that most of the fields in this object are optional and do not need to be supplied.</param>
 public ReplaceDocxParagraphRequest(byte[] inputFileBytes = default(byte[]), string inputFileUrl = default(string), string findString = default(string), bool?matchCase = default(bool?), DocxImage replacementImage = default(DocxImage))
 {
     this.InputFileBytes   = inputFileBytes;
     this.InputFileUrl     = inputFileUrl;
     this.FindString       = findString;
     this.MatchCase        = matchCase;
     this.ReplacementImage = replacementImage;
 }
예제 #2
0
 /// <summary>
 /// Initializes a new instance of the <see cref="DocxInsertImageRequest" /> class.
 /// </summary>
 /// <param name="inputDocumentFileBytes">Optional: Bytes of the input file to operate on.</param>
 /// <param name="inputDocumentFileUrl">Optional: URL of a file to operate on as input.  This can be a public URL, or you can also use the begin-editing API to upload a document and pass in the secure URL result from that operation as the URL here (this URL is not public)..</param>
 /// <param name="inputImageFileBytes">Optional: Bytes of the input image file to operate on; if you supply this value do not supply InputImageFileUrl or ImageToAdd..</param>
 /// <param name="inputImageFileUrl">Optional: URL of an image file to operate on as input; if you supply this value do not supply InputImageFileBytes or ImageToAdd.  This can be a public URL, or you can also use the begin-editing API to upload a document and pass in the secure URL result from that operation as the URL here (this URL is not public)..</param>
 /// <param name="imageToAdd">Optional: Image to add; if you supply in this object, do not supply InputImageFileBytes or InputImageFileUrl..</param>
 /// <param name="insertPlacement">Optional; default is DocumentEnd.  Placement Type of the insert; possible values are: DocumentStart (very beginning of the document), DocumentEnd (very end of the document), BeforeExistingObject (right before an existing object - fill in the InsertPath field using the Path value from an existing object), AfterExistingObject (right after an existing object - fill in the InsertPath field using the Path value from an existing object).</param>
 /// <param name="insertPath">Optional; location within the document to insert the object; fill in the InsertPath field using the Path value from an existing object.  Used with InsertPlacement of BeforeExistingObject or AfterExistingObject.</param>
 /// <param name="widthInEMUs">Optional: The width of the image in EMUs.</param>
 /// <param name="heightInEMUs">Optional: The height of the image in EMUs.</param>
 public DocxInsertImageRequest(byte[] inputDocumentFileBytes = default(byte[]), string inputDocumentFileUrl = default(string), byte[] inputImageFileBytes = default(byte[]), string inputImageFileUrl = default(string), DocxImage imageToAdd = default(DocxImage), string insertPlacement = default(string), string insertPath = default(string), long?widthInEMUs = default(long?), long?heightInEMUs = default(long?))
 {
     this.InputDocumentFileBytes = inputDocumentFileBytes;
     this.InputDocumentFileUrl   = inputDocumentFileUrl;
     this.InputImageFileBytes    = inputImageFileBytes;
     this.InputImageFileUrl      = inputImageFileUrl;
     this.ImageToAdd             = imageToAdd;
     this.InsertPlacement        = insertPlacement;
     this.InsertPath             = insertPath;
     this.WidthInEMUs            = widthInEMUs;
     this.HeightInEMUs           = heightInEMUs;
 }