You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

_Enumerations.cs 12KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420
  1. using System;
  2. using System.Collections.Generic;
  3. using System.Linq;
  4. using System.Text;
  5. namespace Novacode
  6. {
  7. public enum PageNumberFormat
  8. {
  9. normal,
  10. roman
  11. }
  12. public enum BorderSize
  13. {
  14. one,
  15. two,
  16. three,
  17. four,
  18. five,
  19. six,
  20. seven,
  21. eight,
  22. nine
  23. }
  24. public enum EditRestrictions
  25. {
  26. none,
  27. readOnly,
  28. forms,
  29. comments,
  30. trackedChanges
  31. }
  32. /// <summary>
  33. /// Table Cell Border styles
  34. /// Added by lckuiper @ 20101117
  35. /// source: http://msdn.microsoft.com/en-us/library/documentformat.openxml.wordprocessing.tablecellborders.aspx
  36. /// </summary>
  37. public enum BorderStyle
  38. {
  39. Tcbs_none = 0,
  40. Tcbs_single,
  41. Tcbs_thick,
  42. Tcbs_double,
  43. Tcbs_dotted,
  44. Tcbs_dashed,
  45. Tcbs_dotDash,
  46. Tcbs_dotDotDash,
  47. Tcbs_triple,
  48. Tcbs_thinThickSmallGap,
  49. Tcbs_thickThinSmallGap,
  50. Tcbs_thinThickThinSmallGap,
  51. Tcbs_thinThickMediumGap,
  52. Tcbs_thickThinMediumGap,
  53. Tcbs_thinThickThinMediumGap,
  54. Tcbs_thinThickLargeGap,
  55. Tcbs_thickThinLargeGap,
  56. Tcbs_thinThickThinLargeGap,
  57. Tcbs_wave,
  58. Tcbs_doubleWave,
  59. Tcbs_dashSmallGap,
  60. Tcbs_dashDotStroked,
  61. Tcbs_threeDEmboss,
  62. Tcbs_threeDEngrave,
  63. Tcbs_outset,
  64. Tcbs_inset
  65. }
  66. /// <summary>
  67. /// Table Cell Border Types
  68. /// Added by lckuiper @ 20101117
  69. /// source: http://msdn.microsoft.com/en-us/library/documentformat.openxml.wordprocessing.tablecellborders.aspx
  70. /// </summary>
  71. public enum TableCellBorderType
  72. {
  73. Top,
  74. Bottom,
  75. Left,
  76. Right,
  77. InsideH,
  78. InsideV,
  79. TopLeftToBottomRight,
  80. TopRightToBottomLeft
  81. }
  82. /// <summary>
  83. /// Table Border Types
  84. /// Added by lckuiper @ 20101117
  85. /// source: http://msdn.microsoft.com/en-us/library/documentformat.openxml.wordprocessing.tableborders.aspx
  86. /// </summary>
  87. public enum TableBorderType
  88. {
  89. Top,
  90. Bottom,
  91. Left,
  92. Right,
  93. InsideH,
  94. InsideV
  95. }
  96. // Patch 7398 added by lckuiper on Nov 16th 2010 @ 2:23 PM
  97. public enum VerticalAlignment { Top, Center, Bottom };
  98. public enum Orientation { Portrait, Landscape };
  99. public enum XmlDocument { Main, HeaderOdd, HeaderEven, HeaderFirst, FooterOdd, FooterEven, FooterFirst };
  100. public enum MatchFormattingOptions { ExactMatch, SubsetMatch};
  101. public enum Script { superscript, subscript, none }
  102. public enum Highlight { yellow, green, cyan, magenta, blue, red, darkBlue, darkCyan, darkGreen, darkMagenta, darkRed, darkYellow, darkGray, lightGray, black, none };
  103. public enum UnderlineStyle { none, singleLine, doubleLine, thick, dotted, dottedHeavy, dash, dashedHeavy, dashLong, dashLongHeavy, dotDash, dashDotHeavy, dotDotDash, dashDotDotHeavy, wave, wavyHeavy, wavyDouble, words };
  104. public enum StrikeThrough { none, strike, doubleStrike };
  105. public enum Misc { none, shadow, outline, outlineShadow, emboss, engrave };
  106. /// <summary>
  107. /// Change the caps style of text, for use with Append and AppendLine.
  108. /// </summary>
  109. public enum CapsStyle
  110. {
  111. /// <summary>
  112. /// No caps, make all characters are lowercase.
  113. /// </summary>
  114. none,
  115. /// <summary>
  116. /// All caps, make every character uppercase.
  117. /// </summary>
  118. caps,
  119. /// <summary>
  120. /// Small caps, make all characters capital but with a small font size.
  121. /// </summary>
  122. smallCaps };
  123. /// <summary>
  124. /// Designs\Styles that can be applied to a table.
  125. /// </summary>
  126. public enum TableDesign { Custom, TableNormal, TableGrid, LightShading, LightShadingAccent1, LightShadingAccent2, LightShadingAccent3, LightShadingAccent4, LightShadingAccent5, LightShadingAccent6, LightList, LightListAccent1, LightListAccent2, LightListAccent3, LightListAccent4, LightListAccent5, LightListAccent6, LightGrid, LightGridAccent1, LightGridAccent2, LightGridAccent3, LightGridAccent4, LightGridAccent5, LightGridAccent6, MediumShading1, MediumShading1Accent1, MediumShading1Accent2, MediumShading1Accent3, MediumShading1Accent4, MediumShading1Accent5, MediumShading1Accent6, MediumShading2, MediumShading2Accent1, MediumShading2Accent2, MediumShading2Accent3, MediumShading2Accent4, MediumShading2Accent5, MediumShading2Accent6, MediumList1, MediumList1Accent1, MediumList1Accent2, MediumList1Accent3, MediumList1Accent4, MediumList1Accent5, MediumList1Accent6, MediumList2, MediumList2Accent1, MediumList2Accent2, MediumList2Accent3, MediumList2Accent4, MediumList2Accent5, MediumList2Accent6, MediumGrid1, MediumGrid1Accent1, MediumGrid1Accent2, MediumGrid1Accent3, MediumGrid1Accent4, MediumGrid1Accent5, MediumGrid1Accent6, MediumGrid2, MediumGrid2Accent1, MediumGrid2Accent2, MediumGrid2Accent3, MediumGrid2Accent4, MediumGrid2Accent5, MediumGrid2Accent6, MediumGrid3, MediumGrid3Accent1, MediumGrid3Accent2, MediumGrid3Accent3, MediumGrid3Accent4, MediumGrid3Accent5, MediumGrid3Accent6, DarkList, DarkListAccent1, DarkListAccent2, DarkListAccent3, DarkListAccent4, DarkListAccent5, DarkListAccent6, ColorfulShading, ColorfulShadingAccent1, ColorfulShadingAccent2, ColorfulShadingAccent3, ColorfulShadingAccent4, ColorfulShadingAccent5, ColorfulShadingAccent6, ColorfulList, ColorfulListAccent1, ColorfulListAccent2, ColorfulListAccent3, ColorfulListAccent4, ColorfulListAccent5, ColorfulListAccent6, ColorfulGrid, ColorfulGridAccent1, ColorfulGridAccent2, ColorfulGridAccent3, ColorfulGridAccent4, ColorfulGridAccent5, ColorfulGridAccent6, None };
  127. /// <summary>
  128. /// How a Table should auto resize.
  129. /// </summary>
  130. public enum AutoFit
  131. {
  132. /// <summary>
  133. /// Autofit to Table contents.
  134. /// </summary>
  135. Contents,
  136. /// <summary>
  137. /// Autofit to Window.
  138. /// </summary>
  139. Window,
  140. /// <summary>
  141. /// Autofit to Column width.
  142. /// </summary>
  143. ColumnWidth
  144. };
  145. public enum RectangleShapes
  146. {
  147. rect,
  148. roundRect,
  149. snip1Rect,
  150. snip2SameRect,
  151. snip2DiagRect,
  152. snipRoundRect,
  153. round1Rect,
  154. round2SameRect,
  155. round2DiagRect
  156. };
  157. public enum BasicShapes
  158. {
  159. ellipse,
  160. triangle,
  161. rtTriangle,
  162. parallelogram,
  163. trapezoid,
  164. diamond,
  165. pentagon,
  166. hexagon,
  167. heptagon,
  168. octagon,
  169. decagon,
  170. dodecagon,
  171. pie,
  172. chord,
  173. teardrop,
  174. frame,
  175. halfFrame,
  176. corner,
  177. diagStripe,
  178. plus,
  179. plaque,
  180. can,
  181. cube,
  182. bevel,
  183. donut,
  184. noSmoking,
  185. blockArc,
  186. foldedCorner,
  187. smileyFace,
  188. heart,
  189. lightningBolt,
  190. sun,
  191. moon,
  192. cloud,
  193. arc,
  194. backetPair,
  195. bracePair,
  196. leftBracket,
  197. rightBracket,
  198. leftBrace,
  199. rightBrace
  200. };
  201. public enum BlockArrowShapes
  202. {
  203. rightArrow,
  204. leftArrow,
  205. upArrow,
  206. downArrow,
  207. leftRightArrow,
  208. upDownArrow,
  209. quadArrow,
  210. leftRightUpArrow,
  211. bentArrow,
  212. uturnArrow,
  213. leftUpArrow,
  214. bentUpArrow,
  215. curvedRightArrow,
  216. curvedLeftArrow,
  217. curvedUpArrow,
  218. curvedDownArrow,
  219. stripedRightArrow,
  220. notchedRightArrow,
  221. homePlate,
  222. chevron,
  223. rightArrowCallout,
  224. downArrowCallout,
  225. leftArrowCallout,
  226. upArrowCallout,
  227. leftRightArrowCallout,
  228. quadArrowCallout,
  229. circularArrow
  230. };
  231. public enum EquationShapes
  232. {
  233. mathPlus,
  234. mathMinus,
  235. mathMultiply,
  236. mathDivide,
  237. mathEqual,
  238. mathNotEqual
  239. };
  240. public enum FlowchartShapes
  241. {
  242. flowChartProcess,
  243. flowChartAlternateProcess,
  244. flowChartDecision,
  245. flowChartInputOutput,
  246. flowChartPredefinedProcess,
  247. flowChartInternalStorage,
  248. flowChartDocument,
  249. flowChartMultidocument,
  250. flowChartTerminator,
  251. flowChartPreparation,
  252. flowChartManualInput,
  253. flowChartManualOperation,
  254. flowChartConnector,
  255. flowChartOffpageConnector,
  256. flowChartPunchedCard,
  257. flowChartPunchedTape,
  258. flowChartSummingJunction,
  259. flowChartOr,
  260. flowChartCollate,
  261. flowChartSort,
  262. flowChartExtract,
  263. flowChartMerge,
  264. flowChartOnlineStorage,
  265. flowChartDelay,
  266. flowChartMagneticTape,
  267. flowChartMagneticDisk,
  268. flowChartMagneticDrum,
  269. flowChartDisplay
  270. };
  271. public enum StarAndBannerShapes
  272. {
  273. irregularSeal1,
  274. irregularSeal2,
  275. star4,
  276. star5,
  277. star6,
  278. star7,
  279. star8,
  280. star10,
  281. star12,
  282. star16,
  283. star24,
  284. star32,
  285. ribbon,
  286. ribbon2,
  287. ellipseRibbon,
  288. ellipseRibbon2,
  289. verticalScroll,
  290. horizontalScroll,
  291. wave,
  292. doubleWave
  293. };
  294. public enum CalloutShapes
  295. {
  296. wedgeRectCallout,
  297. wedgeRoundRectCallout,
  298. wedgeEllipseCallout,
  299. cloudCallout,
  300. borderCallout1,
  301. borderCallout2,
  302. borderCallout3,
  303. accentCallout1,
  304. accentCallout2,
  305. accentCallout3,
  306. callout1,
  307. callout2,
  308. callout3,
  309. accentBorderCallout1,
  310. accentBorderCallout2,
  311. accentBorderCallout3
  312. };
  313. /// <summary>
  314. /// Text alignment of a Paragraph.
  315. /// </summary>
  316. public enum Alignment
  317. {
  318. /// <summary>
  319. /// Align Paragraph to the left.
  320. /// </summary>
  321. left,
  322. /// <summary>
  323. /// Align Paragraph as centered.
  324. /// </summary>
  325. center,
  326. /// <summary>
  327. /// Align Paragraph to the right.
  328. /// </summary>
  329. right,
  330. /// <summary>
  331. /// (Justified) Align Paragraph to both the left and right margins, adding extra space between content as necessary.
  332. /// </summary>
  333. both
  334. };
  335. public enum Direction
  336. {
  337. LeftToRight,
  338. RightToLeft
  339. };
  340. /// <summary>
  341. /// Paragraph edit types
  342. /// </summary>
  343. internal enum EditType
  344. {
  345. /// <summary>
  346. /// A ins is a tracked insertion
  347. /// </summary>
  348. ins,
  349. /// <summary>
  350. /// A del is tracked deletion
  351. /// </summary>
  352. del
  353. }
  354. /// <summary>
  355. /// Custom property types.
  356. /// </summary>
  357. internal enum CustomPropertyType
  358. {
  359. /// <summary>
  360. /// System.String
  361. /// </summary>
  362. Text,
  363. /// <summary>
  364. /// System.DateTime
  365. /// </summary>
  366. Date,
  367. /// <summary>
  368. /// System.Int32
  369. /// </summary>
  370. NumberInteger,
  371. /// <summary>
  372. /// System.Double
  373. /// </summary>
  374. NumberDecimal,
  375. /// <summary>
  376. /// System.Boolean
  377. /// </summary>
  378. YesOrNo
  379. }
  380. /// <summary>
  381. /// Text types in a Run
  382. /// </summary>
  383. public enum RunTextType
  384. {
  385. /// <summary>
  386. /// System.String
  387. /// </summary>
  388. Text,
  389. /// <summary>
  390. /// System.String
  391. /// </summary>
  392. DelText,
  393. }
  394. }