AngleSharp by Florian Rappl

<PackageReference Include="AngleSharp" Version="0.8.5" />

 Map

static class Map
A collection of mappings for CSS (keywords to constants).
using AngleSharp.Css.Values; using AngleSharp.Dom; using AngleSharp.Dom.Css; using System; using System.Collections.Generic; namespace AngleSharp.Css { internal static class Map { public static readonly Dictionary<string, Whitespace> WhitespaceModes; public static readonly Dictionary<string, TextTransform> TextTransforms; public static readonly Dictionary<string, HorizontalAlignment> HorizontalAlignments; public static readonly Dictionary<string, VerticalAlignment> VerticalAlignments; public static readonly Dictionary<string, LineStyle> LineStyles; public static readonly Dictionary<string, BoxModel> BoxModels; public static readonly Dictionary<string, ITimingFunction> TimingFunctions; public static readonly Dictionary<string, AnimationFillStyle> AnimationFillStyles; public static readonly Dictionary<string, AnimationDirection> AnimationDirections; public static readonly Dictionary<string, Visibility> Visibilities; public static readonly Dictionary<string, PlayState> PlayStates; public static readonly Dictionary<string, FontVariant> FontVariants; public static readonly Dictionary<string, DirectionMode> DirectionModes; public static readonly Dictionary<string, ListStyle> ListStyles; public static readonly Dictionary<string, ListPosition> ListPositions; public static readonly Dictionary<string, FontSize> FontSizes; public static readonly Dictionary<string, TextDecorationStyle> TextDecorationStyles; public static readonly Dictionary<string, TextDecorationLine> TextDecorationLines; public static readonly Dictionary<string, BorderRepeat> BorderRepeatModes; public static readonly Dictionary<string, string> DefaultFontFamilies; public static readonly Dictionary<string, BackgroundAttachment> BackgroundAttachments; public static readonly Dictionary<string, FontStyle> FontStyles; public static readonly Dictionary<string, FontStretch> FontStretches; public static readonly Dictionary<string, BreakMode> BreakModes; public static readonly Dictionary<string, BreakMode> PageBreakModes; public static readonly Dictionary<string, BreakMode> BreakInsideModes; public static readonly Dictionary<string, float> HorizontalModes; public static readonly Dictionary<string, float> VerticalModes; public static readonly Dictionary<string, UnicodeMode> UnicodeModes; public static readonly Dictionary<string, SystemCursor> Cursors; public static readonly Dictionary<string, PositionMode> PositionModes; public static readonly Dictionary<string, OverflowMode> OverflowModes; public static readonly Dictionary<string, Floating> FloatingModes; public static readonly Dictionary<string, DisplayMode> DisplayModes; public static readonly Dictionary<string, ClearMode> ClearModes; public static readonly Dictionary<string, BackgroundRepeat> BackgroundRepeats; public static readonly Dictionary<string, BlendMode> BlendModes; public static readonly Dictionary<string, UpdateFrequency> UpdateFrequencies; public static readonly Dictionary<string, ScriptingState> ScriptingStates; public static readonly Dictionary<string, PointerAccuracy> PointerAccuracies; public static readonly Dictionary<string, HoverAbility> HoverAbilities; public static readonly Dictionary<string, RadialGradient.SizeMode> RadialGradientSizeModes; public static readonly Dictionary<string, ObjectFitting> ObjectFittings; public static readonly Dictionary<string, FontWeight> FontWeights; public static readonly Dictionary<string, SystemFont> SystemFonts; static Map() { WhitespaceModes = new Dictionary<string, Whitespace>(StringComparer.OrdinalIgnoreCase); TextTransforms = new Dictionary<string, TextTransform>(StringComparer.OrdinalIgnoreCase); HorizontalAlignments = new Dictionary<string, HorizontalAlignment>(StringComparer.OrdinalIgnoreCase); VerticalAlignments = new Dictionary<string, VerticalAlignment>(StringComparer.OrdinalIgnoreCase); LineStyles = new Dictionary<string, LineStyle>(StringComparer.OrdinalIgnoreCase); BoxModels = new Dictionary<string, BoxModel>(StringComparer.OrdinalIgnoreCase); TimingFunctions = new Dictionary<string, ITimingFunction>(StringComparer.OrdinalIgnoreCase); AnimationFillStyles = new Dictionary<string, AnimationFillStyle>(StringComparer.OrdinalIgnoreCase); AnimationDirections = new Dictionary<string, AnimationDirection>(StringComparer.OrdinalIgnoreCase); Visibilities = new Dictionary<string, Visibility>(StringComparer.OrdinalIgnoreCase); PlayStates = new Dictionary<string, PlayState>(StringComparer.OrdinalIgnoreCase); FontVariants = new Dictionary<string, FontVariant>(StringComparer.OrdinalIgnoreCase); DirectionModes = new Dictionary<string, DirectionMode>(StringComparer.OrdinalIgnoreCase); ListStyles = new Dictionary<string, ListStyle>(StringComparer.OrdinalIgnoreCase); ListPositions = new Dictionary<string, ListPosition>(StringComparer.OrdinalIgnoreCase); FontSizes = new Dictionary<string, FontSize>(StringComparer.OrdinalIgnoreCase); TextDecorationStyles = new Dictionary<string, TextDecorationStyle>(StringComparer.OrdinalIgnoreCase); TextDecorationLines = new Dictionary<string, TextDecorationLine>(StringComparer.OrdinalIgnoreCase); BorderRepeatModes = new Dictionary<string, BorderRepeat>(StringComparer.OrdinalIgnoreCase); DefaultFontFamilies = new Dictionary<string, string>(StringComparer.OrdinalIgnoreCase); BackgroundAttachments = new Dictionary<string, BackgroundAttachment>(StringComparer.OrdinalIgnoreCase); FontStyles = new Dictionary<string, FontStyle>(StringComparer.OrdinalIgnoreCase); FontStretches = new Dictionary<string, FontStretch>(StringComparer.OrdinalIgnoreCase); BreakModes = new Dictionary<string, BreakMode>(StringComparer.OrdinalIgnoreCase); PageBreakModes = new Dictionary<string, BreakMode>(StringComparer.OrdinalIgnoreCase); BreakInsideModes = new Dictionary<string, BreakMode>(StringComparer.OrdinalIgnoreCase); HorizontalModes = new Dictionary<string, float>(StringComparer.OrdinalIgnoreCase); VerticalModes = new Dictionary<string, float>(StringComparer.OrdinalIgnoreCase); UnicodeModes = new Dictionary<string, UnicodeMode>(StringComparer.OrdinalIgnoreCase); Cursors = new Dictionary<string, SystemCursor>(StringComparer.OrdinalIgnoreCase); PositionModes = new Dictionary<string, PositionMode>(StringComparer.OrdinalIgnoreCase); OverflowModes = new Dictionary<string, OverflowMode>(StringComparer.OrdinalIgnoreCase); FloatingModes = new Dictionary<string, Floating>(StringComparer.OrdinalIgnoreCase); DisplayModes = new Dictionary<string, DisplayMode>(StringComparer.OrdinalIgnoreCase); ClearModes = new Dictionary<string, ClearMode>(StringComparer.OrdinalIgnoreCase); BackgroundRepeats = new Dictionary<string, BackgroundRepeat>(StringComparer.OrdinalIgnoreCase); BlendModes = new Dictionary<string, BlendMode>(StringComparer.OrdinalIgnoreCase); UpdateFrequencies = new Dictionary<string, UpdateFrequency>(StringComparer.OrdinalIgnoreCase); ScriptingStates = new Dictionary<string, ScriptingState>(StringComparer.OrdinalIgnoreCase); PointerAccuracies = new Dictionary<string, PointerAccuracy>(StringComparer.OrdinalIgnoreCase); HoverAbilities = new Dictionary<string, HoverAbility>(StringComparer.OrdinalIgnoreCase); RadialGradientSizeModes = new Dictionary<string, RadialGradient.SizeMode>(StringComparer.OrdinalIgnoreCase); ObjectFittings = new Dictionary<string, ObjectFitting>(StringComparer.OrdinalIgnoreCase); FontWeights = new Dictionary<string, FontWeight>(StringComparer.OrdinalIgnoreCase); SystemFonts = new Dictionary<string, SystemFont>(StringComparer.OrdinalIgnoreCase); LineStyles.Add(Keywords.None, LineStyle.None); LineStyles.Add(Keywords.Solid, LineStyle.Solid); LineStyles.Add(Keywords.Double, LineStyle.Double); LineStyles.Add(Keywords.Dotted, LineStyle.Dotted); LineStyles.Add(Keywords.Dashed, LineStyle.Dashed); LineStyles.Add(Keywords.Inset, LineStyle.Inset); LineStyles.Add(Keywords.Outset, LineStyle.Outset); LineStyles.Add(Keywords.Ridge, LineStyle.Ridge); LineStyles.Add(Keywords.Groove, LineStyle.Groove); LineStyles.Add(Keywords.Hidden, LineStyle.Hidden); BoxModels.Add(Keywords.BorderBox, BoxModel.BorderBox); BoxModels.Add(Keywords.PaddingBox, BoxModel.PaddingBox); BoxModels.Add(Keywords.ContentBox, BoxModel.ContentBox); TimingFunctions.Add(Keywords.Ease, new CubicBezierTimingFunction(0.25, 0.1, 0.25, 1)); TimingFunctions.Add(Keywords.EaseIn, new CubicBezierTimingFunction(0.42, 0, 1, 1)); TimingFunctions.Add(Keywords.EaseOut, new CubicBezierTimingFunction(0, 0, 0.58, 1)); TimingFunctions.Add(Keywords.EaseInOut, new CubicBezierTimingFunction(0.42, 0, 0.58, 1)); TimingFunctions.Add(Keywords.Linear, new CubicBezierTimingFunction(0, 0, 1, 1)); TimingFunctions.Add(Keywords.StepStart, new StepsTimingFunction(1, true)); TimingFunctions.Add(Keywords.StepEnd, new StepsTimingFunction(1, false)); AnimationFillStyles.Add(Keywords.None, AnimationFillStyle.None); AnimationFillStyles.Add(Keywords.Forwards, AnimationFillStyle.Forwards); AnimationFillStyles.Add(Keywords.Backwards, AnimationFillStyle.Backwards); AnimationFillStyles.Add(Keywords.Both, AnimationFillStyle.Both); AnimationDirections.Add(Keywords.Normal, AnimationDirection.Normal); AnimationDirections.Add(Keywords.Reverse, AnimationDirection.Reverse); AnimationDirections.Add(Keywords.Alternate, AnimationDirection.Alternate); AnimationDirections.Add(Keywords.AlternateReverse, AnimationDirection.AlternateReverse); Visibilities.Add(Keywords.Visible, Visibility.Visible); Visibilities.Add(Keywords.Hidden, Visibility.Hidden); Visibilities.Add(Keywords.Collapse, Visibility.Collapse); ListStyles.Add(Keywords.Disc, ListStyle.Disc); ListStyles.Add(Keywords.Circle, ListStyle.Circle); ListStyles.Add(Keywords.Square, ListStyle.Square); ListStyles.Add(Keywords.Decimal, ListStyle.Decimal); ListStyles.Add(Keywords.DecimalLeadingZero, ListStyle.DecimalLeadingZero); ListStyles.Add(Keywords.LowerRoman, ListStyle.LowerRoman); ListStyles.Add(Keywords.UpperRoman, ListStyle.UpperRoman); ListStyles.Add(Keywords.LowerGreek, ListStyle.LowerGreek); ListStyles.Add(Keywords.LowerLatin, ListStyle.LowerLatin); ListStyles.Add(Keywords.UpperLatin, ListStyle.UpperLatin); ListStyles.Add(Keywords.Armenian, ListStyle.Armenian); ListStyles.Add(Keywords.Georgian, ListStyle.Georgian); ListStyles.Add(Keywords.LowerAlpha, ListStyle.LowerLatin); ListStyles.Add(Keywords.UpperAlpha, ListStyle.UpperLatin); ListStyles.Add(Keywords.None, ListStyle.None); ListPositions.Add(Keywords.Inside, ListPosition.Inside); ListPositions.Add(Keywords.Outside, ListPosition.Outside); FontSizes.Add(Keywords.XxSmall, FontSize.Tiny); FontSizes.Add(Keywords.XSmall, FontSize.Little); FontSizes.Add(Keywords.Small, FontSize.Small); FontSizes.Add(Keywords.Medium, FontSize.Medium); FontSizes.Add(Keywords.Large, FontSize.Large); FontSizes.Add(Keywords.XLarge, FontSize.Big); FontSizes.Add(Keywords.XxLarge, FontSize.Huge); FontSizes.Add(Keywords.Larger, FontSize.Smaller); FontSizes.Add(Keywords.Smaller, FontSize.Larger); TextDecorationStyles.Add(Keywords.Solid, TextDecorationStyle.Solid); TextDecorationStyles.Add(Keywords.Double, TextDecorationStyle.Double); TextDecorationStyles.Add(Keywords.Dotted, TextDecorationStyle.Dotted); TextDecorationStyles.Add(Keywords.Dashed, TextDecorationStyle.Dashed); TextDecorationStyles.Add(Keywords.Wavy, TextDecorationStyle.Wavy); TextDecorationLines.Add(Keywords.Underline, TextDecorationLine.Underline); TextDecorationLines.Add(Keywords.Overline, TextDecorationLine.Overline); TextDecorationLines.Add(Keywords.LineThrough, TextDecorationLine.LineThrough); TextDecorationLines.Add(Keywords.Blink, TextDecorationLine.Blink); BorderRepeatModes.Add(Keywords.Stretch, BorderRepeat.Stretch); BorderRepeatModes.Add(Keywords.Repeat, BorderRepeat.Repeat); BorderRepeatModes.Add(Keywords.Round, BorderRepeat.Round); DefaultFontFamilies.Add(Keywords.Serif, "Times New Roman"); DefaultFontFamilies.Add(Keywords.SansSerif, "Arial"); DefaultFontFamilies.Add(Keywords.Monospace, "Consolas"); DefaultFontFamilies.Add(Keywords.Cursive, "Cursive"); DefaultFontFamilies.Add(Keywords.Fantasy, "Comic Sans"); BackgroundAttachments.Add(Keywords.Fixed, BackgroundAttachment.Fixed); BackgroundAttachments.Add(Keywords.Local, BackgroundAttachment.Local); BackgroundAttachments.Add(Keywords.Scroll, BackgroundAttachment.Scroll); FontStyles.Add(Keywords.Normal, FontStyle.Normal); FontStyles.Add(Keywords.Italic, FontStyle.Italic); FontStyles.Add(Keywords.Oblique, FontStyle.Oblique); FontStretches.Add(Keywords.Normal, FontStretch.Normal); FontStretches.Add(Keywords.UltraCondensed, FontStretch.UltraCondensed); FontStretches.Add(Keywords.ExtraCondensed, FontStretch.ExtraCondensed); FontStretches.Add(Keywords.Condensed, FontStretch.Condensed); FontStretches.Add(Keywords.SemiCondensed, FontStretch.SemiCondensed); FontStretches.Add(Keywords.SemiExpanded, FontStretch.SemiExpanded); FontStretches.Add(Keywords.Expanded, FontStretch.Expanded); FontStretches.Add(Keywords.ExtraExpanded, FontStretch.ExtraExpanded); FontStretches.Add(Keywords.UltraExpanded, FontStretch.UltraExpanded); BreakModes.Add(Keywords.Auto, BreakMode.Auto); BreakModes.Add(Keywords.Always, BreakMode.Always); BreakModes.Add(Keywords.Avoid, BreakMode.Avoid); BreakModes.Add(Keywords.Left, BreakMode.Left); BreakModes.Add(Keywords.Right, BreakMode.Right); BreakModes.Add(Keywords.Page, BreakMode.Page); BreakModes.Add(Keywords.Column, BreakMode.Column); BreakModes.Add(Keywords.AvoidPage, BreakMode.AvoidPage); BreakModes.Add(Keywords.AvoidColumn, BreakMode.AvoidColumn); PageBreakModes.Add(Keywords.Auto, BreakMode.Auto); PageBreakModes.Add(Keywords.Always, BreakMode.Always); PageBreakModes.Add(Keywords.Avoid, BreakMode.Avoid); PageBreakModes.Add(Keywords.Left, BreakMode.Left); PageBreakModes.Add(Keywords.Right, BreakMode.Right); BreakInsideModes.Add(Keywords.Auto, BreakMode.Auto); BreakInsideModes.Add(Keywords.Avoid, BreakMode.Avoid); BreakInsideModes.Add(Keywords.AvoidPage, BreakMode.AvoidPage); BreakInsideModes.Add(Keywords.AvoidColumn, BreakMode.AvoidColumn); BreakInsideModes.Add(Keywords.AvoidRegion, BreakMode.AvoidRegion); HorizontalModes.Add(Keywords.Left, 0); HorizontalModes.Add(Keywords.Center, 0.5); HorizontalModes.Add(Keywords.Right, 1); VerticalModes.Add(Keywords.Top, 0); VerticalModes.Add(Keywords.Center, 0.5); VerticalModes.Add(Keywords.Bottom, 1); UnicodeModes.Add(Keywords.Normal, UnicodeMode.Normal); UnicodeModes.Add(Keywords.Embed, UnicodeMode.Embed); UnicodeModes.Add(Keywords.Isolate, UnicodeMode.Isolate); UnicodeModes.Add(Keywords.IsolateOverride, UnicodeMode.IsolateOverride); UnicodeModes.Add(Keywords.BidiOverride, UnicodeMode.BidiOverride); UnicodeModes.Add(Keywords.Plaintext, UnicodeMode.Plaintext); Cursors.Add(Keywords.Auto, SystemCursor.Auto); Cursors.Add(Keywords.Default, SystemCursor.Default); Cursors.Add(Keywords.None, SystemCursor.None); Cursors.Add(Keywords.ContextMenu, SystemCursor.ContextMenu); Cursors.Add(Keywords.Help, SystemCursor.Help); Cursors.Add(Keywords.Pointer, SystemCursor.Pointer); Cursors.Add(Keywords.Progress, SystemCursor.Progress); Cursors.Add(Keywords.Wait, SystemCursor.Wait); Cursors.Add(Keywords.Cell, SystemCursor.Cell); Cursors.Add(Keywords.Crosshair, SystemCursor.Crosshair); Cursors.Add(Keywords.Text, SystemCursor.Text); Cursors.Add(Keywords.VerticalText, SystemCursor.VerticalText); Cursors.Add(Keywords.Alias, SystemCursor.Alias); Cursors.Add(Keywords.Copy, SystemCursor.Copy); Cursors.Add(Keywords.Move, SystemCursor.Move); Cursors.Add(Keywords.NoDrop, SystemCursor.NoDrop); Cursors.Add(Keywords.NotAllowed, SystemCursor.NotAllowed); Cursors.Add(Keywords.EastResize, SystemCursor.EResize); Cursors.Add(Keywords.NorthResize, SystemCursor.NResize); Cursors.Add(Keywords.NorthEastResize, SystemCursor.NeResize); Cursors.Add(Keywords.NorthWestResize, SystemCursor.NwResize); Cursors.Add(Keywords.SouthResize, SystemCursor.SResize); Cursors.Add(Keywords.SouthEastResize, SystemCursor.SeResize); Cursors.Add(Keywords.SouthWestResize, SystemCursor.WResize); Cursors.Add(Keywords.WestResize, SystemCursor.WResize); Cursors.Add(Keywords.EastWestResize, SystemCursor.EwResize); Cursors.Add(Keywords.NorthSouthResize, SystemCursor.NsResize); Cursors.Add(Keywords.NorthEastSouthWestResize, SystemCursor.NeswResize); Cursors.Add(Keywords.NorthWestSouthEastResize, SystemCursor.NwseResize); Cursors.Add(Keywords.ColResize, SystemCursor.ColResize); Cursors.Add(Keywords.RowResize, SystemCursor.RowResize); Cursors.Add(Keywords.AllScroll, SystemCursor.AllScroll); Cursors.Add(Keywords.ZoomIn, SystemCursor.ZoomIn); Cursors.Add(Keywords.ZoomOut, SystemCursor.ZoomOut); Cursors.Add(Keywords.Grab, SystemCursor.Grab); Cursors.Add(Keywords.Grabbing, SystemCursor.Grabbing); VerticalAlignments.Add(Keywords.Baseline, VerticalAlignment.Baseline); VerticalAlignments.Add(Keywords.Sub, VerticalAlignment.Sub); VerticalAlignments.Add(Keywords.Super, VerticalAlignment.Super); VerticalAlignments.Add(Keywords.TextTop, VerticalAlignment.TextTop); VerticalAlignments.Add(Keywords.TextBottom, VerticalAlignment.TextBottom); VerticalAlignments.Add(Keywords.Middle, VerticalAlignment.Middle); VerticalAlignments.Add(Keywords.Top, VerticalAlignment.Top); VerticalAlignments.Add(Keywords.Bottom, VerticalAlignment.Bottom); TextTransforms.Add(Keywords.None, TextTransform.None); TextTransforms.Add(Keywords.Capitalize, TextTransform.Capitalize); TextTransforms.Add(Keywords.Uppercase, TextTransform.Uppercase); TextTransforms.Add(Keywords.Lowercase, TextTransform.Lowercase); TextTransforms.Add(Keywords.FullWidth, TextTransform.FullWidth); WhitespaceModes.Add(Keywords.Normal, Whitespace.Normal); WhitespaceModes.Add(Keywords.Pre, Whitespace.Pre); WhitespaceModes.Add(Keywords.Nowrap, Whitespace.NoWrap); WhitespaceModes.Add(Keywords.PreWrap, Whitespace.PreWrap); WhitespaceModes.Add(Keywords.PreLine, Whitespace.PreLine); HorizontalAlignments.Add(Keywords.Left, HorizontalAlignment.Left); HorizontalAlignments.Add(Keywords.Right, HorizontalAlignment.Right); HorizontalAlignments.Add(Keywords.Center, HorizontalAlignment.Center); HorizontalAlignments.Add(Keywords.Justify, HorizontalAlignment.Justify); PositionModes.Add(Keywords.Static, PositionMode.Static); PositionModes.Add(Keywords.Relative, PositionMode.Relative); PositionModes.Add(Keywords.Absolute, PositionMode.Absolute); PositionModes.Add(Keywords.Sticky, PositionMode.Sticky); PositionModes.Add(Keywords.Fixed, PositionMode.Fixed); OverflowModes.Add(Keywords.Visible, OverflowMode.Visible); OverflowModes.Add(Keywords.Hidden, OverflowMode.Hidden); OverflowModes.Add(Keywords.Scroll, OverflowMode.Scroll); OverflowModes.Add(Keywords.Auto, OverflowMode.Auto); FloatingModes.Add(Keywords.None, Floating.None); FloatingModes.Add(Keywords.Left, Floating.Left); FloatingModes.Add(Keywords.Right, Floating.Right); DisplayModes.Add(Keywords.None, DisplayMode.None); DisplayModes.Add(Keywords.Inline, DisplayMode.Inline); DisplayModes.Add(Keywords.Block, DisplayMode.Block); DisplayModes.Add(Keywords.InlineBlock, DisplayMode.InlineBlock); DisplayModes.Add(Keywords.ListItem, DisplayMode.ListItem); DisplayModes.Add(Keywords.InlineTable, DisplayMode.InlineTable); DisplayModes.Add(Keywords.Table, DisplayMode.Table); DisplayModes.Add(Keywords.TableCaption, DisplayMode.TableCaption); DisplayModes.Add(Keywords.TableCell, DisplayMode.TableCell); DisplayModes.Add(Keywords.TableColumn, DisplayMode.TableColumn); DisplayModes.Add(Keywords.TableColumnGroup, DisplayMode.TableColumnGroup); DisplayModes.Add(Keywords.TableFooterGroup, DisplayMode.TableFooterGroup); DisplayModes.Add(Keywords.TableHeaderGroup, DisplayMode.TableHeaderGroup); DisplayModes.Add(Keywords.TableRow, DisplayMode.TableRow); DisplayModes.Add(Keywords.TableRowGroup, DisplayMode.TableRowGroup); DisplayModes.Add(Keywords.Flex, DisplayMode.Flex); DisplayModes.Add(Keywords.InlineFlex, DisplayMode.InlineFlex); DisplayModes.Add(Keywords.Grid, DisplayMode.Grid); DisplayModes.Add(Keywords.InlineGrid, DisplayMode.InlineGrid); ClearModes.Add(Keywords.None, ClearMode.None); ClearModes.Add(Keywords.Left, ClearMode.Left); ClearModes.Add(Keywords.Right, ClearMode.Right); ClearModes.Add(Keywords.Both, ClearMode.Both); BackgroundRepeats.Add(Keywords.NoRepeat, BackgroundRepeat.NoRepeat); BackgroundRepeats.Add(Keywords.Repeat, BackgroundRepeat.Repeat); BackgroundRepeats.Add(Keywords.Round, BackgroundRepeat.Round); BackgroundRepeats.Add(Keywords.Space, BackgroundRepeat.Space); BlendModes.Add(Keywords.Color, BlendMode.Color); BlendModes.Add(Keywords.ColorBurn, BlendMode.ColorBurn); BlendModes.Add(Keywords.ColorDodge, BlendMode.ColorDodge); BlendModes.Add(Keywords.Darken, BlendMode.Darken); BlendModes.Add(Keywords.Difference, BlendMode.Difference); BlendModes.Add(Keywords.Exclusion, BlendMode.Exclusion); BlendModes.Add(Keywords.HardLight, BlendMode.HardLight); BlendModes.Add(Keywords.Hue, BlendMode.Hue); BlendModes.Add(Keywords.Lighten, BlendMode.Lighten); BlendModes.Add(Keywords.Luminosity, BlendMode.Luminosity); BlendModes.Add(Keywords.Multiply, BlendMode.Multiply); BlendModes.Add(Keywords.Normal, BlendMode.Normal); BlendModes.Add(Keywords.Overlay, BlendMode.Overlay); BlendModes.Add(Keywords.Saturation, BlendMode.Saturation); BlendModes.Add(Keywords.Screen, BlendMode.Screen); BlendModes.Add(Keywords.SoftLight, BlendMode.SoftLight); UpdateFrequencies.Add(Keywords.None, UpdateFrequency.None); UpdateFrequencies.Add(Keywords.Slow, UpdateFrequency.Slow); UpdateFrequencies.Add(Keywords.Normal, UpdateFrequency.Normal); ScriptingStates.Add(Keywords.None, ScriptingState.None); ScriptingStates.Add(Keywords.InitialOnly, ScriptingState.InitialOnly); ScriptingStates.Add(Keywords.Enabled, ScriptingState.Enabled); PointerAccuracies.Add(Keywords.None, PointerAccuracy.None); PointerAccuracies.Add(Keywords.Coarse, PointerAccuracy.Coarse); PointerAccuracies.Add(Keywords.Fine, PointerAccuracy.Fine); HoverAbilities.Add(Keywords.None, HoverAbility.None); HoverAbilities.Add(Keywords.OnDemand, HoverAbility.OnDemand); HoverAbilities.Add(Keywords.Hover, HoverAbility.Hover); RadialGradientSizeModes.Add(Keywords.ClosestSide, RadialGradient.SizeMode.ClosestSide); RadialGradientSizeModes.Add(Keywords.FarthestSide, RadialGradient.SizeMode.FarthestSide); RadialGradientSizeModes.Add(Keywords.ClosestCorner, RadialGradient.SizeMode.ClosestCorner); RadialGradientSizeModes.Add(Keywords.FarthestCorner, RadialGradient.SizeMode.FarthestCorner); ObjectFittings.Add(Keywords.None, ObjectFitting.None); ObjectFittings.Add(Keywords.Cover, ObjectFitting.Cover); ObjectFittings.Add(Keywords.Contain, ObjectFitting.Contain); ObjectFittings.Add(Keywords.Fill, ObjectFitting.Fill); ObjectFittings.Add(Keywords.ScaleDown, ObjectFitting.ScaleDown); FontWeights.Add(Keywords.Normal, FontWeight.Normal); FontWeights.Add(Keywords.Bold, FontWeight.Bold); FontWeights.Add(Keywords.Bolder, FontWeight.Bolder); FontWeights.Add(Keywords.Lighter, FontWeight.Lighter); SystemFonts.Add(Keywords.Caption, SystemFont.Caption); SystemFonts.Add(Keywords.Icon, SystemFont.Icon); SystemFonts.Add(Keywords.Menu, SystemFont.Menu); SystemFonts.Add(Keywords.MessageBox, SystemFont.MessageBox); SystemFonts.Add(Keywords.SmallCaption, SystemFont.SmallCaption); SystemFonts.Add(Keywords.StatusBar, SystemFont.StatusBar); PlayStates.Add(Keywords.Running, PlayState.Running); PlayStates.Add(Keywords.Paused, PlayState.Paused); FontVariants.Add(Keywords.Normal, FontVariant.Normal); FontVariants.Add(Keywords.SmallCaps, FontVariant.SmallCaps); DirectionModes.Add(Keywords.Ltr, DirectionMode.Ltr); DirectionModes.Add(Keywords.Rtl, DirectionMode.Rtl); } } }