npoi
2239 строк · 58.8 Кб
1// ------------------------------------------------------------------------------
2// <auto-generated>
3// Generated by Xsd2Code. Version 3.4.0.38967
4// <NameSpace>NPOI.OpenXmlFormats</NameSpace><Collection>List</Collection><codeType>CSharp</codeType><EnableDataBinding>False</EnableDataBinding><EnableLazyLoading>False</EnableLazyLoading><TrackingChangesEnable>False</TrackingChangesEnable><GenTrackingClasses>False</GenTrackingClasses><HidePrivateFieldInIDE>False</HidePrivateFieldInIDE><EnableSummaryComment>True</EnableSummaryComment><VirtualProp>False</VirtualProp><IncludeSerializeMethod>False</IncludeSerializeMethod><UseBaseClass>False</UseBaseClass><GenBaseClass>False</GenBaseClass><GenerateCloneMethod>False</GenerateCloneMethod><GenerateDataContracts>False</GenerateDataContracts><CodeBaseTag>Net20</CodeBaseTag><SerializeMethodName>Serialize</SerializeMethodName><DeserializeMethodName>Deserialize</DeserializeMethodName><SaveToFileMethodName>SaveToFile</SaveToFileMethodName><LoadFromFileMethodName>LoadFromFile</LoadFromFileMethodName><GenerateXMLAttributes>True</GenerateXMLAttributes><EnableEncoding>False</EnableEncoding><AutomaticProperties>False</AutomaticProperties><GenerateShouldSerialize>False</GenerateShouldSerialize><DisableDebug>False</DisableDebug><PropNameSpecified>Default</PropNameSpecified><Encoder>UTF8</Encoder><CustomUsings></CustomUsings><ExcludeIncludedTypes>True</ExcludeIncludedTypes><EnableInitializeFields>True</EnableInitializeFields>
5// </auto-generated>
6// ------------------------------------------------------------------------------
7
8using NPOI.OpenXml4Net.Util;9using System;10using System.Collections.Generic;11using System.ComponentModel;12using System.IO;13using System.Xml;14using System.Xml.Serialization;15
16namespace NPOI.OpenXmlFormats.Dml.WordProcessing17{
18
19
20[Serializable]21[XmlType(Namespace = "http://schemas.openxmlformats.org/wordprocessingml/2006/main")]22[XmlRoot(Namespace = "http://schemas.openxmlformats.org/wordprocessingml/2006/main", IsNullable = true)]23public class CT_Drawing24{25
26public CT_Drawing()27{28
29}30public static CT_Drawing Parse(XmlNode node, XmlNamespaceManager namespaceManager)31{32if (node == null)33return null;34CT_Drawing ctObj = new CT_Drawing();35ctObj.anchor = new List<CT_Anchor>();36ctObj.inline = new List<CT_Inline>();37foreach (XmlNode childNode in node.ChildNodes)38{39if (childNode.LocalName == "anchor")40ctObj.anchor.Add(CT_Anchor.Parse(childNode, namespaceManager));41else if (childNode.LocalName == "inline")42ctObj.inline.Add(CT_Inline.Parse(childNode, namespaceManager));43}44return ctObj;45}46
47
48
49internal void Write(StreamWriter sw, string nodeName)50{51sw.Write(string.Format("<w:{0}", nodeName));52sw.Write(">");53if (this.anchor != null)54{55foreach (CT_Anchor x in this.anchor)56{57x.Write(sw, "anchor");58}59}60if (this.inline != null)61{62foreach (CT_Inline x in this.inline)63{64x.Write(sw, "inline");65}66}67sw.WriteEndW(nodeName);68}69
70List<CT_Anchor> anchorField;71public List<CT_Anchor> anchor72{73get { return this.anchorField; }74set { this.anchorField = value; }75}76
77List<CT_Inline> inlineField;78public List<CT_Inline> inline79{80get { return this.inlineField; }81set { this.inlineField = value; }82}83
84
85
86public CT_Inline AddNewInline()87{88CT_Inline inlineObj = new CT_Inline();89if (this.inlineField == null)90this.inlineField = new List<CT_Inline>();91this.inlineField.Add(inlineObj);92return inlineObj;93}94
95public List<CT_Anchor> GetAnchorList()96{97return this.anchor;98}99
100public List<CT_Inline> GetInlineList()101{102return this.inline;103}104
105public CT_Inline GetInlineArray(int p)106{107lock (this)108{109return this.inline[p];110}111}112}113
114
115
116[Serializable]117[XmlType(Namespace = "http://schemas.openxmlformats.org/drawingml/2006/wordprocessingDrawing")]118[XmlRoot("inline", Namespace = "http://schemas.openxmlformats.org/drawingml/2006/wordprocessingDrawing", IsNullable = false)]119public class CT_PositiveSize2D120{121
122private long cxField;123
124private long cyField;125public static CT_PositiveSize2D Parse(XmlNode node, XmlNamespaceManager namespaceManager)126{127if (node == null)128return null;129CT_PositiveSize2D ctObj = new CT_PositiveSize2D();130ctObj.cx = XmlHelper.ReadLong(node.Attributes["cx"]);131ctObj.cy = XmlHelper.ReadLong(node.Attributes["cy"]);132return ctObj;133}134
135
136
137internal void Write(StreamWriter sw, string nodeName)138{139sw.Write(string.Format("<wp:{0}", nodeName));140XmlHelper.WriteAttribute(sw, "cx", this.cx, true);141XmlHelper.WriteAttribute(sw, "cy", this.cy, true);142sw.Write("/>");143}144
145[XmlAttribute]146public long cx147{148get149{150return this.cxField;151}152set153{154this.cxField = value;155}156}157[XmlAttribute]158public long cy159{160get161{162return this.cyField;163}164set165{166this.cyField = value;167}168}169}170[Serializable]171[System.ComponentModel.DesignerCategoryAttribute("code")]172[XmlType(Namespace = "http://schemas.openxmlformats.org/drawingml/2006/main")]173[XmlRoot(Namespace = "http://schemas.openxmlformats.org/drawingml/2006/main", IsNullable = true)]174public class CT_NonVisualDrawingProps175{176public static CT_NonVisualDrawingProps Parse(XmlNode node, XmlNamespaceManager namespaceManager)177{178if (node == null)179return null;180CT_NonVisualDrawingProps ctObj = new CT_NonVisualDrawingProps();181ctObj.id = XmlHelper.ReadUInt(node.Attributes["id"]);182ctObj.name = XmlHelper.ReadString(node.Attributes["name"]);183ctObj.descr = XmlHelper.ReadString(node.Attributes["descr"]);184ctObj.hidden = XmlHelper.ReadBool(node.Attributes["hidden"]);185foreach (XmlNode childNode in node.ChildNodes)186{187if (childNode.LocalName == "hlinkClick")188ctObj.hlinkClick = CT_Hyperlink.Parse(childNode, namespaceManager);189else if (childNode.LocalName == "hlinkHover")190ctObj.hlinkHover = CT_Hyperlink.Parse(childNode, namespaceManager);191else if (childNode.LocalName == "extLst")192ctObj.extLst = CT_OfficeArtExtensionList.Parse(childNode, namespaceManager);193}194return ctObj;195}196
197
198
199internal void Write(StreamWriter sw, string nodeName)200{201sw.Write(string.Format("<wp:{0}", nodeName));202XmlHelper.WriteAttribute(sw, "id", this.id, true);203XmlHelper.WriteAttribute(sw, "name", this.name);204XmlHelper.WriteAttribute(sw, "descr", this.descr.Replace("\n", "
").Replace("\r", "
"));205if(this.hidden)206XmlHelper.WriteAttribute(sw, "hidden", this.hidden);207if (this.hlinkClick == null && this.hlinkHover == null && this.extLst == null)208{209sw.Write("/>");210}211else212{213sw.Write(">");214if (this.hlinkClick != null)215this.hlinkClick.Write(sw, "hlinkClick");216if (this.hlinkHover != null)217this.hlinkHover.Write(sw, "hlinkHover");218if (this.extLst != null)219this.extLst.Write(sw, "extLst");220sw.Write(string.Format("</wp:{0}>", nodeName));221}222}223
224private CT_Hyperlink hlinkClickField = null;225
226private CT_Hyperlink hlinkHoverField = null;227
228private CT_OfficeArtExtensionList extLstField = null;229
230private uint idField;231
232private string nameField = null;233
234private string descrField;235
236private bool? hiddenField = null;237
238[XmlElement(Order = 0)]239public CT_Hyperlink hlinkClick240{241get242{243return this.hlinkClickField;244}245set246{247this.hlinkClickField = value;248}249}250
251[XmlElement(Order = 1)]252public CT_Hyperlink hlinkHover253{254get255{256return this.hlinkHoverField;257}258set259{260this.hlinkHoverField = value;261}262}263
264[XmlElement(Order = 2)]265public CT_OfficeArtExtensionList extLst266{267get268{269return this.extLstField;270}271set272{273this.extLstField = value;274}275}276
277[XmlAttribute]278public uint id279{280get281{282return this.idField;283}284set285{286this.idField = value;287}288}289
290[XmlAttribute]291public string name292{293get294{295return this.nameField;296}297set298{299this.nameField = value;300}301}302
303[XmlAttribute]304[DefaultValue("")]305public string descr306{307get308{309return null == this.descrField ? "" : descrField;310}311set312{313this.descrField = value;314}315}316[XmlIgnore]317public bool descrSpecified318{319get { return (null != descrField); }320}321[XmlAttribute]322[DefaultValue(false)]323public bool hidden324{325get326{327return null == this.hiddenField ? false : (bool)hiddenField;328}329set330{331this.hiddenField = value;332}333}334
335[XmlIgnore]336public bool hiddenSpecified337{338get { return (null != hiddenField); }339}340}341[Serializable]342[System.ComponentModel.DesignerCategoryAttribute("code")]343[XmlType(Namespace = "http://schemas.openxmlformats.org/drawingml/2006/wordprocessingDrawing")]344[XmlRoot("inline", Namespace = "http://schemas.openxmlformats.org/drawingml/2006/wordprocessingDrawing", IsNullable = false)]345public class CT_NonVisualGraphicFrameProperties346{347
348private CT_GraphicalObjectFrameLocking graphicFrameLocksField;349
350private CT_OfficeArtExtensionList extLstField;351
352public CT_NonVisualGraphicFrameProperties()353{354}355public static CT_NonVisualGraphicFrameProperties Parse(XmlNode node, XmlNamespaceManager namespaceManager)356{357if (node == null)358return null;359CT_NonVisualGraphicFrameProperties ctObj = new CT_NonVisualGraphicFrameProperties();360foreach (XmlNode childNode in node.ChildNodes)361{362if (childNode.LocalName == "graphicFrameLocks")363ctObj.graphicFrameLocks = CT_GraphicalObjectFrameLocking.Parse(childNode, namespaceManager);364else if (childNode.LocalName == "extLst")365ctObj.extLst = CT_OfficeArtExtensionList.Parse(childNode, namespaceManager);366}367return ctObj;368}369
370
371
372internal void Write(StreamWriter sw, string nodeName)373{374sw.Write(string.Format("<wp:{0}", nodeName));375sw.Write(">");376if (this.graphicFrameLocks != null)377this.graphicFrameLocks.Write(sw, "graphicFrameLocks");378if (this.extLst != null)379this.extLst.Write(sw, "extLst");380sw.Write(string.Format("</wp:{0}>", nodeName));381}382
383[XmlElement(Order = 0)]384public CT_GraphicalObjectFrameLocking graphicFrameLocks385{386get387{388return this.graphicFrameLocksField;389}390set391{392this.graphicFrameLocksField = value;393}394}395
396[XmlElement(Order = 1)]397public CT_OfficeArtExtensionList extLst398{399get400{401return this.extLstField;402}403set404{405this.extLstField = value;406}407}408}409[Serializable]410
411[XmlType(Namespace = "http://schemas.openxmlformats.org/drawingml/2006/wordprocessingDrawing")]412[XmlRoot("inline", Namespace = "http://schemas.openxmlformats.org/drawingml/2006/wordprocessingDrawing", IsNullable = false)]413public class CT_Inline414{415
416private CT_PositiveSize2D extentField;417
418private CT_EffectExtent effectExtentField;419
420private CT_NonVisualDrawingProps docPrField;421
422private NPOI.OpenXmlFormats.Dml.WordProcessing.CT_NonVisualGraphicFrameProperties cNvGraphicFramePrField;423
424private CT_GraphicalObject graphicField;425
426private uint distTField;427
428private bool distTFieldSpecified;429
430private uint distBField;431
432private bool distBFieldSpecified;433
434private uint distLField;435
436private bool distLFieldSpecified;437
438private uint distRField;439
440private bool distRFieldSpecified;441
442public static CT_Inline Parse(XmlNode node, XmlNamespaceManager namespaceManager)443{444if (node == null)445return null;446CT_Inline ctObj = new CT_Inline();447ctObj.distT = XmlHelper.ReadUInt(node.Attributes["distT"]);448ctObj.distB = XmlHelper.ReadUInt(node.Attributes["distB"]);449ctObj.distL = XmlHelper.ReadUInt(node.Attributes["distL"]);450ctObj.distR = XmlHelper.ReadUInt(node.Attributes["distR"]);451foreach (XmlNode childNode in node.ChildNodes)452{453if (childNode.LocalName == "extent")454ctObj.extent = CT_PositiveSize2D.Parse(childNode, namespaceManager);455else if (childNode.LocalName == "effectExtent")456ctObj.effectExtent = CT_EffectExtent.Parse(childNode, namespaceManager);457else if (childNode.LocalName == "docPr")458ctObj.docPr = CT_NonVisualDrawingProps.Parse(childNode, namespaceManager);459else if (childNode.LocalName == "cNvGraphicFramePr")460ctObj.cNvGraphicFramePr = CT_NonVisualGraphicFrameProperties.Parse(childNode, namespaceManager);461else if (childNode.LocalName == "graphic")462ctObj.graphic = CT_GraphicalObject.Parse(childNode, namespaceManager);463}464return ctObj;465}466
467
468
469internal void Write(StreamWriter sw, string nodeName)470{471sw.Write(string.Format("<wp:{0}", nodeName));472XmlHelper.WriteAttribute(sw, "distT", this.distT, true);473XmlHelper.WriteAttribute(sw, "distB", this.distB, true);474XmlHelper.WriteAttribute(sw, "distL", this.distL, true);475XmlHelper.WriteAttribute(sw, "distR", this.distR, true);476sw.Write(">");477if (this.extent != null)478this.extent.Write(sw, "extent");479if (this.effectExtent != null)480this.effectExtent.Write(sw, "effectExtent");481if (this.docPr != null)482this.docPr.Write(sw, "docPr");483if (this.cNvGraphicFramePr != null)484this.cNvGraphicFramePr.Write(sw, "cNvGraphicFramePr");485if (this.graphic != null)486this.graphic.Write(sw, "graphic");487sw.Write(string.Format("</wp:{0}>", nodeName));488}489
490/// <summary>491/// CT_Inline class constructor492/// </summary>493public CT_Inline()494{495//this.graphicField = new CT_GraphicalObject();496//this.cNvGraphicFramePrField = new CT_NonVisualGraphicFrameProperties();497//this.docPrField = new CT_NonVisualDrawingProps();498//this.effectExtentField = new CT_EffectExtent();499//this.extentField = new CT_PositiveSize2D();500}501
502[XmlElement(Order = 0)]503public CT_PositiveSize2D extent504{505get506{507return this.extentField;508}509set510{511this.extentField = value;512}513}514
515[XmlElement(Order = 1)]516public CT_EffectExtent effectExtent517{518get519{520return this.effectExtentField;521}522set523{524this.effectExtentField = value;525}526}527
528[XmlElement(Order = 2)]529public CT_NonVisualDrawingProps docPr530{531get532{533return this.docPrField;534}535set536{537this.docPrField = value;538}539}540
541[XmlElement(Order = 3)]542public CT_NonVisualGraphicFrameProperties cNvGraphicFramePr543{544get545{546return this.cNvGraphicFramePrField;547}548set549{550this.cNvGraphicFramePrField = value;551}552}553
554[XmlElement(Namespace = "http://schemas.openxmlformats.org/drawingml/2006/main", Order = 4)]555public CT_GraphicalObject graphic556{557get558{559return this.graphicField;560}561set562{563this.graphicField = value;564}565}566
567[XmlAttribute]568public uint distT569{570get571{572return this.distTField;573}574set575{576this.distTField = value;577}578}579
580[XmlIgnore]581public bool distTSpecified582{583get584{585return this.distTFieldSpecified;586}587set588{589this.distTFieldSpecified = value;590}591}592
593[XmlAttribute]594public uint distB595{596get597{598return this.distBField;599}600set601{602this.distBField = value;603}604}605
606[XmlIgnore]607public bool distBSpecified608{609get610{611return this.distBFieldSpecified;612}613set614{615this.distBFieldSpecified = value;616}617}618
619[XmlAttribute]620public uint distL621{622get623{624return this.distLField;625}626set627{628this.distLField = value;629}630}631
632[XmlIgnore]633public bool distLSpecified634{635get636{637return this.distLFieldSpecified;638}639set640{641this.distLFieldSpecified = value;642}643}644
645[XmlAttribute]646public uint distR647{648get649{650return this.distRField;651}652set653{654this.distRField = value;655}656}657
658[XmlIgnore]659public bool distRSpecified660{661get662{663return this.distRFieldSpecified;664}665set666{667this.distRFieldSpecified = value;668}669}670
671public CT_PositiveSize2D AddNewExtent()672{673if (this.extentField == null)674this.extentField = new CT_PositiveSize2D();675return this.extentField;676}677
678public CT_NonVisualDrawingProps AddNewDocPr()679{680if (this.docPrField == null)681this.docPrField = new CT_NonVisualDrawingProps();682return this.docPrField;683}684}685
686
687[Serializable]688[XmlType(Namespace = "http://schemas.openxmlformats.org/drawingml/2006/wordprocessingDrawing")]689[XmlRoot(Namespace = "http://schemas.openxmlformats.org/drawingml/2006/wordprocessingDrawing", IsNullable = true)]690public class CT_EffectExtent691{692
693private long lField;694
695private long tField;696
697private long rField;698
699private long bField;700
701public static CT_EffectExtent Parse(XmlNode node, XmlNamespaceManager namespaceManager)702{703if (node == null)704return null;705CT_EffectExtent ctObj = new CT_EffectExtent();706ctObj.l = XmlHelper.ReadLong(node.Attributes["l"]);707ctObj.t = XmlHelper.ReadLong(node.Attributes["t"]);708ctObj.r = XmlHelper.ReadLong(node.Attributes["r"]);709ctObj.b = XmlHelper.ReadLong(node.Attributes["b"]);710return ctObj;711}712
713
714
715internal void Write(StreamWriter sw, string nodeName)716{717sw.Write(string.Format("<wp:{0}", nodeName));718XmlHelper.WriteAttribute(sw, "l", this.l, true);719XmlHelper.WriteAttribute(sw, "t", this.t, true);720XmlHelper.WriteAttribute(sw, "r", this.r, true);721XmlHelper.WriteAttribute(sw, "b", this.b, true);722sw.Write("/>");723}724
725[XmlAttribute]726public long l727{728get729{730return this.lField;731}732set733{734this.lField = value;735}736}737
738[XmlAttribute]739public long t740{741get742{743return this.tField;744}745set746{747this.tField = value;748}749}750
751[XmlAttribute]752public long r753{754get755{756return this.rField;757}758set759{760this.rField = value;761}762}763
764[XmlAttribute]765public long b766{767get768{769return this.bField;770}771set772{773this.bField = value;774}775}776}777
778
779[Serializable]780
781[XmlType(Namespace = "http://schemas.openxmlformats.org/drawingml/2006/wordprocessingDrawing")]782[XmlRoot("anchor", Namespace = "http://schemas.openxmlformats.org/drawingml/2006/wordprocessingDrawing", IsNullable = false)]783public class CT_Anchor784{785
786private CT_Point2D simplePosField;787
788private CT_PosH positionHField;789
790private CT_PosV positionVField;791
792private CT_PositiveSize2D extentField;793
794private CT_EffectExtent effectExtentField;795
796//private object itemField;797
798private CT_NonVisualDrawingProps docPrField;799
800private CT_NonVisualGraphicFrameProperties cNvGraphicFramePrField;801
802private CT_GraphicalObject graphicField;803
804private uint distTField;805
806private bool distTFieldSpecified;807
808private uint distBField;809
810private bool distBFieldSpecified;811
812private uint distLField;813
814private bool distLFieldSpecified;815
816private uint distRField;817
818private bool distRFieldSpecified;819
820private bool simplePos1Field;821
822private bool simplePos1FieldSpecified;823
824private uint relativeHeightField;825
826private bool behindDocField;827
828private bool lockedField;829
830private bool layoutInCellField;831
832private bool hiddenField;833
834private bool hiddenFieldSpecified;835
836private bool allowOverlapField;837
838/// <summary>839/// CT_Anchor class constructor840/// </summary>841public CT_Anchor()842{843//this.effectExtentField = new CT_EffectExtent();844//this.positionVField = new CT_PosV();845//this.positionHField = new CT_PosH();846//this.simplePosField = new CT_Point2D();847}848
849[XmlElement(Order = 0)]850public CT_Point2D simplePos851{852get853{854return this.simplePosField;855}856set857{858this.simplePosField = value;859}860}861
862[XmlElement(Order = 1)]863public CT_PosH positionH864{865get866{867return this.positionHField;868}869set870{871this.positionHField = value;872}873}874
875[XmlElement(Order = 2)]876public CT_PosV positionV877{878get879{880return this.positionVField;881}882set883{884this.positionVField = value;885}886}887
888[XmlElement(Order = 3)]889public CT_PositiveSize2D extent890{891get892{893return this.extentField;894}895set896{897this.extentField = value;898}899}900
901[XmlElement(Order = 4)]902public CT_EffectExtent effectExtent903{904get905{906return this.effectExtentField;907}908set909{910this.effectExtentField = value;911}912}913
914CT_WrapNone wrapNoneField;915public CT_WrapNone wrapNone916{917get { return this.wrapNoneField; }918set { this.wrapNoneField = value; }919}920
921CT_WrapTight wrapTightField;922public CT_WrapTight wrapTight923{924get { return this.wrapTightField; }925set { this.wrapTightField = value; }926}927
928CT_WrapTopBottom wrapTopAndBottomField;929public CT_WrapTopBottom wrapTopAndBottom930{931get { return this.wrapTopAndBottomField; }932set { this.wrapTopAndBottomField = value; }933}934
935CT_WrapSquare wrapSquareField;936public CT_WrapSquare wrapSquare937{938get { return this.wrapSquareField; }939set { this.wrapSquareField = value; }940}941
942CT_WrapThrough wrapThroughField;943public CT_WrapThrough wrapThrough944{945get { return this.wrapThroughField; }946set { this.wrapThroughField = value; }947}948
949
950
951[XmlElement(Order = 6)]952public CT_NonVisualDrawingProps docPr953{954get955{956return this.docPrField;957}958set959{960this.docPrField = value;961}962}963
964[XmlElement(Order = 7)]965public CT_NonVisualGraphicFrameProperties cNvGraphicFramePr966{967get968{969return this.cNvGraphicFramePrField;970}971set972{973this.cNvGraphicFramePrField = value;974}975}976
977[XmlElement(Namespace = "http://schemas.openxmlformats.org/drawingml/2006/main", Order = 8)]978public CT_GraphicalObject graphic979{980get981{982return this.graphicField;983}984set985{986this.graphicField = value;987}988}989
990[XmlAttribute]991public uint distT992{993get994{995return this.distTField;996}997set998{999this.distTField = value;1000}1001}1002
1003[XmlIgnore]1004public bool distTSpecified1005{1006get1007{1008return this.distTFieldSpecified;1009}1010set1011{1012this.distTFieldSpecified = value;1013}1014}1015
1016[XmlAttribute]1017public uint distB1018{1019get1020{1021return this.distBField;1022}1023set1024{1025this.distBField = value;1026}1027}1028
1029[XmlIgnore]1030public bool distBSpecified1031{1032get1033{1034return this.distBFieldSpecified;1035}1036set1037{1038this.distBFieldSpecified = value;1039}1040}1041
1042[XmlAttribute]1043public uint distL1044{1045get1046{1047return this.distLField;1048}1049set1050{1051this.distLField = value;1052}1053}1054
1055[XmlIgnore]1056public bool distLSpecified1057{1058get1059{1060return this.distLFieldSpecified;1061}1062set1063{1064this.distLFieldSpecified = value;1065}1066}1067
1068[XmlAttribute]1069public uint distR1070{1071get1072{1073return this.distRField;1074}1075set1076{1077this.distRField = value;1078}1079}1080
1081[XmlIgnore]1082public bool distRSpecified1083{1084get1085{1086return this.distRFieldSpecified;1087}1088set1089{1090this.distRFieldSpecified = value;1091}1092}1093
1094[XmlAttribute("simplePos")]1095public bool simplePos11096{1097get1098{1099return this.simplePos1Field;1100}1101set1102{1103this.simplePos1Field = value;1104}1105}1106
1107[XmlIgnore]1108public bool simplePos1Specified1109{1110get1111{1112return this.simplePos1FieldSpecified;1113}1114set1115{1116this.simplePos1FieldSpecified = value;1117}1118}1119
1120[XmlAttribute]1121public uint relativeHeight1122{1123get1124{1125return this.relativeHeightField;1126}1127set1128{1129this.relativeHeightField = value;1130}1131}1132
1133[XmlAttribute]1134public bool behindDoc1135{1136get1137{1138return this.behindDocField;1139}1140set1141{1142this.behindDocField = value;1143}1144}1145
1146[XmlAttribute]1147public bool locked1148{1149get1150{1151return this.lockedField;1152}1153set1154{1155this.lockedField = value;1156}1157}1158
1159[XmlAttribute]1160public bool layoutInCell1161{1162get1163{1164return this.layoutInCellField;1165}1166set1167{1168this.layoutInCellField = value;1169}1170}1171
1172[XmlAttribute]1173public bool hidden1174{1175get1176{1177return this.hiddenField;1178}1179set1180{1181this.hiddenField = value;1182}1183}1184
1185[XmlIgnore]1186public bool hiddenSpecified1187{1188get1189{1190return this.hiddenFieldSpecified;1191}1192set1193{1194this.hiddenFieldSpecified = value;1195}1196}1197
1198[XmlAttribute]1199public bool allowOverlap1200{1201get1202{1203return this.allowOverlapField;1204}1205set1206{1207this.allowOverlapField = value;1208}1209}1210
1211private byte[] anchorIdField;1212private byte[] editIdField;1213public static CT_Anchor Parse(XmlNode node, XmlNamespaceManager namespaceManager)1214{1215if (node == null)1216return null;1217CT_Anchor ctObj = new CT_Anchor();1218ctObj.distT = XmlHelper.ReadUInt(node.Attributes["distT"]);1219ctObj.distB = XmlHelper.ReadUInt(node.Attributes["distB"]);1220ctObj.distL = XmlHelper.ReadUInt(node.Attributes["distL"]);1221ctObj.distR = XmlHelper.ReadUInt(node.Attributes["distR"]);1222ctObj.simplePos1 = XmlHelper.ReadBool(node.Attributes["simplePos"]);1223ctObj.relativeHeight = XmlHelper.ReadUInt(node.Attributes["relativeHeight"]);1224ctObj.behindDoc = XmlHelper.ReadBool(node.Attributes["behindDoc"]);1225ctObj.locked = XmlHelper.ReadBool(node.Attributes["locked"]);1226ctObj.layoutInCell = XmlHelper.ReadBool(node.Attributes["layoutInCell"]);1227ctObj.hidden = XmlHelper.ReadBool(node.Attributes["hidden"]);1228ctObj.allowOverlap = XmlHelper.ReadBool(node.Attributes["allowOverlap"]);1229if (node.Attributes["wp14:anchorId"] != null)1230ctObj.anchorIdField = XmlHelper.ReadBytes(node.Attributes["wp14:anchorId"]);1231if (node.Attributes["wp14:editId"] != null)1232ctObj.editIdField = XmlHelper.ReadBytes(node.Attributes["wp14:editId"]);1233foreach (XmlNode childNode in node.ChildNodes)1234{1235if (childNode.LocalName == "simplePos")1236ctObj.simplePos = CT_Point2D.Parse(childNode, namespaceManager);1237else if (childNode.LocalName == "positionH")1238ctObj.positionH = CT_PosH.Parse(childNode, namespaceManager);1239else if (childNode.LocalName == "positionV")1240ctObj.positionV = CT_PosV.Parse(childNode, namespaceManager);1241else if (childNode.LocalName == "extent")1242ctObj.extent = CT_PositiveSize2D.Parse(childNode, namespaceManager);1243else if (childNode.LocalName == "wrapSquare")1244ctObj.wrapSquare = CT_WrapSquare.Parse(childNode, namespaceManager);1245else if (childNode.LocalName == "wrapNone")1246ctObj.wrapNone = new CT_WrapNone();1247else if (childNode.LocalName == "effectExtent")1248ctObj.effectExtent = CT_EffectExtent.Parse(childNode, namespaceManager);1249else if(childNode.LocalName == "wrapTight")1250ctObj.wrapTight = CT_WrapTight.Parse(childNode, namespaceManager);1251else if (childNode.LocalName == "wrapTopAndBottom")1252ctObj.wrapTopAndBottom = CT_WrapTopBottom.Parse(childNode, namespaceManager);1253else if (childNode.LocalName == "docPr")1254ctObj.docPr = CT_NonVisualDrawingProps.Parse(childNode, namespaceManager);1255else if (childNode.LocalName == "cNvGraphicFramePr")1256ctObj.cNvGraphicFramePr = CT_NonVisualGraphicFrameProperties.Parse(childNode, namespaceManager);1257else if (childNode.LocalName == "graphic")1258ctObj.graphic = CT_GraphicalObject.Parse(childNode, namespaceManager);1259}1260return ctObj;1261}1262
1263
1264
1265internal void Write(StreamWriter sw, string nodeName)1266{1267sw.Write(string.Format("<wp:{0}", nodeName));1268XmlHelper.WriteAttribute(sw, "distT", this.distT, true);1269XmlHelper.WriteAttribute(sw, "distB", this.distB ,true);1270XmlHelper.WriteAttribute(sw, "distL", this.distL);1271XmlHelper.WriteAttribute(sw, "distR", this.distR);1272XmlHelper.WriteAttribute(sw, "simplePos", this.simplePos1);1273XmlHelper.WriteAttribute(sw, "relativeHeight", this.relativeHeight);1274XmlHelper.WriteAttribute(sw, "behindDoc", this.behindDoc);1275XmlHelper.WriteAttribute(sw, "locked", this.locked);1276XmlHelper.WriteAttribute(sw, "layoutInCell", this.layoutInCell);1277if(this.hidden)1278XmlHelper.WriteAttribute(sw, "hidden", this.hidden);1279XmlHelper.WriteAttribute(sw, "allowOverlap", this.allowOverlap);1280XmlHelper.WriteAttribute(sw, "wp14:anchorId", this.anchorIdField);1281XmlHelper.WriteAttribute(sw, "wp14:editId", this.editIdField);1282sw.Write(">");1283if (this.simplePos != null)1284this.simplePos.Write(sw, "simplePos");1285if (this.positionH != null)1286this.positionH.Write(sw, "positionH");1287if (this.positionV != null)1288this.positionV.Write(sw, "positionV");1289if (this.extent != null)1290this.extent.Write(sw, "extent");1291if (this.effectExtent != null)1292this.effectExtent.Write(sw, "effectExtent");1293if(this.wrapTight != null)1294this.wrapTight.Write(sw, "wrapTight");1295if (this.wrapTopAndBottom != null)1296this.wrapTopAndBottom.Write(sw, "wrapTopAndBottom");1297if (this.wrapSquare != null)1298this.wrapSquare.Write(sw, "wrapSquare");1299if (this.wrapNone != null)1300this.wrapNone.Write(sw, "wrapNone");1301if (this.docPr != null)1302this.docPr.Write(sw, "docPr");1303if (this.cNvGraphicFramePr != null)1304this.cNvGraphicFramePr.Write(sw, "cNvGraphicFramePr");1305if (this.graphic != null)1306this.graphic.Write(sw, "graphic");1307sw.Write(string.Format("</wp:{0}>", nodeName));1308}1309
1310}1311
1312[Serializable]1313
1314[XmlType(Namespace = "http://schemas.openxmlformats.org/drawingml/2006/wordprocessingDrawing")]1315[XmlRoot(Namespace = "http://schemas.openxmlformats.org/drawingml/2006/wordprocessingDrawing", IsNullable = true)]1316public class CT_PosH1317{1318public static CT_PosH Parse(XmlNode node, XmlNamespaceManager namespaceManager)1319{1320if (node == null)1321return null;1322CT_PosH ctObj = new CT_PosH();1323
1324if (node.Attributes["relativeFrom"] != null)1325ctObj.relativeFrom = (ST_RelFromH)Enum.Parse(typeof(ST_RelFromH), node.Attributes["relativeFrom"].Value);1326
1327foreach (XmlNode childNode in node.ChildNodes)1328{1329if (childNode.LocalName == "posOffset")1330ctObj.posOffset = int.TryParse(childNode.InnerText, out var i ) ? i : (int?)null;1331else if (childNode.LocalName == "align")1332ctObj.align = (ST_AlignH)Enum.Parse(typeof(ST_AlignH), childNode.InnerText);1333}1334
1335return ctObj;1336}1337
1338
1339
1340internal void Write(StreamWriter sw, string nodeName)1341{1342sw.Write(string.Format("<wp:{0}", nodeName));1343XmlHelper.WriteAttribute(sw, "relativeFrom", this.relativeFrom.ToString());1344sw.Write(">");1345
1346if (this.posOffset != null)1347sw.Write(string.Format("<wp:posOffset>{0}</wp:posOffset>", this.posOffset.Value));1348
1349if (this.align != null)1350sw.Write(string.Format("<wp:align>{0}</wp:align>", this.align.Value));1351
1352sw.Write(string.Format("</wp:{0}>", nodeName));1353}1354
1355private ST_RelFromH relativeFromField;1356
1357int? posOffsetField;1358public int? posOffset1359{1360get { return this.posOffsetField; }1361set { this.posOffsetField = value; }1362}1363
1364ST_AlignH? alignField;1365public ST_AlignH? align1366{1367get { return this.alignField; }1368set { this.alignField = value; }1369}1370
1371
1372
1373[XmlAttribute]1374public ST_RelFromH relativeFrom1375{1376get1377{1378return this.relativeFromField;1379}1380set1381{1382this.relativeFromField = value;1383}1384}1385}1386
1387
1388[Serializable]1389[XmlType(Namespace = "http://schemas.openxmlformats.org/drawingml/2006/wordprocessingDrawing")]1390public enum ST_AlignH1391{1392
1393
1394left,1395
1396
1397right,1398
1399
1400center,1401
1402
1403inside,1404
1405
1406outside,1407}1408
1409
1410[Serializable]1411[XmlType(Namespace = "http://schemas.openxmlformats.org/drawingml/2006/wordprocessingDrawing")]1412public enum ST_RelFromH1413{1414
1415
1416margin,1417
1418
1419page,1420
1421
1422column,1423
1424
1425character,1426
1427
1428leftMargin,1429
1430
1431rightMargin,1432
1433
1434insideMargin,1435
1436
1437outsideMargin,1438}1439
1440
1441[Serializable]1442
1443[XmlType(Namespace = "http://schemas.openxmlformats.org/drawingml/2006/wordprocessingDrawing")]1444[XmlRoot(Namespace = "http://schemas.openxmlformats.org/drawingml/2006/wordprocessingDrawing", IsNullable = true)]1445public class CT_PosV1446{1447public static CT_PosV Parse(XmlNode node, XmlNamespaceManager namespaceManager)1448{1449if (node == null)1450return null;1451CT_PosV ctObj = new CT_PosV();1452
1453if (node.Attributes["relativeFrom"] != null)1454ctObj.relativeFrom = (ST_RelFromV)Enum.Parse(typeof(ST_RelFromV), node.Attributes["relativeFrom"].Value);1455
1456foreach (XmlNode childNode in node.ChildNodes)1457{1458if (childNode.LocalName == "posOffset")1459ctObj.posOffset = int.TryParse(childNode.InnerText, out var i) ? i : (int?)null;1460else if (childNode.LocalName == "align")1461ctObj.align = (ST_AlignV)Enum.Parse(typeof(ST_AlignV), childNode.InnerText);1462}1463
1464return ctObj;1465}1466
1467
1468
1469internal void Write(StreamWriter sw, string nodeName)1470{1471sw.Write(string.Format("<wp:{0}", nodeName));1472XmlHelper.WriteAttribute(sw, "relativeFrom", this.relativeFrom.ToString());1473sw.Write(">");1474
1475if (this.posOffset != null)1476sw.Write(string.Format("<wp:posOffset>{0}</wp:posOffset>", this.posOffset.Value));1477
1478if (this.align != null)1479sw.Write(string.Format("<wp:align>{0}</wp:align>", this.align.Value));1480
1481sw.Write(string.Format("</wp:{0}>", nodeName));1482}1483
1484private ST_RelFromV relativeFromField;1485
1486int? posOffsetField;1487public int? posOffset1488{1489get { return this.posOffsetField; }1490set { this.posOffsetField = value; }1491}1492
1493ST_AlignV? alignField;1494public ST_AlignV? align1495{1496get { return this.alignField; }1497set { this.alignField = value; }1498}1499
1500
1501
1502[XmlAttribute]1503public ST_RelFromV relativeFrom1504{1505get1506{1507return this.relativeFromField;1508}1509set1510{1511this.relativeFromField = value;1512}1513}1514}1515
1516
1517[Serializable]1518[XmlType(Namespace = "http://schemas.openxmlformats.org/drawingml/2006/wordprocessingDrawing")]1519public enum ST_AlignV1520{1521
1522
1523top,1524
1525
1526bottom,1527
1528
1529center,1530
1531
1532inside,1533
1534
1535outside,1536}1537
1538
1539[Serializable]1540[XmlType(Namespace = "http://schemas.openxmlformats.org/drawingml/2006/wordprocessingDrawing")]1541public enum ST_RelFromV1542{1543
1544
1545margin,1546
1547
1548page,1549
1550
1551paragraph,1552
1553
1554line,1555
1556
1557topMargin,1558
1559
1560bottomMargin,1561
1562
1563insideMargin,1564
1565
1566outsideMargin,1567}1568
1569
1570[Serializable]1571
1572[XmlType(Namespace = "http://schemas.openxmlformats.org/drawingml/2006/wordprocessingDrawing")]1573[XmlRoot(Namespace = "http://schemas.openxmlformats.org/drawingml/2006/wordprocessingDrawing", IsNullable = true)]1574public class CT_WrapNone1575{1576internal void Write(StreamWriter sw, string nodeName)1577{1578sw.Write(string.Format("<wp:{0}", nodeName));1579sw.Write("/>");1580}1581}1582
1583
1584[Serializable]1585
1586[XmlType(Namespace = "http://schemas.openxmlformats.org/drawingml/2006/wordprocessingDrawing")]1587[XmlRoot(Namespace = "http://schemas.openxmlformats.org/drawingml/2006/wordprocessingDrawing", IsNullable = true)]1588public class CT_WrapSquare1589{1590
1591private CT_EffectExtent effectExtentField;1592
1593private ST_WrapText wrapTextField;1594
1595private uint distTField;1596
1597private bool distTFieldSpecified;1598
1599private uint distBField;1600
1601private bool distBFieldSpecified;1602
1603private uint distLField;1604
1605private bool distLFieldSpecified;1606
1607private uint distRField;1608
1609private bool distRFieldSpecified;1610
1611/// <summary>1612/// CT_WrapSquare class constructor1613/// </summary>1614public CT_WrapSquare()1615{1616this.effectExtentField = new CT_EffectExtent();1617}1618
1619public static CT_WrapSquare Parse(XmlNode node, XmlNamespaceManager namespaceManager)1620{1621if (node == null)1622return null;1623
1624CT_WrapSquare ctObj = new CT_WrapSquare();1625ctObj.wrapText = (ST_WrapText)Enum.Parse(typeof(ST_WrapText), node.Attributes["wrapText"].Value);1626return ctObj;1627}1628
1629internal void Write(StreamWriter sw, string nodeName)1630{1631sw.Write(string.Format("<wp:{0}", nodeName));1632XmlHelper.WriteAttribute(sw, "wrapText", this.wrapText.ToString(), true);1633sw.Write("/>");1634}1635
1636[XmlElement(Order = 0)]1637public CT_EffectExtent effectExtent1638{1639get1640{1641return this.effectExtentField;1642}1643set1644{1645this.effectExtentField = value;1646}1647}1648
1649[XmlAttribute]1650public ST_WrapText wrapText1651{1652get1653{1654return this.wrapTextField;1655}1656set1657{1658this.wrapTextField = value;1659}1660}1661
1662[XmlAttribute]1663public uint distT1664{1665get1666{1667return this.distTField;1668}1669set1670{1671this.distTField = value;1672}1673}1674
1675[XmlIgnore]1676public bool distTSpecified1677{1678get1679{1680return this.distTFieldSpecified;1681}1682set1683{1684this.distTFieldSpecified = value;1685}1686}1687
1688[XmlAttribute]1689public uint distB1690{1691get1692{1693return this.distBField;1694}1695set1696{1697this.distBField = value;1698}1699}1700
1701[XmlIgnore]1702public bool distBSpecified1703{1704get1705{1706return this.distBFieldSpecified;1707}1708set1709{1710this.distBFieldSpecified = value;1711}1712}1713
1714[XmlAttribute]1715public uint distL1716{1717get1718{1719return this.distLField;1720}1721set1722{1723this.distLField = value;1724}1725}1726
1727[XmlIgnore]1728public bool distLSpecified1729{1730get1731{1732return this.distLFieldSpecified;1733}1734set1735{1736this.distLFieldSpecified = value;1737}1738}1739
1740[XmlAttribute]1741public uint distR1742{1743get1744{1745return this.distRField;1746}1747set1748{1749this.distRField = value;1750}1751}1752
1753[XmlIgnore]1754public bool distRSpecified1755{1756get1757{1758return this.distRFieldSpecified;1759}1760set1761{1762this.distRFieldSpecified = value;1763}1764}1765}1766
1767
1768[Serializable]1769[XmlType(Namespace = "http://schemas.openxmlformats.org/drawingml/2006/wordprocessingDrawing")]1770public enum ST_WrapText1771{1772
1773
1774bothSides,1775
1776
1777left,1778
1779
1780right,1781
1782
1783largest,1784}1785
1786
1787[Serializable]1788
1789[XmlType(Namespace = "http://schemas.openxmlformats.org/drawingml/2006/wordprocessingDrawing")]1790[XmlRoot(Namespace = "http://schemas.openxmlformats.org/drawingml/2006/wordprocessingDrawing", IsNullable = true)]1791public class CT_WrapThrough1792{1793
1794private CT_WrapPath wrapPolygonField;1795
1796private ST_WrapText wrapTextField;1797
1798private uint distLField;1799
1800private bool distLFieldSpecified;1801
1802private uint distRField;1803
1804private bool distRFieldSpecified;1805
1806/// <summary>1807/// CT_WrapThrough class constructor1808/// </summary>1809public CT_WrapThrough()1810{1811this.wrapPolygonField = new CT_WrapPath();1812}1813
1814[XmlElement(Order = 0)]1815public CT_WrapPath wrapPolygon1816{1817get1818{1819return this.wrapPolygonField;1820}1821set1822{1823this.wrapPolygonField = value;1824}1825}1826
1827[XmlAttribute]1828public ST_WrapText wrapText1829{1830get1831{1832return this.wrapTextField;1833}1834set1835{1836this.wrapTextField = value;1837}1838}1839
1840[XmlAttribute]1841public uint distL1842{1843get1844{1845return this.distLField;1846}1847set1848{1849this.distLField = value;1850}1851}1852
1853[XmlIgnore]1854public bool distLSpecified1855{1856get1857{1858return this.distLFieldSpecified;1859}1860set1861{1862this.distLFieldSpecified = value;1863}1864}1865
1866[XmlAttribute]1867public uint distR1868{1869get1870{1871return this.distRField;1872}1873set1874{1875this.distRField = value;1876}1877}1878
1879[XmlIgnore]1880public bool distRSpecified1881{1882get1883{1884return this.distRFieldSpecified;1885}1886set1887{1888this.distRFieldSpecified = value;1889}1890}1891}1892
1893
1894[Serializable]1895
1896[XmlType(Namespace = "http://schemas.openxmlformats.org/drawingml/2006/wordprocessingDrawing")]1897[XmlRoot(Namespace = "http://schemas.openxmlformats.org/drawingml/2006/wordprocessingDrawing", IsNullable = true)]1898public class CT_WrapPath1899{1900
1901private CT_Point2D startField;1902
1903private List<CT_Point2D> lineToField;1904
1905private bool editedField;1906
1907private bool editedFieldSpecified;1908
1909/// <summary>1910/// CT_WrapPath class constructor1911/// </summary>1912public CT_WrapPath()1913{1914this.lineToField = new List<CT_Point2D>();1915}1916
1917[XmlElement(Order = 0)]1918public CT_Point2D start1919{1920get1921{1922return this.startField;1923}1924set1925{1926this.startField = value;1927}1928}1929
1930[XmlElement("lineTo", Order = 1)]1931public List<CT_Point2D> lineTo1932{1933get1934{1935return this.lineToField;1936}1937set1938{1939this.lineToField = value;1940}1941}1942
1943[XmlAttribute]1944public bool edited1945{1946get1947{1948return this.editedField;1949}1950set1951{1952this.editedField = value;1953}1954}1955
1956[XmlIgnore]1957public bool editedSpecified1958{1959get1960{1961return this.editedFieldSpecified;1962}1963set1964{1965this.editedFieldSpecified = value;1966}1967}1968internal static CT_WrapPath Parse(XmlNode node, XmlNamespaceManager namespaceManager)1969{1970if(node == null)1971return null;1972CT_WrapPath ctObj = new CT_WrapPath();1973ctObj.lineToField = new List<CT_Point2D>();1974foreach(XmlNode childNode in node.ChildNodes)1975{1976if(childNode.LocalName == "start")1977ctObj.start = CT_Point2D.Parse(childNode, namespaceManager);1978else if(childNode.LocalName == "lineTo")1979ctObj.lineToField.Add(CT_Point2D.Parse(childNode, namespaceManager));1980}1981return ctObj;1982}1983internal void Write(StreamWriter sw, string nodeName)1984{1985sw.Write(string.Format("<wp:{0}", nodeName));1986XmlHelper.WriteAttribute(sw, "edited", this.edited, true);1987sw.Write(">");1988if(this.start!=null)1989this.start.Write(sw, "wp:start");1990if(this.lineToField!=null)1991{1992foreach(var lineTo in this.lineToField)1993{1994lineTo.Write(sw, "wp:lineTo");1995}1996}1997sw.Write("</wp:{0}>", nodeName);1998}1999}2000
2001
2002[Serializable]2003
2004[XmlType(Namespace = "http://schemas.openxmlformats.org/drawingml/2006/wordprocessingDrawing")]2005[XmlRoot(Namespace = "http://schemas.openxmlformats.org/drawingml/2006/wordprocessingDrawing", IsNullable = true)]2006public class CT_WrapTight2007{2008
2009private CT_WrapPath wrapPolygonField;2010
2011private ST_WrapText wrapTextField;2012
2013private uint distLField;2014
2015private bool distLFieldSpecified;2016
2017private uint distRField;2018
2019private bool distRFieldSpecified;2020
2021/// <summary>2022/// CT_WrapTight class constructor2023/// </summary>2024public CT_WrapTight()2025{2026this.wrapPolygonField = new CT_WrapPath();2027}2028
2029[XmlElement(Order = 0)]2030public CT_WrapPath wrapPolygon2031{2032get2033{2034return this.wrapPolygonField;2035}2036set2037{2038this.wrapPolygonField = value;2039}2040}2041
2042[XmlAttribute]2043public ST_WrapText wrapText2044{2045get2046{2047return this.wrapTextField;2048}2049set2050{2051this.wrapTextField = value;2052}2053}2054
2055[XmlAttribute]2056public uint distL2057{2058get2059{2060return this.distLField;2061}2062set2063{2064this.distLField = value;2065}2066}2067
2068[XmlIgnore]2069public bool distLSpecified2070{2071get2072{2073return this.distLFieldSpecified;2074}2075set2076{2077this.distLFieldSpecified = value;2078}2079}2080
2081[XmlAttribute]2082public uint distR2083{2084get2085{2086return this.distRField;2087}2088set2089{2090this.distRField = value;2091}2092}2093
2094[XmlIgnore]2095public bool distRSpecified2096{2097get2098{2099return this.distRFieldSpecified;2100}2101set2102{2103this.distRFieldSpecified = value;2104}2105}2106internal static CT_WrapTight Parse(XmlNode node, XmlNamespaceManager namespaceManager)2107{2108if(node == null)2109return null;2110CT_WrapTight ctObj = new CT_WrapTight();2111ctObj.wrapText = XmlHelper.ReadEnum<ST_WrapText>(node.Attributes["wrapText"]);2112ctObj.distR = XmlHelper.ReadUInt(node.Attributes["distR"]);2113ctObj.distL = XmlHelper.ReadUInt(node.Attributes["distL"]);2114foreach(XmlNode childNode in node.ChildNodes)2115{2116if(childNode.LocalName == "wrapPolygon")2117ctObj.wrapPolygon = CT_WrapPath.Parse(childNode, namespaceManager);2118}2119return ctObj;2120}2121internal void Write(StreamWriter sw, string nodeName)2122{2123sw.Write(string.Format("<wp:{0}", nodeName));2124XmlHelper.WriteAttribute(sw, "distR", this.distR);2125XmlHelper.WriteAttribute(sw, "distL", this.distL);2126XmlHelper.WriteAttribute(sw, "wrapText", this.wrapTextField.ToString());2127sw.Write(">");2128if(this.wrapPolygon!=null)2129this.wrapPolygon.Write(sw, "wrapPolygon");2130sw.Write("</wp:{0}>", nodeName);2131}2132}2133
2134
2135public class CT_WrapTopBottom2136{2137
2138private CT_EffectExtent effectExtentField;2139
2140private uint distTField;2141
2142private bool distTFieldSpecified;2143
2144private uint distBField;2145
2146private bool distBFieldSpecified;2147
2148/// <summary>2149/// CT_WrapTopBottom class constructor2150/// </summary>2151public CT_WrapTopBottom()2152{2153this.effectExtentField = new CT_EffectExtent();2154}2155
2156[XmlElement(Order = 0)]2157public CT_EffectExtent effectExtent2158{2159get2160{2161return this.effectExtentField;2162}2163set2164{2165this.effectExtentField = value;2166}2167}2168
2169[XmlAttribute]2170public uint distT2171{2172get2173{2174return this.distTField;2175}2176set2177{2178this.distTField = value;2179}2180}2181
2182[XmlIgnore]2183public bool distTSpecified2184{2185get2186{2187return this.distTFieldSpecified;2188}2189set2190{2191this.distTFieldSpecified = value;2192}2193}2194
2195[XmlAttribute]2196public uint distB2197{2198get2199{2200return this.distBField;2201}2202set2203{2204this.distBField = value;2205}2206}2207
2208[XmlIgnore]2209public bool distBSpecified2210{2211get2212{2213return this.distBFieldSpecified;2214}2215set2216{2217this.distBFieldSpecified = value;2218}2219}2220
2221internal static CT_WrapTopBottom Parse(XmlNode node, XmlNamespaceManager namespaceManager)2222{2223if (node == null)2224return null;2225CT_WrapTopBottom ctObj = new CT_WrapTopBottom();2226ctObj.distB = XmlHelper.ReadUInt(node.Attributes["distB"]);2227ctObj.distT = XmlHelper.ReadUInt(node.Attributes["distT"]);2228return ctObj;2229}2230
2231internal void Write(StreamWriter sw, string nodeName)2232{2233sw.Write(string.Format("<wp:{0}", nodeName));2234XmlHelper.WriteAttribute(sw, "distT", this.distT);2235XmlHelper.WriteAttribute(sw, "distB", this.distB);2236sw.Write("/>");2237}2238}2239}
2240