ApiExamples.ExDocument.SaveToStream C# (CSharp) Метод

SaveToStream() приватный Метод

private SaveToStream ( ) : void
Результат void
        public void SaveToStream()
        {
            //ExStart
            //ExFor:Document.Save(Stream,SaveFormat)
            //ExId:SaveToStream
            //ExSummary:Shows how to save a document to a stream.
            Document doc = new Document(MyDir + "Document.doc");

            MemoryStream dstStream = new MemoryStream();
            doc.Save(dstStream, SaveFormat.Docx);

            // Rewind the stream position back to zero so it is ready for next reader.
            dstStream.Position = 0;
            //ExEnd
        }
ExDocument