npoi

Форк
0
/
PresentationDrawing.cs 
60 строк · 1.6 Кб
1
using NPOI.OpenXml4Net.Util;
2
using System;
3
using System.IO;
4
using System.Xml;
5
using System.Xml.Serialization;
6

7
namespace NPOI.OpenXmlFormats.Vml.Presentation
8
{
9
    
10

11
    [Serializable]
12

13
    [System.ComponentModel.DesignerCategory("code")]
14
    [XmlType(Namespace="urn:schemas-microsoft-com:office:powerpoint")]
15
    [XmlRoot(Namespace="urn:schemas-microsoft-com:office:powerpoint", IsNullable=true)]
16
    public class CT_Empty {
17
    }
18
    
19

20
    [Serializable]
21

22
    [System.ComponentModel.DesignerCategory("code")]
23
    [XmlType(Namespace="urn:schemas-microsoft-com:office:powerpoint")]
24
    [XmlRoot(Namespace="urn:schemas-microsoft-com:office:powerpoint", IsNullable=true)]
25
    public class CT_Rel {
26
        
27
        private string idField;
28

29
        [XmlAttribute(Form = System.Xml.Schema.XmlSchemaForm.Qualified, Namespace = "http://schemas.openxmlformats.org/officeDocument/2006/relationships")]
30
        public string id
31
        {
32
            get {
33
                return this.idField;
34
            }
35
            set {
36
                this.idField = value;
37
            }
38
        }
39

40
        public static CT_Rel Parse(XmlNode node, XmlNamespaceManager namespaceManager)
41
        {
42
            if (node == null)
43
                return null;
44
            CT_Rel ctObj = new CT_Rel();
45
            ctObj.id = XmlHelper.ReadString(node.Attributes["r:id"]);
46
            return ctObj;
47
        }
48

49

50

51
        internal void Write(StreamWriter sw, string nodeName)
52
        {
53
            sw.Write(string.Format("<p:{0}", nodeName));
54
            XmlHelper.WriteAttribute(sw, "r:id", this.id);
55
            sw.Write(">");
56
            sw.Write(string.Format("</p:{0}>", nodeName));
57
        }
58

59
    }
60
}
61

Использование cookies

Мы используем файлы cookie в соответствии с Политикой конфиденциальности и Политикой использования cookies.

Нажимая кнопку «Принимаю», Вы даете АО «СберТех» согласие на обработку Ваших персональных данных в целях совершенствования нашего веб-сайта и Сервиса GitVerse, а также повышения удобства их использования.

Запретить использование cookies Вы можете самостоятельно в настройках Вашего браузера.