Пример #1
0
        public OpenXmlPart(OpenXmlPartContainer parent, int partIndex)
        {
            _parent    = parent;
            _partIndex = partIndex;
            _stream    = new MemoryStream();

            XmlWriterSettings xws = new XmlWriterSettings();

            xws.OmitXmlDeclaration = false;
            xws.CloseOutput        = false;
            xws.Encoding           = Encoding.UTF8;
            xws.Indent             = true;
            xws.ConformanceLevel   = ConformanceLevel.Document;

            _xmlWriter = XmlWriter.Create(_stream, xws);
        }
Пример #2
0
 public EmbeddedObjectPart(ObjectType format, OpenXmlPartContainer parent, int partIndex)
     : base(parent, partIndex)
 {
     _format = format;
 }
Пример #3
0
 internal ViewPropertiesPart(OpenXmlPartContainer parent)
     : base(parent, 0)
 {
 }
Пример #4
0
 public ThemePart(OpenXmlPartContainer parent, int partIndex)
     : base(parent, partIndex)
 {
 }
Пример #5
0
 public ContentPart(OpenXmlPartContainer parent)
     : base(parent, 0)
 {
 }
Пример #6
0
 internal VbaDataPart(OpenXmlPartContainer parent)
     : base(parent, 0)
 {
 }
Пример #7
0
 internal VmlPart(OpenXmlPartContainer parent, int partIndex)
     : base(parent, partIndex)
 {
 }
Пример #8
0
 internal VbaProjectPart(OpenXmlPartContainer parent)
     : base(parent, 0)
 {
 }
Пример #9
0
 internal ImagePart(ImageType type, OpenXmlPartContainer parent, int partIndex)
     : base(parent, partIndex)
 {
     _type = type;
 }