示例#1
0
 /// <summary>
 /// Initializes a new instance of the <see cref="InsertRunRequest"/> class.
 /// </summary>
 /// <param name="name">The filename of the input document.</param>
 /// <param name="paragraphPath">The path to the paragraph in the document tree.</param>
 /// <param name="run">Run data.</param>
 /// <param name="folder">Original document folder.</param>
 /// <param name="storage">Original document storage.</param>
 /// <param name="loadEncoding">Encoding that will be used to load an HTML (or TXT) document if the encoding is not specified in HTML.</param>
 /// <param name="password">Password for opening an encrypted document.</param>
 /// <param name="destFileName">Result path of the document after the operation. If this parameter is omitted then result of the operation will be saved as the source document.</param>
 /// <param name="revisionAuthor">Initials of the author to use for revisions.If you set this parameter and then make some changes to the document programmatically, save the document and later open the document in MS Word you will see these changes as revisions.</param>
 /// <param name="revisionDateTime">The date and time to use for revisions.</param>
 /// <param name="insertBeforeNode">The index of the node. A new Run object will be inserted before the node with the specified node Id.</param>
 public InsertRunRequest(string name, string paragraphPath, RunInsert run, string folder = null, string storage = null, string loadEncoding = null, string password = null, string destFileName = null, string revisionAuthor = null, string revisionDateTime = null, string insertBeforeNode = null)
 {
     this.Name             = name;
     this.ParagraphPath    = paragraphPath;
     this.Run              = run;
     this.Folder           = folder;
     this.Storage          = storage;
     this.LoadEncoding     = loadEncoding;
     this.Password         = password;
     this.DestFileName     = destFileName;
     this.RevisionAuthor   = revisionAuthor;
     this.RevisionDateTime = revisionDateTime;
     this.InsertBeforeNode = insertBeforeNode;
 }
 /// <summary>
 /// Initializes a new instance of the <see cref="InsertRunOnlineRequest"/> class.
 /// </summary>
 /// <param name="document">The document.</param>
 /// <param name="paragraphPath">The path to the paragraph in the document tree.</param>
 /// <param name="run">Run data.</param>
 /// <param name="loadEncoding">Encoding that will be used to load an HTML (or TXT) document if the encoding is not specified in HTML.</param>
 /// <param name="password">Password for opening an encrypted document.</param>
 /// <param name="destFileName">Result path of the document after the operation. If this parameter is omitted then result of the operation will be saved as the source document.</param>
 /// <param name="revisionAuthor">Initials of the author to use for revisions.If you set this parameter and then make some changes to the document programmatically, save the document and later open the document in MS Word you will see these changes as revisions.</param>
 /// <param name="revisionDateTime">The date and time to use for revisions.</param>
 /// <param name="insertBeforeNode">The index of the node. A new Run object will be inserted before the node with the specified node Id.</param>
 public InsertRunOnlineRequest(System.IO.Stream document, string paragraphPath, RunInsert run, string loadEncoding = null, string password = null, string destFileName = null, string revisionAuthor = null, string revisionDateTime = null, string insertBeforeNode = null)
 {
     this.Document         = document;
     this.ParagraphPath    = paragraphPath;
     this.Run              = run;
     this.LoadEncoding     = loadEncoding;
     this.Password         = password;
     this.DestFileName     = destFileName;
     this.RevisionAuthor   = revisionAuthor;
     this.RevisionDateTime = revisionDateTime;
     this.InsertBeforeNode = insertBeforeNode;
 }