/// <summary> /// Create a new DocumentEntry; the data will be provided later /// </summary> /// <param name="name">the name of the new DocumentEntry</param> /// <param name="size">the size of the new DocumentEntry</param> /// <param name="beforewriting"></param> /// <returns>the new DocumentEntry</returns> public DocumentEntry CreateDocument(String name, int size, POIFSWriterEventHandler beforewriting) { POIFSDocument document = new POIFSDocument(name, size, _path); document.BeforeWriting += beforewriting; return(CreateDocument(document)); }
/// <summary> /// Create a new DocumentEntry; the data will be provided later /// </summary> /// <param name="name">the name of the new DocumentEntry</param> /// <param name="size">the size of the new DocumentEntry</param> /// <param name="beforewriting"></param> /// <returns>the new DocumentEntry</returns> public DocumentEntry CreateDocument(String name, int size, POIFSWriterEventHandler beforewriting) { POIFSDocument document = new POIFSDocument(name, size, _path); document.BeforeWriting += beforewriting; return CreateDocument(document); }
/// <summary> /// Create a new DocumentEntry in the root entry; the data will be /// provided later /// </summary> /// <param name="name">the name of the new DocumentEntry</param> /// <param name="size">the size of the new DocumentEntry</param> /// <param name="writer">the Writer of the new DocumentEntry</param> /// <returns>the new DocumentEntry</returns> public DocumentEntry CreateDocument(String name, int size, POIFSWriterEventHandler writer) { return this.Root.CreateDocument(name, size, writer); }
/// <summary> /// Create a new DocumentEntry in the root entry; the data will be /// provided later /// </summary> /// <param name="name">the name of the new DocumentEntry</param> /// <param name="size">the size of the new DocumentEntry</param> /// <param name="writer">the Writer of the new DocumentEntry</param> /// <returns>the new DocumentEntry</returns> public DocumentEntry CreateDocument(String name, int size, POIFSWriterEventHandler writer) { return(this.Root.CreateDocument(name, size, writer)); }