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

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