Ви не можете вибрати більше 25 тем Теми мають розпочинатися з літери або цифри, можуть містити дефіси (-) і не повинні перевищувати 35 символів.

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