npoi
723 строки · 24.0 Кб
1using System;2using System.Collections.Generic;3using System.Text;4using System.Xml.Serialization;5using System.ComponentModel;6using System.IO;7using System.Xml;8using NPOI.OpenXml4Net.Util;9
10namespace NPOI.OpenXmlFormats.Vml.Spreadsheet11{
12[System.ComponentModel.DesignerCategory("code")]13public class CT_ClientData14{15public CT_ClientData()16{17this.rowField = new List<int>();18this.columnField = new List<int>();19}20private ST_ObjectType objectTypeField;21
22private static XmlQualifiedName MOVEWITHCELLS = new XmlQualifiedName("MoveWithCells", "urn:schemas-microsoft-com:office:excel");23private static XmlQualifiedName SIZEWITHCELLS = new XmlQualifiedName("SizeWithCells", "urn:schemas-microsoft-com:office:excel");24private static XmlQualifiedName ANCHOR = new XmlQualifiedName("Anchor", "urn:schemas-microsoft-com:office:excel");25private static XmlQualifiedName LOCKED = new XmlQualifiedName("Locked", "urn:schemas-microsoft-com:office:excel");26private static XmlQualifiedName DEFAULTSIZE = new XmlQualifiedName("DefaultSize", "urn:schemas-microsoft-com:office:excel");27private static XmlQualifiedName PRINTOBJECT = new XmlQualifiedName("PrintObject", "urn:schemas-microsoft-com:office:excel");28private static XmlQualifiedName DISABLED = new XmlQualifiedName("Disabled", "urn:schemas-microsoft-com:office:excel");29private static XmlQualifiedName AUTOFILL = new XmlQualifiedName("AutoFill", "urn:schemas-microsoft-com:office:excel");30private static XmlQualifiedName AUTOLINE = new XmlQualifiedName("AutoLine", "urn:schemas-microsoft-com:office:excel");31private static XmlQualifiedName AUTOPICT = new XmlQualifiedName("AutoPict", "urn:schemas-microsoft-com:office:excel");32private static XmlQualifiedName FMLAMACRO = new XmlQualifiedName("FmlaMacro", "urn:schemas-microsoft-com:office:excel");33private static XmlQualifiedName TEXTHALIGN = new XmlQualifiedName("TextHAlign", "urn:schemas-microsoft-com:office:excel");34private static XmlQualifiedName TEXTVALIGN = new XmlQualifiedName("TextVAlign", "urn:schemas-microsoft-com:office:excel");35private static XmlQualifiedName LOCKTEXT = new XmlQualifiedName("LockText", "urn:schemas-microsoft-com:office:excel");36private static XmlQualifiedName JUSTLASTX = new XmlQualifiedName("JustLastX", "urn:schemas-microsoft-com:office:excel");37private static XmlQualifiedName SECRETEDIT = new XmlQualifiedName("SecretEdit", "urn:schemas-microsoft-com:office:excel");38private static XmlQualifiedName DEFAULT = new XmlQualifiedName("Default", "urn:schemas-microsoft-com:office:excel");39private static XmlQualifiedName HELP = new XmlQualifiedName("Help", "urn:schemas-microsoft-com:office:excel");40private static XmlQualifiedName CANCEL = new XmlQualifiedName("Cancel", "urn:schemas-microsoft-com:office:excel");41private static XmlQualifiedName DISMISS = new XmlQualifiedName("Dismiss", "urn:schemas-microsoft-com:office:excel");42private static XmlQualifiedName ACCEL = new XmlQualifiedName("Accel", "urn:schemas-microsoft-com:office:excel");43private static XmlQualifiedName ACCEL2 = new XmlQualifiedName("Accel2", "urn:schemas-microsoft-com:office:excel");44private static XmlQualifiedName ROW = new XmlQualifiedName("Row", "urn:schemas-microsoft-com:office:excel");45private static XmlQualifiedName COLUMN = new XmlQualifiedName("Column", "urn:schemas-microsoft-com:office:excel");46private static XmlQualifiedName VISIBLE = new XmlQualifiedName("Visible", "urn:schemas-microsoft-com:office:excel");47private static XmlQualifiedName ROWHIDDEN = new XmlQualifiedName("RowHidden", "urn:schemas-microsoft-com:office:excel");48private static XmlQualifiedName COLHIDDEN = new XmlQualifiedName("ColHidden", "urn:schemas-microsoft-com:office:excel");49private static XmlQualifiedName VTEDIT = new XmlQualifiedName("VTEdit", "urn:schemas-microsoft-com:office:excel");50private static XmlQualifiedName MULTILINE = new XmlQualifiedName("MultiLine", "urn:schemas-microsoft-com:office:excel");51private static XmlQualifiedName VSCROLL = new XmlQualifiedName("VScroll", "urn:schemas-microsoft-com:office:excel");52private static XmlQualifiedName VALIDIDS = new XmlQualifiedName("ValidIds", "urn:schemas-microsoft-com:office:excel");53private static XmlQualifiedName FMLARANGE = new XmlQualifiedName("FmlaRange", "urn:schemas-microsoft-com:office:excel");54private static XmlQualifiedName WIDTHMIN = new XmlQualifiedName("WidthMin", "urn:schemas-microsoft-com:office:excel");55private static XmlQualifiedName SEL = new XmlQualifiedName("Sel", "urn:schemas-microsoft-com:office:excel");56private static XmlQualifiedName NOTHREED2 = new XmlQualifiedName("NoThreeD2", "urn:schemas-microsoft-com:office:excel");57private static XmlQualifiedName SELTYPE = new XmlQualifiedName("SelType", "urn:schemas-microsoft-com:office:excel");58private static XmlQualifiedName MULTISEL = new XmlQualifiedName("MultiSel", "urn:schemas-microsoft-com:office:excel");59private static XmlQualifiedName LCT = new XmlQualifiedName("LCT", "urn:schemas-microsoft-com:office:excel");60private static XmlQualifiedName LISTITEM = new XmlQualifiedName("ListItem", "urn:schemas-microsoft-com:office:excel");61private static XmlQualifiedName DROPSTYLE = new XmlQualifiedName("DropStyle", "urn:schemas-microsoft-com:office:excel");62private static XmlQualifiedName COLORED = new XmlQualifiedName("Colored", "urn:schemas-microsoft-com:office:excel");63private static XmlQualifiedName DROPLINES = new XmlQualifiedName("DropLines", "urn:schemas-microsoft-com:office:excel");64private static XmlQualifiedName CHECKED = new XmlQualifiedName("Checked", "urn:schemas-microsoft-com:office:excel");65private static XmlQualifiedName FMLALINK = new XmlQualifiedName("FmlaLink", "urn:schemas-microsoft-com:office:excel");66private static XmlQualifiedName FMLAPICT = new XmlQualifiedName("FmlaPict", "urn:schemas-microsoft-com:office:excel");67private static XmlQualifiedName NOTHREED = new XmlQualifiedName("NoThreeD", "urn:schemas-microsoft-com:office:excel");68private static XmlQualifiedName FIRSTBUTTON = new XmlQualifiedName("FirstButton", "urn:schemas-microsoft-com:office:excel");69private static XmlQualifiedName FMLAGROUP = new XmlQualifiedName("FmlaGroup", "urn:schemas-microsoft-com:office:excel");70private static XmlQualifiedName VAL = new XmlQualifiedName("Val", "urn:schemas-microsoft-com:office:excel");71private static XmlQualifiedName MIN = new XmlQualifiedName("Min", "urn:schemas-microsoft-com:office:excel");72private static XmlQualifiedName MAX = new XmlQualifiedName("Max", "urn:schemas-microsoft-com:office:excel");73private static XmlQualifiedName INC = new XmlQualifiedName("Inc", "urn:schemas-microsoft-com:office:excel");74private static XmlQualifiedName PAGE = new XmlQualifiedName("Page", "urn:schemas-microsoft-com:office:excel");75private static XmlQualifiedName HORIZ = new XmlQualifiedName("Horiz", "urn:schemas-microsoft-com:office:excel");76private static XmlQualifiedName DX = new XmlQualifiedName("Dx", "urn:schemas-microsoft-com:office:excel");77private static XmlQualifiedName MAPOCX = new XmlQualifiedName("MapOCX", "urn:schemas-microsoft-com:office:excel");78private static XmlQualifiedName CF = new XmlQualifiedName("CF", "urn:schemas-microsoft-com:office:excel");79private static XmlQualifiedName CAMERA = new XmlQualifiedName("Camera", "urn:schemas-microsoft-com:office:excel");80private static XmlQualifiedName RECALCALWAYS = new XmlQualifiedName("RecalcAlways", "urn:schemas-microsoft-com:office:excel");81private static XmlQualifiedName AUTOSCALE = new XmlQualifiedName("AutoScale", "urn:schemas-microsoft-com:office:excel");82private static XmlQualifiedName DDE = new XmlQualifiedName("DDE", "urn:schemas-microsoft-com:office:excel");83private static XmlQualifiedName UIOBJ = new XmlQualifiedName("UIObj", "urn:schemas-microsoft-com:office:excel");84private static XmlQualifiedName SCRIPTTEXT = new XmlQualifiedName("ScriptText", "urn:schemas-microsoft-com:office:excel");85private static XmlQualifiedName SCRIPTEXTENDED = new XmlQualifiedName("ScriptExtended", "urn:schemas-microsoft-com:office:excel");86private static XmlQualifiedName SCRIPTLANGUAGE = new XmlQualifiedName("ScriptLanguage", "urn:schemas-microsoft-com:office:excel");87private static XmlQualifiedName SCRIPTLOCATION = new XmlQualifiedName("ScriptLocation", "urn:schemas-microsoft-com:office:excel");88private static XmlQualifiedName FMLATXBX = new XmlQualifiedName("FmlaTxbx", "urn:schemas-microsoft-com:office:excel");89private static XmlQualifiedName OBJECTTYPE = new XmlQualifiedName("ObjectType", "");90
91//[XmlElement("Accel", typeof(string), DataType = "integer")]92//[XmlElement("Accel2", typeof(string), DataType = "integer")]93//[XmlElement("Anchor", typeof(string))]94//[XmlElement("AutoFill", typeof(ST_TrueFalseBlank))]95//[XmlElement("AutoLine", typeof(ST_TrueFalseBlank))]96//[XmlElement("AutoPict", typeof(ST_TrueFalseBlank))]97//[XmlElement("AutoScale", typeof(ST_TrueFalseBlank))]98//[XmlElement("CF", typeof(ST_CF))]99//[XmlElement("Camera", typeof(ST_TrueFalseBlank))]100//[XmlElement("Cancel", typeof(ST_TrueFalseBlank))]101//[XmlElement("Checked", typeof(string), DataType = "integer")]102//[XmlElement("ColHidden", typeof(ST_TrueFalseBlank))]103//[XmlElement("Colored", typeof(ST_TrueFalseBlank))]104//[XmlElement("Column", typeof(string), DataType = "integer")]105//[XmlElement("DDE", typeof(ST_TrueFalseBlank))]106//[XmlElement("Default", typeof(ST_TrueFalseBlank))]107//[XmlElement("DefaultSize", typeof(ST_TrueFalseBlank))]108//[XmlElement("Disabled", typeof(ST_TrueFalseBlank))]109//[XmlElement("Dismiss", typeof(ST_TrueFalseBlank))]110//[XmlElement("DropLines", typeof(string), DataType = "integer")]111//[XmlElement("DropStyle", typeof(string))]112//[XmlElement("Dx", typeof(string), DataType = "integer")]113//[XmlElement("FirstButton", typeof(ST_TrueFalseBlank))]114//[XmlElement("FmlaGroup", typeof(string))]115//[XmlElement("FmlaLink", typeof(string))]116//[XmlElement("FmlaMacro", typeof(string))]117//[XmlElement("FmlaPict", typeof(string))]118//[XmlElement("FmlaRange", typeof(string))]119//[XmlElement("FmlaTxbx", typeof(string))]120//[XmlElement("Help", typeof(ST_TrueFalseBlank))]121//[XmlElement("Horiz", typeof(ST_TrueFalseBlank))]122//[XmlElement("Inc", typeof(string), DataType = "integer")]123//[XmlElement("JustLastX", typeof(ST_TrueFalseBlank))]124//[XmlElement("LCT", typeof(string))]125//[XmlElement("ListItem", typeof(string))]126//[XmlElement("LockText", typeof(ST_TrueFalseBlank))]127//[XmlElement("Locked", typeof(ST_TrueFalseBlank))]128//[XmlElement("MapOCX", typeof(ST_TrueFalseBlank))]129//[XmlElement("Max", typeof(string), DataType = "integer")]130//[XmlElement("Min", typeof(string), DataType = "integer")]131//[XmlElement("MoveWithCells", typeof(ST_TrueFalseBlank))]132//[XmlElement("MultiLine", typeof(ST_TrueFalseBlank))]133//[XmlElement("MultiSel", typeof(string))]134//[XmlElement("NoThreeD", typeof(ST_TrueFalseBlank))]135//[XmlElement("NoThreeD2", typeof(ST_TrueFalseBlank))]136//[XmlElement("Page", typeof(string), DataType = "integer")]137//[XmlElement("PrintObject", typeof(ST_TrueFalseBlank))]138//[XmlElement("RecalcAlways", typeof(ST_TrueFalseBlank))]139//[XmlElement("Row", typeof(string), DataType = "integer")]140//[XmlElement("RowHidden", typeof(ST_TrueFalseBlank))]141//[XmlElement("ScriptExtended", typeof(string))]142//[XmlElement("ScriptLanguage", typeof(string), DataType = "nonNegativeInteger")]143//[XmlElement("ScriptLocation", typeof(string), DataType = "nonNegativeInteger")]144//[XmlElement("ScriptText", typeof(string))]145//[XmlElement("SecretEdit", typeof(ST_TrueFalseBlank))]146//[XmlElement("Sel", typeof(string), DataType = "integer")]147//[XmlElement("SelType", typeof(string))]148//[XmlElement("SizeWithCells", typeof(ST_TrueFalseBlank))]149//[XmlElement("TextHAlign", typeof(string))]150//[XmlElement("TextVAlign", typeof(string))]151//[XmlElement("UIObj", typeof(ST_TrueFalseBlank))]152//[XmlElement("VScroll", typeof(ST_TrueFalseBlank))]153//[XmlElement("VTEdit", typeof(string), DataType = "integer")]154//[XmlElement("Val", typeof(string), DataType = "integer")]155//[XmlElement("ValidIds", typeof(ST_TrueFalseBlank))]156//[XmlElement("Visible", typeof(ST_TrueFalseBlank))]157//[XmlElement("WidthMin", typeof(string), DataType = "integer")]158//[XmlChoiceIdentifier("ItemsElementName")]159//public List<object> Items160//{161// get162// {163// return this.itemsField;164// }165// set166// {167// this.itemsField = value;168// }169//}170public static CT_ClientData Parse(XmlNode node, XmlNamespaceManager namespaceManager)171{172if (node == null)173return null;174CT_ClientData ctObj = new CT_ClientData();175if (node.Attributes["ObjectType"] != null)176ctObj.ObjectType = (ST_ObjectType)Enum.Parse(typeof(ST_ObjectType), node.Attributes["ObjectType"].Value);177ctObj.column = new List<Int32>();178ctObj.row = new List<Int32>();179foreach (XmlNode childNode in node.ChildNodes)180{181if (childNode.LocalName == "Anchor")182ctObj.anchor = childNode.InnerText;183else if (childNode.LocalName == "AutoFill")184ctObj.autoFill = NPOI.OpenXmlFormats.Util.XmlHelper.ReadTrueFalseBlank(childNode.InnerText);185else if (childNode.LocalName == "Visible")186ctObj.visible = NPOI.OpenXmlFormats.Util.XmlHelper.ReadTrueFalseBlank(childNode.InnerText);187else if (childNode.LocalName == "MoveWithCells")188ctObj.moveWithCells = NPOI.OpenXmlFormats.Util.XmlHelper.ReadTrueFalseBlank(childNode.InnerText);189else if (childNode.LocalName == "SizeWithCells")190ctObj.sizeWithCells = NPOI.OpenXmlFormats.Util.XmlHelper.ReadTrueFalseBlank(childNode.InnerText);191else if (childNode.LocalName == "Column")192ctObj.column.Add(Int32.Parse(childNode.InnerText));193else if (childNode.LocalName == "Row")194ctObj.row.Add(Int32.Parse(childNode.InnerText));195}196return ctObj;197}198
199
200
201internal void Write(StreamWriter sw, string nodeName)202{203sw.Write(string.Format("<x:{0}", nodeName));204XmlHelper.WriteAttribute(sw, "ObjectType", this.ObjectType.ToString());205sw.Write(">");206if (this.moveWithCells == ST_TrueFalseBlank.t || this.moveWithCells == ST_TrueFalseBlank.@true)207sw.Write(string.Format("<x:MoveWithCells/>", this.moveWithCells));208if (this.sizeWithCells == ST_TrueFalseBlank.t || this.sizeWithCells == ST_TrueFalseBlank.@true)209sw.Write(string.Format("<x:SizeWithCells/>", this.sizeWithCells));210if (this.anchor != null)211sw.Write(string.Format("<x:Anchor>{0}</x:Anchor>", this.anchor));212if (this.autoFill != ST_TrueFalseBlank.NONE)213sw.Write(string.Format("<x:AutoFill>{0}</x:AutoFill>", this.autoFill));214if (this.visible != ST_TrueFalseBlank.NONE)215sw.Write(string.Format("<x:Visible>{0}</x:Visible>", this.visible));216if (this.row != null)217{218foreach (Int32 x in this.row)219{220sw.Write(string.Format("<x:Row>{0}</x:Row>", x));221}222}223if (this.column != null)224{225foreach (Int32 x in this.column)226{227sw.Write(string.Format("<x:Column>{0}</x:Column>", x));228}229}230sw.Write(string.Format("</x:{0}>", nodeName));231}232
233
234public void AddNewRow(int rowNum)235{236if (rowField != null)237{238rowField.Add(rowNum);239}240}241public void AddNewColumn(int columnNum)242{243if (columnField != null)244{245columnField.Add(columnNum);246}247}248
249public void AddNewMoveWithCells()250{251this.moveWithCellsField = ST_TrueFalseBlank.t;252this.moveWithCellsFieldSpecified = true;253}254public void AddNewSizeWithCells()255{256this.sizeWithCellsField = ST_TrueFalseBlank.t;257this.sizeWithCellsFieldSpecified = true;258}259private string anchorField;260[XmlElement(ElementName = "Anchor")]261public string anchor262{263get { return this.anchorField; }264set { this.anchorField = value; }265}266
267public void AddNewAnchor(string name)268{269this.anchorField = name;270}271
272public void AddNewAutoFill(ST_TrueFalseBlank value)273{274this.autoFillField = value;275this.autoFillFieldSpecified = true;276}277
278ST_TrueFalseBlank autoFillField = ST_TrueFalseBlank.NONE;279bool autoFillFieldSpecified = false;280
281[XmlElement(ElementName = "AutoFill")]282[DefaultValue(ST_TrueFalseBlank.NONE)]283public ST_TrueFalseBlank autoFill284{285get { return this.autoFillField; }286set { this.autoFillField = value; }287}288[XmlIgnore]289public bool autoFillSpecified290{291get { return this.autoFillFieldSpecified; }292set { this.autoFillFieldSpecified = value; }293}294
295ST_TrueFalseBlank visibleField = ST_TrueFalseBlank.NONE;296bool visibleFieldSpecified = false;297
298[XmlElement(ElementName = "Visible")]299[DefaultValue(ST_TrueFalseBlank.NONE)]300public ST_TrueFalseBlank visible301{302get { return this.visibleField; }303set { this.visibleField = value; }304}305[XmlIgnore]306public bool visibleSpecified307{308get { return this.visibleFieldSpecified; }309set { this.visibleFieldSpecified = value; }310}311
312ST_TrueFalseBlank moveWithCellsField = ST_TrueFalseBlank.NONE;313bool moveWithCellsFieldSpecified = false;314
315[XmlElement(ElementName = "MoveWithCells")]316[DefaultValue(ST_TrueFalseBlank.NONE)]317public ST_TrueFalseBlank moveWithCells318{319get { return this.moveWithCellsField; }320set { this.moveWithCellsField = value; }321}322[XmlIgnore]323public bool moveWithCellsSpecified324{325get { return this.moveWithCellsFieldSpecified; }326set { this.moveWithCellsFieldSpecified = value; }327}328public int SizeOfMoveWithCellsArray()329{330return moveWithCellsSpecified ? 1 : 0;331}332public int SizeOfSizeWithCellsArray()333{334return sizeWithCellsFieldSpecified ? 1 : 0;335}336ST_TrueFalseBlank sizeWithCellsField = ST_TrueFalseBlank.NONE;337bool sizeWithCellsFieldSpecified = false;338
339[XmlElement(ElementName = "SizeWithCells")]340[DefaultValue(ST_TrueFalseBlank.NONE)]341public ST_TrueFalseBlank sizeWithCells342{343get { return this.sizeWithCellsField; }344set { this.sizeWithCellsField = value; }345}346[XmlIgnore]347public bool sizeWithCellsSpecified348{349get { return this.sizeWithCellsFieldSpecified; }350set { this.sizeWithCellsFieldSpecified = value; }351}352
353
354private List<int> columnField;355[XmlElement(ElementName = "Column")]356public List<int> column357{358get { return this.columnField; }359set { this.columnField = value; }360}361public int GetColumnArray(int index)362{363return this.columnField[index];364}365public void SetColumnArray(int index, int value)366{367this.columnField[index] = value;368}369public void SetRowArray(int index, int value)370{371this.rowField[index] = value;372}373public void SetAnchorArray(int index, string value)374{375AddNewAnchor(value);376}377private List<int> rowField;378
379[XmlElement(ElementName = "Row")]380public List<int> row381{382get { return this.rowField; }383set { this.rowField = value; }384}385
386public int GetRowArray(int index)387{388return this.rowField[index];389}390
391[XmlAttribute]392public ST_ObjectType ObjectType393{394get395{396return this.objectTypeField;397}398set399{400this.objectTypeField = value;401}402}403
404public string GetAnchorArray(int p)405{406return this.anchor;407}408}409
410
411[Serializable]412[XmlType(Namespace = "urn:schemas-microsoft-com:office:excel")]413[XmlRoot(Namespace = "urn:schemas-microsoft-com:office:excel", IsNullable = false)]414public enum ST_TrueFalseBlank415{416//[XmlEnum("")]417NONE, //Blank - Default Value418
419[XmlEnum("True")]420@true, //Logical True421t,//Logical True422
423[XmlEnum("False")]424@false, //Logical False425f,//Logical False426}427
428
429[Serializable]430[XmlType(Namespace = "urn:schemas-microsoft-com:office:excel")]431[XmlRoot(Namespace = "urn:schemas-microsoft-com:office:excel", IsNullable = false)]432public enum ST_CF433{434
435
436PictOld,437
438
439Pict,440
441
442Bitmap,443
444
445PictPrint,446
447
448PictScreen,449}450
451
452[Serializable]453[XmlType(Namespace = "urn:schemas-microsoft-com:office:excel", IncludeInSchema = false)]454public enum ItemsChoiceType455{456
457
458Accel,459
460
461Accel2,462
463
464Anchor,465
466
467AutoFill,468
469
470AutoLine,471
472
473AutoPict,474
475
476AutoScale,477
478
479CF,480
481
482Camera,483
484
485Cancel,486
487
488Checked,489
490
491ColHidden,492
493
494Colored,495
496
497Column,498
499
500DDE,501
502
503Default,504
505
506DefaultSize,507
508
509Disabled,510
511
512Dismiss,513
514
515DropLines,516
517
518DropStyle,519
520
521Dx,522
523
524FirstButton,525
526
527FmlaGroup,528
529
530FmlaLink,531
532
533FmlaMacro,534
535
536FmlaPict,537
538
539FmlaRange,540
541
542FmlaTxbx,543
544
545Help,546
547
548Horiz,549
550
551Inc,552
553
554JustLastX,555
556
557LCT,558
559
560ListItem,561
562
563LockText,564
565
566Locked,567
568
569MapOCX,570
571
572Max,573
574
575Min,576
577
578MoveWithCells,579
580
581MultiLine,582
583
584MultiSel,585
586
587NoThreeD,588
589
590NoThreeD2,591
592
593Page,594
595
596PrintObject,597
598
599RecalcAlways,600
601
602Row,603
604
605RowHidden,606
607
608ScriptExtended,609
610
611ScriptLanguage,612
613
614ScriptLocation,615
616
617ScriptText,618
619
620SecretEdit,621
622
623Sel,624
625
626SelType,627
628
629SizeWithCells,630
631
632TextHAlign,633
634
635TextVAlign,636
637
638UIObj,639
640
641VScroll,642
643
644VTEdit,645
646
647Val,648
649
650ValidIds,651
652
653Visible,654
655
656WidthMin,657}658
659
660[Serializable]661[XmlType(Namespace = "urn:schemas-microsoft-com:office:excel")]662[XmlRoot(Namespace = "urn:schemas-microsoft-com:office:excel", IsNullable = false)]663public enum ST_ObjectType664{665
666
667Button,668
669
670Checkbox,671
672
673Dialog,674
675
676Drop,677
678
679Edit,680
681
682GBox,683
684
685Label,686
687
688LineA,689
690
691List,692
693
694Movie,695
696
697Note,698
699
700Pict,701
702
703Radio,704
705
706RectA,707
708
709Scroll,710
711
712Spin,713
714
715Shape,716
717
718Group,719
720
721Rect,722}723}
724