ExcelSchema.cs 22 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273747576777879808182838485868788899091929394959697989910010110210310410510610710810911011111211311411511611711811912012112212312412512612712812913013113213313413513613713813914014114214314414514614714814915015115215315415515615715815916016116216316416516616716816917017117217317417517617717817918018118218318418518618718818919019119219319419519619719819920020120220320420520620720820921021121221321421521621721821922022122222322422522622722822923023123223323423523623723823924024124224324424524624724824925025125225325425525625725825926026126226326426526626726826927027127227327427527627727827928028128228328428528628728828929029129229329429529629729829930030130230330430530630730830931031131231331431531631731831932032132232332432532632732832933033133233333433533633733833934034134234334434534634734834935035135235335435535635735835936036136236336436536636736836937037137237337437537637737837938038138238338438538638738838939039139239339439539639739839940040140240340440540640740840941041141241341441541641741841942042142242342442542642742842943043143243343443543643743843944044144244344444544644744844945045145245345445545645745845946046146246346446546646746846947047147247347447547647747847948048148248348448548648748848949049149249349449549649749849950050150250350450550650750850951051151251351451551651751851952052152252352452552652752852953053153253353453553653753853954054154254354454554654754854955055155255355455555655755855956056156256356456556656756856957057157257357457557657757857958058158258358458558658758858959059159259359459559659759859960060160260360460560660760860961061161261361461561661761861962062162262362462562662762862963063163263363463563663763863964064164264364464564664764864965065165265365465565665765865966066166266366466566666766866967067167267367467567667767867968068168268368468568668768868969069169269369469569669769869970070170270370470570670770870971071171271371471571671771871972072172272372472572672772872973073173273373473573673773873974074174274374474574674774874975075175275375475575675775875976076176276376476576676776876977077177277377477577677777877978078178278378478578678778878979079179279379479579679779879980080180280380480580680780880981081181281381481581681781881982082182282382482582682782882983083183283383483583683783883984084184284384484584684784884985085185285385485585685785885986086186286386486586686786886987087187287387487587687787887988088188288388488588688788888989089189289389489589689789889990090190290390490590690790890991091191291391491591691791891992092192292392492592692792892993093193293393493593693793893994094194294394494594694794894995095195295395495595695795895996096196296396496596696796896997097197297397497597697797897998098198298398498598698798898999099199299399499599699799899910001001100210031004100510061007100810091010101110121013101410151016101710181019102010211022102310241025102610271028102910301031103210331034103510361037103810391040104110421043104410451046104710481049105010511052105310541055105610571058105910601061106210631064106510661067106810691070107110721073107410751076107710781079108010811082108310841085108610871088108910901091109210931094109510961097109810991100110111021103110411051106110711081109111011111112111311141115111611171118111911201121112211231124112511261127112811291130113111321133113411351136113711381139114011411142114311441145114611471148114911501151115211531154115511561157115811591160116111621163116411651166116711681169117011711172117311741175117611771178117911801181118211831184118511861187118811891190119111921193
  1. //------------------------------------------------------------------------------
  2. // <auto-generated>
  3. // This code was generated by a tool.
  4. // Runtime Version:2.0.50727.42
  5. //
  6. // Changes to this file may cause incorrect behavior and will be lost if
  7. // the code is regenerated.
  8. // </auto-generated>
  9. //------------------------------------------------------------------------------
  10. using System;
  11. using System.ComponentModel;
  12. using System.Diagnostics;
  13. using System.CodeDom.Compiler;
  14. using System.Xml.Serialization;
  15. //
  16. // This source code was auto-generated by xsd, Version=2.0.50727.42.
  17. //
  18. namespace ExcelReaderWrite
  19. {
  20. /// <remarks/>
  21. [GeneratedCodeAttribute("xsd", "2.0.50727.42")]
  22. [SerializableAttribute]
  23. [DebuggerStepThroughAttribute]
  24. [DesignerCategoryAttribute("code")]
  25. [XmlTypeAttribute(Namespace = "http://ttnic.org/ExcelSchema.xsd", AnonymousType = true)]
  26. [XmlRootAttribute(Namespace = "http://ttnic.org/ExcelSchema.xsd", IsNullable = false)]
  27. public class ReportTemplete {
  28. private FixedSection[] fixedSectionField;
  29. private ExtendableSection[] extendableSectionField;
  30. private string templeteFileField;
  31. /// <remarks/>
  32. [XmlElementAttribute("FixedSection")]
  33. public FixedSection[] FixedSection {
  34. get {
  35. return fixedSectionField;
  36. }
  37. set {
  38. fixedSectionField = value;
  39. }
  40. }
  41. /// <remarks/>
  42. [XmlElementAttribute("ExtendableSection")]
  43. public ExtendableSection[] ExtendableSection {
  44. get {
  45. return extendableSectionField;
  46. }
  47. set {
  48. extendableSectionField = value;
  49. }
  50. }
  51. /// <remarks/>
  52. [XmlAttributeAttribute]
  53. public string TempleteFile {
  54. get {
  55. return templeteFileField;
  56. }
  57. set {
  58. templeteFileField = value;
  59. }
  60. }
  61. }
  62. /// <remarks/>
  63. [GeneratedCodeAttribute("xsd", "2.0.50727.42")]
  64. [SerializableAttribute]
  65. [DebuggerStepThroughAttribute]
  66. [DesignerCategoryAttribute("code")]
  67. [XmlTypeAttribute(Namespace = "http://ttnic.org/ExcelSchema.xsd")]
  68. public class FixedSection {
  69. private Cell[] cellField;
  70. private UnitCell[] unitCellField;
  71. private string describeField;
  72. private string nameField;
  73. private string sheetNameField;
  74. private string nullStringField;
  75. private string replateEndPostionField;
  76. private string replateStartPostionField;
  77. private bool rotateField;
  78. public FixedSection() {
  79. nullStringField = "";
  80. rotateField = false;
  81. }
  82. /// <remarks/>
  83. [XmlElementAttribute("Cell")]
  84. public Cell[] Cell {
  85. get {
  86. return cellField;
  87. }
  88. set {
  89. cellField = value;
  90. }
  91. }
  92. /// <remarks/>
  93. [XmlElementAttribute("UnitCell")]
  94. public UnitCell[] UnitCell {
  95. get {
  96. return unitCellField;
  97. }
  98. set {
  99. unitCellField = value;
  100. }
  101. }
  102. /// <remarks/>
  103. [XmlAttributeAttribute]
  104. public string Describe {
  105. get {
  106. return describeField;
  107. }
  108. set {
  109. describeField = value;
  110. }
  111. }
  112. /// <remarks/>
  113. [XmlAttributeAttribute]
  114. public string Name {
  115. get {
  116. return nameField;
  117. }
  118. set {
  119. nameField = value;
  120. }
  121. }
  122. /// <remarks/>
  123. [XmlAttributeAttribute]
  124. public string SheetName {
  125. get {
  126. return sheetNameField;
  127. }
  128. set {
  129. sheetNameField = value;
  130. }
  131. }
  132. /// <remarks/>
  133. [XmlAttributeAttribute]
  134. [DefaultValueAttribute("0")]
  135. public string NullString {
  136. get {
  137. return nullStringField;
  138. }
  139. set {
  140. nullStringField = value;
  141. }
  142. }
  143. /// <remarks/>
  144. [XmlAttributeAttribute]
  145. public string ReplateEndPostion {
  146. get {
  147. return replateEndPostionField;
  148. }
  149. set {
  150. replateEndPostionField = value;
  151. }
  152. }
  153. /// <remarks/>
  154. [XmlAttributeAttribute]
  155. public string ReplateStartPostion {
  156. get {
  157. return replateStartPostionField;
  158. }
  159. set {
  160. replateStartPostionField = value;
  161. }
  162. }
  163. /// <remarks/>
  164. [XmlAttributeAttribute]
  165. [DefaultValueAttribute(false)]
  166. public bool Rotate {
  167. get {
  168. return rotateField;
  169. }
  170. set {
  171. rotateField = value;
  172. }
  173. }
  174. }
  175. /// <remarks/>
  176. [GeneratedCodeAttribute("xsd", "2.0.50727.42")]
  177. [SerializableAttribute]
  178. [DebuggerStepThroughAttribute]
  179. [DesignerCategoryAttribute("code")]
  180. [XmlTypeAttribute(Namespace = "http://ttnic.org/ExcelSchema.xsd")]
  181. public class Cell {
  182. private string positionField;
  183. private string dataNameField;
  184. private string describeField;
  185. private string validationExpression;
  186. private bool validationEmpty;
  187. /// <remarks/>
  188. [XmlAttributeAttribute]
  189. public string Position {
  190. get {
  191. return positionField;
  192. }
  193. set {
  194. positionField = value;
  195. }
  196. }
  197. /// <remarks/>
  198. [XmlAttributeAttribute]
  199. public string DataName {
  200. get {
  201. return dataNameField;
  202. }
  203. set {
  204. dataNameField = value;
  205. }
  206. }
  207. /// <remarks/>
  208. [XmlAttributeAttribute]
  209. public string Describe {
  210. get {
  211. return describeField;
  212. }
  213. set {
  214. describeField = value;
  215. }
  216. }
  217. /// <remarks/>
  218. [XmlAttributeAttribute]
  219. public string ValidationExpression {
  220. get {
  221. return validationExpression;
  222. }
  223. set {
  224. validationExpression = value;
  225. }
  226. }
  227. /// <remarks/>
  228. [XmlAttributeAttribute]
  229. [DefaultValueAttribute(false)]
  230. public bool ValidationEmpty {
  231. get {
  232. return validationEmpty;
  233. }
  234. set {
  235. validationEmpty = value;
  236. }
  237. }
  238. }
  239. /// <remarks/>
  240. [GeneratedCodeAttribute("xsd", "2.0.50727.42")]
  241. [SerializableAttribute]
  242. [DebuggerStepThroughAttribute]
  243. [DesignerCategoryAttribute("code")]
  244. [XmlTypeAttribute(Namespace = "http://ttnic.org/ExcelSchema.xsd")]
  245. public class RowDefine {
  246. private string dataNameField;
  247. private string describeField;
  248. private string positionField;
  249. private string validationExpression;
  250. private bool validationEmpty;
  251. private bool unique;
  252. /// <remarks/>
  253. [XmlAttributeAttribute]
  254. public string DataName {
  255. get {
  256. return dataNameField;
  257. }
  258. set {
  259. dataNameField = value;
  260. }
  261. }
  262. /// <remarks/>
  263. [XmlAttributeAttribute]
  264. public string Describe {
  265. get {
  266. return describeField;
  267. }
  268. set {
  269. describeField = value;
  270. }
  271. }
  272. /// <remarks/>
  273. [XmlAttributeAttribute]
  274. public string Position {
  275. get {
  276. return positionField;
  277. }
  278. set {
  279. positionField = value;
  280. }
  281. }
  282. /// <remarks/>
  283. [XmlAttributeAttribute]
  284. public string ValidationExpression {
  285. get {
  286. return validationExpression;
  287. }
  288. set {
  289. validationExpression = value;
  290. }
  291. }
  292. /// <remarks/>
  293. [XmlAttributeAttribute]
  294. [DefaultValueAttribute(false)]
  295. public bool ValidationEmpty {
  296. get {
  297. return validationEmpty;
  298. }
  299. set {
  300. validationEmpty = value;
  301. }
  302. }
  303. /// <remarks/>
  304. [XmlAttributeAttribute]
  305. [DefaultValueAttribute(false)]
  306. public bool Unique {
  307. get {
  308. return unique;
  309. }
  310. set {
  311. unique = value;
  312. }
  313. }
  314. }
  315. /// <remarks/>
  316. [GeneratedCodeAttribute("xsd", "2.0.50727.42")]
  317. [SerializableAttribute]
  318. [DebuggerStepThroughAttribute]
  319. [DesignerCategoryAttribute("code")]
  320. [XmlTypeAttribute(Namespace = "http://ttnic.org/ExcelSchema.xsd")]
  321. public class ExtendableSection {
  322. private RowDefine[] rowDefineField;
  323. private string sheetNameField;
  324. private string nameField;
  325. private string descirbeField;
  326. private string positionField;
  327. private bool rotateField;
  328. private string nullStringField;
  329. private string downloadMaxCountField;
  330. private string uploadMaxCountField;
  331. public ExtendableSection() {
  332. rotateField = true;
  333. nullStringField = "";
  334. }
  335. /// <remarks/>
  336. [XmlElementAttribute("RowDefine")]
  337. public RowDefine[] RowDefine {
  338. get {
  339. return rowDefineField;
  340. }
  341. set {
  342. rowDefineField = value;
  343. }
  344. }
  345. /// <remarks/>
  346. [XmlAttributeAttribute]
  347. public string SheetName {
  348. get {
  349. return sheetNameField;
  350. }
  351. set {
  352. sheetNameField = value;
  353. }
  354. }
  355. /// <remarks/>
  356. [XmlAttributeAttribute]
  357. public string Name {
  358. get {
  359. return nameField;
  360. }
  361. set {
  362. nameField = value;
  363. }
  364. }
  365. /// <remarks/>
  366. [XmlAttributeAttribute]
  367. public string Descirbe {
  368. get {
  369. return descirbeField;
  370. }
  371. set {
  372. descirbeField = value;
  373. }
  374. }
  375. /// <remarks/>
  376. [XmlAttributeAttribute]
  377. public string Position {
  378. get {
  379. return positionField;
  380. }
  381. set {
  382. positionField = value;
  383. }
  384. }
  385. /// <remarks/>
  386. [XmlAttributeAttribute]
  387. [DefaultValueAttribute(true)]
  388. public bool Rotate {
  389. get {
  390. return rotateField;
  391. }
  392. set {
  393. rotateField = value;
  394. }
  395. }
  396. /// <remarks/>
  397. [XmlAttributeAttribute]
  398. [DefaultValueAttribute("0")]
  399. public string NullString {
  400. get {
  401. return nullStringField;
  402. }
  403. set {
  404. nullStringField = value;
  405. }
  406. }
  407. /// <remarks/>
  408. [XmlAttributeAttribute]
  409. [DefaultValueAttribute("")]
  410. public string DownloadMaxCount {
  411. get {
  412. return downloadMaxCountField;
  413. }
  414. set {
  415. downloadMaxCountField = value;
  416. }
  417. }
  418. /// <remarks/>
  419. [XmlAttributeAttribute]
  420. [DefaultValueAttribute("")]
  421. public string UploadMaxCount {
  422. get {
  423. return uploadMaxCountField;
  424. }
  425. set {
  426. uploadMaxCountField = value;
  427. }
  428. }
  429. }
  430. /// <remarks/>
  431. [GeneratedCodeAttribute("xsd", "2.0.50727.42")]
  432. [SerializableAttribute]
  433. [DebuggerStepThroughAttribute]
  434. [DesignerCategoryAttribute("code")]
  435. [XmlTypeAttribute(Namespace = "http://ttnic.org/ExcelSchema.xsd")]
  436. public class BorderInfo {
  437. private BorderWeight borderWeightField;
  438. private Color borderColorField;
  439. private BorderEdge borderEdgeField;
  440. private LineStype lineStypeField;
  441. public BorderInfo() {
  442. borderWeightField = BorderWeight.xlNone;
  443. borderColorField = Color.Black;
  444. lineStypeField = LineStype.xlNone;
  445. }
  446. /// <remarks/>
  447. [XmlAttributeAttribute]
  448. [DefaultValueAttribute(BorderWeight.xlNone)]
  449. public BorderWeight BorderWeight {
  450. get {
  451. return borderWeightField;
  452. }
  453. set {
  454. borderWeightField = value;
  455. }
  456. }
  457. /// <remarks/>
  458. [XmlAttributeAttribute]
  459. [DefaultValueAttribute(Color.Black)]
  460. public Color BorderColor {
  461. get {
  462. return borderColorField;
  463. }
  464. set {
  465. borderColorField = value;
  466. }
  467. }
  468. /// <remarks/>
  469. [XmlAttributeAttribute]
  470. public BorderEdge BorderEdge {
  471. get {
  472. return borderEdgeField;
  473. }
  474. set {
  475. borderEdgeField = value;
  476. }
  477. }
  478. /// <remarks/>
  479. [XmlAttributeAttribute]
  480. [DefaultValueAttribute(LineStype.xlNone)]
  481. public LineStype LineStype {
  482. get {
  483. return lineStypeField;
  484. }
  485. set {
  486. lineStypeField = value;
  487. }
  488. }
  489. }
  490. /// <remarks/>
  491. [GeneratedCodeAttribute("xsd", "2.0.50727.42")]
  492. [SerializableAttribute]
  493. [XmlTypeAttribute(Namespace = "http://ttnic.org/ExcelSchema.xsd")]
  494. public enum BorderWeight {
  495. /// <remarks/>
  496. xlThin,
  497. /// <remarks/>
  498. xlThick,
  499. /// <remarks/>
  500. xlMedium,
  501. /// <remarks/>
  502. xlHairline,
  503. /// <remarks/>
  504. xlNone,
  505. }
  506. /// <remarks/>
  507. [GeneratedCodeAttribute("xsd", "2.0.50727.42")]
  508. [SerializableAttribute]
  509. [XmlTypeAttribute(Namespace = "http://ttnic.org/ExcelSchema.xsd")]
  510. public enum Color {
  511. /// <remarks/>
  512. None,
  513. /// <remarks/>
  514. Auto,
  515. /// <remarks/>
  516. Black,
  517. /// <remarks/>
  518. Brown,
  519. /// <remarks/>
  520. Olive,
  521. /// <remarks/>
  522. DeepLime,
  523. /// <remarks/>
  524. DeepGreen,
  525. /// <remarks/>
  526. DeepBlue,
  527. /// <remarks/>
  528. DarkBlue,
  529. /// <remarks/>
  530. Gray80,
  531. /// <remarks/>
  532. DeepRed,
  533. /// <remarks/>
  534. Orange,
  535. /// <remarks/>
  536. DeepOrange,
  537. /// <remarks/>
  538. Green,
  539. /// <remarks/>
  540. Lime,
  541. /// <remarks/>
  542. Blue,
  543. /// <remarks/>
  544. BlueGray,
  545. /// <remarks/>
  546. Gray50,
  547. /// <remarks/>
  548. Red,
  549. /// <remarks/>
  550. LightOrange,
  551. /// <remarks/>
  552. SliverOrange,
  553. /// <remarks/>
  554. SeaGreen,
  555. /// <remarks/>
  556. WaterGreen,
  557. /// <remarks/>
  558. LittleBlue,
  559. /// <remarks/>
  560. Violet,
  561. /// <remarks/>
  562. Gray40,
  563. /// <remarks/>
  564. Pink,
  565. /// <remarks/>
  566. Golden,
  567. /// <remarks/>
  568. Yellow,
  569. /// <remarks/>
  570. SpringGreen,
  571. /// <remarks/>
  572. LimeGreen,
  573. /// <remarks/>
  574. SkyBlue,
  575. /// <remarks/>
  576. Crimson,
  577. /// <remarks/>
  578. Gray25,
  579. /// <remarks/>
  580. Rose,
  581. /// <remarks/>
  582. Tea,
  583. /// <remarks/>
  584. LightYellow,
  585. /// <remarks/>
  586. LightGreen,
  587. /// <remarks/>
  588. LightLimeGreen,
  589. /// <remarks/>
  590. LightBlue,
  591. /// <remarks/>
  592. lilac,
  593. /// <remarks/>
  594. White,
  595. }
  596. /// <remarks/>
  597. [GeneratedCodeAttribute("xsd", "2.0.50727.42")]
  598. [SerializableAttribute]
  599. [XmlTypeAttribute(Namespace = "http://ttnic.org/ExcelSchema.xsd")]
  600. public enum BorderEdge {
  601. /// <remarks/>
  602. xlEdgeTop,
  603. /// <remarks/>
  604. xlEdgeBottom,
  605. /// <remarks/>
  606. xlEdgeLeft,
  607. /// <remarks/>
  608. xlEdgeRight,
  609. /// <remarks/>
  610. xlInsideHorizontal,
  611. /// <remarks/>
  612. xlInsideVertical,
  613. /// <remarks/>
  614. xlDiagonalDown,
  615. /// <remarks/>
  616. xlDiagonalUp,
  617. }
  618. /// <remarks/>
  619. [GeneratedCodeAttribute("xsd", "2.0.50727.42")]
  620. [SerializableAttribute]
  621. [XmlTypeAttribute(Namespace = "http://ttnic.org/ExcelSchema.xsd")]
  622. public enum LineStype {
  623. /// <remarks/>
  624. xlContinuous,
  625. /// <remarks/>
  626. xlDash,
  627. /// <remarks/>
  628. xlDashDot,
  629. /// <remarks/>
  630. xlDashDotDot,
  631. /// <remarks/>
  632. xlDot,
  633. /// <remarks/>
  634. xlDoubleLine,
  635. /// <remarks/>
  636. xlNone,
  637. /// <remarks/>
  638. xlSlantDashDot,
  639. }
  640. /// <remarks/>
  641. [GeneratedCodeAttribute("xsd", "2.0.50727.42")]
  642. [SerializableAttribute]
  643. [DebuggerStepThroughAttribute]
  644. [DesignerCategoryAttribute("code")]
  645. [XmlTypeAttribute(Namespace = "http://ttnic.org/ExcelSchema.xsd")]
  646. public class ImageInfo {
  647. private string imagePathField;
  648. private decimal imageWidthField;
  649. private decimal imageHeightField;
  650. private decimal paddLeftTopField;
  651. public ImageInfo() {
  652. imageWidthField = 0m;
  653. imageHeightField = 0m;
  654. paddLeftTopField = 0.0m;
  655. }
  656. /// <remarks/>
  657. [XmlAttributeAttribute]
  658. public string ImagePath {
  659. get {
  660. return imagePathField;
  661. }
  662. set {
  663. imagePathField = value;
  664. }
  665. }
  666. /// <remarks/>
  667. [XmlAttributeAttribute]
  668. [DefaultValueAttribute(typeof(decimal), "0")]
  669. public decimal ImageWidth {
  670. get {
  671. return imageWidthField;
  672. }
  673. set {
  674. imageWidthField = value;
  675. }
  676. }
  677. /// <remarks/>
  678. [XmlAttributeAttribute]
  679. [DefaultValueAttribute(typeof(decimal), "0")]
  680. public decimal ImageHeight {
  681. get {
  682. return imageHeightField;
  683. }
  684. set {
  685. imageHeightField = value;
  686. }
  687. }
  688. /// <remarks/>
  689. [XmlAttributeAttribute]
  690. [DefaultValueAttribute(typeof(decimal), "0.0")]
  691. public decimal PaddLeftTop {
  692. get {
  693. return paddLeftTopField;
  694. }
  695. set {
  696. paddLeftTopField = value;
  697. }
  698. }
  699. }
  700. /// <remarks/>
  701. [GeneratedCodeAttribute("xsd", "2.0.50727.42")]
  702. [SerializableAttribute]
  703. [DebuggerStepThroughAttribute]
  704. [DesignerCategoryAttribute("code")]
  705. [XmlTypeAttribute(Namespace = "http://ttnic.org/ExcelSchema.xsd")]
  706. public class FontInfo {
  707. private string fontNameField;
  708. private Color fontColorField;
  709. private bool isBoldField;
  710. private string fontSizeField;
  711. private UnderLine underLineField;
  712. private bool isItalicField;
  713. private string orientation;
  714. public FontInfo() {
  715. fontColorField = Color.None;
  716. isBoldField = false;
  717. underLineField = UnderLine.xlNone;
  718. isItalicField = false;
  719. }
  720. /// <remarks/>
  721. [XmlAttributeAttribute]
  722. public string FontName {
  723. get {
  724. return fontNameField;
  725. }
  726. set {
  727. fontNameField = value;
  728. }
  729. }
  730. /// <remarks/>
  731. [XmlAttributeAttribute]
  732. public string Orientation {
  733. get {
  734. return orientation;
  735. }
  736. set {
  737. orientation = value;
  738. }
  739. }
  740. /// <remarks/>
  741. [XmlAttributeAttribute]
  742. [DefaultValueAttribute(Color.None)]
  743. public Color FontColor {
  744. get {
  745. return fontColorField;
  746. }
  747. set {
  748. fontColorField = value;
  749. }
  750. }
  751. /// <remarks/>
  752. [XmlAttributeAttribute]
  753. [DefaultValueAttribute(false)]
  754. public bool IsBold {
  755. get {
  756. return isBoldField;
  757. }
  758. set {
  759. isBoldField = value;
  760. }
  761. }
  762. /// <remarks/>
  763. [XmlAttributeAttribute]
  764. public string FontSize {
  765. get {
  766. return fontSizeField;
  767. }
  768. set {
  769. fontSizeField = value;
  770. }
  771. }
  772. /// <remarks/>
  773. [XmlAttributeAttribute]
  774. [DefaultValueAttribute(UnderLine.xlNone)]
  775. public UnderLine UnderLine {
  776. get {
  777. return underLineField;
  778. }
  779. set {
  780. underLineField = value;
  781. }
  782. }
  783. /// <remarks/>
  784. [XmlAttributeAttribute]
  785. [DefaultValueAttribute(false)]
  786. public bool IsItalic {
  787. get {
  788. return isItalicField;
  789. }
  790. set {
  791. isItalicField = value;
  792. }
  793. }
  794. }
  795. /// <remarks/>
  796. [GeneratedCodeAttribute("xsd", "2.0.50727.42")]
  797. [SerializableAttribute]
  798. [XmlTypeAttribute(Namespace = "http://ttnic.org/ExcelSchema.xsd")]
  799. public enum UnderLine {
  800. /// <remarks/>
  801. xlNone,
  802. /// <remarks/>
  803. xlDouble,
  804. /// <remarks/>
  805. xlDoubleFill,
  806. /// <remarks/>
  807. xlSingle,
  808. /// <remarks/>
  809. xlSingleFill,
  810. }
  811. /// <remarks/>
  812. [GeneratedCodeAttribute("xsd", "2.0.50727.42")]
  813. [SerializableAttribute]
  814. [DebuggerStepThroughAttribute]
  815. [DesignerCategoryAttribute("code")]
  816. [XmlTypeAttribute(Namespace = "http://ttnic.org/ExcelSchema.xsd")]
  817. public class UnitCell {
  818. private FontInfo fontInfoField;
  819. private ImageInfo imageInfoField;
  820. private BorderInfo[] borderInfoField;
  821. private string startPointField;
  822. private string endPointField;
  823. private string textField;
  824. private VAlign vAlignField;
  825. private HAlign hAlignField;
  826. private Color backColorField;
  827. private string describeField;
  828. private bool isImageField;
  829. public UnitCell() {
  830. textField = " ";
  831. vAlignField = VAlign.xlVAlignCenter;
  832. hAlignField = HAlign.xlHAlignCenter;
  833. backColorField = Color.None;
  834. isImageField = false;
  835. }
  836. /// <remarks/>
  837. public FontInfo FontInfo {
  838. get {
  839. return fontInfoField;
  840. }
  841. set {
  842. fontInfoField = value;
  843. }
  844. }
  845. /// <remarks/>
  846. public ImageInfo ImageInfo {
  847. get {
  848. return imageInfoField;
  849. }
  850. set {
  851. imageInfoField = value;
  852. }
  853. }
  854. /// <remarks/>
  855. [XmlElementAttribute("BorderInfo")]
  856. public BorderInfo[] BorderInfo {
  857. get {
  858. return borderInfoField;
  859. }
  860. set {
  861. borderInfoField = value;
  862. }
  863. }
  864. /// <remarks/>
  865. [XmlAttributeAttribute]
  866. public string StartPoint {
  867. get {
  868. return startPointField;
  869. }
  870. set {
  871. startPointField = value;
  872. }
  873. }
  874. /// <remarks/>
  875. [XmlAttributeAttribute]
  876. public string EndPoint {
  877. get {
  878. return endPointField;
  879. }
  880. set {
  881. endPointField = value;
  882. }
  883. }
  884. /// <remarks/>
  885. [XmlAttributeAttribute]
  886. [DefaultValueAttribute(" ")]
  887. public string Text {
  888. get {
  889. return textField;
  890. }
  891. set {
  892. textField = value;
  893. }
  894. }
  895. /// <remarks/>
  896. [XmlAttributeAttribute]
  897. [DefaultValueAttribute(VAlign.xlVAlignCenter)]
  898. public VAlign VAlign {
  899. get {
  900. return vAlignField;
  901. }
  902. set {
  903. vAlignField = value;
  904. }
  905. }
  906. /// <remarks/>
  907. [XmlAttributeAttribute]
  908. [DefaultValueAttribute(HAlign.xlHAlignCenter)]
  909. public HAlign HAlign {
  910. get {
  911. return hAlignField;
  912. }
  913. set {
  914. hAlignField = value;
  915. }
  916. }
  917. /// <remarks/>
  918. [XmlAttributeAttribute]
  919. [DefaultValueAttribute(Color.None)]
  920. public Color BackColor {
  921. get {
  922. return backColorField;
  923. }
  924. set {
  925. backColorField = value;
  926. }
  927. }
  928. /// <remarks/>
  929. [XmlAttributeAttribute]
  930. public string Describe {
  931. get {
  932. return describeField;
  933. }
  934. set {
  935. describeField = value;
  936. }
  937. }
  938. /// <remarks/>
  939. [XmlAttributeAttribute]
  940. [DefaultValueAttribute(false)]
  941. public bool IsImage {
  942. get {
  943. return isImageField;
  944. }
  945. set {
  946. isImageField = value;
  947. }
  948. }
  949. }
  950. /// <remarks/>
  951. [GeneratedCodeAttribute("xsd", "2.0.50727.42")]
  952. [SerializableAttribute]
  953. [XmlTypeAttribute(Namespace = "http://ttnic.org/ExcelSchema.xsd")]
  954. public enum VAlign {
  955. /// <remarks/>
  956. xlVAlignTop,
  957. /// <remarks/>
  958. xlVAlignCenter,
  959. /// <remarks/>
  960. xlVAlignBottom,
  961. /// <remarks/>
  962. xlVAlignJustify,
  963. /// <remarks/>
  964. xlVAlignDistributed,
  965. }
  966. /// <remarks/>
  967. [GeneratedCodeAttribute("xsd", "2.0.50727.42")]
  968. [SerializableAttribute]
  969. [XmlTypeAttribute(Namespace = "http://ttnic.org/ExcelSchema.xsd")]
  970. public enum HAlign {
  971. /// <remarks/>
  972. xlHAlignGeneral,
  973. /// <remarks/>
  974. xlHAlignLeft,
  975. /// <remarks/>
  976. xlHAlignCenter,
  977. /// <remarks/>
  978. xlHAlignRight,
  979. /// <remarks/>
  980. xlHAlignFill,
  981. /// <remarks/>
  982. xlHAlignJustify,
  983. /// <remarks/>
  984. xlHAlignCenterAcrossSelection,
  985. /// <remarks/>
  986. xlHAlignDistributed,
  987. }
  988. }