Du kan inte välja fler än 25 ämnen Ämnen måste starta med en bokstav eller siffra, kan innehålla bindestreck ('-') och vara max 35 tecken långa.

_Enumerations.cs 12KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595596597598599600601602603604605606607608609610611612613614615616617618619620621622623624625626627628629630631632633634635636637638639640641642643644645646647648649650651652653654655656657658659
  1. namespace Novacode
  2. {
  3. public enum ListItemType
  4. {
  5. Bulleted,
  6. Numbered
  7. }
  8. public enum SectionBreakType
  9. {
  10. defaultNextPage,
  11. evenPage,
  12. oddPage,
  13. continuous
  14. }
  15. public enum ContainerType
  16. {
  17. None,
  18. TOC,
  19. Section,
  20. Cell,
  21. Table,
  22. Header,
  23. Footer,
  24. Paragraph,
  25. Body
  26. }
  27. public enum PageNumberFormat
  28. {
  29. normal,
  30. roman
  31. }
  32. public enum BorderSize
  33. {
  34. one,
  35. two,
  36. three,
  37. four,
  38. five,
  39. six,
  40. seven,
  41. eight,
  42. nine
  43. }
  44. public enum EditRestrictions
  45. {
  46. none,
  47. readOnly,
  48. forms,
  49. comments,
  50. trackedChanges
  51. }
  52. /// <summary>
  53. /// Table Cell Border styles
  54. /// Added by lckuiper @ 20101117
  55. /// source: http://msdn.microsoft.com/en-us/library/documentformat.openxml.wordprocessing.tablecellborders.aspx
  56. /// </summary>
  57. public enum BorderStyle
  58. {
  59. Tcbs_none = 0,
  60. Tcbs_single,
  61. Tcbs_thick,
  62. Tcbs_double,
  63. Tcbs_dotted,
  64. Tcbs_dashed,
  65. Tcbs_dotDash,
  66. Tcbs_dotDotDash,
  67. Tcbs_triple,
  68. Tcbs_thinThickSmallGap,
  69. Tcbs_thickThinSmallGap,
  70. Tcbs_thinThickThinSmallGap,
  71. Tcbs_thinThickMediumGap,
  72. Tcbs_thickThinMediumGap,
  73. Tcbs_thinThickThinMediumGap,
  74. Tcbs_thinThickLargeGap,
  75. Tcbs_thickThinLargeGap,
  76. Tcbs_thinThickThinLargeGap,
  77. Tcbs_wave,
  78. Tcbs_doubleWave,
  79. Tcbs_dashSmallGap,
  80. Tcbs_dashDotStroked,
  81. Tcbs_threeDEmboss,
  82. Tcbs_threeDEngrave,
  83. Tcbs_outset,
  84. Tcbs_inset,
  85. Tcbs_nil
  86. }
  87. /// <summary>
  88. /// Table Cell Border Types
  89. /// Added by lckuiper @ 20101117
  90. /// source: http://msdn.microsoft.com/en-us/library/documentformat.openxml.wordprocessing.tablecellborders.aspx
  91. /// </summary>
  92. public enum TableCellBorderType
  93. {
  94. Top,
  95. Bottom,
  96. Left,
  97. Right,
  98. InsideH,
  99. InsideV,
  100. TopLeftToBottomRight,
  101. TopRightToBottomLeft
  102. }
  103. /// <summary>
  104. /// Table Border Types
  105. /// Added by lckuiper @ 20101117
  106. /// source: http://msdn.microsoft.com/en-us/library/documentformat.openxml.wordprocessing.tableborders.aspx
  107. /// </summary>
  108. public enum TableBorderType
  109. {
  110. Top,
  111. Bottom,
  112. Left,
  113. Right,
  114. InsideH,
  115. InsideV
  116. }
  117. // Patch 7398 added by lckuiper on Nov 16th 2010 @ 2:23 PM
  118. public enum VerticalAlignment
  119. {
  120. Top,
  121. Center,
  122. Bottom
  123. };
  124. public enum Orientation
  125. {
  126. Portrait,
  127. Landscape
  128. };
  129. public enum XmlDocument
  130. {
  131. Main,
  132. HeaderOdd,
  133. HeaderEven,
  134. HeaderFirst,
  135. FooterOdd,
  136. FooterEven,
  137. FooterFirst
  138. };
  139. public enum MatchFormattingOptions
  140. {
  141. ExactMatch,
  142. SubsetMatch
  143. };
  144. public enum Script
  145. {
  146. superscript,
  147. subscript,
  148. none
  149. }
  150. public enum Highlight
  151. {
  152. yellow,
  153. green,
  154. cyan,
  155. magenta,
  156. blue,
  157. red,
  158. darkBlue,
  159. darkCyan,
  160. darkGreen,
  161. darkMagenta,
  162. darkRed,
  163. darkYellow,
  164. darkGray,
  165. lightGray,
  166. black,
  167. none
  168. };
  169. public enum UnderlineStyle
  170. {
  171. none,
  172. singleLine,
  173. doubleLine,
  174. thick,
  175. dotted,
  176. dottedHeavy,
  177. dash,
  178. dashedHeavy,
  179. dashLong,
  180. dashLongHeavy,
  181. dotDash,
  182. dashDotHeavy,
  183. dotDotDash,
  184. dashDotDotHeavy,
  185. wave,
  186. wavyHeavy,
  187. wavyDouble,
  188. words
  189. };
  190. public enum StrikeThrough
  191. {
  192. none,
  193. strike,
  194. doubleStrike
  195. };
  196. public enum Misc
  197. {
  198. none,
  199. shadow,
  200. outline,
  201. outlineShadow,
  202. emboss,
  203. engrave
  204. };
  205. /// <summary>
  206. /// Change the caps style of text, for use with Append and AppendLine.
  207. /// </summary>
  208. public enum CapsStyle
  209. {
  210. /// <summary>
  211. /// No caps, make all characters are lowercase.
  212. /// </summary>
  213. none,
  214. /// <summary>
  215. /// All caps, make every character uppercase.
  216. /// </summary>
  217. caps,
  218. /// <summary>
  219. /// Small caps, make all characters capital but with a small font size.
  220. /// </summary>
  221. smallCaps
  222. };
  223. /// <summary>
  224. /// Designs\Styles that can be applied to a table.
  225. /// </summary>
  226. public enum TableDesign
  227. {
  228. Custom,
  229. TableNormal,
  230. TableGrid,
  231. LightShading,
  232. LightShadingAccent1,
  233. LightShadingAccent2,
  234. LightShadingAccent3,
  235. LightShadingAccent4,
  236. LightShadingAccent5,
  237. LightShadingAccent6,
  238. LightList,
  239. LightListAccent1,
  240. LightListAccent2,
  241. LightListAccent3,
  242. LightListAccent4,
  243. LightListAccent5,
  244. LightListAccent6,
  245. LightGrid,
  246. LightGridAccent1,
  247. LightGridAccent2,
  248. LightGridAccent3,
  249. LightGridAccent4,
  250. LightGridAccent5,
  251. LightGridAccent6,
  252. MediumShading1,
  253. MediumShading1Accent1,
  254. MediumShading1Accent2,
  255. MediumShading1Accent3,
  256. MediumShading1Accent4,
  257. MediumShading1Accent5,
  258. MediumShading1Accent6,
  259. MediumShading2,
  260. MediumShading2Accent1,
  261. MediumShading2Accent2,
  262. MediumShading2Accent3,
  263. MediumShading2Accent4,
  264. MediumShading2Accent5,
  265. MediumShading2Accent6,
  266. MediumList1,
  267. MediumList1Accent1,
  268. MediumList1Accent2,
  269. MediumList1Accent3,
  270. MediumList1Accent4,
  271. MediumList1Accent5,
  272. MediumList1Accent6,
  273. MediumList2,
  274. MediumList2Accent1,
  275. MediumList2Accent2,
  276. MediumList2Accent3,
  277. MediumList2Accent4,
  278. MediumList2Accent5,
  279. MediumList2Accent6,
  280. MediumGrid1,
  281. MediumGrid1Accent1,
  282. MediumGrid1Accent2,
  283. MediumGrid1Accent3,
  284. MediumGrid1Accent4,
  285. MediumGrid1Accent5,
  286. MediumGrid1Accent6,
  287. MediumGrid2,
  288. MediumGrid2Accent1,
  289. MediumGrid2Accent2,
  290. MediumGrid2Accent3,
  291. MediumGrid2Accent4,
  292. MediumGrid2Accent5,
  293. MediumGrid2Accent6,
  294. MediumGrid3,
  295. MediumGrid3Accent1,
  296. MediumGrid3Accent2,
  297. MediumGrid3Accent3,
  298. MediumGrid3Accent4,
  299. MediumGrid3Accent5,
  300. MediumGrid3Accent6,
  301. DarkList,
  302. DarkListAccent1,
  303. DarkListAccent2,
  304. DarkListAccent3,
  305. DarkListAccent4,
  306. DarkListAccent5,
  307. DarkListAccent6,
  308. ColorfulShading,
  309. ColorfulShadingAccent1,
  310. ColorfulShadingAccent2,
  311. ColorfulShadingAccent3,
  312. ColorfulShadingAccent4,
  313. ColorfulShadingAccent5,
  314. ColorfulShadingAccent6,
  315. ColorfulList,
  316. ColorfulListAccent1,
  317. ColorfulListAccent2,
  318. ColorfulListAccent3,
  319. ColorfulListAccent4,
  320. ColorfulListAccent5,
  321. ColorfulListAccent6,
  322. ColorfulGrid,
  323. ColorfulGridAccent1,
  324. ColorfulGridAccent2,
  325. ColorfulGridAccent3,
  326. ColorfulGridAccent4,
  327. ColorfulGridAccent5,
  328. ColorfulGridAccent6,
  329. None
  330. };
  331. /// <summary>
  332. /// How a Table should auto resize.
  333. /// </summary>
  334. public enum AutoFit
  335. {
  336. /// <summary>
  337. /// Autofit to Table contents.
  338. /// </summary>
  339. Contents,
  340. /// <summary>
  341. /// Autofit to Window.
  342. /// </summary>
  343. Window,
  344. /// <summary>
  345. /// Autofit to Column width.
  346. /// </summary>
  347. ColumnWidth
  348. };
  349. public enum RectangleShapes
  350. {
  351. rect,
  352. roundRect,
  353. snip1Rect,
  354. snip2SameRect,
  355. snip2DiagRect,
  356. snipRoundRect,
  357. round1Rect,
  358. round2SameRect,
  359. round2DiagRect
  360. };
  361. public enum BasicShapes
  362. {
  363. ellipse,
  364. triangle,
  365. rtTriangle,
  366. parallelogram,
  367. trapezoid,
  368. diamond,
  369. pentagon,
  370. hexagon,
  371. heptagon,
  372. octagon,
  373. decagon,
  374. dodecagon,
  375. pie,
  376. chord,
  377. teardrop,
  378. frame,
  379. halfFrame,
  380. corner,
  381. diagStripe,
  382. plus,
  383. plaque,
  384. can,
  385. cube,
  386. bevel,
  387. donut,
  388. noSmoking,
  389. blockArc,
  390. foldedCorner,
  391. smileyFace,
  392. heart,
  393. lightningBolt,
  394. sun,
  395. moon,
  396. cloud,
  397. arc,
  398. backetPair,
  399. bracePair,
  400. leftBracket,
  401. rightBracket,
  402. leftBrace,
  403. rightBrace
  404. };
  405. public enum BlockArrowShapes
  406. {
  407. rightArrow,
  408. leftArrow,
  409. upArrow,
  410. downArrow,
  411. leftRightArrow,
  412. upDownArrow,
  413. quadArrow,
  414. leftRightUpArrow,
  415. bentArrow,
  416. uturnArrow,
  417. leftUpArrow,
  418. bentUpArrow,
  419. curvedRightArrow,
  420. curvedLeftArrow,
  421. curvedUpArrow,
  422. curvedDownArrow,
  423. stripedRightArrow,
  424. notchedRightArrow,
  425. homePlate,
  426. chevron,
  427. rightArrowCallout,
  428. downArrowCallout,
  429. leftArrowCallout,
  430. upArrowCallout,
  431. leftRightArrowCallout,
  432. quadArrowCallout,
  433. circularArrow
  434. };
  435. public enum EquationShapes
  436. {
  437. mathPlus,
  438. mathMinus,
  439. mathMultiply,
  440. mathDivide,
  441. mathEqual,
  442. mathNotEqual
  443. };
  444. public enum FlowchartShapes
  445. {
  446. flowChartProcess,
  447. flowChartAlternateProcess,
  448. flowChartDecision,
  449. flowChartInputOutput,
  450. flowChartPredefinedProcess,
  451. flowChartInternalStorage,
  452. flowChartDocument,
  453. flowChartMultidocument,
  454. flowChartTerminator,
  455. flowChartPreparation,
  456. flowChartManualInput,
  457. flowChartManualOperation,
  458. flowChartConnector,
  459. flowChartOffpageConnector,
  460. flowChartPunchedCard,
  461. flowChartPunchedTape,
  462. flowChartSummingJunction,
  463. flowChartOr,
  464. flowChartCollate,
  465. flowChartSort,
  466. flowChartExtract,
  467. flowChartMerge,
  468. flowChartOnlineStorage,
  469. flowChartDelay,
  470. flowChartMagneticTape,
  471. flowChartMagneticDisk,
  472. flowChartMagneticDrum,
  473. flowChartDisplay
  474. };
  475. public enum StarAndBannerShapes
  476. {
  477. irregularSeal1,
  478. irregularSeal2,
  479. star4,
  480. star5,
  481. star6,
  482. star7,
  483. star8,
  484. star10,
  485. star12,
  486. star16,
  487. star24,
  488. star32,
  489. ribbon,
  490. ribbon2,
  491. ellipseRibbon,
  492. ellipseRibbon2,
  493. verticalScroll,
  494. horizontalScroll,
  495. wave,
  496. doubleWave
  497. };
  498. public enum CalloutShapes
  499. {
  500. wedgeRectCallout,
  501. wedgeRoundRectCallout,
  502. wedgeEllipseCallout,
  503. cloudCallout,
  504. borderCallout1,
  505. borderCallout2,
  506. borderCallout3,
  507. accentCallout1,
  508. accentCallout2,
  509. accentCallout3,
  510. callout1,
  511. callout2,
  512. callout3,
  513. accentBorderCallout1,
  514. accentBorderCallout2,
  515. accentBorderCallout3
  516. };
  517. /// <summary>
  518. /// Text alignment of a Paragraph.
  519. /// </summary>
  520. public enum Alignment
  521. {
  522. /// <summary>
  523. /// Align Paragraph to the left.
  524. /// </summary>
  525. left,
  526. /// <summary>
  527. /// Align Paragraph as centered.
  528. /// </summary>
  529. center,
  530. /// <summary>
  531. /// Align Paragraph to the right.
  532. /// </summary>
  533. right,
  534. /// <summary>
  535. /// (Justified) Align Paragraph to both the left and right margins, adding extra space between content as necessary.
  536. /// </summary>
  537. both
  538. };
  539. public enum Direction
  540. {
  541. LeftToRight,
  542. RightToLeft
  543. };
  544. /// <summary>
  545. /// Paragraph edit types
  546. /// </summary>
  547. internal enum EditType
  548. {
  549. /// <summary>
  550. /// A ins is a tracked insertion
  551. /// </summary>
  552. ins,
  553. /// <summary>
  554. /// A del is tracked deletion
  555. /// </summary>
  556. del
  557. }
  558. /// <summary>
  559. /// Custom property types.
  560. /// </summary>
  561. internal enum CustomPropertyType
  562. {
  563. /// <summary>
  564. /// System.String
  565. /// </summary>
  566. Text,
  567. /// <summary>
  568. /// System.DateTime
  569. /// </summary>
  570. Date,
  571. /// <summary>
  572. /// System.Int32
  573. /// </summary>
  574. NumberInteger,
  575. /// <summary>
  576. /// System.Double
  577. /// </summary>
  578. NumberDecimal,
  579. /// <summary>
  580. /// System.Boolean
  581. /// </summary>
  582. YesOrNo
  583. }
  584. /// <summary>
  585. /// Text types in a Run
  586. /// </summary>
  587. public enum RunTextType
  588. {
  589. /// <summary>
  590. /// System.String
  591. /// </summary>
  592. Text,
  593. /// <summary>
  594. /// System.String
  595. /// </summary>
  596. DelText,
  597. }
  598. public enum LineSpacingType
  599. {
  600. Line,
  601. Before,
  602. After
  603. }
  604. public enum LineSpacingTypeAuto
  605. {
  606. AutoBefore,
  607. AutoAfter,
  608. Auto,
  609. None
  610. }
  611. }