| 123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595596597598599600601602603604605606607608609610611612613614615616617618619620621622623624625626627628629630631632633634635636637638639640641642643644645646647648649650651652653654655656657658659660661662663664665666667668669670671672673674675676677678679680681682683684685686687688689690691692693694695696697698699700701702703704705706707708709710711712713714715716717718719720721722723724725726727728729730731732733734735736737738739740741742743744745746747748749750751752753754755756757758759760761762763764765766767768769770771772773774775776777 |
- /*************************************************************************************
-
- DocX – DocX is the community edition of Xceed Words for .NET
-
- Copyright (C) 2009-2016 Xceed Software Inc.
-
- This program is provided to you under the terms of the Microsoft Public
- License (Ms-PL) as published at http://wpftoolkit.codeplex.com/license
-
- For more features and fast professional support,
- pick up Xceed Words for .NET at https://xceed.com/xceed-words-for-net/
-
- ***********************************************************************************/
-
- using System;
- using System.ComponentModel;
-
- namespace Xceed.Words.NET
- {
-
- public enum ListItemType
- {
- Bulleted,
- Numbered
- }
-
- public enum SectionBreakType
- {
- defaultNextPage,
- evenPage,
- oddPage,
- continuous
- }
-
- public enum ContainerType
- {
- None,
- TOC,
- Section,
- Cell,
- Table,
- Header,
- Footer,
- Paragraph,
- Body
- }
-
- public enum ShadingType
- {
- Text,
- Paragraph
- }
-
- public enum PageNumberFormat
- {
- normal,
- roman
- }
-
- public enum BorderSize
- {
- one,
- two,
- three,
- four,
- five,
- six,
- seven,
- eight,
- nine
- }
-
- public enum EditRestrictions
- {
- none,
- readOnly,
- forms,
- comments,
- trackedChanges
- }
-
- /// <summary>
- /// Table Cell Border styles
- /// source: http://msdn.microsoft.com/en-us/library/documentformat.openxml.wordprocessing.tablecellborders.aspx
- /// </summary>
- public enum BorderStyle
- {
- Tcbs_none = 0,
- Tcbs_single,
- Tcbs_thick,
- Tcbs_double,
- Tcbs_dotted,
- Tcbs_dashed,
- Tcbs_dotDash,
- Tcbs_dotDotDash,
- Tcbs_triple,
- Tcbs_thinThickSmallGap,
- Tcbs_thickThinSmallGap,
- Tcbs_thinThickThinSmallGap,
- Tcbs_thinThickMediumGap,
- Tcbs_thickThinMediumGap,
- Tcbs_thinThickThinMediumGap,
- Tcbs_thinThickLargeGap,
- Tcbs_thickThinLargeGap,
- Tcbs_thinThickThinLargeGap,
- Tcbs_wave,
- Tcbs_doubleWave,
- Tcbs_dashSmallGap,
- Tcbs_dashDotStroked,
- Tcbs_threeDEmboss,
- Tcbs_threeDEngrave,
- Tcbs_outset,
- Tcbs_inset,
- Tcbs_nil
- }
-
- /// <summary>
- /// Table Cell Border Types
- /// source: http://msdn.microsoft.com/en-us/library/documentformat.openxml.wordprocessing.tablecellborders.aspx
- /// </summary>
- public enum TableCellBorderType
- {
- Top,
- Bottom,
- Left,
- Right,
- InsideH,
- InsideV,
- TopLeftToBottomRight,
- TopRightToBottomLeft
- }
-
- /// <summary>
- /// Table Border Types
- /// source: http://msdn.microsoft.com/en-us/library/documentformat.openxml.wordprocessing.tableborders.aspx
- /// </summary>
- public enum TableBorderType
- {
- Top,
- Bottom,
- Left,
- Right,
- InsideH,
- InsideV
- }
-
- public enum VerticalAlignment
- {
- Top,
- Center,
- Bottom
- };
-
- public enum Orientation
- {
- Portrait,
- Landscape
- };
-
- public enum MatchFormattingOptions
- {
- ExactMatch,
- SubsetMatch
- };
-
- public enum Script
- {
- superscript,
- subscript,
- none
- }
-
- public enum Highlight
- {
- yellow,
- green,
- cyan,
- magenta,
- blue,
- red,
- darkBlue,
- darkCyan,
- darkGreen,
- darkMagenta,
- darkRed,
- darkYellow,
- darkGray,
- lightGray,
- black,
- none
- };
-
- public enum UnderlineStyle
- {
- none = 0,
- singleLine = 1,
- words = 2,
- doubleLine = 3,
- dotted = 4,
- thick = 6,
- dash = 7,
- dotDash = 9,
- dotDotDash = 10,
- wave = 11,
- dottedHeavy = 20,
- dashedHeavy = 23,
- dashDotHeavy = 25,
- dashDotDotHeavy = 26,
- dashLongHeavy = 27,
- dashLong = 39,
- wavyDouble = 43,
- wavyHeavy = 55
- };
-
- public enum StrikeThrough
- {
- none,
- strike,
- doubleStrike
- };
-
- public enum Misc
- {
- none,
- shadow,
- outline,
- outlineShadow,
- emboss,
- engrave
- };
-
- /// <summary>
- /// Change the caps style of text, for use with Append and AppendLine.
- /// </summary>
- public enum CapsStyle
- {
- /// <summary>
- /// No caps, make all characters are lowercase.
- /// </summary>
- none,
- /// <summary>
- /// All caps, make every character uppercase.
- /// </summary>
- caps,
- /// <summary>
- /// Small caps, make all characters capital but with a small font size.
- /// </summary>
- smallCaps
- };
-
- /// <summary>
- /// Designs\Styles that can be applied to a table.
- /// </summary>
- 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
- };
-
- /// <summary>
- /// How a Table should auto resize.
- /// </summary>
- public enum AutoFit
- {
- Contents,
- Window,
- ColumnWidth,
- Fixed
- };
-
- public enum RectangleShapes
- {
- rect,
- roundRect,
- snip1Rect,
- snip2SameRect,
- snip2DiagRect,
- snipRoundRect,
- round1Rect,
- round2SameRect,
- round2DiagRect
- };
-
- public enum BasicShapes
- {
- ellipse,
- triangle,
- rtTriangle,
- parallelogram,
- trapezoid,
- diamond,
- pentagon,
- hexagon,
- heptagon,
- octagon,
- decagon,
- dodecagon,
- pie,
- chord,
- teardrop,
- frame,
- halfFrame,
- corner,
- diagStripe,
- plus,
- plaque,
- can,
- cube,
- bevel,
- donut,
- noSmoking,
- blockArc,
- foldedCorner,
- smileyFace,
- heart,
- lightningBolt,
- sun,
- moon,
- cloud,
- arc,
- backetPair,
- bracePair,
- leftBracket,
- rightBracket,
- leftBrace,
- rightBrace
- };
-
- public enum BlockArrowShapes
- {
- rightArrow,
- leftArrow,
- upArrow,
- downArrow,
- leftRightArrow,
- upDownArrow,
- quadArrow,
- leftRightUpArrow,
- bentArrow,
- uturnArrow,
- leftUpArrow,
- bentUpArrow,
- curvedRightArrow,
- curvedLeftArrow,
- curvedUpArrow,
- curvedDownArrow,
- stripedRightArrow,
- notchedRightArrow,
- homePlate,
- chevron,
- rightArrowCallout,
- downArrowCallout,
- leftArrowCallout,
- upArrowCallout,
- leftRightArrowCallout,
- quadArrowCallout,
- circularArrow
- };
-
- public enum EquationShapes
- {
- mathPlus,
- mathMinus,
- mathMultiply,
- mathDivide,
- mathEqual,
- mathNotEqual
- };
-
- public enum FlowchartShapes
- {
- flowChartProcess,
- flowChartAlternateProcess,
- flowChartDecision,
- flowChartInputOutput,
- flowChartPredefinedProcess,
- flowChartInternalStorage,
- flowChartDocument,
- flowChartMultidocument,
- flowChartTerminator,
- flowChartPreparation,
- flowChartManualInput,
- flowChartManualOperation,
- flowChartConnector,
- flowChartOffpageConnector,
- flowChartPunchedCard,
- flowChartPunchedTape,
- flowChartSummingJunction,
- flowChartOr,
- flowChartCollate,
- flowChartSort,
- flowChartExtract,
- flowChartMerge,
- flowChartOnlineStorage,
- flowChartDelay,
- flowChartMagneticTape,
- flowChartMagneticDisk,
- flowChartMagneticDrum,
- flowChartDisplay
- };
-
- public enum StarAndBannerShapes
- {
- irregularSeal1,
- irregularSeal2,
- star4,
- star5,
- star6,
- star7,
- star8,
- star10,
- star12,
- star16,
- star24,
- star32,
- ribbon,
- ribbon2,
- ellipseRibbon,
- ellipseRibbon2,
- verticalScroll,
- horizontalScroll,
- wave,
- doubleWave
- };
-
- public enum CalloutShapes
- {
- wedgeRectCallout,
- wedgeRoundRectCallout,
- wedgeEllipseCallout,
- cloudCallout,
- borderCallout1,
- borderCallout2,
- borderCallout3,
- accentCallout1,
- accentCallout2,
- accentCallout3,
- callout1,
- callout2,
- callout3,
- accentBorderCallout1,
- accentBorderCallout2,
- accentBorderCallout3
- };
-
- /// <summary>
- /// Text alignment of a Paragraph.
- /// </summary>
- public enum Alignment
- {
- /// <summary>
- /// Align Paragraph to the left.
- /// </summary>
- left,
-
- /// <summary>
- /// Align Paragraph as centered.
- /// </summary>
- center,
-
- /// <summary>
- /// Align Paragraph to the right.
- /// </summary>
- right,
-
- /// <summary>
- /// (Justified) Align Paragraph to both the left and right margins, adding extra space between content as necessary.
- /// </summary>
- both
- };
-
- public enum Direction
- {
- LeftToRight,
- RightToLeft
- };
-
- /// <summary>
- /// Paragraph edit types
- /// </summary>
- internal enum EditType
- {
- /// <summary>
- /// A ins is a tracked insertion
- /// </summary>
- ins,
- /// <summary>
- /// A del is tracked deletion
- /// </summary>
- del
- }
-
- /// <summary>
- /// Custom property types.
- /// </summary>
- internal enum CustomPropertyType
- {
- /// <summary>
- /// System.String
- /// </summary>
- Text,
- /// <summary>
- /// System.DateTime
- /// </summary>
- Date,
- /// <summary>
- /// System.Int32
- /// </summary>
- NumberInteger,
- /// <summary>
- /// System.Double
- /// </summary>
- NumberDecimal,
- /// <summary>
- /// System.Boolean
- /// </summary>
- YesOrNo
- }
-
- /// <summary>
- /// Text types in a Run
- /// </summary>
- public enum RunTextType
- {
- /// <summary>
- /// System.String
- /// </summary>
- Text,
- /// <summary>
- /// System.String
- /// </summary>
- DelText,
- }
-
- public enum LineSpacingType
- {
- Line,
- Before,
- After
- }
-
- public enum LineSpacingTypeAuto
- {
- AutoBefore,
- AutoAfter,
- Auto,
- None
- }
-
- public enum DocumentTypes
- {
- Document,
- Template
- }
-
- public enum HeadingType
- {
- [Description( "Heading1" )]
- Heading1,
-
- [Description( "Heading2" )]
- Heading2,
-
- [Description( "Heading3" )]
- Heading3,
-
- [Description( "Heading4" )]
- Heading4,
-
- [Description( "Heading5" )]
- Heading5,
-
- [Description( "Heading6" )]
- Heading6,
-
- [Description( "Heading7" )]
- Heading7,
-
- [Description( "Heading8" )]
- Heading8,
-
- [Description( "Heading9" )]
- Heading9
-
- // 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)
- // NoSpacing
- // Title, Subtitle
- // Quote, IntenseQuote
- // Emphasis, IntenseEmphasis
- // Strong
- // ListParagraph
- // SubtleReference, IntenseReference
- // BookTitle
- }
-
- public enum TextDirection
- {
- btLr,
- right
- }
-
- [Flags]
- public enum TableOfContentsSwitches
- {
- None = 0 << 0,
-
- [Description("\\a")]
- A = 1 << 0,
-
- [Description("\\b")]
- B = 1 << 1,
-
- [Description("\\c")]
- C = 1 << 2,
-
- [Description("\\d")]
- D = 1 << 3,
-
- [Description("\\f")]
- F = 1 << 4,
-
- [Description("\\h")]
- H = 1 << 5,
-
- [Description("\\l")]
- L = 1 << 6,
-
- [Description("\\n")]
- N = 1 << 7,
-
- [Description("\\o")]
- O = 1 << 8,
-
- [Description("\\p")]
- P = 1 << 9,
-
- [Description("\\s")]
- S = 1 << 10,
-
- [Description("\\t")]
- T = 1 << 11,
-
- [Description("\\u")]
- U = 1 << 12,
-
- [Description("\\w")]
- W = 1 << 13,
-
- [Description("\\x")]
- X = 1 << 14,
-
- [Description("\\z")]
- Z = 1 << 15
- }
-
- public enum TableCellMarginType
- {
- left,
- right,
- bottom,
- top
- }
-
- public enum HorizontalBorderPosition
- {
- top,
- bottom
- }
-
- public enum TabStopPositionLeader
- {
- none,
- dot,
- underscore,
- hyphen
- }
- }
|