diff --git a/.editorconfig b/.editorconfig new file mode 100644 index 0000000..cf9bc81 --- /dev/null +++ b/.editorconfig @@ -0,0 +1,26 @@ +# Remove the line below if you want to inherit .editorconfig settings from higher directories +root = true + +[*] +indent_style = space +end_of_line = crlf + +# C# files +[*.cs] +indent_size = 4 +tab_width = 4 +max_line_length = 200 +insert_final_newline = true +charset = utf-8-bom + +# XML project files +[*.{csproj,vbproj,vcxproj,vcxproj.filters,proj,projitems,shproj}] +indent_size = 2 + +# XML config files +[*.{props,targets,ruleset,config,nuspec,resx,vsixmanifest,vsct}] +indent_size = 2 + +# JSON files +[*.json] +indent_size = 2 diff --git a/generator.ts b/generator.ts index f02a7c1..daf3fa1 100644 --- a/generator.ts +++ b/generator.ts @@ -57,6 +57,11 @@ function valueCode(tab: string, t: PropertyType): string { .map((x, i) => `${tab} ${i} => FormatValue(key, _value${i}),`) .join('\r\n'); } +function objectValueCode(tab: string, t: PropertyType): string { + return t.types + .map((x, i) => `${tab} ${i} => _value${i},`) + .join('\r\n'); +} function hashCode(tab: string, t: PropertyType): string { return t.types .map((x, i) => `${tab} ${i} => _value${i}?.GetHashCode(),`) @@ -222,6 +227,15 @@ ${valueCode(tab, item)} _ => throw new InvalidOperationException("Unexpected index.") }; } + + public object GetValue() + { + return _index switch + { +${objectValueCode(tab, item)} + _ => throw new InvalidOperationException("Unexpected index.") + }; + } } ` }) @@ -264,6 +278,15 @@ ${valueCode(tab, item)} _ => throw new InvalidOperationException("Unexpected index.") }; } + + public object GetValue() + { + return _index switch + { +${objectValueCode(tab, item)} + _ => throw new InvalidOperationException("Unexpected index.") + }; + } } `; diff --git a/src/Css/CSSObject.cs b/src/Css/CSSObject.cs index bd85ff2..0024a72 100644 --- a/src/Css/CSSObject.cs +++ b/src/Css/CSSObject.cs @@ -26,19 +26,29 @@ public override string ToString() return SerializeCss(string.Empty); } - public string SerializeCss(string hashId) + public string SerializeCss(string hashId, List<(string, string)> effects = null) { - return Serialize(Compile(ParseStyle(true, hashId)), Stringify); + return Serialize(Compile(ParseStyle(true, hashId, effects)), Stringify); } - internal string ParseStyle(bool root, string hashId) + internal string ParseStyle(bool root, string hashId, List<(string, string)> effects = null) { var sb = new StringBuilder(); // normal css properties foreach (var property in _properties) { - sb.Append($"{property.Key}:{property.Value.GetValue(property.Key)};"); + if (effects != null && property.Key == "animation-name") + { + var keyframe = (Keyframe)property.Value.GetValue(); + var effect = keyframe.GetEffect(hashId); + sb.Append($"{property.Key}:{effect.Item1};"); + effects.Add(effect); + } + else + { + sb.Append($"{property.Key}:{property.Value.GetValue(property.Key)};"); + } } // sub style sheet @@ -57,7 +67,7 @@ internal string ParseStyle(bool root, string hashId) { mergedKey = InjectSelectorHash(mergedKey, hashId); } - sb.Append($"{mergedKey}{{{subStyle.Value.ParseStyle(nextRoot, hashId)}}}"); + sb.Append($"{mergedKey}{{{subStyle.Value.ParseStyle(nextRoot, hashId, effects)}}}"); } return sb.ToString(); @@ -142,10 +152,9 @@ private string InjectSelectorHash(string key, string hashId) var htmlElement = match.Success ? match.Value : ""; fullPath[0] = $"{htmlElement}{hashSelector}{firstPath.Substring(htmlElement.Length)}"; return string.Join(" ", fullPath); - }); + }); return string.Join(",", keys); } - - } + } } diff --git a/src/Css/CSSProperties.cs b/src/Css/CSSProperties.cs index c80819e..5d5e1d8 100644 --- a/src/Css/CSSProperties.cs +++ b/src/Css/CSSProperties.cs @@ -69,5 +69,17 @@ public string GetValue(string key) _ => throw new InvalidOperationException("Unexpected index.") }; } + + public object GetValue() + { + return _index switch + { + 0 => _value0, + 1 => _value1, + 2 => _value2, + 3 => _value3, + _ => throw new InvalidOperationException("Unexpected index.") + }; + } } -} \ No newline at end of file +} diff --git a/src/Css/IProperty.cs b/src/Css/IProperty.cs index 20e2000..1a5e378 100644 --- a/src/Css/IProperty.cs +++ b/src/Css/IProperty.cs @@ -3,6 +3,7 @@ public interface IProperty { string GetValue(string key); + object GetValue(); } public struct PropertySkip diff --git a/src/Css/Keyframe.cs b/src/Css/Keyframe.cs index c1ceba1..936657f 100644 --- a/src/Css/Keyframe.cs +++ b/src/Css/Keyframe.cs @@ -29,16 +29,23 @@ public CSSObject this[string key] set => _styles[key] = value; } - public override string ToString() + public (string, string) GetEffect(string hashId = null) { + var effectName = hashId == null ? _name : $"{hashId}-{_name}"; var sb = new StringBuilder(); - sb.Append($"{_name};@keyframes {_name}{{"); + sb.Append($"@keyframes {effectName}{{"); foreach (var subStyle in _styles) { sb.Append($"{subStyle.Key}{{{subStyle.Value.ParseStyle(true, string.Empty)}}}"); } sb.Append("}"); - return sb.ToString(); + return (effectName, sb.ToString()); + } + + public override string ToString() + { + var (effectName, effectStyle) = GetEffect(); + return $"{effectName};{effectStyle}"; } } } diff --git a/src/Css/Property.cs b/src/Css/Property.cs index f7649a8..47ee69e 100644 --- a/src/Css/Property.cs +++ b/src/Css/Property.cs @@ -34,6 +34,16 @@ public string GetValue(string key) _ => throw new InvalidOperationException("Unexpected index.") }; } + + public object GetValue() + { + return _index switch + { + 0 => _value0, + 1 => _value1, + _ => throw new InvalidOperationException("Unexpected index.") + }; + } } public readonly struct AlignContent : IProperty @@ -61,6 +71,16 @@ public string GetValue(string key) _ => throw new InvalidOperationException("Unexpected index.") }; } + + public object GetValue() + { + return _index switch + { + 0 => _value0, + 1 => _value1, + _ => throw new InvalidOperationException("Unexpected index.") + }; + } } public readonly struct AlignItems : IProperty @@ -88,6 +108,16 @@ public string GetValue(string key) _ => throw new InvalidOperationException("Unexpected index.") }; } + + public object GetValue() + { + return _index switch + { + 0 => _value0, + 1 => _value1, + _ => throw new InvalidOperationException("Unexpected index.") + }; + } } public readonly struct AlignSelf : IProperty @@ -115,6 +145,16 @@ public string GetValue(string key) _ => throw new InvalidOperationException("Unexpected index.") }; } + + public object GetValue() + { + return _index switch + { + 0 => _value0, + 1 => _value1, + _ => throw new InvalidOperationException("Unexpected index.") + }; + } } public readonly struct AlignTracks : IProperty @@ -142,6 +182,16 @@ public string GetValue(string key) _ => throw new InvalidOperationException("Unexpected index.") }; } + + public object GetValue() + { + return _index switch + { + 0 => _value0, + 1 => _value1, + _ => throw new InvalidOperationException("Unexpected index.") + }; + } } public readonly struct All : IProperty @@ -169,6 +219,16 @@ public string GetValue(string key) _ => throw new InvalidOperationException("Unexpected index.") }; } + + public object GetValue() + { + return _index switch + { + 0 => _value0, + 1 => _value1, + _ => throw new InvalidOperationException("Unexpected index.") + }; + } } public readonly struct Animation : IProperty @@ -196,6 +256,16 @@ public string GetValue(string key) _ => throw new InvalidOperationException("Unexpected index.") }; } + + public object GetValue() + { + return _index switch + { + 0 => _value0, + 1 => _value1, + _ => throw new InvalidOperationException("Unexpected index.") + }; + } } public readonly struct AnimationComposition : IProperty @@ -223,6 +293,16 @@ public string GetValue(string key) _ => throw new InvalidOperationException("Unexpected index.") }; } + + public object GetValue() + { + return _index switch + { + 0 => _value0, + 1 => _value1, + _ => throw new InvalidOperationException("Unexpected index.") + }; + } } public readonly struct AnimationDelay : IProperty @@ -250,6 +330,16 @@ public string GetValue(string key) _ => throw new InvalidOperationException("Unexpected index.") }; } + + public object GetValue() + { + return _index switch + { + 0 => _value0, + 1 => _value1, + _ => throw new InvalidOperationException("Unexpected index.") + }; + } } public readonly struct AnimationDirection : IProperty @@ -277,6 +367,16 @@ public string GetValue(string key) _ => throw new InvalidOperationException("Unexpected index.") }; } + + public object GetValue() + { + return _index switch + { + 0 => _value0, + 1 => _value1, + _ => throw new InvalidOperationException("Unexpected index.") + }; + } } public readonly struct AnimationDuration : IProperty @@ -304,6 +404,16 @@ public string GetValue(string key) _ => throw new InvalidOperationException("Unexpected index.") }; } + + public object GetValue() + { + return _index switch + { + 0 => _value0, + 1 => _value1, + _ => throw new InvalidOperationException("Unexpected index.") + }; + } } public readonly struct AnimationFillMode : IProperty @@ -331,6 +441,16 @@ public string GetValue(string key) _ => throw new InvalidOperationException("Unexpected index.") }; } + + public object GetValue() + { + return _index switch + { + 0 => _value0, + 1 => _value1, + _ => throw new InvalidOperationException("Unexpected index.") + }; + } } public readonly struct AnimationIterationCount : IProperty @@ -362,6 +482,17 @@ public string GetValue(string key) _ => throw new InvalidOperationException("Unexpected index.") }; } + + public object GetValue() + { + return _index switch + { + 0 => _value0, + 1 => _value1, + 2 => _value2, + _ => throw new InvalidOperationException("Unexpected index.") + }; + } } public readonly struct AnimationName : IProperty @@ -393,6 +524,17 @@ public string GetValue(string key) _ => throw new InvalidOperationException("Unexpected index.") }; } + + public object GetValue() + { + return _index switch + { + 0 => _value0, + 1 => _value1, + 2 => _value2, + _ => throw new InvalidOperationException("Unexpected index.") + }; + } } public readonly struct AnimationPlayState : IProperty @@ -420,6 +562,16 @@ public string GetValue(string key) _ => throw new InvalidOperationException("Unexpected index.") }; } + + public object GetValue() + { + return _index switch + { + 0 => _value0, + 1 => _value1, + _ => throw new InvalidOperationException("Unexpected index.") + }; + } } public readonly struct AnimationRange : IProperty @@ -451,6 +603,17 @@ public string GetValue(string key) _ => throw new InvalidOperationException("Unexpected index.") }; } + + public object GetValue() + { + return _index switch + { + 0 => _value0, + 1 => _value1, + 2 => _value2, + _ => throw new InvalidOperationException("Unexpected index.") + }; + } } public readonly struct AnimationRangeEnd : IProperty @@ -482,6 +645,17 @@ public string GetValue(string key) _ => throw new InvalidOperationException("Unexpected index.") }; } + + public object GetValue() + { + return _index switch + { + 0 => _value0, + 1 => _value1, + 2 => _value2, + _ => throw new InvalidOperationException("Unexpected index.") + }; + } } public readonly struct AnimationRangeStart : IProperty @@ -513,6 +687,17 @@ public string GetValue(string key) _ => throw new InvalidOperationException("Unexpected index.") }; } + + public object GetValue() + { + return _index switch + { + 0 => _value0, + 1 => _value1, + 2 => _value2, + _ => throw new InvalidOperationException("Unexpected index.") + }; + } } public readonly struct AnimationTimeline : IProperty @@ -540,6 +725,16 @@ public string GetValue(string key) _ => throw new InvalidOperationException("Unexpected index.") }; } + + public object GetValue() + { + return _index switch + { + 0 => _value0, + 1 => _value1, + _ => throw new InvalidOperationException("Unexpected index.") + }; + } } public readonly struct AnimationTimingFunction : IProperty @@ -567,6 +762,16 @@ public string GetValue(string key) _ => throw new InvalidOperationException("Unexpected index.") }; } + + public object GetValue() + { + return _index switch + { + 0 => _value0, + 1 => _value1, + _ => throw new InvalidOperationException("Unexpected index.") + }; + } } public readonly struct Appearance : IProperty @@ -594,6 +799,16 @@ public string GetValue(string key) _ => throw new InvalidOperationException("Unexpected index.") }; } + + public object GetValue() + { + return _index switch + { + 0 => _value0, + 1 => _value1, + _ => throw new InvalidOperationException("Unexpected index.") + }; + } } public readonly struct AspectRatio : IProperty @@ -625,6 +840,17 @@ public string GetValue(string key) _ => throw new InvalidOperationException("Unexpected index.") }; } + + public object GetValue() + { + return _index switch + { + 0 => _value0, + 1 => _value1, + 2 => _value2, + _ => throw new InvalidOperationException("Unexpected index.") + }; + } } public readonly struct Azimuth : IProperty @@ -652,6 +878,16 @@ public string GetValue(string key) _ => throw new InvalidOperationException("Unexpected index.") }; } + + public object GetValue() + { + return _index switch + { + 0 => _value0, + 1 => _value1, + _ => throw new InvalidOperationException("Unexpected index.") + }; + } } public readonly struct BackdropFilter : IProperty @@ -679,6 +915,16 @@ public string GetValue(string key) _ => throw new InvalidOperationException("Unexpected index.") }; } + + public object GetValue() + { + return _index switch + { + 0 => _value0, + 1 => _value1, + _ => throw new InvalidOperationException("Unexpected index.") + }; + } } public readonly struct BackfaceVisibility : IProperty @@ -706,6 +952,16 @@ public string GetValue(string key) _ => throw new InvalidOperationException("Unexpected index.") }; } + + public object GetValue() + { + return _index switch + { + 0 => _value0, + 1 => _value1, + _ => throw new InvalidOperationException("Unexpected index.") + }; + } } public readonly struct Background : IProperty @@ -737,6 +993,17 @@ public string GetValue(string key) _ => throw new InvalidOperationException("Unexpected index.") }; } + + public object GetValue() + { + return _index switch + { + 0 => _value0, + 1 => _value1, + 2 => _value2, + _ => throw new InvalidOperationException("Unexpected index.") + }; + } } public readonly struct BackgroundAttachment : IProperty @@ -764,6 +1031,16 @@ public string GetValue(string key) _ => throw new InvalidOperationException("Unexpected index.") }; } + + public object GetValue() + { + return _index switch + { + 0 => _value0, + 1 => _value1, + _ => throw new InvalidOperationException("Unexpected index.") + }; + } } public readonly struct BackgroundBlendMode : IProperty @@ -791,6 +1068,16 @@ public string GetValue(string key) _ => throw new InvalidOperationException("Unexpected index.") }; } + + public object GetValue() + { + return _index switch + { + 0 => _value0, + 1 => _value1, + _ => throw new InvalidOperationException("Unexpected index.") + }; + } } public readonly struct BackgroundClip : IProperty @@ -818,6 +1105,16 @@ public string GetValue(string key) _ => throw new InvalidOperationException("Unexpected index.") }; } + + public object GetValue() + { + return _index switch + { + 0 => _value0, + 1 => _value1, + _ => throw new InvalidOperationException("Unexpected index.") + }; + } } public readonly struct BackgroundColor : IProperty @@ -845,6 +1142,16 @@ public string GetValue(string key) _ => throw new InvalidOperationException("Unexpected index.") }; } + + public object GetValue() + { + return _index switch + { + 0 => _value0, + 1 => _value1, + _ => throw new InvalidOperationException("Unexpected index.") + }; + } } public readonly struct BackgroundImage : IProperty @@ -872,6 +1179,16 @@ public string GetValue(string key) _ => throw new InvalidOperationException("Unexpected index.") }; } + + public object GetValue() + { + return _index switch + { + 0 => _value0, + 1 => _value1, + _ => throw new InvalidOperationException("Unexpected index.") + }; + } } public readonly struct BackgroundOrigin : IProperty @@ -899,6 +1216,16 @@ public string GetValue(string key) _ => throw new InvalidOperationException("Unexpected index.") }; } + + public object GetValue() + { + return _index switch + { + 0 => _value0, + 1 => _value1, + _ => throw new InvalidOperationException("Unexpected index.") + }; + } } public readonly struct BackgroundPosition : IProperty @@ -930,6 +1257,17 @@ public string GetValue(string key) _ => throw new InvalidOperationException("Unexpected index.") }; } + + public object GetValue() + { + return _index switch + { + 0 => _value0, + 1 => _value1, + 2 => _value2, + _ => throw new InvalidOperationException("Unexpected index.") + }; + } } public readonly struct BackgroundPositionX : IProperty @@ -961,6 +1299,17 @@ public string GetValue(string key) _ => throw new InvalidOperationException("Unexpected index.") }; } + + public object GetValue() + { + return _index switch + { + 0 => _value0, + 1 => _value1, + 2 => _value2, + _ => throw new InvalidOperationException("Unexpected index.") + }; + } } public readonly struct BackgroundPositionY : IProperty @@ -992,6 +1341,17 @@ public string GetValue(string key) _ => throw new InvalidOperationException("Unexpected index.") }; } + + public object GetValue() + { + return _index switch + { + 0 => _value0, + 1 => _value1, + 2 => _value2, + _ => throw new InvalidOperationException("Unexpected index.") + }; + } } public readonly struct BackgroundRepeat : IProperty @@ -1019,6 +1379,16 @@ public string GetValue(string key) _ => throw new InvalidOperationException("Unexpected index.") }; } + + public object GetValue() + { + return _index switch + { + 0 => _value0, + 1 => _value1, + _ => throw new InvalidOperationException("Unexpected index.") + }; + } } public readonly struct BackgroundSize : IProperty @@ -1050,11 +1420,22 @@ public string GetValue(string key) _ => throw new InvalidOperationException("Unexpected index.") }; } - } - public readonly struct BlockOverflow : IProperty - { - private readonly int _index; + public object GetValue() + { + return _index switch + { + 0 => _value0, + 1 => _value1, + 2 => _value2, + _ => throw new InvalidOperationException("Unexpected index.") + }; + } + } + + public readonly struct BlockOverflow : IProperty + { + private readonly int _index; private readonly PropertySkip _value0; private readonly string _value1; @@ -1077,6 +1458,16 @@ public string GetValue(string key) _ => throw new InvalidOperationException("Unexpected index.") }; } + + public object GetValue() + { + return _index switch + { + 0 => _value0, + 1 => _value1, + _ => throw new InvalidOperationException("Unexpected index.") + }; + } } public readonly struct BlockSize : IProperty @@ -1108,6 +1499,17 @@ public string GetValue(string key) _ => throw new InvalidOperationException("Unexpected index.") }; } + + public object GetValue() + { + return _index switch + { + 0 => _value0, + 1 => _value1, + 2 => _value2, + _ => throw new InvalidOperationException("Unexpected index.") + }; + } } public readonly struct Border : IProperty @@ -1139,6 +1541,17 @@ public string GetValue(string key) _ => throw new InvalidOperationException("Unexpected index.") }; } + + public object GetValue() + { + return _index switch + { + 0 => _value0, + 1 => _value1, + 2 => _value2, + _ => throw new InvalidOperationException("Unexpected index.") + }; + } } public readonly struct BorderBlock : IProperty @@ -1170,6 +1583,17 @@ public string GetValue(string key) _ => throw new InvalidOperationException("Unexpected index.") }; } + + public object GetValue() + { + return _index switch + { + 0 => _value0, + 1 => _value1, + 2 => _value2, + _ => throw new InvalidOperationException("Unexpected index.") + }; + } } public readonly struct BorderBlockColor : IProperty @@ -1197,6 +1621,16 @@ public string GetValue(string key) _ => throw new InvalidOperationException("Unexpected index.") }; } + + public object GetValue() + { + return _index switch + { + 0 => _value0, + 1 => _value1, + _ => throw new InvalidOperationException("Unexpected index.") + }; + } } public readonly struct BorderBlockEnd : IProperty @@ -1228,6 +1662,17 @@ public string GetValue(string key) _ => throw new InvalidOperationException("Unexpected index.") }; } + + public object GetValue() + { + return _index switch + { + 0 => _value0, + 1 => _value1, + 2 => _value2, + _ => throw new InvalidOperationException("Unexpected index.") + }; + } } public readonly struct BorderBlockEndColor : IProperty @@ -1255,6 +1700,16 @@ public string GetValue(string key) _ => throw new InvalidOperationException("Unexpected index.") }; } + + public object GetValue() + { + return _index switch + { + 0 => _value0, + 1 => _value1, + _ => throw new InvalidOperationException("Unexpected index.") + }; + } } public readonly struct BorderBlockEndStyle : IProperty @@ -1282,6 +1737,16 @@ public string GetValue(string key) _ => throw new InvalidOperationException("Unexpected index.") }; } + + public object GetValue() + { + return _index switch + { + 0 => _value0, + 1 => _value1, + _ => throw new InvalidOperationException("Unexpected index.") + }; + } } public readonly struct BorderBlockEndWidth : IProperty @@ -1313,6 +1778,17 @@ public string GetValue(string key) _ => throw new InvalidOperationException("Unexpected index.") }; } + + public object GetValue() + { + return _index switch + { + 0 => _value0, + 1 => _value1, + 2 => _value2, + _ => throw new InvalidOperationException("Unexpected index.") + }; + } } public readonly struct BorderBlockStart : IProperty @@ -1344,6 +1820,17 @@ public string GetValue(string key) _ => throw new InvalidOperationException("Unexpected index.") }; } + + public object GetValue() + { + return _index switch + { + 0 => _value0, + 1 => _value1, + 2 => _value2, + _ => throw new InvalidOperationException("Unexpected index.") + }; + } } public readonly struct BorderBlockStartColor : IProperty @@ -1371,6 +1858,16 @@ public string GetValue(string key) _ => throw new InvalidOperationException("Unexpected index.") }; } + + public object GetValue() + { + return _index switch + { + 0 => _value0, + 1 => _value1, + _ => throw new InvalidOperationException("Unexpected index.") + }; + } } public readonly struct BorderBlockStartStyle : IProperty @@ -1398,6 +1895,16 @@ public string GetValue(string key) _ => throw new InvalidOperationException("Unexpected index.") }; } + + public object GetValue() + { + return _index switch + { + 0 => _value0, + 1 => _value1, + _ => throw new InvalidOperationException("Unexpected index.") + }; + } } public readonly struct BorderBlockStartWidth : IProperty @@ -1429,6 +1936,17 @@ public string GetValue(string key) _ => throw new InvalidOperationException("Unexpected index.") }; } + + public object GetValue() + { + return _index switch + { + 0 => _value0, + 1 => _value1, + 2 => _value2, + _ => throw new InvalidOperationException("Unexpected index.") + }; + } } public readonly struct BorderBlockStyle : IProperty @@ -1456,6 +1974,16 @@ public string GetValue(string key) _ => throw new InvalidOperationException("Unexpected index.") }; } + + public object GetValue() + { + return _index switch + { + 0 => _value0, + 1 => _value1, + _ => throw new InvalidOperationException("Unexpected index.") + }; + } } public readonly struct BorderBlockWidth : IProperty @@ -1487,6 +2015,17 @@ public string GetValue(string key) _ => throw new InvalidOperationException("Unexpected index.") }; } + + public object GetValue() + { + return _index switch + { + 0 => _value0, + 1 => _value1, + 2 => _value2, + _ => throw new InvalidOperationException("Unexpected index.") + }; + } } public readonly struct BorderBottom : IProperty @@ -1518,6 +2057,17 @@ public string GetValue(string key) _ => throw new InvalidOperationException("Unexpected index.") }; } + + public object GetValue() + { + return _index switch + { + 0 => _value0, + 1 => _value1, + 2 => _value2, + _ => throw new InvalidOperationException("Unexpected index.") + }; + } } public readonly struct BorderBottomColor : IProperty @@ -1545,6 +2095,16 @@ public string GetValue(string key) _ => throw new InvalidOperationException("Unexpected index.") }; } + + public object GetValue() + { + return _index switch + { + 0 => _value0, + 1 => _value1, + _ => throw new InvalidOperationException("Unexpected index.") + }; + } } public readonly struct BorderBottomLeftRadius : IProperty @@ -1576,6 +2136,17 @@ public string GetValue(string key) _ => throw new InvalidOperationException("Unexpected index.") }; } + + public object GetValue() + { + return _index switch + { + 0 => _value0, + 1 => _value1, + 2 => _value2, + _ => throw new InvalidOperationException("Unexpected index.") + }; + } } public readonly struct BorderBottomRightRadius : IProperty @@ -1607,6 +2178,17 @@ public string GetValue(string key) _ => throw new InvalidOperationException("Unexpected index.") }; } + + public object GetValue() + { + return _index switch + { + 0 => _value0, + 1 => _value1, + 2 => _value2, + _ => throw new InvalidOperationException("Unexpected index.") + }; + } } public readonly struct BorderBottomStyle : IProperty @@ -1634,6 +2216,16 @@ public string GetValue(string key) _ => throw new InvalidOperationException("Unexpected index.") }; } + + public object GetValue() + { + return _index switch + { + 0 => _value0, + 1 => _value1, + _ => throw new InvalidOperationException("Unexpected index.") + }; + } } public readonly struct BorderBottomWidth : IProperty @@ -1665,6 +2257,17 @@ public string GetValue(string key) _ => throw new InvalidOperationException("Unexpected index.") }; } + + public object GetValue() + { + return _index switch + { + 0 => _value0, + 1 => _value1, + 2 => _value2, + _ => throw new InvalidOperationException("Unexpected index.") + }; + } } public readonly struct BorderCollapse : IProperty @@ -1692,6 +2295,16 @@ public string GetValue(string key) _ => throw new InvalidOperationException("Unexpected index.") }; } + + public object GetValue() + { + return _index switch + { + 0 => _value0, + 1 => _value1, + _ => throw new InvalidOperationException("Unexpected index.") + }; + } } public readonly struct BorderColor : IProperty @@ -1719,6 +2332,16 @@ public string GetValue(string key) _ => throw new InvalidOperationException("Unexpected index.") }; } + + public object GetValue() + { + return _index switch + { + 0 => _value0, + 1 => _value1, + _ => throw new InvalidOperationException("Unexpected index.") + }; + } } public readonly struct BorderEndEndRadius : IProperty @@ -1750,6 +2373,17 @@ public string GetValue(string key) _ => throw new InvalidOperationException("Unexpected index.") }; } + + public object GetValue() + { + return _index switch + { + 0 => _value0, + 1 => _value1, + 2 => _value2, + _ => throw new InvalidOperationException("Unexpected index.") + }; + } } public readonly struct BorderEndStartRadius : IProperty @@ -1781,6 +2415,17 @@ public string GetValue(string key) _ => throw new InvalidOperationException("Unexpected index.") }; } + + public object GetValue() + { + return _index switch + { + 0 => _value0, + 1 => _value1, + 2 => _value2, + _ => throw new InvalidOperationException("Unexpected index.") + }; + } } public readonly struct BorderImage : IProperty @@ -1812,6 +2457,17 @@ public string GetValue(string key) _ => throw new InvalidOperationException("Unexpected index.") }; } + + public object GetValue() + { + return _index switch + { + 0 => _value0, + 1 => _value1, + 2 => _value2, + _ => throw new InvalidOperationException("Unexpected index.") + }; + } } public readonly struct BorderImageOutset : IProperty @@ -1843,6 +2499,17 @@ public string GetValue(string key) _ => throw new InvalidOperationException("Unexpected index.") }; } + + public object GetValue() + { + return _index switch + { + 0 => _value0, + 1 => _value1, + 2 => _value2, + _ => throw new InvalidOperationException("Unexpected index.") + }; + } } public readonly struct BorderImageRepeat : IProperty @@ -1870,6 +2537,16 @@ public string GetValue(string key) _ => throw new InvalidOperationException("Unexpected index.") }; } + + public object GetValue() + { + return _index switch + { + 0 => _value0, + 1 => _value1, + _ => throw new InvalidOperationException("Unexpected index.") + }; + } } public readonly struct BorderImageSlice : IProperty @@ -1901,6 +2578,17 @@ public string GetValue(string key) _ => throw new InvalidOperationException("Unexpected index.") }; } + + public object GetValue() + { + return _index switch + { + 0 => _value0, + 1 => _value1, + 2 => _value2, + _ => throw new InvalidOperationException("Unexpected index.") + }; + } } public readonly struct BorderImageSource : IProperty @@ -1928,6 +2616,16 @@ public string GetValue(string key) _ => throw new InvalidOperationException("Unexpected index.") }; } + + public object GetValue() + { + return _index switch + { + 0 => _value0, + 1 => _value1, + _ => throw new InvalidOperationException("Unexpected index.") + }; + } } public readonly struct BorderImageWidth : IProperty @@ -1959,6 +2657,17 @@ public string GetValue(string key) _ => throw new InvalidOperationException("Unexpected index.") }; } + + public object GetValue() + { + return _index switch + { + 0 => _value0, + 1 => _value1, + 2 => _value2, + _ => throw new InvalidOperationException("Unexpected index.") + }; + } } public readonly struct BorderInline : IProperty @@ -1990,6 +2699,17 @@ public string GetValue(string key) _ => throw new InvalidOperationException("Unexpected index.") }; } + + public object GetValue() + { + return _index switch + { + 0 => _value0, + 1 => _value1, + 2 => _value2, + _ => throw new InvalidOperationException("Unexpected index.") + }; + } } public readonly struct BorderInlineColor : IProperty @@ -2017,6 +2737,16 @@ public string GetValue(string key) _ => throw new InvalidOperationException("Unexpected index.") }; } + + public object GetValue() + { + return _index switch + { + 0 => _value0, + 1 => _value1, + _ => throw new InvalidOperationException("Unexpected index.") + }; + } } public readonly struct BorderInlineEnd : IProperty @@ -2048,6 +2778,17 @@ public string GetValue(string key) _ => throw new InvalidOperationException("Unexpected index.") }; } + + public object GetValue() + { + return _index switch + { + 0 => _value0, + 1 => _value1, + 2 => _value2, + _ => throw new InvalidOperationException("Unexpected index.") + }; + } } public readonly struct BorderInlineEndColor : IProperty @@ -2075,6 +2816,16 @@ public string GetValue(string key) _ => throw new InvalidOperationException("Unexpected index.") }; } + + public object GetValue() + { + return _index switch + { + 0 => _value0, + 1 => _value1, + _ => throw new InvalidOperationException("Unexpected index.") + }; + } } public readonly struct BorderInlineEndStyle : IProperty @@ -2102,6 +2853,16 @@ public string GetValue(string key) _ => throw new InvalidOperationException("Unexpected index.") }; } + + public object GetValue() + { + return _index switch + { + 0 => _value0, + 1 => _value1, + _ => throw new InvalidOperationException("Unexpected index.") + }; + } } public readonly struct BorderInlineEndWidth : IProperty @@ -2133,6 +2894,17 @@ public string GetValue(string key) _ => throw new InvalidOperationException("Unexpected index.") }; } + + public object GetValue() + { + return _index switch + { + 0 => _value0, + 1 => _value1, + 2 => _value2, + _ => throw new InvalidOperationException("Unexpected index.") + }; + } } public readonly struct BorderInlineStart : IProperty @@ -2164,6 +2936,17 @@ public string GetValue(string key) _ => throw new InvalidOperationException("Unexpected index.") }; } + + public object GetValue() + { + return _index switch + { + 0 => _value0, + 1 => _value1, + 2 => _value2, + _ => throw new InvalidOperationException("Unexpected index.") + }; + } } public readonly struct BorderInlineStartColor : IProperty @@ -2191,6 +2974,16 @@ public string GetValue(string key) _ => throw new InvalidOperationException("Unexpected index.") }; } + + public object GetValue() + { + return _index switch + { + 0 => _value0, + 1 => _value1, + _ => throw new InvalidOperationException("Unexpected index.") + }; + } } public readonly struct BorderInlineStartStyle : IProperty @@ -2218,6 +3011,16 @@ public string GetValue(string key) _ => throw new InvalidOperationException("Unexpected index.") }; } + + public object GetValue() + { + return _index switch + { + 0 => _value0, + 1 => _value1, + _ => throw new InvalidOperationException("Unexpected index.") + }; + } } public readonly struct BorderInlineStartWidth : IProperty @@ -2249,6 +3052,17 @@ public string GetValue(string key) _ => throw new InvalidOperationException("Unexpected index.") }; } + + public object GetValue() + { + return _index switch + { + 0 => _value0, + 1 => _value1, + 2 => _value2, + _ => throw new InvalidOperationException("Unexpected index.") + }; + } } public readonly struct BorderInlineStyle : IProperty @@ -2276,6 +3090,16 @@ public string GetValue(string key) _ => throw new InvalidOperationException("Unexpected index.") }; } + + public object GetValue() + { + return _index switch + { + 0 => _value0, + 1 => _value1, + _ => throw new InvalidOperationException("Unexpected index.") + }; + } } public readonly struct BorderInlineWidth : IProperty @@ -2307,6 +3131,17 @@ public string GetValue(string key) _ => throw new InvalidOperationException("Unexpected index.") }; } + + public object GetValue() + { + return _index switch + { + 0 => _value0, + 1 => _value1, + 2 => _value2, + _ => throw new InvalidOperationException("Unexpected index.") + }; + } } public readonly struct BorderLeft : IProperty @@ -2338,6 +3173,17 @@ public string GetValue(string key) _ => throw new InvalidOperationException("Unexpected index.") }; } + + public object GetValue() + { + return _index switch + { + 0 => _value0, + 1 => _value1, + 2 => _value2, + _ => throw new InvalidOperationException("Unexpected index.") + }; + } } public readonly struct BorderLeftColor : IProperty @@ -2365,6 +3211,16 @@ public string GetValue(string key) _ => throw new InvalidOperationException("Unexpected index.") }; } + + public object GetValue() + { + return _index switch + { + 0 => _value0, + 1 => _value1, + _ => throw new InvalidOperationException("Unexpected index.") + }; + } } public readonly struct BorderLeftStyle : IProperty @@ -2392,6 +3248,16 @@ public string GetValue(string key) _ => throw new InvalidOperationException("Unexpected index.") }; } + + public object GetValue() + { + return _index switch + { + 0 => _value0, + 1 => _value1, + _ => throw new InvalidOperationException("Unexpected index.") + }; + } } public readonly struct BorderLeftWidth : IProperty @@ -2423,6 +3289,17 @@ public string GetValue(string key) _ => throw new InvalidOperationException("Unexpected index.") }; } + + public object GetValue() + { + return _index switch + { + 0 => _value0, + 1 => _value1, + 2 => _value2, + _ => throw new InvalidOperationException("Unexpected index.") + }; + } } public readonly struct BorderRadius : IProperty @@ -2454,6 +3331,17 @@ public string GetValue(string key) _ => throw new InvalidOperationException("Unexpected index.") }; } + + public object GetValue() + { + return _index switch + { + 0 => _value0, + 1 => _value1, + 2 => _value2, + _ => throw new InvalidOperationException("Unexpected index.") + }; + } } public readonly struct BorderRight : IProperty @@ -2485,6 +3373,17 @@ public string GetValue(string key) _ => throw new InvalidOperationException("Unexpected index.") }; } + + public object GetValue() + { + return _index switch + { + 0 => _value0, + 1 => _value1, + 2 => _value2, + _ => throw new InvalidOperationException("Unexpected index.") + }; + } } public readonly struct BorderRightColor : IProperty @@ -2512,6 +3411,16 @@ public string GetValue(string key) _ => throw new InvalidOperationException("Unexpected index.") }; } + + public object GetValue() + { + return _index switch + { + 0 => _value0, + 1 => _value1, + _ => throw new InvalidOperationException("Unexpected index.") + }; + } } public readonly struct BorderRightStyle : IProperty @@ -2539,6 +3448,16 @@ public string GetValue(string key) _ => throw new InvalidOperationException("Unexpected index.") }; } + + public object GetValue() + { + return _index switch + { + 0 => _value0, + 1 => _value1, + _ => throw new InvalidOperationException("Unexpected index.") + }; + } } public readonly struct BorderRightWidth : IProperty @@ -2570,6 +3489,17 @@ public string GetValue(string key) _ => throw new InvalidOperationException("Unexpected index.") }; } + + public object GetValue() + { + return _index switch + { + 0 => _value0, + 1 => _value1, + 2 => _value2, + _ => throw new InvalidOperationException("Unexpected index.") + }; + } } public readonly struct BorderSpacing : IProperty @@ -2601,6 +3531,17 @@ public string GetValue(string key) _ => throw new InvalidOperationException("Unexpected index.") }; } + + public object GetValue() + { + return _index switch + { + 0 => _value0, + 1 => _value1, + 2 => _value2, + _ => throw new InvalidOperationException("Unexpected index.") + }; + } } public readonly struct BorderStartEndRadius : IProperty @@ -2632,6 +3573,17 @@ public string GetValue(string key) _ => throw new InvalidOperationException("Unexpected index.") }; } + + public object GetValue() + { + return _index switch + { + 0 => _value0, + 1 => _value1, + 2 => _value2, + _ => throw new InvalidOperationException("Unexpected index.") + }; + } } public readonly struct BorderStartStartRadius : IProperty @@ -2663,6 +3615,17 @@ public string GetValue(string key) _ => throw new InvalidOperationException("Unexpected index.") }; } + + public object GetValue() + { + return _index switch + { + 0 => _value0, + 1 => _value1, + 2 => _value2, + _ => throw new InvalidOperationException("Unexpected index.") + }; + } } public readonly struct BorderStyle : IProperty @@ -2690,6 +3653,16 @@ public string GetValue(string key) _ => throw new InvalidOperationException("Unexpected index.") }; } + + public object GetValue() + { + return _index switch + { + 0 => _value0, + 1 => _value1, + _ => throw new InvalidOperationException("Unexpected index.") + }; + } } public readonly struct BorderTop : IProperty @@ -2721,6 +3694,17 @@ public string GetValue(string key) _ => throw new InvalidOperationException("Unexpected index.") }; } + + public object GetValue() + { + return _index switch + { + 0 => _value0, + 1 => _value1, + 2 => _value2, + _ => throw new InvalidOperationException("Unexpected index.") + }; + } } public readonly struct BorderTopColor : IProperty @@ -2748,6 +3732,16 @@ public string GetValue(string key) _ => throw new InvalidOperationException("Unexpected index.") }; } + + public object GetValue() + { + return _index switch + { + 0 => _value0, + 1 => _value1, + _ => throw new InvalidOperationException("Unexpected index.") + }; + } } public readonly struct BorderTopLeftRadius : IProperty @@ -2779,6 +3773,17 @@ public string GetValue(string key) _ => throw new InvalidOperationException("Unexpected index.") }; } + + public object GetValue() + { + return _index switch + { + 0 => _value0, + 1 => _value1, + 2 => _value2, + _ => throw new InvalidOperationException("Unexpected index.") + }; + } } public readonly struct BorderTopRightRadius : IProperty @@ -2810,6 +3815,17 @@ public string GetValue(string key) _ => throw new InvalidOperationException("Unexpected index.") }; } + + public object GetValue() + { + return _index switch + { + 0 => _value0, + 1 => _value1, + 2 => _value2, + _ => throw new InvalidOperationException("Unexpected index.") + }; + } } public readonly struct BorderTopStyle : IProperty @@ -2837,6 +3853,16 @@ public string GetValue(string key) _ => throw new InvalidOperationException("Unexpected index.") }; } + + public object GetValue() + { + return _index switch + { + 0 => _value0, + 1 => _value1, + _ => throw new InvalidOperationException("Unexpected index.") + }; + } } public readonly struct BorderTopWidth : IProperty @@ -2868,6 +3894,17 @@ public string GetValue(string key) _ => throw new InvalidOperationException("Unexpected index.") }; } + + public object GetValue() + { + return _index switch + { + 0 => _value0, + 1 => _value1, + 2 => _value2, + _ => throw new InvalidOperationException("Unexpected index.") + }; + } } public readonly struct BorderWidth : IProperty @@ -2899,6 +3936,17 @@ public string GetValue(string key) _ => throw new InvalidOperationException("Unexpected index.") }; } + + public object GetValue() + { + return _index switch + { + 0 => _value0, + 1 => _value1, + 2 => _value2, + _ => throw new InvalidOperationException("Unexpected index.") + }; + } } public readonly struct Bottom : IProperty @@ -2930,6 +3978,17 @@ public string GetValue(string key) _ => throw new InvalidOperationException("Unexpected index.") }; } + + public object GetValue() + { + return _index switch + { + 0 => _value0, + 1 => _value1, + 2 => _value2, + _ => throw new InvalidOperationException("Unexpected index.") + }; + } } public readonly struct BoxAlign : IProperty @@ -2957,6 +4016,16 @@ public string GetValue(string key) _ => throw new InvalidOperationException("Unexpected index.") }; } + + public object GetValue() + { + return _index switch + { + 0 => _value0, + 1 => _value1, + _ => throw new InvalidOperationException("Unexpected index.") + }; + } } public readonly struct BoxDecorationBreak : IProperty @@ -2984,6 +4053,16 @@ public string GetValue(string key) _ => throw new InvalidOperationException("Unexpected index.") }; } + + public object GetValue() + { + return _index switch + { + 0 => _value0, + 1 => _value1, + _ => throw new InvalidOperationException("Unexpected index.") + }; + } } public readonly struct BoxDirection : IProperty @@ -3011,6 +4090,16 @@ public string GetValue(string key) _ => throw new InvalidOperationException("Unexpected index.") }; } + + public object GetValue() + { + return _index switch + { + 0 => _value0, + 1 => _value1, + _ => throw new InvalidOperationException("Unexpected index.") + }; + } } public readonly struct BoxFlex : IProperty @@ -3042,6 +4131,17 @@ public string GetValue(string key) _ => throw new InvalidOperationException("Unexpected index.") }; } + + public object GetValue() + { + return _index switch + { + 0 => _value0, + 1 => _value1, + 2 => _value2, + _ => throw new InvalidOperationException("Unexpected index.") + }; + } } public readonly struct BoxFlexGroup : IProperty @@ -3073,6 +4173,17 @@ public string GetValue(string key) _ => throw new InvalidOperationException("Unexpected index.") }; } + + public object GetValue() + { + return _index switch + { + 0 => _value0, + 1 => _value1, + 2 => _value2, + _ => throw new InvalidOperationException("Unexpected index.") + }; + } } public readonly struct BoxLines : IProperty @@ -3100,6 +4211,16 @@ public string GetValue(string key) _ => throw new InvalidOperationException("Unexpected index.") }; } + + public object GetValue() + { + return _index switch + { + 0 => _value0, + 1 => _value1, + _ => throw new InvalidOperationException("Unexpected index.") + }; + } } public readonly struct BoxOrdinalGroup : IProperty @@ -3131,6 +4252,17 @@ public string GetValue(string key) _ => throw new InvalidOperationException("Unexpected index.") }; } + + public object GetValue() + { + return _index switch + { + 0 => _value0, + 1 => _value1, + 2 => _value2, + _ => throw new InvalidOperationException("Unexpected index.") + }; + } } public readonly struct BoxOrient : IProperty @@ -3158,11 +4290,21 @@ public string GetValue(string key) _ => throw new InvalidOperationException("Unexpected index.") }; } - } - public readonly struct BoxPack : IProperty - { - private readonly int _index; + public object GetValue() + { + return _index switch + { + 0 => _value0, + 1 => _value1, + _ => throw new InvalidOperationException("Unexpected index.") + }; + } + } + + public readonly struct BoxPack : IProperty + { + private readonly int _index; private readonly PropertySkip _value0; private readonly string _value1; @@ -3185,6 +4327,16 @@ public string GetValue(string key) _ => throw new InvalidOperationException("Unexpected index.") }; } + + public object GetValue() + { + return _index switch + { + 0 => _value0, + 1 => _value1, + _ => throw new InvalidOperationException("Unexpected index.") + }; + } } public readonly struct BoxShadow : IProperty @@ -3212,6 +4364,16 @@ public string GetValue(string key) _ => throw new InvalidOperationException("Unexpected index.") }; } + + public object GetValue() + { + return _index switch + { + 0 => _value0, + 1 => _value1, + _ => throw new InvalidOperationException("Unexpected index.") + }; + } } public readonly struct BoxSizing : IProperty @@ -3239,6 +4401,16 @@ public string GetValue(string key) _ => throw new InvalidOperationException("Unexpected index.") }; } + + public object GetValue() + { + return _index switch + { + 0 => _value0, + 1 => _value1, + _ => throw new InvalidOperationException("Unexpected index.") + }; + } } public readonly struct BreakAfter : IProperty @@ -3266,6 +4438,16 @@ public string GetValue(string key) _ => throw new InvalidOperationException("Unexpected index.") }; } + + public object GetValue() + { + return _index switch + { + 0 => _value0, + 1 => _value1, + _ => throw new InvalidOperationException("Unexpected index.") + }; + } } public readonly struct BreakBefore : IProperty @@ -3293,6 +4475,16 @@ public string GetValue(string key) _ => throw new InvalidOperationException("Unexpected index.") }; } + + public object GetValue() + { + return _index switch + { + 0 => _value0, + 1 => _value1, + _ => throw new InvalidOperationException("Unexpected index.") + }; + } } public readonly struct BreakInside : IProperty @@ -3320,6 +4512,16 @@ public string GetValue(string key) _ => throw new InvalidOperationException("Unexpected index.") }; } + + public object GetValue() + { + return _index switch + { + 0 => _value0, + 1 => _value1, + _ => throw new InvalidOperationException("Unexpected index.") + }; + } } public readonly struct CaptionSide : IProperty @@ -3347,6 +4549,16 @@ public string GetValue(string key) _ => throw new InvalidOperationException("Unexpected index.") }; } + + public object GetValue() + { + return _index switch + { + 0 => _value0, + 1 => _value1, + _ => throw new InvalidOperationException("Unexpected index.") + }; + } } public readonly struct Caret : IProperty @@ -3374,6 +4586,16 @@ public string GetValue(string key) _ => throw new InvalidOperationException("Unexpected index.") }; } + + public object GetValue() + { + return _index switch + { + 0 => _value0, + 1 => _value1, + _ => throw new InvalidOperationException("Unexpected index.") + }; + } } public readonly struct CaretColor : IProperty @@ -3401,6 +4623,16 @@ public string GetValue(string key) _ => throw new InvalidOperationException("Unexpected index.") }; } + + public object GetValue() + { + return _index switch + { + 0 => _value0, + 1 => _value1, + _ => throw new InvalidOperationException("Unexpected index.") + }; + } } public readonly struct CaretShape : IProperty @@ -3428,6 +4660,16 @@ public string GetValue(string key) _ => throw new InvalidOperationException("Unexpected index.") }; } + + public object GetValue() + { + return _index switch + { + 0 => _value0, + 1 => _value1, + _ => throw new InvalidOperationException("Unexpected index.") + }; + } } public readonly struct Clear : IProperty @@ -3455,6 +4697,16 @@ public string GetValue(string key) _ => throw new InvalidOperationException("Unexpected index.") }; } + + public object GetValue() + { + return _index switch + { + 0 => _value0, + 1 => _value1, + _ => throw new InvalidOperationException("Unexpected index.") + }; + } } public readonly struct Clip : IProperty @@ -3482,6 +4734,16 @@ public string GetValue(string key) _ => throw new InvalidOperationException("Unexpected index.") }; } + + public object GetValue() + { + return _index switch + { + 0 => _value0, + 1 => _value1, + _ => throw new InvalidOperationException("Unexpected index.") + }; + } } public readonly struct ClipPath : IProperty @@ -3509,6 +4771,16 @@ public string GetValue(string key) _ => throw new InvalidOperationException("Unexpected index.") }; } + + public object GetValue() + { + return _index switch + { + 0 => _value0, + 1 => _value1, + _ => throw new InvalidOperationException("Unexpected index.") + }; + } } public readonly struct Color : IProperty @@ -3536,6 +4808,16 @@ public string GetValue(string key) _ => throw new InvalidOperationException("Unexpected index.") }; } + + public object GetValue() + { + return _index switch + { + 0 => _value0, + 1 => _value1, + _ => throw new InvalidOperationException("Unexpected index.") + }; + } } public readonly struct PrintColorAdjust : IProperty @@ -3563,6 +4845,16 @@ public string GetValue(string key) _ => throw new InvalidOperationException("Unexpected index.") }; } + + public object GetValue() + { + return _index switch + { + 0 => _value0, + 1 => _value1, + _ => throw new InvalidOperationException("Unexpected index.") + }; + } } public readonly struct ColorScheme : IProperty @@ -3590,6 +4882,16 @@ public string GetValue(string key) _ => throw new InvalidOperationException("Unexpected index.") }; } + + public object GetValue() + { + return _index switch + { + 0 => _value0, + 1 => _value1, + _ => throw new InvalidOperationException("Unexpected index.") + }; + } } public readonly struct ColumnCount : IProperty @@ -3621,6 +4923,17 @@ public string GetValue(string key) _ => throw new InvalidOperationException("Unexpected index.") }; } + + public object GetValue() + { + return _index switch + { + 0 => _value0, + 1 => _value1, + 2 => _value2, + _ => throw new InvalidOperationException("Unexpected index.") + }; + } } public readonly struct ColumnFill : IProperty @@ -3648,6 +4961,16 @@ public string GetValue(string key) _ => throw new InvalidOperationException("Unexpected index.") }; } + + public object GetValue() + { + return _index switch + { + 0 => _value0, + 1 => _value1, + _ => throw new InvalidOperationException("Unexpected index.") + }; + } } public readonly struct ColumnGap : IProperty @@ -3679,6 +5002,17 @@ public string GetValue(string key) _ => throw new InvalidOperationException("Unexpected index.") }; } + + public object GetValue() + { + return _index switch + { + 0 => _value0, + 1 => _value1, + 2 => _value2, + _ => throw new InvalidOperationException("Unexpected index.") + }; + } } public readonly struct ColumnRule : IProperty @@ -3710,6 +5044,17 @@ public string GetValue(string key) _ => throw new InvalidOperationException("Unexpected index.") }; } + + public object GetValue() + { + return _index switch + { + 0 => _value0, + 1 => _value1, + 2 => _value2, + _ => throw new InvalidOperationException("Unexpected index.") + }; + } } public readonly struct ColumnRuleColor : IProperty @@ -3737,6 +5082,16 @@ public string GetValue(string key) _ => throw new InvalidOperationException("Unexpected index.") }; } + + public object GetValue() + { + return _index switch + { + 0 => _value0, + 1 => _value1, + _ => throw new InvalidOperationException("Unexpected index.") + }; + } } public readonly struct ColumnRuleStyle : IProperty @@ -3764,6 +5119,16 @@ public string GetValue(string key) _ => throw new InvalidOperationException("Unexpected index.") }; } + + public object GetValue() + { + return _index switch + { + 0 => _value0, + 1 => _value1, + _ => throw new InvalidOperationException("Unexpected index.") + }; + } } public readonly struct ColumnRuleWidth : IProperty @@ -3795,6 +5160,17 @@ public string GetValue(string key) _ => throw new InvalidOperationException("Unexpected index.") }; } + + public object GetValue() + { + return _index switch + { + 0 => _value0, + 1 => _value1, + 2 => _value2, + _ => throw new InvalidOperationException("Unexpected index.") + }; + } } public readonly struct ColumnSpan : IProperty @@ -3822,6 +5198,16 @@ public string GetValue(string key) _ => throw new InvalidOperationException("Unexpected index.") }; } + + public object GetValue() + { + return _index switch + { + 0 => _value0, + 1 => _value1, + _ => throw new InvalidOperationException("Unexpected index.") + }; + } } public readonly struct ColumnWidth : IProperty @@ -3853,6 +5239,17 @@ public string GetValue(string key) _ => throw new InvalidOperationException("Unexpected index.") }; } + + public object GetValue() + { + return _index switch + { + 0 => _value0, + 1 => _value1, + 2 => _value2, + _ => throw new InvalidOperationException("Unexpected index.") + }; + } } public readonly struct Columns : IProperty @@ -3884,6 +5281,17 @@ public string GetValue(string key) _ => throw new InvalidOperationException("Unexpected index.") }; } + + public object GetValue() + { + return _index switch + { + 0 => _value0, + 1 => _value1, + 2 => _value2, + _ => throw new InvalidOperationException("Unexpected index.") + }; + } } public readonly struct Contain : IProperty @@ -3911,6 +5319,16 @@ public string GetValue(string key) _ => throw new InvalidOperationException("Unexpected index.") }; } + + public object GetValue() + { + return _index switch + { + 0 => _value0, + 1 => _value1, + _ => throw new InvalidOperationException("Unexpected index.") + }; + } } public readonly struct ContainIntrinsicBlockSize : IProperty @@ -3942,6 +5360,17 @@ public string GetValue(string key) _ => throw new InvalidOperationException("Unexpected index.") }; } + + public object GetValue() + { + return _index switch + { + 0 => _value0, + 1 => _value1, + 2 => _value2, + _ => throw new InvalidOperationException("Unexpected index.") + }; + } } public readonly struct ContainIntrinsicHeight : IProperty @@ -3973,6 +5402,17 @@ public string GetValue(string key) _ => throw new InvalidOperationException("Unexpected index.") }; } + + public object GetValue() + { + return _index switch + { + 0 => _value0, + 1 => _value1, + 2 => _value2, + _ => throw new InvalidOperationException("Unexpected index.") + }; + } } public readonly struct ContainIntrinsicInlineSize : IProperty @@ -4004,6 +5444,17 @@ public string GetValue(string key) _ => throw new InvalidOperationException("Unexpected index.") }; } + + public object GetValue() + { + return _index switch + { + 0 => _value0, + 1 => _value1, + 2 => _value2, + _ => throw new InvalidOperationException("Unexpected index.") + }; + } } public readonly struct ContainIntrinsicSize : IProperty @@ -4035,6 +5486,17 @@ public string GetValue(string key) _ => throw new InvalidOperationException("Unexpected index.") }; } + + public object GetValue() + { + return _index switch + { + 0 => _value0, + 1 => _value1, + 2 => _value2, + _ => throw new InvalidOperationException("Unexpected index.") + }; + } } public readonly struct ContainIntrinsicWidth : IProperty @@ -4066,6 +5528,17 @@ public string GetValue(string key) _ => throw new InvalidOperationException("Unexpected index.") }; } + + public object GetValue() + { + return _index switch + { + 0 => _value0, + 1 => _value1, + 2 => _value2, + _ => throw new InvalidOperationException("Unexpected index.") + }; + } } public readonly struct Container : IProperty @@ -4093,6 +5566,16 @@ public string GetValue(string key) _ => throw new InvalidOperationException("Unexpected index.") }; } + + public object GetValue() + { + return _index switch + { + 0 => _value0, + 1 => _value1, + _ => throw new InvalidOperationException("Unexpected index.") + }; + } } public readonly struct ContainerName : IProperty @@ -4120,6 +5603,16 @@ public string GetValue(string key) _ => throw new InvalidOperationException("Unexpected index.") }; } + + public object GetValue() + { + return _index switch + { + 0 => _value0, + 1 => _value1, + _ => throw new InvalidOperationException("Unexpected index.") + }; + } } public readonly struct ContainerType : IProperty @@ -4147,6 +5640,16 @@ public string GetValue(string key) _ => throw new InvalidOperationException("Unexpected index.") }; } + + public object GetValue() + { + return _index switch + { + 0 => _value0, + 1 => _value1, + _ => throw new InvalidOperationException("Unexpected index.") + }; + } } public readonly struct Content : IProperty @@ -4174,6 +5677,16 @@ public string GetValue(string key) _ => throw new InvalidOperationException("Unexpected index.") }; } + + public object GetValue() + { + return _index switch + { + 0 => _value0, + 1 => _value1, + _ => throw new InvalidOperationException("Unexpected index.") + }; + } } public readonly struct ContentVisibility : IProperty @@ -4201,6 +5714,16 @@ public string GetValue(string key) _ => throw new InvalidOperationException("Unexpected index.") }; } + + public object GetValue() + { + return _index switch + { + 0 => _value0, + 1 => _value1, + _ => throw new InvalidOperationException("Unexpected index.") + }; + } } public readonly struct CounterIncrement : IProperty @@ -4228,6 +5751,16 @@ public string GetValue(string key) _ => throw new InvalidOperationException("Unexpected index.") }; } + + public object GetValue() + { + return _index switch + { + 0 => _value0, + 1 => _value1, + _ => throw new InvalidOperationException("Unexpected index.") + }; + } } public readonly struct CounterReset : IProperty @@ -4255,6 +5788,16 @@ public string GetValue(string key) _ => throw new InvalidOperationException("Unexpected index.") }; } + + public object GetValue() + { + return _index switch + { + 0 => _value0, + 1 => _value1, + _ => throw new InvalidOperationException("Unexpected index.") + }; + } } public readonly struct CounterSet : IProperty @@ -4282,6 +5825,16 @@ public string GetValue(string key) _ => throw new InvalidOperationException("Unexpected index.") }; } + + public object GetValue() + { + return _index switch + { + 0 => _value0, + 1 => _value1, + _ => throw new InvalidOperationException("Unexpected index.") + }; + } } public readonly struct Cursor : IProperty @@ -4309,6 +5862,16 @@ public string GetValue(string key) _ => throw new InvalidOperationException("Unexpected index.") }; } + + public object GetValue() + { + return _index switch + { + 0 => _value0, + 1 => _value1, + _ => throw new InvalidOperationException("Unexpected index.") + }; + } } public readonly struct Direction : IProperty @@ -4336,6 +5899,16 @@ public string GetValue(string key) _ => throw new InvalidOperationException("Unexpected index.") }; } + + public object GetValue() + { + return _index switch + { + 0 => _value0, + 1 => _value1, + _ => throw new InvalidOperationException("Unexpected index.") + }; + } } public readonly struct Display : IProperty @@ -4363,6 +5936,16 @@ public string GetValue(string key) _ => throw new InvalidOperationException("Unexpected index.") }; } + + public object GetValue() + { + return _index switch + { + 0 => _value0, + 1 => _value1, + _ => throw new InvalidOperationException("Unexpected index.") + }; + } } public readonly struct EmptyCells : IProperty @@ -4390,6 +5973,16 @@ public string GetValue(string key) _ => throw new InvalidOperationException("Unexpected index.") }; } + + public object GetValue() + { + return _index switch + { + 0 => _value0, + 1 => _value1, + _ => throw new InvalidOperationException("Unexpected index.") + }; + } } public readonly struct Filter : IProperty @@ -4417,6 +6010,16 @@ public string GetValue(string key) _ => throw new InvalidOperationException("Unexpected index.") }; } + + public object GetValue() + { + return _index switch + { + 0 => _value0, + 1 => _value1, + _ => throw new InvalidOperationException("Unexpected index.") + }; + } } public readonly struct Flex : IProperty @@ -4448,6 +6051,17 @@ public string GetValue(string key) _ => throw new InvalidOperationException("Unexpected index.") }; } + + public object GetValue() + { + return _index switch + { + 0 => _value0, + 1 => _value1, + 2 => _value2, + _ => throw new InvalidOperationException("Unexpected index.") + }; + } } public readonly struct FlexBasis : IProperty @@ -4479,6 +6093,17 @@ public string GetValue(string key) _ => throw new InvalidOperationException("Unexpected index.") }; } + + public object GetValue() + { + return _index switch + { + 0 => _value0, + 1 => _value1, + 2 => _value2, + _ => throw new InvalidOperationException("Unexpected index.") + }; + } } public readonly struct FlexDirection : IProperty @@ -4506,6 +6131,16 @@ public string GetValue(string key) _ => throw new InvalidOperationException("Unexpected index.") }; } + + public object GetValue() + { + return _index switch + { + 0 => _value0, + 1 => _value1, + _ => throw new InvalidOperationException("Unexpected index.") + }; + } } public readonly struct FlexFlow : IProperty @@ -4533,6 +6168,16 @@ public string GetValue(string key) _ => throw new InvalidOperationException("Unexpected index.") }; } + + public object GetValue() + { + return _index switch + { + 0 => _value0, + 1 => _value1, + _ => throw new InvalidOperationException("Unexpected index.") + }; + } } public readonly struct FlexGrow : IProperty @@ -4564,6 +6209,17 @@ public string GetValue(string key) _ => throw new InvalidOperationException("Unexpected index.") }; } + + public object GetValue() + { + return _index switch + { + 0 => _value0, + 1 => _value1, + 2 => _value2, + _ => throw new InvalidOperationException("Unexpected index.") + }; + } } public readonly struct FlexShrink : IProperty @@ -4595,6 +6251,17 @@ public string GetValue(string key) _ => throw new InvalidOperationException("Unexpected index.") }; } + + public object GetValue() + { + return _index switch + { + 0 => _value0, + 1 => _value1, + 2 => _value2, + _ => throw new InvalidOperationException("Unexpected index.") + }; + } } public readonly struct FlexWrap : IProperty @@ -4622,6 +6289,16 @@ public string GetValue(string key) _ => throw new InvalidOperationException("Unexpected index.") }; } + + public object GetValue() + { + return _index switch + { + 0 => _value0, + 1 => _value1, + _ => throw new InvalidOperationException("Unexpected index.") + }; + } } public readonly struct Float : IProperty @@ -4649,6 +6326,16 @@ public string GetValue(string key) _ => throw new InvalidOperationException("Unexpected index.") }; } + + public object GetValue() + { + return _index switch + { + 0 => _value0, + 1 => _value1, + _ => throw new InvalidOperationException("Unexpected index.") + }; + } } public readonly struct Font : IProperty @@ -4676,6 +6363,16 @@ public string GetValue(string key) _ => throw new InvalidOperationException("Unexpected index.") }; } + + public object GetValue() + { + return _index switch + { + 0 => _value0, + 1 => _value1, + _ => throw new InvalidOperationException("Unexpected index.") + }; + } } public readonly struct FontFamily : IProperty @@ -4703,6 +6400,16 @@ public string GetValue(string key) _ => throw new InvalidOperationException("Unexpected index.") }; } + + public object GetValue() + { + return _index switch + { + 0 => _value0, + 1 => _value1, + _ => throw new InvalidOperationException("Unexpected index.") + }; + } } public readonly struct FontFeatureSettings : IProperty @@ -4730,6 +6437,16 @@ public string GetValue(string key) _ => throw new InvalidOperationException("Unexpected index.") }; } + + public object GetValue() + { + return _index switch + { + 0 => _value0, + 1 => _value1, + _ => throw new InvalidOperationException("Unexpected index.") + }; + } } public readonly struct FontKerning : IProperty @@ -4757,6 +6474,16 @@ public string GetValue(string key) _ => throw new InvalidOperationException("Unexpected index.") }; } + + public object GetValue() + { + return _index switch + { + 0 => _value0, + 1 => _value1, + _ => throw new InvalidOperationException("Unexpected index.") + }; + } } public readonly struct FontLanguageOverride : IProperty @@ -4784,6 +6511,16 @@ public string GetValue(string key) _ => throw new InvalidOperationException("Unexpected index.") }; } + + public object GetValue() + { + return _index switch + { + 0 => _value0, + 1 => _value1, + _ => throw new InvalidOperationException("Unexpected index.") + }; + } } public readonly struct FontOpticalSizing : IProperty @@ -4811,6 +6548,16 @@ public string GetValue(string key) _ => throw new InvalidOperationException("Unexpected index.") }; } + + public object GetValue() + { + return _index switch + { + 0 => _value0, + 1 => _value1, + _ => throw new InvalidOperationException("Unexpected index.") + }; + } } public readonly struct FontPalette : IProperty @@ -4838,6 +6585,16 @@ public string GetValue(string key) _ => throw new InvalidOperationException("Unexpected index.") }; } + + public object GetValue() + { + return _index switch + { + 0 => _value0, + 1 => _value1, + _ => throw new InvalidOperationException("Unexpected index.") + }; + } } public readonly struct FontSize : IProperty @@ -4869,6 +6626,17 @@ public string GetValue(string key) _ => throw new InvalidOperationException("Unexpected index.") }; } + + public object GetValue() + { + return _index switch + { + 0 => _value0, + 1 => _value1, + 2 => _value2, + _ => throw new InvalidOperationException("Unexpected index.") + }; + } } public readonly struct FontSizeAdjust : IProperty @@ -4900,6 +6668,17 @@ public string GetValue(string key) _ => throw new InvalidOperationException("Unexpected index.") }; } + + public object GetValue() + { + return _index switch + { + 0 => _value0, + 1 => _value1, + 2 => _value2, + _ => throw new InvalidOperationException("Unexpected index.") + }; + } } public readonly struct FontSmooth : IProperty @@ -4931,6 +6710,17 @@ public string GetValue(string key) _ => throw new InvalidOperationException("Unexpected index.") }; } + + public object GetValue() + { + return _index switch + { + 0 => _value0, + 1 => _value1, + 2 => _value2, + _ => throw new InvalidOperationException("Unexpected index.") + }; + } } public readonly struct FontStretch : IProperty @@ -4958,6 +6748,16 @@ public string GetValue(string key) _ => throw new InvalidOperationException("Unexpected index.") }; } + + public object GetValue() + { + return _index switch + { + 0 => _value0, + 1 => _value1, + _ => throw new InvalidOperationException("Unexpected index.") + }; + } } public readonly struct FontStyle : IProperty @@ -4985,6 +6785,16 @@ public string GetValue(string key) _ => throw new InvalidOperationException("Unexpected index.") }; } + + public object GetValue() + { + return _index switch + { + 0 => _value0, + 1 => _value1, + _ => throw new InvalidOperationException("Unexpected index.") + }; + } } public readonly struct FontSynthesis : IProperty @@ -5012,6 +6822,16 @@ public string GetValue(string key) _ => throw new InvalidOperationException("Unexpected index.") }; } + + public object GetValue() + { + return _index switch + { + 0 => _value0, + 1 => _value1, + _ => throw new InvalidOperationException("Unexpected index.") + }; + } } public readonly struct FontSynthesisPosition : IProperty @@ -5039,6 +6859,16 @@ public string GetValue(string key) _ => throw new InvalidOperationException("Unexpected index.") }; } + + public object GetValue() + { + return _index switch + { + 0 => _value0, + 1 => _value1, + _ => throw new InvalidOperationException("Unexpected index.") + }; + } } public readonly struct FontSynthesisSmallCaps : IProperty @@ -5066,6 +6896,16 @@ public string GetValue(string key) _ => throw new InvalidOperationException("Unexpected index.") }; } + + public object GetValue() + { + return _index switch + { + 0 => _value0, + 1 => _value1, + _ => throw new InvalidOperationException("Unexpected index.") + }; + } } public readonly struct FontSynthesisStyle : IProperty @@ -5093,6 +6933,16 @@ public string GetValue(string key) _ => throw new InvalidOperationException("Unexpected index.") }; } + + public object GetValue() + { + return _index switch + { + 0 => _value0, + 1 => _value1, + _ => throw new InvalidOperationException("Unexpected index.") + }; + } } public readonly struct FontSynthesisWeight : IProperty @@ -5120,6 +6970,16 @@ public string GetValue(string key) _ => throw new InvalidOperationException("Unexpected index.") }; } + + public object GetValue() + { + return _index switch + { + 0 => _value0, + 1 => _value1, + _ => throw new InvalidOperationException("Unexpected index.") + }; + } } public readonly struct FontVariant : IProperty @@ -5147,6 +7007,16 @@ public string GetValue(string key) _ => throw new InvalidOperationException("Unexpected index.") }; } + + public object GetValue() + { + return _index switch + { + 0 => _value0, + 1 => _value1, + _ => throw new InvalidOperationException("Unexpected index.") + }; + } } public readonly struct FontVariantAlternates : IProperty @@ -5174,11 +7044,21 @@ public string GetValue(string key) _ => throw new InvalidOperationException("Unexpected index.") }; } - } - public readonly struct FontVariantCaps : IProperty - { - private readonly int _index; + public object GetValue() + { + return _index switch + { + 0 => _value0, + 1 => _value1, + _ => throw new InvalidOperationException("Unexpected index.") + }; + } + } + + public readonly struct FontVariantCaps : IProperty + { + private readonly int _index; private readonly PropertySkip _value0; private readonly string _value1; @@ -5201,6 +7081,16 @@ public string GetValue(string key) _ => throw new InvalidOperationException("Unexpected index.") }; } + + public object GetValue() + { + return _index switch + { + 0 => _value0, + 1 => _value1, + _ => throw new InvalidOperationException("Unexpected index.") + }; + } } public readonly struct FontVariantEastAsian : IProperty @@ -5228,6 +7118,16 @@ public string GetValue(string key) _ => throw new InvalidOperationException("Unexpected index.") }; } + + public object GetValue() + { + return _index switch + { + 0 => _value0, + 1 => _value1, + _ => throw new InvalidOperationException("Unexpected index.") + }; + } } public readonly struct FontVariantEmoji : IProperty @@ -5255,6 +7155,16 @@ public string GetValue(string key) _ => throw new InvalidOperationException("Unexpected index.") }; } + + public object GetValue() + { + return _index switch + { + 0 => _value0, + 1 => _value1, + _ => throw new InvalidOperationException("Unexpected index.") + }; + } } public readonly struct FontVariantLigatures : IProperty @@ -5282,6 +7192,16 @@ public string GetValue(string key) _ => throw new InvalidOperationException("Unexpected index.") }; } + + public object GetValue() + { + return _index switch + { + 0 => _value0, + 1 => _value1, + _ => throw new InvalidOperationException("Unexpected index.") + }; + } } public readonly struct FontVariantNumeric : IProperty @@ -5309,6 +7229,16 @@ public string GetValue(string key) _ => throw new InvalidOperationException("Unexpected index.") }; } + + public object GetValue() + { + return _index switch + { + 0 => _value0, + 1 => _value1, + _ => throw new InvalidOperationException("Unexpected index.") + }; + } } public readonly struct FontVariantPosition : IProperty @@ -5336,6 +7266,16 @@ public string GetValue(string key) _ => throw new InvalidOperationException("Unexpected index.") }; } + + public object GetValue() + { + return _index switch + { + 0 => _value0, + 1 => _value1, + _ => throw new InvalidOperationException("Unexpected index.") + }; + } } public readonly struct FontVariationSettings : IProperty @@ -5363,6 +7303,16 @@ public string GetValue(string key) _ => throw new InvalidOperationException("Unexpected index.") }; } + + public object GetValue() + { + return _index switch + { + 0 => _value0, + 1 => _value1, + _ => throw new InvalidOperationException("Unexpected index.") + }; + } } public readonly struct FontWeight : IProperty @@ -5394,6 +7344,17 @@ public string GetValue(string key) _ => throw new InvalidOperationException("Unexpected index.") }; } + + public object GetValue() + { + return _index switch + { + 0 => _value0, + 1 => _value1, + 2 => _value2, + _ => throw new InvalidOperationException("Unexpected index.") + }; + } } public readonly struct ForcedColorAdjust : IProperty @@ -5421,6 +7382,16 @@ public string GetValue(string key) _ => throw new InvalidOperationException("Unexpected index.") }; } + + public object GetValue() + { + return _index switch + { + 0 => _value0, + 1 => _value1, + _ => throw new InvalidOperationException("Unexpected index.") + }; + } } public readonly struct Gap : IProperty @@ -5452,6 +7423,17 @@ public string GetValue(string key) _ => throw new InvalidOperationException("Unexpected index.") }; } + + public object GetValue() + { + return _index switch + { + 0 => _value0, + 1 => _value1, + 2 => _value2, + _ => throw new InvalidOperationException("Unexpected index.") + }; + } } public readonly struct Grid : IProperty @@ -5479,6 +7461,16 @@ public string GetValue(string key) _ => throw new InvalidOperationException("Unexpected index.") }; } + + public object GetValue() + { + return _index switch + { + 0 => _value0, + 1 => _value1, + _ => throw new InvalidOperationException("Unexpected index.") + }; + } } public readonly struct GridArea : IProperty @@ -5506,6 +7498,16 @@ public string GetValue(string key) _ => throw new InvalidOperationException("Unexpected index.") }; } + + public object GetValue() + { + return _index switch + { + 0 => _value0, + 1 => _value1, + _ => throw new InvalidOperationException("Unexpected index.") + }; + } } public readonly struct GridAutoColumns : IProperty @@ -5537,6 +7539,17 @@ public string GetValue(string key) _ => throw new InvalidOperationException("Unexpected index.") }; } + + public object GetValue() + { + return _index switch + { + 0 => _value0, + 1 => _value1, + 2 => _value2, + _ => throw new InvalidOperationException("Unexpected index.") + }; + } } public readonly struct GridAutoFlow : IProperty @@ -5564,6 +7577,16 @@ public string GetValue(string key) _ => throw new InvalidOperationException("Unexpected index.") }; } + + public object GetValue() + { + return _index switch + { + 0 => _value0, + 1 => _value1, + _ => throw new InvalidOperationException("Unexpected index.") + }; + } } public readonly struct GridAutoRows : IProperty @@ -5595,6 +7618,17 @@ public string GetValue(string key) _ => throw new InvalidOperationException("Unexpected index.") }; } + + public object GetValue() + { + return _index switch + { + 0 => _value0, + 1 => _value1, + 2 => _value2, + _ => throw new InvalidOperationException("Unexpected index.") + }; + } } public readonly struct GridColumn : IProperty @@ -5622,6 +7656,16 @@ public string GetValue(string key) _ => throw new InvalidOperationException("Unexpected index.") }; } + + public object GetValue() + { + return _index switch + { + 0 => _value0, + 1 => _value1, + _ => throw new InvalidOperationException("Unexpected index.") + }; + } } public readonly struct GridColumnEnd : IProperty @@ -5649,6 +7693,16 @@ public string GetValue(string key) _ => throw new InvalidOperationException("Unexpected index.") }; } + + public object GetValue() + { + return _index switch + { + 0 => _value0, + 1 => _value1, + _ => throw new InvalidOperationException("Unexpected index.") + }; + } } public readonly struct GridColumnGap : IProperty @@ -5680,6 +7734,17 @@ public string GetValue(string key) _ => throw new InvalidOperationException("Unexpected index.") }; } + + public object GetValue() + { + return _index switch + { + 0 => _value0, + 1 => _value1, + 2 => _value2, + _ => throw new InvalidOperationException("Unexpected index.") + }; + } } public readonly struct GridColumnStart : IProperty @@ -5707,6 +7772,16 @@ public string GetValue(string key) _ => throw new InvalidOperationException("Unexpected index.") }; } + + public object GetValue() + { + return _index switch + { + 0 => _value0, + 1 => _value1, + _ => throw new InvalidOperationException("Unexpected index.") + }; + } } public readonly struct GridGap : IProperty @@ -5738,6 +7813,17 @@ public string GetValue(string key) _ => throw new InvalidOperationException("Unexpected index.") }; } + + public object GetValue() + { + return _index switch + { + 0 => _value0, + 1 => _value1, + 2 => _value2, + _ => throw new InvalidOperationException("Unexpected index.") + }; + } } public readonly struct GridRow : IProperty @@ -5765,6 +7851,16 @@ public string GetValue(string key) _ => throw new InvalidOperationException("Unexpected index.") }; } + + public object GetValue() + { + return _index switch + { + 0 => _value0, + 1 => _value1, + _ => throw new InvalidOperationException("Unexpected index.") + }; + } } public readonly struct GridRowEnd : IProperty @@ -5792,6 +7888,16 @@ public string GetValue(string key) _ => throw new InvalidOperationException("Unexpected index.") }; } + + public object GetValue() + { + return _index switch + { + 0 => _value0, + 1 => _value1, + _ => throw new InvalidOperationException("Unexpected index.") + }; + } } public readonly struct GridRowGap : IProperty @@ -5823,6 +7929,17 @@ public string GetValue(string key) _ => throw new InvalidOperationException("Unexpected index.") }; } + + public object GetValue() + { + return _index switch + { + 0 => _value0, + 1 => _value1, + 2 => _value2, + _ => throw new InvalidOperationException("Unexpected index.") + }; + } } public readonly struct GridRowStart : IProperty @@ -5850,6 +7967,16 @@ public string GetValue(string key) _ => throw new InvalidOperationException("Unexpected index.") }; } + + public object GetValue() + { + return _index switch + { + 0 => _value0, + 1 => _value1, + _ => throw new InvalidOperationException("Unexpected index.") + }; + } } public readonly struct GridTemplate : IProperty @@ -5877,6 +8004,16 @@ public string GetValue(string key) _ => throw new InvalidOperationException("Unexpected index.") }; } + + public object GetValue() + { + return _index switch + { + 0 => _value0, + 1 => _value1, + _ => throw new InvalidOperationException("Unexpected index.") + }; + } } public readonly struct GridTemplateAreas : IProperty @@ -5904,6 +8041,16 @@ public string GetValue(string key) _ => throw new InvalidOperationException("Unexpected index.") }; } + + public object GetValue() + { + return _index switch + { + 0 => _value0, + 1 => _value1, + _ => throw new InvalidOperationException("Unexpected index.") + }; + } } public readonly struct GridTemplateColumns : IProperty @@ -5935,6 +8082,17 @@ public string GetValue(string key) _ => throw new InvalidOperationException("Unexpected index.") }; } + + public object GetValue() + { + return _index switch + { + 0 => _value0, + 1 => _value1, + 2 => _value2, + _ => throw new InvalidOperationException("Unexpected index.") + }; + } } public readonly struct GridTemplateRows : IProperty @@ -5966,6 +8124,17 @@ public string GetValue(string key) _ => throw new InvalidOperationException("Unexpected index.") }; } + + public object GetValue() + { + return _index switch + { + 0 => _value0, + 1 => _value1, + 2 => _value2, + _ => throw new InvalidOperationException("Unexpected index.") + }; + } } public readonly struct HangingPunctuation : IProperty @@ -5993,6 +8162,16 @@ public string GetValue(string key) _ => throw new InvalidOperationException("Unexpected index.") }; } + + public object GetValue() + { + return _index switch + { + 0 => _value0, + 1 => _value1, + _ => throw new InvalidOperationException("Unexpected index.") + }; + } } public readonly struct Height : IProperty @@ -6024,6 +8203,17 @@ public string GetValue(string key) _ => throw new InvalidOperationException("Unexpected index.") }; } + + public object GetValue() + { + return _index switch + { + 0 => _value0, + 1 => _value1, + 2 => _value2, + _ => throw new InvalidOperationException("Unexpected index.") + }; + } } public readonly struct HyphenateCharacter : IProperty @@ -6051,6 +8241,16 @@ public string GetValue(string key) _ => throw new InvalidOperationException("Unexpected index.") }; } + + public object GetValue() + { + return _index switch + { + 0 => _value0, + 1 => _value1, + _ => throw new InvalidOperationException("Unexpected index.") + }; + } } public readonly struct HyphenateLimitChars : IProperty @@ -6082,6 +8282,17 @@ public string GetValue(string key) _ => throw new InvalidOperationException("Unexpected index.") }; } + + public object GetValue() + { + return _index switch + { + 0 => _value0, + 1 => _value1, + 2 => _value2, + _ => throw new InvalidOperationException("Unexpected index.") + }; + } } public readonly struct Hyphens : IProperty @@ -6109,6 +8320,16 @@ public string GetValue(string key) _ => throw new InvalidOperationException("Unexpected index.") }; } + + public object GetValue() + { + return _index switch + { + 0 => _value0, + 1 => _value1, + _ => throw new InvalidOperationException("Unexpected index.") + }; + } } public readonly struct ImageOrientation : IProperty @@ -6136,6 +8357,16 @@ public string GetValue(string key) _ => throw new InvalidOperationException("Unexpected index.") }; } + + public object GetValue() + { + return _index switch + { + 0 => _value0, + 1 => _value1, + _ => throw new InvalidOperationException("Unexpected index.") + }; + } } public readonly struct ImageRendering : IProperty @@ -6163,6 +8394,16 @@ public string GetValue(string key) _ => throw new InvalidOperationException("Unexpected index.") }; } + + public object GetValue() + { + return _index switch + { + 0 => _value0, + 1 => _value1, + _ => throw new InvalidOperationException("Unexpected index.") + }; + } } public readonly struct ImageResolution : IProperty @@ -6190,6 +8431,16 @@ public string GetValue(string key) _ => throw new InvalidOperationException("Unexpected index.") }; } + + public object GetValue() + { + return _index switch + { + 0 => _value0, + 1 => _value1, + _ => throw new InvalidOperationException("Unexpected index.") + }; + } } public readonly struct ImeMode : IProperty @@ -6217,6 +8468,16 @@ public string GetValue(string key) _ => throw new InvalidOperationException("Unexpected index.") }; } + + public object GetValue() + { + return _index switch + { + 0 => _value0, + 1 => _value1, + _ => throw new InvalidOperationException("Unexpected index.") + }; + } } public readonly struct InitialLetter : IProperty @@ -6248,6 +8509,17 @@ public string GetValue(string key) _ => throw new InvalidOperationException("Unexpected index.") }; } + + public object GetValue() + { + return _index switch + { + 0 => _value0, + 1 => _value1, + 2 => _value2, + _ => throw new InvalidOperationException("Unexpected index.") + }; + } } public readonly struct InlineSize : IProperty @@ -6279,6 +8551,17 @@ public string GetValue(string key) _ => throw new InvalidOperationException("Unexpected index.") }; } + + public object GetValue() + { + return _index switch + { + 0 => _value0, + 1 => _value1, + 2 => _value2, + _ => throw new InvalidOperationException("Unexpected index.") + }; + } } public readonly struct InputSecurity : IProperty @@ -6306,6 +8589,16 @@ public string GetValue(string key) _ => throw new InvalidOperationException("Unexpected index.") }; } + + public object GetValue() + { + return _index switch + { + 0 => _value0, + 1 => _value1, + _ => throw new InvalidOperationException("Unexpected index.") + }; + } } public readonly struct Inset : IProperty @@ -6337,6 +8630,17 @@ public string GetValue(string key) _ => throw new InvalidOperationException("Unexpected index.") }; } + + public object GetValue() + { + return _index switch + { + 0 => _value0, + 1 => _value1, + 2 => _value2, + _ => throw new InvalidOperationException("Unexpected index.") + }; + } } public readonly struct InsetBlock : IProperty @@ -6368,6 +8672,17 @@ public string GetValue(string key) _ => throw new InvalidOperationException("Unexpected index.") }; } + + public object GetValue() + { + return _index switch + { + 0 => _value0, + 1 => _value1, + 2 => _value2, + _ => throw new InvalidOperationException("Unexpected index.") + }; + } } public readonly struct InsetBlockEnd : IProperty @@ -6399,6 +8714,17 @@ public string GetValue(string key) _ => throw new InvalidOperationException("Unexpected index.") }; } + + public object GetValue() + { + return _index switch + { + 0 => _value0, + 1 => _value1, + 2 => _value2, + _ => throw new InvalidOperationException("Unexpected index.") + }; + } } public readonly struct InsetBlockStart : IProperty @@ -6430,6 +8756,17 @@ public string GetValue(string key) _ => throw new InvalidOperationException("Unexpected index.") }; } + + public object GetValue() + { + return _index switch + { + 0 => _value0, + 1 => _value1, + 2 => _value2, + _ => throw new InvalidOperationException("Unexpected index.") + }; + } } public readonly struct InsetInline : IProperty @@ -6461,6 +8798,17 @@ public string GetValue(string key) _ => throw new InvalidOperationException("Unexpected index.") }; } + + public object GetValue() + { + return _index switch + { + 0 => _value0, + 1 => _value1, + 2 => _value2, + _ => throw new InvalidOperationException("Unexpected index.") + }; + } } public readonly struct InsetInlineEnd : IProperty @@ -6492,6 +8840,17 @@ public string GetValue(string key) _ => throw new InvalidOperationException("Unexpected index.") }; } + + public object GetValue() + { + return _index switch + { + 0 => _value0, + 1 => _value1, + 2 => _value2, + _ => throw new InvalidOperationException("Unexpected index.") + }; + } } public readonly struct InsetInlineStart : IProperty @@ -6523,6 +8882,17 @@ public string GetValue(string key) _ => throw new InvalidOperationException("Unexpected index.") }; } + + public object GetValue() + { + return _index switch + { + 0 => _value0, + 1 => _value1, + 2 => _value2, + _ => throw new InvalidOperationException("Unexpected index.") + }; + } } public readonly struct Isolation : IProperty @@ -6550,6 +8920,16 @@ public string GetValue(string key) _ => throw new InvalidOperationException("Unexpected index.") }; } + + public object GetValue() + { + return _index switch + { + 0 => _value0, + 1 => _value1, + _ => throw new InvalidOperationException("Unexpected index.") + }; + } } public readonly struct JustifyContent : IProperty @@ -6577,6 +8957,16 @@ public string GetValue(string key) _ => throw new InvalidOperationException("Unexpected index.") }; } + + public object GetValue() + { + return _index switch + { + 0 => _value0, + 1 => _value1, + _ => throw new InvalidOperationException("Unexpected index.") + }; + } } public readonly struct JustifyItems : IProperty @@ -6604,6 +8994,16 @@ public string GetValue(string key) _ => throw new InvalidOperationException("Unexpected index.") }; } + + public object GetValue() + { + return _index switch + { + 0 => _value0, + 1 => _value1, + _ => throw new InvalidOperationException("Unexpected index.") + }; + } } public readonly struct JustifySelf : IProperty @@ -6631,6 +9031,16 @@ public string GetValue(string key) _ => throw new InvalidOperationException("Unexpected index.") }; } + + public object GetValue() + { + return _index switch + { + 0 => _value0, + 1 => _value1, + _ => throw new InvalidOperationException("Unexpected index.") + }; + } } public readonly struct JustifyTracks : IProperty @@ -6658,6 +9068,16 @@ public string GetValue(string key) _ => throw new InvalidOperationException("Unexpected index.") }; } + + public object GetValue() + { + return _index switch + { + 0 => _value0, + 1 => _value1, + _ => throw new InvalidOperationException("Unexpected index.") + }; + } } public readonly struct Left : IProperty @@ -6689,6 +9109,17 @@ public string GetValue(string key) _ => throw new InvalidOperationException("Unexpected index.") }; } + + public object GetValue() + { + return _index switch + { + 0 => _value0, + 1 => _value1, + 2 => _value2, + _ => throw new InvalidOperationException("Unexpected index.") + }; + } } public readonly struct LetterSpacing : IProperty @@ -6720,6 +9151,17 @@ public string GetValue(string key) _ => throw new InvalidOperationException("Unexpected index.") }; } + + public object GetValue() + { + return _index switch + { + 0 => _value0, + 1 => _value1, + 2 => _value2, + _ => throw new InvalidOperationException("Unexpected index.") + }; + } } public readonly struct LineBreak : IProperty @@ -6747,6 +9189,16 @@ public string GetValue(string key) _ => throw new InvalidOperationException("Unexpected index.") }; } + + public object GetValue() + { + return _index switch + { + 0 => _value0, + 1 => _value1, + _ => throw new InvalidOperationException("Unexpected index.") + }; + } } public readonly struct LineClamp : IProperty @@ -6778,6 +9230,17 @@ public string GetValue(string key) _ => throw new InvalidOperationException("Unexpected index.") }; } + + public object GetValue() + { + return _index switch + { + 0 => _value0, + 1 => _value1, + 2 => _value2, + _ => throw new InvalidOperationException("Unexpected index.") + }; + } } public readonly struct LineHeight : IProperty @@ -6809,6 +9272,17 @@ public string GetValue(string key) _ => throw new InvalidOperationException("Unexpected index.") }; } + + public object GetValue() + { + return _index switch + { + 0 => _value0, + 1 => _value1, + 2 => _value2, + _ => throw new InvalidOperationException("Unexpected index.") + }; + } } public readonly struct LineHeightStep : IProperty @@ -6840,6 +9314,17 @@ public string GetValue(string key) _ => throw new InvalidOperationException("Unexpected index.") }; } + + public object GetValue() + { + return _index switch + { + 0 => _value0, + 1 => _value1, + 2 => _value2, + _ => throw new InvalidOperationException("Unexpected index.") + }; + } } public readonly struct ListStyle : IProperty @@ -6867,6 +9352,16 @@ public string GetValue(string key) _ => throw new InvalidOperationException("Unexpected index.") }; } + + public object GetValue() + { + return _index switch + { + 0 => _value0, + 1 => _value1, + _ => throw new InvalidOperationException("Unexpected index.") + }; + } } public readonly struct ListStyleImage : IProperty @@ -6894,6 +9389,16 @@ public string GetValue(string key) _ => throw new InvalidOperationException("Unexpected index.") }; } + + public object GetValue() + { + return _index switch + { + 0 => _value0, + 1 => _value1, + _ => throw new InvalidOperationException("Unexpected index.") + }; + } } public readonly struct ListStylePosition : IProperty @@ -6921,6 +9426,16 @@ public string GetValue(string key) _ => throw new InvalidOperationException("Unexpected index.") }; } + + public object GetValue() + { + return _index switch + { + 0 => _value0, + 1 => _value1, + _ => throw new InvalidOperationException("Unexpected index.") + }; + } } public readonly struct ListStyleType : IProperty @@ -6948,6 +9463,16 @@ public string GetValue(string key) _ => throw new InvalidOperationException("Unexpected index.") }; } + + public object GetValue() + { + return _index switch + { + 0 => _value0, + 1 => _value1, + _ => throw new InvalidOperationException("Unexpected index.") + }; + } } public readonly struct Margin : IProperty @@ -6979,6 +9504,17 @@ public string GetValue(string key) _ => throw new InvalidOperationException("Unexpected index.") }; } + + public object GetValue() + { + return _index switch + { + 0 => _value0, + 1 => _value1, + 2 => _value2, + _ => throw new InvalidOperationException("Unexpected index.") + }; + } } public readonly struct MarginBlock : IProperty @@ -7010,6 +9546,17 @@ public string GetValue(string key) _ => throw new InvalidOperationException("Unexpected index.") }; } + + public object GetValue() + { + return _index switch + { + 0 => _value0, + 1 => _value1, + 2 => _value2, + _ => throw new InvalidOperationException("Unexpected index.") + }; + } } public readonly struct MarginBlockEnd : IProperty @@ -7041,6 +9588,17 @@ public string GetValue(string key) _ => throw new InvalidOperationException("Unexpected index.") }; } + + public object GetValue() + { + return _index switch + { + 0 => _value0, + 1 => _value1, + 2 => _value2, + _ => throw new InvalidOperationException("Unexpected index.") + }; + } } public readonly struct MarginBlockStart : IProperty @@ -7072,6 +9630,17 @@ public string GetValue(string key) _ => throw new InvalidOperationException("Unexpected index.") }; } + + public object GetValue() + { + return _index switch + { + 0 => _value0, + 1 => _value1, + 2 => _value2, + _ => throw new InvalidOperationException("Unexpected index.") + }; + } } public readonly struct MarginBottom : IProperty @@ -7103,6 +9672,17 @@ public string GetValue(string key) _ => throw new InvalidOperationException("Unexpected index.") }; } + + public object GetValue() + { + return _index switch + { + 0 => _value0, + 1 => _value1, + 2 => _value2, + _ => throw new InvalidOperationException("Unexpected index.") + }; + } } public readonly struct MarginInline : IProperty @@ -7134,6 +9714,17 @@ public string GetValue(string key) _ => throw new InvalidOperationException("Unexpected index.") }; } + + public object GetValue() + { + return _index switch + { + 0 => _value0, + 1 => _value1, + 2 => _value2, + _ => throw new InvalidOperationException("Unexpected index.") + }; + } } public readonly struct MarginInlineEnd : IProperty @@ -7165,6 +9756,17 @@ public string GetValue(string key) _ => throw new InvalidOperationException("Unexpected index.") }; } + + public object GetValue() + { + return _index switch + { + 0 => _value0, + 1 => _value1, + 2 => _value2, + _ => throw new InvalidOperationException("Unexpected index.") + }; + } } public readonly struct MarginInlineStart : IProperty @@ -7196,6 +9798,17 @@ public string GetValue(string key) _ => throw new InvalidOperationException("Unexpected index.") }; } + + public object GetValue() + { + return _index switch + { + 0 => _value0, + 1 => _value1, + 2 => _value2, + _ => throw new InvalidOperationException("Unexpected index.") + }; + } } public readonly struct MarginLeft : IProperty @@ -7227,6 +9840,17 @@ public string GetValue(string key) _ => throw new InvalidOperationException("Unexpected index.") }; } + + public object GetValue() + { + return _index switch + { + 0 => _value0, + 1 => _value1, + 2 => _value2, + _ => throw new InvalidOperationException("Unexpected index.") + }; + } } public readonly struct MarginRight : IProperty @@ -7258,11 +9882,22 @@ public string GetValue(string key) _ => throw new InvalidOperationException("Unexpected index.") }; } - } - public readonly struct MarginTop : IProperty - { - private readonly int _index; + public object GetValue() + { + return _index switch + { + 0 => _value0, + 1 => _value1, + 2 => _value2, + _ => throw new InvalidOperationException("Unexpected index.") + }; + } + } + + public readonly struct MarginTop : IProperty + { + private readonly int _index; private readonly PropertySkip _value0; private readonly string _value1; private readonly double _value2; @@ -7289,6 +9924,17 @@ public string GetValue(string key) _ => throw new InvalidOperationException("Unexpected index.") }; } + + public object GetValue() + { + return _index switch + { + 0 => _value0, + 1 => _value1, + 2 => _value2, + _ => throw new InvalidOperationException("Unexpected index.") + }; + } } public readonly struct MarginTrim : IProperty @@ -7316,6 +9962,16 @@ public string GetValue(string key) _ => throw new InvalidOperationException("Unexpected index.") }; } + + public object GetValue() + { + return _index switch + { + 0 => _value0, + 1 => _value1, + _ => throw new InvalidOperationException("Unexpected index.") + }; + } } public readonly struct Mask : IProperty @@ -7347,6 +10003,17 @@ public string GetValue(string key) _ => throw new InvalidOperationException("Unexpected index.") }; } + + public object GetValue() + { + return _index switch + { + 0 => _value0, + 1 => _value1, + 2 => _value2, + _ => throw new InvalidOperationException("Unexpected index.") + }; + } } public readonly struct MaskBorder : IProperty @@ -7378,6 +10045,17 @@ public string GetValue(string key) _ => throw new InvalidOperationException("Unexpected index.") }; } + + public object GetValue() + { + return _index switch + { + 0 => _value0, + 1 => _value1, + 2 => _value2, + _ => throw new InvalidOperationException("Unexpected index.") + }; + } } public readonly struct MaskBorderMode : IProperty @@ -7405,6 +10083,16 @@ public string GetValue(string key) _ => throw new InvalidOperationException("Unexpected index.") }; } + + public object GetValue() + { + return _index switch + { + 0 => _value0, + 1 => _value1, + _ => throw new InvalidOperationException("Unexpected index.") + }; + } } public readonly struct MaskBorderOutset : IProperty @@ -7436,6 +10124,17 @@ public string GetValue(string key) _ => throw new InvalidOperationException("Unexpected index.") }; } + + public object GetValue() + { + return _index switch + { + 0 => _value0, + 1 => _value1, + 2 => _value2, + _ => throw new InvalidOperationException("Unexpected index.") + }; + } } public readonly struct MaskBorderRepeat : IProperty @@ -7463,6 +10162,16 @@ public string GetValue(string key) _ => throw new InvalidOperationException("Unexpected index.") }; } + + public object GetValue() + { + return _index switch + { + 0 => _value0, + 1 => _value1, + _ => throw new InvalidOperationException("Unexpected index.") + }; + } } public readonly struct MaskBorderSlice : IProperty @@ -7494,6 +10203,17 @@ public string GetValue(string key) _ => throw new InvalidOperationException("Unexpected index.") }; } + + public object GetValue() + { + return _index switch + { + 0 => _value0, + 1 => _value1, + 2 => _value2, + _ => throw new InvalidOperationException("Unexpected index.") + }; + } } public readonly struct MaskBorderSource : IProperty @@ -7521,6 +10241,16 @@ public string GetValue(string key) _ => throw new InvalidOperationException("Unexpected index.") }; } + + public object GetValue() + { + return _index switch + { + 0 => _value0, + 1 => _value1, + _ => throw new InvalidOperationException("Unexpected index.") + }; + } } public readonly struct MaskBorderWidth : IProperty @@ -7552,6 +10282,17 @@ public string GetValue(string key) _ => throw new InvalidOperationException("Unexpected index.") }; } + + public object GetValue() + { + return _index switch + { + 0 => _value0, + 1 => _value1, + 2 => _value2, + _ => throw new InvalidOperationException("Unexpected index.") + }; + } } public readonly struct MaskClip : IProperty @@ -7579,6 +10320,16 @@ public string GetValue(string key) _ => throw new InvalidOperationException("Unexpected index.") }; } + + public object GetValue() + { + return _index switch + { + 0 => _value0, + 1 => _value1, + _ => throw new InvalidOperationException("Unexpected index.") + }; + } } public readonly struct MaskComposite : IProperty @@ -7606,6 +10357,16 @@ public string GetValue(string key) _ => throw new InvalidOperationException("Unexpected index.") }; } + + public object GetValue() + { + return _index switch + { + 0 => _value0, + 1 => _value1, + _ => throw new InvalidOperationException("Unexpected index.") + }; + } } public readonly struct MaskImage : IProperty @@ -7633,6 +10394,16 @@ public string GetValue(string key) _ => throw new InvalidOperationException("Unexpected index.") }; } + + public object GetValue() + { + return _index switch + { + 0 => _value0, + 1 => _value1, + _ => throw new InvalidOperationException("Unexpected index.") + }; + } } public readonly struct MaskMode : IProperty @@ -7660,6 +10431,16 @@ public string GetValue(string key) _ => throw new InvalidOperationException("Unexpected index.") }; } + + public object GetValue() + { + return _index switch + { + 0 => _value0, + 1 => _value1, + _ => throw new InvalidOperationException("Unexpected index.") + }; + } } public readonly struct MaskOrigin : IProperty @@ -7687,6 +10468,16 @@ public string GetValue(string key) _ => throw new InvalidOperationException("Unexpected index.") }; } + + public object GetValue() + { + return _index switch + { + 0 => _value0, + 1 => _value1, + _ => throw new InvalidOperationException("Unexpected index.") + }; + } } public readonly struct MaskPosition : IProperty @@ -7718,6 +10509,17 @@ public string GetValue(string key) _ => throw new InvalidOperationException("Unexpected index.") }; } + + public object GetValue() + { + return _index switch + { + 0 => _value0, + 1 => _value1, + 2 => _value2, + _ => throw new InvalidOperationException("Unexpected index.") + }; + } } public readonly struct MaskRepeat : IProperty @@ -7745,6 +10547,16 @@ public string GetValue(string key) _ => throw new InvalidOperationException("Unexpected index.") }; } + + public object GetValue() + { + return _index switch + { + 0 => _value0, + 1 => _value1, + _ => throw new InvalidOperationException("Unexpected index.") + }; + } } public readonly struct MaskSize : IProperty @@ -7776,6 +10588,17 @@ public string GetValue(string key) _ => throw new InvalidOperationException("Unexpected index.") }; } + + public object GetValue() + { + return _index switch + { + 0 => _value0, + 1 => _value1, + 2 => _value2, + _ => throw new InvalidOperationException("Unexpected index.") + }; + } } public readonly struct MaskType : IProperty @@ -7803,6 +10626,16 @@ public string GetValue(string key) _ => throw new InvalidOperationException("Unexpected index.") }; } + + public object GetValue() + { + return _index switch + { + 0 => _value0, + 1 => _value1, + _ => throw new InvalidOperationException("Unexpected index.") + }; + } } public readonly struct MasonryAutoFlow : IProperty @@ -7830,6 +10663,16 @@ public string GetValue(string key) _ => throw new InvalidOperationException("Unexpected index.") }; } + + public object GetValue() + { + return _index switch + { + 0 => _value0, + 1 => _value1, + _ => throw new InvalidOperationException("Unexpected index.") + }; + } } public readonly struct MathDepth : IProperty @@ -7861,6 +10704,17 @@ public string GetValue(string key) _ => throw new InvalidOperationException("Unexpected index.") }; } + + public object GetValue() + { + return _index switch + { + 0 => _value0, + 1 => _value1, + 2 => _value2, + _ => throw new InvalidOperationException("Unexpected index.") + }; + } } public readonly struct MathShift : IProperty @@ -7888,6 +10742,16 @@ public string GetValue(string key) _ => throw new InvalidOperationException("Unexpected index.") }; } + + public object GetValue() + { + return _index switch + { + 0 => _value0, + 1 => _value1, + _ => throw new InvalidOperationException("Unexpected index.") + }; + } } public readonly struct MathStyle : IProperty @@ -7915,6 +10779,16 @@ public string GetValue(string key) _ => throw new InvalidOperationException("Unexpected index.") }; } + + public object GetValue() + { + return _index switch + { + 0 => _value0, + 1 => _value1, + _ => throw new InvalidOperationException("Unexpected index.") + }; + } } public readonly struct MaxBlockSize : IProperty @@ -7946,6 +10820,17 @@ public string GetValue(string key) _ => throw new InvalidOperationException("Unexpected index.") }; } + + public object GetValue() + { + return _index switch + { + 0 => _value0, + 1 => _value1, + 2 => _value2, + _ => throw new InvalidOperationException("Unexpected index.") + }; + } } public readonly struct MaxHeight : IProperty @@ -7977,6 +10862,17 @@ public string GetValue(string key) _ => throw new InvalidOperationException("Unexpected index.") }; } + + public object GetValue() + { + return _index switch + { + 0 => _value0, + 1 => _value1, + 2 => _value2, + _ => throw new InvalidOperationException("Unexpected index.") + }; + } } public readonly struct MaxInlineSize : IProperty @@ -8008,6 +10904,17 @@ public string GetValue(string key) _ => throw new InvalidOperationException("Unexpected index.") }; } + + public object GetValue() + { + return _index switch + { + 0 => _value0, + 1 => _value1, + 2 => _value2, + _ => throw new InvalidOperationException("Unexpected index.") + }; + } } public readonly struct MaxLines : IProperty @@ -8039,6 +10946,17 @@ public string GetValue(string key) _ => throw new InvalidOperationException("Unexpected index.") }; } + + public object GetValue() + { + return _index switch + { + 0 => _value0, + 1 => _value1, + 2 => _value2, + _ => throw new InvalidOperationException("Unexpected index.") + }; + } } public readonly struct MaxWidth : IProperty @@ -8070,6 +10988,17 @@ public string GetValue(string key) _ => throw new InvalidOperationException("Unexpected index.") }; } + + public object GetValue() + { + return _index switch + { + 0 => _value0, + 1 => _value1, + 2 => _value2, + _ => throw new InvalidOperationException("Unexpected index.") + }; + } } public readonly struct MinBlockSize : IProperty @@ -8101,6 +11030,17 @@ public string GetValue(string key) _ => throw new InvalidOperationException("Unexpected index.") }; } + + public object GetValue() + { + return _index switch + { + 0 => _value0, + 1 => _value1, + 2 => _value2, + _ => throw new InvalidOperationException("Unexpected index.") + }; + } } public readonly struct MinHeight : IProperty @@ -8132,6 +11072,17 @@ public string GetValue(string key) _ => throw new InvalidOperationException("Unexpected index.") }; } + + public object GetValue() + { + return _index switch + { + 0 => _value0, + 1 => _value1, + 2 => _value2, + _ => throw new InvalidOperationException("Unexpected index.") + }; + } } public readonly struct MinInlineSize : IProperty @@ -8163,6 +11114,17 @@ public string GetValue(string key) _ => throw new InvalidOperationException("Unexpected index.") }; } + + public object GetValue() + { + return _index switch + { + 0 => _value0, + 1 => _value1, + 2 => _value2, + _ => throw new InvalidOperationException("Unexpected index.") + }; + } } public readonly struct MinWidth : IProperty @@ -8194,6 +11156,17 @@ public string GetValue(string key) _ => throw new InvalidOperationException("Unexpected index.") }; } + + public object GetValue() + { + return _index switch + { + 0 => _value0, + 1 => _value1, + 2 => _value2, + _ => throw new InvalidOperationException("Unexpected index.") + }; + } } public readonly struct MixBlendMode : IProperty @@ -8221,6 +11194,16 @@ public string GetValue(string key) _ => throw new InvalidOperationException("Unexpected index.") }; } + + public object GetValue() + { + return _index switch + { + 0 => _value0, + 1 => _value1, + _ => throw new InvalidOperationException("Unexpected index.") + }; + } } public readonly struct Offset : IProperty @@ -8252,6 +11235,17 @@ public string GetValue(string key) _ => throw new InvalidOperationException("Unexpected index.") }; } + + public object GetValue() + { + return _index switch + { + 0 => _value0, + 1 => _value1, + 2 => _value2, + _ => throw new InvalidOperationException("Unexpected index.") + }; + } } public readonly struct OffsetDistance : IProperty @@ -8283,6 +11277,17 @@ public string GetValue(string key) _ => throw new InvalidOperationException("Unexpected index.") }; } + + public object GetValue() + { + return _index switch + { + 0 => _value0, + 1 => _value1, + 2 => _value2, + _ => throw new InvalidOperationException("Unexpected index.") + }; + } } public readonly struct OffsetPath : IProperty @@ -8310,6 +11315,16 @@ public string GetValue(string key) _ => throw new InvalidOperationException("Unexpected index.") }; } + + public object GetValue() + { + return _index switch + { + 0 => _value0, + 1 => _value1, + _ => throw new InvalidOperationException("Unexpected index.") + }; + } } public readonly struct OffsetRotate : IProperty @@ -8337,6 +11352,16 @@ public string GetValue(string key) _ => throw new InvalidOperationException("Unexpected index.") }; } + + public object GetValue() + { + return _index switch + { + 0 => _value0, + 1 => _value1, + _ => throw new InvalidOperationException("Unexpected index.") + }; + } } public readonly struct ObjectFit : IProperty @@ -8364,6 +11389,16 @@ public string GetValue(string key) _ => throw new InvalidOperationException("Unexpected index.") }; } + + public object GetValue() + { + return _index switch + { + 0 => _value0, + 1 => _value1, + _ => throw new InvalidOperationException("Unexpected index.") + }; + } } public readonly struct ObjectPosition : IProperty @@ -8395,6 +11430,17 @@ public string GetValue(string key) _ => throw new InvalidOperationException("Unexpected index.") }; } + + public object GetValue() + { + return _index switch + { + 0 => _value0, + 1 => _value1, + 2 => _value2, + _ => throw new InvalidOperationException("Unexpected index.") + }; + } } public readonly struct OffsetAnchor : IProperty @@ -8426,6 +11472,17 @@ public string GetValue(string key) _ => throw new InvalidOperationException("Unexpected index.") }; } + + public object GetValue() + { + return _index switch + { + 0 => _value0, + 1 => _value1, + 2 => _value2, + _ => throw new InvalidOperationException("Unexpected index.") + }; + } } public readonly struct OffsetPosition : IProperty @@ -8457,6 +11514,17 @@ public string GetValue(string key) _ => throw new InvalidOperationException("Unexpected index.") }; } + + public object GetValue() + { + return _index switch + { + 0 => _value0, + 1 => _value1, + 2 => _value2, + _ => throw new InvalidOperationException("Unexpected index.") + }; + } } public readonly struct Opacity : IProperty @@ -8488,6 +11556,17 @@ public string GetValue(string key) _ => throw new InvalidOperationException("Unexpected index.") }; } + + public object GetValue() + { + return _index switch + { + 0 => _value0, + 1 => _value1, + 2 => _value2, + _ => throw new InvalidOperationException("Unexpected index.") + }; + } } public readonly struct Order : IProperty @@ -8519,6 +11598,17 @@ public string GetValue(string key) _ => throw new InvalidOperationException("Unexpected index.") }; } + + public object GetValue() + { + return _index switch + { + 0 => _value0, + 1 => _value1, + 2 => _value2, + _ => throw new InvalidOperationException("Unexpected index.") + }; + } } public readonly struct Orphans : IProperty @@ -8550,6 +11640,17 @@ public string GetValue(string key) _ => throw new InvalidOperationException("Unexpected index.") }; } + + public object GetValue() + { + return _index switch + { + 0 => _value0, + 1 => _value1, + 2 => _value2, + _ => throw new InvalidOperationException("Unexpected index.") + }; + } } public readonly struct Outline : IProperty @@ -8581,6 +11682,17 @@ public string GetValue(string key) _ => throw new InvalidOperationException("Unexpected index.") }; } + + public object GetValue() + { + return _index switch + { + 0 => _value0, + 1 => _value1, + 2 => _value2, + _ => throw new InvalidOperationException("Unexpected index.") + }; + } } public readonly struct OutlineColor : IProperty @@ -8608,6 +11720,16 @@ public string GetValue(string key) _ => throw new InvalidOperationException("Unexpected index.") }; } + + public object GetValue() + { + return _index switch + { + 0 => _value0, + 1 => _value1, + _ => throw new InvalidOperationException("Unexpected index.") + }; + } } public readonly struct OutlineOffset : IProperty @@ -8639,6 +11761,17 @@ public string GetValue(string key) _ => throw new InvalidOperationException("Unexpected index.") }; } + + public object GetValue() + { + return _index switch + { + 0 => _value0, + 1 => _value1, + 2 => _value2, + _ => throw new InvalidOperationException("Unexpected index.") + }; + } } public readonly struct OutlineStyle : IProperty @@ -8666,6 +11799,16 @@ public string GetValue(string key) _ => throw new InvalidOperationException("Unexpected index.") }; } + + public object GetValue() + { + return _index switch + { + 0 => _value0, + 1 => _value1, + _ => throw new InvalidOperationException("Unexpected index.") + }; + } } public readonly struct OutlineWidth : IProperty @@ -8697,6 +11840,17 @@ public string GetValue(string key) _ => throw new InvalidOperationException("Unexpected index.") }; } + + public object GetValue() + { + return _index switch + { + 0 => _value0, + 1 => _value1, + 2 => _value2, + _ => throw new InvalidOperationException("Unexpected index.") + }; + } } public readonly struct Overflow : IProperty @@ -8724,6 +11878,16 @@ public string GetValue(string key) _ => throw new InvalidOperationException("Unexpected index.") }; } + + public object GetValue() + { + return _index switch + { + 0 => _value0, + 1 => _value1, + _ => throw new InvalidOperationException("Unexpected index.") + }; + } } public readonly struct OverflowAnchor : IProperty @@ -8751,6 +11915,16 @@ public string GetValue(string key) _ => throw new InvalidOperationException("Unexpected index.") }; } + + public object GetValue() + { + return _index switch + { + 0 => _value0, + 1 => _value1, + _ => throw new InvalidOperationException("Unexpected index.") + }; + } } public readonly struct OverflowBlock : IProperty @@ -8778,6 +11952,16 @@ public string GetValue(string key) _ => throw new InvalidOperationException("Unexpected index.") }; } + + public object GetValue() + { + return _index switch + { + 0 => _value0, + 1 => _value1, + _ => throw new InvalidOperationException("Unexpected index.") + }; + } } public readonly struct OverflowClipBox : IProperty @@ -8805,6 +11989,16 @@ public string GetValue(string key) _ => throw new InvalidOperationException("Unexpected index.") }; } + + public object GetValue() + { + return _index switch + { + 0 => _value0, + 1 => _value1, + _ => throw new InvalidOperationException("Unexpected index.") + }; + } } public readonly struct OverflowClipMargin : IProperty @@ -8836,6 +12030,17 @@ public string GetValue(string key) _ => throw new InvalidOperationException("Unexpected index.") }; } + + public object GetValue() + { + return _index switch + { + 0 => _value0, + 1 => _value1, + 2 => _value2, + _ => throw new InvalidOperationException("Unexpected index.") + }; + } } public readonly struct OverflowInline : IProperty @@ -8863,6 +12068,16 @@ public string GetValue(string key) _ => throw new InvalidOperationException("Unexpected index.") }; } + + public object GetValue() + { + return _index switch + { + 0 => _value0, + 1 => _value1, + _ => throw new InvalidOperationException("Unexpected index.") + }; + } } public readonly struct OverflowWrap : IProperty @@ -8890,6 +12105,16 @@ public string GetValue(string key) _ => throw new InvalidOperationException("Unexpected index.") }; } + + public object GetValue() + { + return _index switch + { + 0 => _value0, + 1 => _value1, + _ => throw new InvalidOperationException("Unexpected index.") + }; + } } public readonly struct OverflowX : IProperty @@ -8917,6 +12142,16 @@ public string GetValue(string key) _ => throw new InvalidOperationException("Unexpected index.") }; } + + public object GetValue() + { + return _index switch + { + 0 => _value0, + 1 => _value1, + _ => throw new InvalidOperationException("Unexpected index.") + }; + } } public readonly struct OverflowY : IProperty @@ -8944,6 +12179,16 @@ public string GetValue(string key) _ => throw new InvalidOperationException("Unexpected index.") }; } + + public object GetValue() + { + return _index switch + { + 0 => _value0, + 1 => _value1, + _ => throw new InvalidOperationException("Unexpected index.") + }; + } } public readonly struct Overlay : IProperty @@ -8971,6 +12216,16 @@ public string GetValue(string key) _ => throw new InvalidOperationException("Unexpected index.") }; } + + public object GetValue() + { + return _index switch + { + 0 => _value0, + 1 => _value1, + _ => throw new InvalidOperationException("Unexpected index.") + }; + } } public readonly struct OverscrollBehavior : IProperty @@ -8998,6 +12253,16 @@ public string GetValue(string key) _ => throw new InvalidOperationException("Unexpected index.") }; } + + public object GetValue() + { + return _index switch + { + 0 => _value0, + 1 => _value1, + _ => throw new InvalidOperationException("Unexpected index.") + }; + } } public readonly struct OverscrollBehaviorBlock : IProperty @@ -9025,6 +12290,16 @@ public string GetValue(string key) _ => throw new InvalidOperationException("Unexpected index.") }; } + + public object GetValue() + { + return _index switch + { + 0 => _value0, + 1 => _value1, + _ => throw new InvalidOperationException("Unexpected index.") + }; + } } public readonly struct OverscrollBehaviorInline : IProperty @@ -9052,6 +12327,16 @@ public string GetValue(string key) _ => throw new InvalidOperationException("Unexpected index.") }; } + + public object GetValue() + { + return _index switch + { + 0 => _value0, + 1 => _value1, + _ => throw new InvalidOperationException("Unexpected index.") + }; + } } public readonly struct OverscrollBehaviorX : IProperty @@ -9079,6 +12364,16 @@ public string GetValue(string key) _ => throw new InvalidOperationException("Unexpected index.") }; } + + public object GetValue() + { + return _index switch + { + 0 => _value0, + 1 => _value1, + _ => throw new InvalidOperationException("Unexpected index.") + }; + } } public readonly struct OverscrollBehaviorY : IProperty @@ -9106,6 +12401,16 @@ public string GetValue(string key) _ => throw new InvalidOperationException("Unexpected index.") }; } + + public object GetValue() + { + return _index switch + { + 0 => _value0, + 1 => _value1, + _ => throw new InvalidOperationException("Unexpected index.") + }; + } } public readonly struct Padding : IProperty @@ -9137,6 +12442,17 @@ public string GetValue(string key) _ => throw new InvalidOperationException("Unexpected index.") }; } + + public object GetValue() + { + return _index switch + { + 0 => _value0, + 1 => _value1, + 2 => _value2, + _ => throw new InvalidOperationException("Unexpected index.") + }; + } } public readonly struct PaddingBlock : IProperty @@ -9168,6 +12484,17 @@ public string GetValue(string key) _ => throw new InvalidOperationException("Unexpected index.") }; } + + public object GetValue() + { + return _index switch + { + 0 => _value0, + 1 => _value1, + 2 => _value2, + _ => throw new InvalidOperationException("Unexpected index.") + }; + } } public readonly struct PaddingBlockEnd : IProperty @@ -9199,6 +12526,17 @@ public string GetValue(string key) _ => throw new InvalidOperationException("Unexpected index.") }; } + + public object GetValue() + { + return _index switch + { + 0 => _value0, + 1 => _value1, + 2 => _value2, + _ => throw new InvalidOperationException("Unexpected index.") + }; + } } public readonly struct PaddingBlockStart : IProperty @@ -9230,6 +12568,17 @@ public string GetValue(string key) _ => throw new InvalidOperationException("Unexpected index.") }; } + + public object GetValue() + { + return _index switch + { + 0 => _value0, + 1 => _value1, + 2 => _value2, + _ => throw new InvalidOperationException("Unexpected index.") + }; + } } public readonly struct PaddingBottom : IProperty @@ -9261,6 +12610,17 @@ public string GetValue(string key) _ => throw new InvalidOperationException("Unexpected index.") }; } + + public object GetValue() + { + return _index switch + { + 0 => _value0, + 1 => _value1, + 2 => _value2, + _ => throw new InvalidOperationException("Unexpected index.") + }; + } } public readonly struct PaddingInline : IProperty @@ -9292,6 +12652,17 @@ public string GetValue(string key) _ => throw new InvalidOperationException("Unexpected index.") }; } + + public object GetValue() + { + return _index switch + { + 0 => _value0, + 1 => _value1, + 2 => _value2, + _ => throw new InvalidOperationException("Unexpected index.") + }; + } } public readonly struct PaddingInlineEnd : IProperty @@ -9323,6 +12694,17 @@ public string GetValue(string key) _ => throw new InvalidOperationException("Unexpected index.") }; } + + public object GetValue() + { + return _index switch + { + 0 => _value0, + 1 => _value1, + 2 => _value2, + _ => throw new InvalidOperationException("Unexpected index.") + }; + } } public readonly struct PaddingInlineStart : IProperty @@ -9354,11 +12736,22 @@ public string GetValue(string key) _ => throw new InvalidOperationException("Unexpected index.") }; } - } - public readonly struct PaddingLeft : IProperty - { - private readonly int _index; + public object GetValue() + { + return _index switch + { + 0 => _value0, + 1 => _value1, + 2 => _value2, + _ => throw new InvalidOperationException("Unexpected index.") + }; + } + } + + public readonly struct PaddingLeft : IProperty + { + private readonly int _index; private readonly PropertySkip _value0; private readonly string _value1; private readonly double _value2; @@ -9385,6 +12778,17 @@ public string GetValue(string key) _ => throw new InvalidOperationException("Unexpected index.") }; } + + public object GetValue() + { + return _index switch + { + 0 => _value0, + 1 => _value1, + 2 => _value2, + _ => throw new InvalidOperationException("Unexpected index.") + }; + } } public readonly struct PaddingRight : IProperty @@ -9416,6 +12820,17 @@ public string GetValue(string key) _ => throw new InvalidOperationException("Unexpected index.") }; } + + public object GetValue() + { + return _index switch + { + 0 => _value0, + 1 => _value1, + 2 => _value2, + _ => throw new InvalidOperationException("Unexpected index.") + }; + } } public readonly struct PaddingTop : IProperty @@ -9447,6 +12862,17 @@ public string GetValue(string key) _ => throw new InvalidOperationException("Unexpected index.") }; } + + public object GetValue() + { + return _index switch + { + 0 => _value0, + 1 => _value1, + 2 => _value2, + _ => throw new InvalidOperationException("Unexpected index.") + }; + } } public readonly struct Page : IProperty @@ -9474,6 +12900,16 @@ public string GetValue(string key) _ => throw new InvalidOperationException("Unexpected index.") }; } + + public object GetValue() + { + return _index switch + { + 0 => _value0, + 1 => _value1, + _ => throw new InvalidOperationException("Unexpected index.") + }; + } } public readonly struct PageBreakAfter : IProperty @@ -9501,6 +12937,16 @@ public string GetValue(string key) _ => throw new InvalidOperationException("Unexpected index.") }; } + + public object GetValue() + { + return _index switch + { + 0 => _value0, + 1 => _value1, + _ => throw new InvalidOperationException("Unexpected index.") + }; + } } public readonly struct PageBreakBefore : IProperty @@ -9528,6 +12974,16 @@ public string GetValue(string key) _ => throw new InvalidOperationException("Unexpected index.") }; } + + public object GetValue() + { + return _index switch + { + 0 => _value0, + 1 => _value1, + _ => throw new InvalidOperationException("Unexpected index.") + }; + } } public readonly struct PageBreakInside : IProperty @@ -9555,6 +13011,16 @@ public string GetValue(string key) _ => throw new InvalidOperationException("Unexpected index.") }; } + + public object GetValue() + { + return _index switch + { + 0 => _value0, + 1 => _value1, + _ => throw new InvalidOperationException("Unexpected index.") + }; + } } public readonly struct PaintOrder : IProperty @@ -9582,6 +13048,16 @@ public string GetValue(string key) _ => throw new InvalidOperationException("Unexpected index.") }; } + + public object GetValue() + { + return _index switch + { + 0 => _value0, + 1 => _value1, + _ => throw new InvalidOperationException("Unexpected index.") + }; + } } public readonly struct Perspective : IProperty @@ -9613,6 +13089,17 @@ public string GetValue(string key) _ => throw new InvalidOperationException("Unexpected index.") }; } + + public object GetValue() + { + return _index switch + { + 0 => _value0, + 1 => _value1, + 2 => _value2, + _ => throw new InvalidOperationException("Unexpected index.") + }; + } } public readonly struct PerspectiveOrigin : IProperty @@ -9644,6 +13131,17 @@ public string GetValue(string key) _ => throw new InvalidOperationException("Unexpected index.") }; } + + public object GetValue() + { + return _index switch + { + 0 => _value0, + 1 => _value1, + 2 => _value2, + _ => throw new InvalidOperationException("Unexpected index.") + }; + } } public readonly struct PlaceContent : IProperty @@ -9671,6 +13169,16 @@ public string GetValue(string key) _ => throw new InvalidOperationException("Unexpected index.") }; } + + public object GetValue() + { + return _index switch + { + 0 => _value0, + 1 => _value1, + _ => throw new InvalidOperationException("Unexpected index.") + }; + } } public readonly struct PlaceItems : IProperty @@ -9698,6 +13206,16 @@ public string GetValue(string key) _ => throw new InvalidOperationException("Unexpected index.") }; } + + public object GetValue() + { + return _index switch + { + 0 => _value0, + 1 => _value1, + _ => throw new InvalidOperationException("Unexpected index.") + }; + } } public readonly struct PlaceSelf : IProperty @@ -9725,6 +13243,16 @@ public string GetValue(string key) _ => throw new InvalidOperationException("Unexpected index.") }; } + + public object GetValue() + { + return _index switch + { + 0 => _value0, + 1 => _value1, + _ => throw new InvalidOperationException("Unexpected index.") + }; + } } public readonly struct PointerEvents : IProperty @@ -9752,6 +13280,16 @@ public string GetValue(string key) _ => throw new InvalidOperationException("Unexpected index.") }; } + + public object GetValue() + { + return _index switch + { + 0 => _value0, + 1 => _value1, + _ => throw new InvalidOperationException("Unexpected index.") + }; + } } public readonly struct Position : IProperty @@ -9779,6 +13317,16 @@ public string GetValue(string key) _ => throw new InvalidOperationException("Unexpected index.") }; } + + public object GetValue() + { + return _index switch + { + 0 => _value0, + 1 => _value1, + _ => throw new InvalidOperationException("Unexpected index.") + }; + } } public readonly struct Quotes : IProperty @@ -9806,6 +13354,16 @@ public string GetValue(string key) _ => throw new InvalidOperationException("Unexpected index.") }; } + + public object GetValue() + { + return _index switch + { + 0 => _value0, + 1 => _value1, + _ => throw new InvalidOperationException("Unexpected index.") + }; + } } public readonly struct Resize : IProperty @@ -9833,6 +13391,16 @@ public string GetValue(string key) _ => throw new InvalidOperationException("Unexpected index.") }; } + + public object GetValue() + { + return _index switch + { + 0 => _value0, + 1 => _value1, + _ => throw new InvalidOperationException("Unexpected index.") + }; + } } public readonly struct Right : IProperty @@ -9864,6 +13432,17 @@ public string GetValue(string key) _ => throw new InvalidOperationException("Unexpected index.") }; } + + public object GetValue() + { + return _index switch + { + 0 => _value0, + 1 => _value1, + 2 => _value2, + _ => throw new InvalidOperationException("Unexpected index.") + }; + } } public readonly struct Rotate : IProperty @@ -9891,6 +13470,16 @@ public string GetValue(string key) _ => throw new InvalidOperationException("Unexpected index.") }; } + + public object GetValue() + { + return _index switch + { + 0 => _value0, + 1 => _value1, + _ => throw new InvalidOperationException("Unexpected index.") + }; + } } public readonly struct RowGap : IProperty @@ -9922,6 +13511,17 @@ public string GetValue(string key) _ => throw new InvalidOperationException("Unexpected index.") }; } + + public object GetValue() + { + return _index switch + { + 0 => _value0, + 1 => _value1, + 2 => _value2, + _ => throw new InvalidOperationException("Unexpected index.") + }; + } } public readonly struct RubyAlign : IProperty @@ -9949,6 +13549,16 @@ public string GetValue(string key) _ => throw new InvalidOperationException("Unexpected index.") }; } + + public object GetValue() + { + return _index switch + { + 0 => _value0, + 1 => _value1, + _ => throw new InvalidOperationException("Unexpected index.") + }; + } } public readonly struct RubyMerge : IProperty @@ -9976,6 +13586,16 @@ public string GetValue(string key) _ => throw new InvalidOperationException("Unexpected index.") }; } + + public object GetValue() + { + return _index switch + { + 0 => _value0, + 1 => _value1, + _ => throw new InvalidOperationException("Unexpected index.") + }; + } } public readonly struct RubyPosition : IProperty @@ -10003,6 +13623,16 @@ public string GetValue(string key) _ => throw new InvalidOperationException("Unexpected index.") }; } + + public object GetValue() + { + return _index switch + { + 0 => _value0, + 1 => _value1, + _ => throw new InvalidOperationException("Unexpected index.") + }; + } } public readonly struct Scale : IProperty @@ -10034,6 +13664,17 @@ public string GetValue(string key) _ => throw new InvalidOperationException("Unexpected index.") }; } + + public object GetValue() + { + return _index switch + { + 0 => _value0, + 1 => _value1, + 2 => _value2, + _ => throw new InvalidOperationException("Unexpected index.") + }; + } } public readonly struct ScrollBehavior : IProperty @@ -10061,6 +13702,16 @@ public string GetValue(string key) _ => throw new InvalidOperationException("Unexpected index.") }; } + + public object GetValue() + { + return _index switch + { + 0 => _value0, + 1 => _value1, + _ => throw new InvalidOperationException("Unexpected index.") + }; + } } public readonly struct ScrollMargin : IProperty @@ -10092,6 +13743,17 @@ public string GetValue(string key) _ => throw new InvalidOperationException("Unexpected index.") }; } + + public object GetValue() + { + return _index switch + { + 0 => _value0, + 1 => _value1, + 2 => _value2, + _ => throw new InvalidOperationException("Unexpected index.") + }; + } } public readonly struct ScrollMarginBlock : IProperty @@ -10123,6 +13785,17 @@ public string GetValue(string key) _ => throw new InvalidOperationException("Unexpected index.") }; } + + public object GetValue() + { + return _index switch + { + 0 => _value0, + 1 => _value1, + 2 => _value2, + _ => throw new InvalidOperationException("Unexpected index.") + }; + } } public readonly struct ScrollMarginBlockEnd : IProperty @@ -10154,6 +13827,17 @@ public string GetValue(string key) _ => throw new InvalidOperationException("Unexpected index.") }; } + + public object GetValue() + { + return _index switch + { + 0 => _value0, + 1 => _value1, + 2 => _value2, + _ => throw new InvalidOperationException("Unexpected index.") + }; + } } public readonly struct ScrollMarginBlockStart : IProperty @@ -10185,6 +13869,17 @@ public string GetValue(string key) _ => throw new InvalidOperationException("Unexpected index.") }; } + + public object GetValue() + { + return _index switch + { + 0 => _value0, + 1 => _value1, + 2 => _value2, + _ => throw new InvalidOperationException("Unexpected index.") + }; + } } public readonly struct ScrollMarginBottom : IProperty @@ -10216,6 +13911,17 @@ public string GetValue(string key) _ => throw new InvalidOperationException("Unexpected index.") }; } + + public object GetValue() + { + return _index switch + { + 0 => _value0, + 1 => _value1, + 2 => _value2, + _ => throw new InvalidOperationException("Unexpected index.") + }; + } } public readonly struct ScrollMarginInline : IProperty @@ -10247,6 +13953,17 @@ public string GetValue(string key) _ => throw new InvalidOperationException("Unexpected index.") }; } + + public object GetValue() + { + return _index switch + { + 0 => _value0, + 1 => _value1, + 2 => _value2, + _ => throw new InvalidOperationException("Unexpected index.") + }; + } } public readonly struct ScrollMarginInlineEnd : IProperty @@ -10278,6 +13995,17 @@ public string GetValue(string key) _ => throw new InvalidOperationException("Unexpected index.") }; } + + public object GetValue() + { + return _index switch + { + 0 => _value0, + 1 => _value1, + 2 => _value2, + _ => throw new InvalidOperationException("Unexpected index.") + }; + } } public readonly struct ScrollMarginInlineStart : IProperty @@ -10309,6 +14037,17 @@ public string GetValue(string key) _ => throw new InvalidOperationException("Unexpected index.") }; } + + public object GetValue() + { + return _index switch + { + 0 => _value0, + 1 => _value1, + 2 => _value2, + _ => throw new InvalidOperationException("Unexpected index.") + }; + } } public readonly struct ScrollMarginLeft : IProperty @@ -10340,6 +14079,17 @@ public string GetValue(string key) _ => throw new InvalidOperationException("Unexpected index.") }; } + + public object GetValue() + { + return _index switch + { + 0 => _value0, + 1 => _value1, + 2 => _value2, + _ => throw new InvalidOperationException("Unexpected index.") + }; + } } public readonly struct ScrollMarginRight : IProperty @@ -10371,6 +14121,17 @@ public string GetValue(string key) _ => throw new InvalidOperationException("Unexpected index.") }; } + + public object GetValue() + { + return _index switch + { + 0 => _value0, + 1 => _value1, + 2 => _value2, + _ => throw new InvalidOperationException("Unexpected index.") + }; + } } public readonly struct ScrollMarginTop : IProperty @@ -10402,6 +14163,17 @@ public string GetValue(string key) _ => throw new InvalidOperationException("Unexpected index.") }; } + + public object GetValue() + { + return _index switch + { + 0 => _value0, + 1 => _value1, + 2 => _value2, + _ => throw new InvalidOperationException("Unexpected index.") + }; + } } public readonly struct ScrollPadding : IProperty @@ -10433,6 +14205,17 @@ public string GetValue(string key) _ => throw new InvalidOperationException("Unexpected index.") }; } + + public object GetValue() + { + return _index switch + { + 0 => _value0, + 1 => _value1, + 2 => _value2, + _ => throw new InvalidOperationException("Unexpected index.") + }; + } } public readonly struct ScrollPaddingBlock : IProperty @@ -10464,6 +14247,17 @@ public string GetValue(string key) _ => throw new InvalidOperationException("Unexpected index.") }; } + + public object GetValue() + { + return _index switch + { + 0 => _value0, + 1 => _value1, + 2 => _value2, + _ => throw new InvalidOperationException("Unexpected index.") + }; + } } public readonly struct ScrollPaddingBlockEnd : IProperty @@ -10495,6 +14289,17 @@ public string GetValue(string key) _ => throw new InvalidOperationException("Unexpected index.") }; } + + public object GetValue() + { + return _index switch + { + 0 => _value0, + 1 => _value1, + 2 => _value2, + _ => throw new InvalidOperationException("Unexpected index.") + }; + } } public readonly struct ScrollPaddingBlockStart : IProperty @@ -10526,6 +14331,17 @@ public string GetValue(string key) _ => throw new InvalidOperationException("Unexpected index.") }; } + + public object GetValue() + { + return _index switch + { + 0 => _value0, + 1 => _value1, + 2 => _value2, + _ => throw new InvalidOperationException("Unexpected index.") + }; + } } public readonly struct ScrollPaddingBottom : IProperty @@ -10557,6 +14373,17 @@ public string GetValue(string key) _ => throw new InvalidOperationException("Unexpected index.") }; } + + public object GetValue() + { + return _index switch + { + 0 => _value0, + 1 => _value1, + 2 => _value2, + _ => throw new InvalidOperationException("Unexpected index.") + }; + } } public readonly struct ScrollPaddingInline : IProperty @@ -10588,6 +14415,17 @@ public string GetValue(string key) _ => throw new InvalidOperationException("Unexpected index.") }; } + + public object GetValue() + { + return _index switch + { + 0 => _value0, + 1 => _value1, + 2 => _value2, + _ => throw new InvalidOperationException("Unexpected index.") + }; + } } public readonly struct ScrollPaddingInlineEnd : IProperty @@ -10619,6 +14457,17 @@ public string GetValue(string key) _ => throw new InvalidOperationException("Unexpected index.") }; } + + public object GetValue() + { + return _index switch + { + 0 => _value0, + 1 => _value1, + 2 => _value2, + _ => throw new InvalidOperationException("Unexpected index.") + }; + } } public readonly struct ScrollPaddingInlineStart : IProperty @@ -10650,6 +14499,17 @@ public string GetValue(string key) _ => throw new InvalidOperationException("Unexpected index.") }; } + + public object GetValue() + { + return _index switch + { + 0 => _value0, + 1 => _value1, + 2 => _value2, + _ => throw new InvalidOperationException("Unexpected index.") + }; + } } public readonly struct ScrollPaddingLeft : IProperty @@ -10681,6 +14541,17 @@ public string GetValue(string key) _ => throw new InvalidOperationException("Unexpected index.") }; } + + public object GetValue() + { + return _index switch + { + 0 => _value0, + 1 => _value1, + 2 => _value2, + _ => throw new InvalidOperationException("Unexpected index.") + }; + } } public readonly struct ScrollPaddingRight : IProperty @@ -10712,6 +14583,17 @@ public string GetValue(string key) _ => throw new InvalidOperationException("Unexpected index.") }; } + + public object GetValue() + { + return _index switch + { + 0 => _value0, + 1 => _value1, + 2 => _value2, + _ => throw new InvalidOperationException("Unexpected index.") + }; + } } public readonly struct ScrollPaddingTop : IProperty @@ -10743,6 +14625,17 @@ public string GetValue(string key) _ => throw new InvalidOperationException("Unexpected index.") }; } + + public object GetValue() + { + return _index switch + { + 0 => _value0, + 1 => _value1, + 2 => _value2, + _ => throw new InvalidOperationException("Unexpected index.") + }; + } } public readonly struct ScrollSnapAlign : IProperty @@ -10770,6 +14663,16 @@ public string GetValue(string key) _ => throw new InvalidOperationException("Unexpected index.") }; } + + public object GetValue() + { + return _index switch + { + 0 => _value0, + 1 => _value1, + _ => throw new InvalidOperationException("Unexpected index.") + }; + } } public readonly struct ScrollSnapCoordinate : IProperty @@ -10801,6 +14704,17 @@ public string GetValue(string key) _ => throw new InvalidOperationException("Unexpected index.") }; } + + public object GetValue() + { + return _index switch + { + 0 => _value0, + 1 => _value1, + 2 => _value2, + _ => throw new InvalidOperationException("Unexpected index.") + }; + } } public readonly struct ScrollSnapDestination : IProperty @@ -10832,6 +14746,17 @@ public string GetValue(string key) _ => throw new InvalidOperationException("Unexpected index.") }; } + + public object GetValue() + { + return _index switch + { + 0 => _value0, + 1 => _value1, + 2 => _value2, + _ => throw new InvalidOperationException("Unexpected index.") + }; + } } public readonly struct ScrollSnapPointsX : IProperty @@ -10859,6 +14784,16 @@ public string GetValue(string key) _ => throw new InvalidOperationException("Unexpected index.") }; } + + public object GetValue() + { + return _index switch + { + 0 => _value0, + 1 => _value1, + _ => throw new InvalidOperationException("Unexpected index.") + }; + } } public readonly struct ScrollSnapPointsY : IProperty @@ -10886,6 +14821,16 @@ public string GetValue(string key) _ => throw new InvalidOperationException("Unexpected index.") }; } + + public object GetValue() + { + return _index switch + { + 0 => _value0, + 1 => _value1, + _ => throw new InvalidOperationException("Unexpected index.") + }; + } } public readonly struct ScrollSnapStop : IProperty @@ -10913,6 +14858,16 @@ public string GetValue(string key) _ => throw new InvalidOperationException("Unexpected index.") }; } + + public object GetValue() + { + return _index switch + { + 0 => _value0, + 1 => _value1, + _ => throw new InvalidOperationException("Unexpected index.") + }; + } } public readonly struct ScrollSnapType : IProperty @@ -10940,6 +14895,16 @@ public string GetValue(string key) _ => throw new InvalidOperationException("Unexpected index.") }; } + + public object GetValue() + { + return _index switch + { + 0 => _value0, + 1 => _value1, + _ => throw new InvalidOperationException("Unexpected index.") + }; + } } public readonly struct ScrollSnapTypeX : IProperty @@ -10967,6 +14932,16 @@ public string GetValue(string key) _ => throw new InvalidOperationException("Unexpected index.") }; } + + public object GetValue() + { + return _index switch + { + 0 => _value0, + 1 => _value1, + _ => throw new InvalidOperationException("Unexpected index.") + }; + } } public readonly struct ScrollSnapTypeY : IProperty @@ -10994,6 +14969,16 @@ public string GetValue(string key) _ => throw new InvalidOperationException("Unexpected index.") }; } + + public object GetValue() + { + return _index switch + { + 0 => _value0, + 1 => _value1, + _ => throw new InvalidOperationException("Unexpected index.") + }; + } } public readonly struct ScrollTimeline : IProperty @@ -11021,6 +15006,16 @@ public string GetValue(string key) _ => throw new InvalidOperationException("Unexpected index.") }; } + + public object GetValue() + { + return _index switch + { + 0 => _value0, + 1 => _value1, + _ => throw new InvalidOperationException("Unexpected index.") + }; + } } public readonly struct ScrollTimelineAxis : IProperty @@ -11048,6 +15043,16 @@ public string GetValue(string key) _ => throw new InvalidOperationException("Unexpected index.") }; } + + public object GetValue() + { + return _index switch + { + 0 => _value0, + 1 => _value1, + _ => throw new InvalidOperationException("Unexpected index.") + }; + } } public readonly struct ScrollTimelineName : IProperty @@ -11075,6 +15080,16 @@ public string GetValue(string key) _ => throw new InvalidOperationException("Unexpected index.") }; } + + public object GetValue() + { + return _index switch + { + 0 => _value0, + 1 => _value1, + _ => throw new InvalidOperationException("Unexpected index.") + }; + } } public readonly struct ScrollbarColor : IProperty @@ -11102,6 +15117,16 @@ public string GetValue(string key) _ => throw new InvalidOperationException("Unexpected index.") }; } + + public object GetValue() + { + return _index switch + { + 0 => _value0, + 1 => _value1, + _ => throw new InvalidOperationException("Unexpected index.") + }; + } } public readonly struct ScrollbarGutter : IProperty @@ -11129,6 +15154,16 @@ public string GetValue(string key) _ => throw new InvalidOperationException("Unexpected index.") }; } + + public object GetValue() + { + return _index switch + { + 0 => _value0, + 1 => _value1, + _ => throw new InvalidOperationException("Unexpected index.") + }; + } } public readonly struct ScrollbarWidth : IProperty @@ -11156,6 +15191,16 @@ public string GetValue(string key) _ => throw new InvalidOperationException("Unexpected index.") }; } + + public object GetValue() + { + return _index switch + { + 0 => _value0, + 1 => _value1, + _ => throw new InvalidOperationException("Unexpected index.") + }; + } } public readonly struct ShapeImageThreshold : IProperty @@ -11187,6 +15232,17 @@ public string GetValue(string key) _ => throw new InvalidOperationException("Unexpected index.") }; } + + public object GetValue() + { + return _index switch + { + 0 => _value0, + 1 => _value1, + 2 => _value2, + _ => throw new InvalidOperationException("Unexpected index.") + }; + } } public readonly struct ShapeMargin : IProperty @@ -11218,6 +15274,17 @@ public string GetValue(string key) _ => throw new InvalidOperationException("Unexpected index.") }; } + + public object GetValue() + { + return _index switch + { + 0 => _value0, + 1 => _value1, + 2 => _value2, + _ => throw new InvalidOperationException("Unexpected index.") + }; + } } public readonly struct ShapeOutside : IProperty @@ -11245,6 +15312,16 @@ public string GetValue(string key) _ => throw new InvalidOperationException("Unexpected index.") }; } + + public object GetValue() + { + return _index switch + { + 0 => _value0, + 1 => _value1, + _ => throw new InvalidOperationException("Unexpected index.") + }; + } } public readonly struct TabSize : IProperty @@ -11276,6 +15353,17 @@ public string GetValue(string key) _ => throw new InvalidOperationException("Unexpected index.") }; } + + public object GetValue() + { + return _index switch + { + 0 => _value0, + 1 => _value1, + 2 => _value2, + _ => throw new InvalidOperationException("Unexpected index.") + }; + } } public readonly struct TableLayout : IProperty @@ -11303,6 +15391,16 @@ public string GetValue(string key) _ => throw new InvalidOperationException("Unexpected index.") }; } + + public object GetValue() + { + return _index switch + { + 0 => _value0, + 1 => _value1, + _ => throw new InvalidOperationException("Unexpected index.") + }; + } } public readonly struct TextAlign : IProperty @@ -11330,6 +15428,16 @@ public string GetValue(string key) _ => throw new InvalidOperationException("Unexpected index.") }; } + + public object GetValue() + { + return _index switch + { + 0 => _value0, + 1 => _value1, + _ => throw new InvalidOperationException("Unexpected index.") + }; + } } public readonly struct TextAlignLast : IProperty @@ -11357,6 +15465,16 @@ public string GetValue(string key) _ => throw new InvalidOperationException("Unexpected index.") }; } + + public object GetValue() + { + return _index switch + { + 0 => _value0, + 1 => _value1, + _ => throw new InvalidOperationException("Unexpected index.") + }; + } } public readonly struct TextCombineUpright : IProperty @@ -11384,6 +15502,16 @@ public string GetValue(string key) _ => throw new InvalidOperationException("Unexpected index.") }; } + + public object GetValue() + { + return _index switch + { + 0 => _value0, + 1 => _value1, + _ => throw new InvalidOperationException("Unexpected index.") + }; + } } public readonly struct TextDecoration : IProperty @@ -11415,6 +15543,17 @@ public string GetValue(string key) _ => throw new InvalidOperationException("Unexpected index.") }; } + + public object GetValue() + { + return _index switch + { + 0 => _value0, + 1 => _value1, + 2 => _value2, + _ => throw new InvalidOperationException("Unexpected index.") + }; + } } public readonly struct TextDecorationColor : IProperty @@ -11442,6 +15581,16 @@ public string GetValue(string key) _ => throw new InvalidOperationException("Unexpected index.") }; } + + public object GetValue() + { + return _index switch + { + 0 => _value0, + 1 => _value1, + _ => throw new InvalidOperationException("Unexpected index.") + }; + } } public readonly struct TextDecorationLine : IProperty @@ -11469,6 +15618,16 @@ public string GetValue(string key) _ => throw new InvalidOperationException("Unexpected index.") }; } + + public object GetValue() + { + return _index switch + { + 0 => _value0, + 1 => _value1, + _ => throw new InvalidOperationException("Unexpected index.") + }; + } } public readonly struct TextDecorationSkip : IProperty @@ -11496,6 +15655,16 @@ public string GetValue(string key) _ => throw new InvalidOperationException("Unexpected index.") }; } + + public object GetValue() + { + return _index switch + { + 0 => _value0, + 1 => _value1, + _ => throw new InvalidOperationException("Unexpected index.") + }; + } } public readonly struct TextDecorationSkipInk : IProperty @@ -11523,6 +15692,16 @@ public string GetValue(string key) _ => throw new InvalidOperationException("Unexpected index.") }; } + + public object GetValue() + { + return _index switch + { + 0 => _value0, + 1 => _value1, + _ => throw new InvalidOperationException("Unexpected index.") + }; + } } public readonly struct TextDecorationStyle : IProperty @@ -11538,15 +15717,25 @@ private TextDecorationStyle(int index, PropertySkip value0 = default, string val _value1 = value1; } - public static implicit operator TextDecorationStyle(PropertySkip t) => new(0, value0: t); - public static implicit operator TextDecorationStyle(string t) => new(1, value1: t); - - public string GetValue(string key) + public static implicit operator TextDecorationStyle(PropertySkip t) => new(0, value0: t); + public static implicit operator TextDecorationStyle(string t) => new(1, value1: t); + + public string GetValue(string key) + { + return _index switch + { + 0 => FormatValue(key, _value0), + 1 => FormatValue(key, _value1), + _ => throw new InvalidOperationException("Unexpected index.") + }; + } + + public object GetValue() { return _index switch { - 0 => FormatValue(key, _value0), - 1 => FormatValue(key, _value1), + 0 => _value0, + 1 => _value1, _ => throw new InvalidOperationException("Unexpected index.") }; } @@ -11581,6 +15770,17 @@ public string GetValue(string key) _ => throw new InvalidOperationException("Unexpected index.") }; } + + public object GetValue() + { + return _index switch + { + 0 => _value0, + 1 => _value1, + 2 => _value2, + _ => throw new InvalidOperationException("Unexpected index.") + }; + } } public readonly struct TextEmphasis : IProperty @@ -11608,6 +15808,16 @@ public string GetValue(string key) _ => throw new InvalidOperationException("Unexpected index.") }; } + + public object GetValue() + { + return _index switch + { + 0 => _value0, + 1 => _value1, + _ => throw new InvalidOperationException("Unexpected index.") + }; + } } public readonly struct TextEmphasisColor : IProperty @@ -11635,6 +15845,16 @@ public string GetValue(string key) _ => throw new InvalidOperationException("Unexpected index.") }; } + + public object GetValue() + { + return _index switch + { + 0 => _value0, + 1 => _value1, + _ => throw new InvalidOperationException("Unexpected index.") + }; + } } public readonly struct TextEmphasisPosition : IProperty @@ -11662,6 +15882,16 @@ public string GetValue(string key) _ => throw new InvalidOperationException("Unexpected index.") }; } + + public object GetValue() + { + return _index switch + { + 0 => _value0, + 1 => _value1, + _ => throw new InvalidOperationException("Unexpected index.") + }; + } } public readonly struct TextEmphasisStyle : IProperty @@ -11689,6 +15919,16 @@ public string GetValue(string key) _ => throw new InvalidOperationException("Unexpected index.") }; } + + public object GetValue() + { + return _index switch + { + 0 => _value0, + 1 => _value1, + _ => throw new InvalidOperationException("Unexpected index.") + }; + } } public readonly struct TextIndent : IProperty @@ -11720,6 +15960,17 @@ public string GetValue(string key) _ => throw new InvalidOperationException("Unexpected index.") }; } + + public object GetValue() + { + return _index switch + { + 0 => _value0, + 1 => _value1, + 2 => _value2, + _ => throw new InvalidOperationException("Unexpected index.") + }; + } } public readonly struct TextJustify : IProperty @@ -11747,6 +15998,16 @@ public string GetValue(string key) _ => throw new InvalidOperationException("Unexpected index.") }; } + + public object GetValue() + { + return _index switch + { + 0 => _value0, + 1 => _value1, + _ => throw new InvalidOperationException("Unexpected index.") + }; + } } public readonly struct TextOrientation : IProperty @@ -11774,6 +16035,16 @@ public string GetValue(string key) _ => throw new InvalidOperationException("Unexpected index.") }; } + + public object GetValue() + { + return _index switch + { + 0 => _value0, + 1 => _value1, + _ => throw new InvalidOperationException("Unexpected index.") + }; + } } public readonly struct TextOverflow : IProperty @@ -11801,6 +16072,16 @@ public string GetValue(string key) _ => throw new InvalidOperationException("Unexpected index.") }; } + + public object GetValue() + { + return _index switch + { + 0 => _value0, + 1 => _value1, + _ => throw new InvalidOperationException("Unexpected index.") + }; + } } public readonly struct TextRendering : IProperty @@ -11828,6 +16109,16 @@ public string GetValue(string key) _ => throw new InvalidOperationException("Unexpected index.") }; } + + public object GetValue() + { + return _index switch + { + 0 => _value0, + 1 => _value1, + _ => throw new InvalidOperationException("Unexpected index.") + }; + } } public readonly struct TextShadow : IProperty @@ -11855,6 +16146,16 @@ public string GetValue(string key) _ => throw new InvalidOperationException("Unexpected index.") }; } + + public object GetValue() + { + return _index switch + { + 0 => _value0, + 1 => _value1, + _ => throw new InvalidOperationException("Unexpected index.") + }; + } } public readonly struct TextSizeAdjust : IProperty @@ -11882,6 +16183,16 @@ public string GetValue(string key) _ => throw new InvalidOperationException("Unexpected index.") }; } + + public object GetValue() + { + return _index switch + { + 0 => _value0, + 1 => _value1, + _ => throw new InvalidOperationException("Unexpected index.") + }; + } } public readonly struct TextTransform : IProperty @@ -11909,6 +16220,16 @@ public string GetValue(string key) _ => throw new InvalidOperationException("Unexpected index.") }; } + + public object GetValue() + { + return _index switch + { + 0 => _value0, + 1 => _value1, + _ => throw new InvalidOperationException("Unexpected index.") + }; + } } public readonly struct TextUnderlineOffset : IProperty @@ -11940,6 +16261,17 @@ public string GetValue(string key) _ => throw new InvalidOperationException("Unexpected index.") }; } + + public object GetValue() + { + return _index switch + { + 0 => _value0, + 1 => _value1, + 2 => _value2, + _ => throw new InvalidOperationException("Unexpected index.") + }; + } } public readonly struct TextUnderlinePosition : IProperty @@ -11967,6 +16299,16 @@ public string GetValue(string key) _ => throw new InvalidOperationException("Unexpected index.") }; } + + public object GetValue() + { + return _index switch + { + 0 => _value0, + 1 => _value1, + _ => throw new InvalidOperationException("Unexpected index.") + }; + } } public readonly struct TextWrap : IProperty @@ -11994,6 +16336,16 @@ public string GetValue(string key) _ => throw new InvalidOperationException("Unexpected index.") }; } + + public object GetValue() + { + return _index switch + { + 0 => _value0, + 1 => _value1, + _ => throw new InvalidOperationException("Unexpected index.") + }; + } } public readonly struct TimelineScope : IProperty @@ -12021,6 +16373,16 @@ public string GetValue(string key) _ => throw new InvalidOperationException("Unexpected index.") }; } + + public object GetValue() + { + return _index switch + { + 0 => _value0, + 1 => _value1, + _ => throw new InvalidOperationException("Unexpected index.") + }; + } } public readonly struct Top : IProperty @@ -12052,6 +16414,17 @@ public string GetValue(string key) _ => throw new InvalidOperationException("Unexpected index.") }; } + + public object GetValue() + { + return _index switch + { + 0 => _value0, + 1 => _value1, + 2 => _value2, + _ => throw new InvalidOperationException("Unexpected index.") + }; + } } public readonly struct TouchAction : IProperty @@ -12079,6 +16452,16 @@ public string GetValue(string key) _ => throw new InvalidOperationException("Unexpected index.") }; } + + public object GetValue() + { + return _index switch + { + 0 => _value0, + 1 => _value1, + _ => throw new InvalidOperationException("Unexpected index.") + }; + } } public readonly struct Transform : IProperty @@ -12106,6 +16489,16 @@ public string GetValue(string key) _ => throw new InvalidOperationException("Unexpected index.") }; } + + public object GetValue() + { + return _index switch + { + 0 => _value0, + 1 => _value1, + _ => throw new InvalidOperationException("Unexpected index.") + }; + } } public readonly struct TransformBox : IProperty @@ -12133,6 +16526,16 @@ public string GetValue(string key) _ => throw new InvalidOperationException("Unexpected index.") }; } + + public object GetValue() + { + return _index switch + { + 0 => _value0, + 1 => _value1, + _ => throw new InvalidOperationException("Unexpected index.") + }; + } } public readonly struct TransformOrigin : IProperty @@ -12164,6 +16567,17 @@ public string GetValue(string key) _ => throw new InvalidOperationException("Unexpected index.") }; } + + public object GetValue() + { + return _index switch + { + 0 => _value0, + 1 => _value1, + 2 => _value2, + _ => throw new InvalidOperationException("Unexpected index.") + }; + } } public readonly struct TransformStyle : IProperty @@ -12191,6 +16605,16 @@ public string GetValue(string key) _ => throw new InvalidOperationException("Unexpected index.") }; } + + public object GetValue() + { + return _index switch + { + 0 => _value0, + 1 => _value1, + _ => throw new InvalidOperationException("Unexpected index.") + }; + } } public readonly struct Transition : IProperty @@ -12218,6 +16642,16 @@ public string GetValue(string key) _ => throw new InvalidOperationException("Unexpected index.") }; } + + public object GetValue() + { + return _index switch + { + 0 => _value0, + 1 => _value1, + _ => throw new InvalidOperationException("Unexpected index.") + }; + } } public readonly struct TransitionBehavior : IProperty @@ -12245,6 +16679,16 @@ public string GetValue(string key) _ => throw new InvalidOperationException("Unexpected index.") }; } + + public object GetValue() + { + return _index switch + { + 0 => _value0, + 1 => _value1, + _ => throw new InvalidOperationException("Unexpected index.") + }; + } } public readonly struct TransitionDelay : IProperty @@ -12272,6 +16716,16 @@ public string GetValue(string key) _ => throw new InvalidOperationException("Unexpected index.") }; } + + public object GetValue() + { + return _index switch + { + 0 => _value0, + 1 => _value1, + _ => throw new InvalidOperationException("Unexpected index.") + }; + } } public readonly struct TransitionDuration : IProperty @@ -12299,6 +16753,16 @@ public string GetValue(string key) _ => throw new InvalidOperationException("Unexpected index.") }; } + + public object GetValue() + { + return _index switch + { + 0 => _value0, + 1 => _value1, + _ => throw new InvalidOperationException("Unexpected index.") + }; + } } public readonly struct TransitionProperty : IProperty @@ -12326,6 +16790,16 @@ public string GetValue(string key) _ => throw new InvalidOperationException("Unexpected index.") }; } + + public object GetValue() + { + return _index switch + { + 0 => _value0, + 1 => _value1, + _ => throw new InvalidOperationException("Unexpected index.") + }; + } } public readonly struct TransitionTimingFunction : IProperty @@ -12353,6 +16827,16 @@ public string GetValue(string key) _ => throw new InvalidOperationException("Unexpected index.") }; } + + public object GetValue() + { + return _index switch + { + 0 => _value0, + 1 => _value1, + _ => throw new InvalidOperationException("Unexpected index.") + }; + } } public readonly struct Translate : IProperty @@ -12384,6 +16868,17 @@ public string GetValue(string key) _ => throw new InvalidOperationException("Unexpected index.") }; } + + public object GetValue() + { + return _index switch + { + 0 => _value0, + 1 => _value1, + 2 => _value2, + _ => throw new InvalidOperationException("Unexpected index.") + }; + } } public readonly struct UnicodeBidi : IProperty @@ -12411,6 +16906,16 @@ public string GetValue(string key) _ => throw new InvalidOperationException("Unexpected index.") }; } + + public object GetValue() + { + return _index switch + { + 0 => _value0, + 1 => _value1, + _ => throw new InvalidOperationException("Unexpected index.") + }; + } } public readonly struct UserSelect : IProperty @@ -12438,6 +16943,16 @@ public string GetValue(string key) _ => throw new InvalidOperationException("Unexpected index.") }; } + + public object GetValue() + { + return _index switch + { + 0 => _value0, + 1 => _value1, + _ => throw new InvalidOperationException("Unexpected index.") + }; + } } public readonly struct VerticalAlign : IProperty @@ -12469,6 +16984,17 @@ public string GetValue(string key) _ => throw new InvalidOperationException("Unexpected index.") }; } + + public object GetValue() + { + return _index switch + { + 0 => _value0, + 1 => _value1, + 2 => _value2, + _ => throw new InvalidOperationException("Unexpected index.") + }; + } } public readonly struct ViewTimeline : IProperty @@ -12496,6 +17022,16 @@ public string GetValue(string key) _ => throw new InvalidOperationException("Unexpected index.") }; } + + public object GetValue() + { + return _index switch + { + 0 => _value0, + 1 => _value1, + _ => throw new InvalidOperationException("Unexpected index.") + }; + } } public readonly struct ViewTimelineAxis : IProperty @@ -12523,6 +17059,16 @@ public string GetValue(string key) _ => throw new InvalidOperationException("Unexpected index.") }; } + + public object GetValue() + { + return _index switch + { + 0 => _value0, + 1 => _value1, + _ => throw new InvalidOperationException("Unexpected index.") + }; + } } public readonly struct ViewTimelineInset : IProperty @@ -12554,6 +17100,17 @@ public string GetValue(string key) _ => throw new InvalidOperationException("Unexpected index.") }; } + + public object GetValue() + { + return _index switch + { + 0 => _value0, + 1 => _value1, + 2 => _value2, + _ => throw new InvalidOperationException("Unexpected index.") + }; + } } public readonly struct ViewTimelineName : IProperty @@ -12581,6 +17138,16 @@ public string GetValue(string key) _ => throw new InvalidOperationException("Unexpected index.") }; } + + public object GetValue() + { + return _index switch + { + 0 => _value0, + 1 => _value1, + _ => throw new InvalidOperationException("Unexpected index.") + }; + } } public readonly struct ViewTransitionName : IProperty @@ -12608,6 +17175,16 @@ public string GetValue(string key) _ => throw new InvalidOperationException("Unexpected index.") }; } + + public object GetValue() + { + return _index switch + { + 0 => _value0, + 1 => _value1, + _ => throw new InvalidOperationException("Unexpected index.") + }; + } } public readonly struct Visibility : IProperty @@ -12635,6 +17212,16 @@ public string GetValue(string key) _ => throw new InvalidOperationException("Unexpected index.") }; } + + public object GetValue() + { + return _index switch + { + 0 => _value0, + 1 => _value1, + _ => throw new InvalidOperationException("Unexpected index.") + }; + } } public readonly struct WhiteSpace : IProperty @@ -12662,6 +17249,16 @@ public string GetValue(string key) _ => throw new InvalidOperationException("Unexpected index.") }; } + + public object GetValue() + { + return _index switch + { + 0 => _value0, + 1 => _value1, + _ => throw new InvalidOperationException("Unexpected index.") + }; + } } public readonly struct WhiteSpaceCollapse : IProperty @@ -12689,6 +17286,16 @@ public string GetValue(string key) _ => throw new InvalidOperationException("Unexpected index.") }; } + + public object GetValue() + { + return _index switch + { + 0 => _value0, + 1 => _value1, + _ => throw new InvalidOperationException("Unexpected index.") + }; + } } public readonly struct WhiteSpaceTrim : IProperty @@ -12716,6 +17323,16 @@ public string GetValue(string key) _ => throw new InvalidOperationException("Unexpected index.") }; } + + public object GetValue() + { + return _index switch + { + 0 => _value0, + 1 => _value1, + _ => throw new InvalidOperationException("Unexpected index.") + }; + } } public readonly struct Widows : IProperty @@ -12747,6 +17364,17 @@ public string GetValue(string key) _ => throw new InvalidOperationException("Unexpected index.") }; } + + public object GetValue() + { + return _index switch + { + 0 => _value0, + 1 => _value1, + 2 => _value2, + _ => throw new InvalidOperationException("Unexpected index.") + }; + } } public readonly struct Width : IProperty @@ -12778,6 +17406,17 @@ public string GetValue(string key) _ => throw new InvalidOperationException("Unexpected index.") }; } + + public object GetValue() + { + return _index switch + { + 0 => _value0, + 1 => _value1, + 2 => _value2, + _ => throw new InvalidOperationException("Unexpected index.") + }; + } } public readonly struct WillChange : IProperty @@ -12805,6 +17444,16 @@ public string GetValue(string key) _ => throw new InvalidOperationException("Unexpected index.") }; } + + public object GetValue() + { + return _index switch + { + 0 => _value0, + 1 => _value1, + _ => throw new InvalidOperationException("Unexpected index.") + }; + } } public readonly struct WordBreak : IProperty @@ -12832,6 +17481,16 @@ public string GetValue(string key) _ => throw new InvalidOperationException("Unexpected index.") }; } + + public object GetValue() + { + return _index switch + { + 0 => _value0, + 1 => _value1, + _ => throw new InvalidOperationException("Unexpected index.") + }; + } } public readonly struct WordSpacing : IProperty @@ -12863,6 +17522,17 @@ public string GetValue(string key) _ => throw new InvalidOperationException("Unexpected index.") }; } + + public object GetValue() + { + return _index switch + { + 0 => _value0, + 1 => _value1, + 2 => _value2, + _ => throw new InvalidOperationException("Unexpected index.") + }; + } } public readonly struct WordWrap : IProperty @@ -12890,6 +17560,16 @@ public string GetValue(string key) _ => throw new InvalidOperationException("Unexpected index.") }; } + + public object GetValue() + { + return _index switch + { + 0 => _value0, + 1 => _value1, + _ => throw new InvalidOperationException("Unexpected index.") + }; + } } public readonly struct WritingMode : IProperty @@ -12917,6 +17597,16 @@ public string GetValue(string key) _ => throw new InvalidOperationException("Unexpected index.") }; } + + public object GetValue() + { + return _index switch + { + 0 => _value0, + 1 => _value1, + _ => throw new InvalidOperationException("Unexpected index.") + }; + } } public readonly struct ZIndex : IProperty @@ -12948,6 +17638,17 @@ public string GetValue(string key) _ => throw new InvalidOperationException("Unexpected index.") }; } + + public object GetValue() + { + return _index switch + { + 0 => _value0, + 1 => _value1, + 2 => _value2, + _ => throw new InvalidOperationException("Unexpected index.") + }; + } } public readonly struct Zoom : IProperty @@ -12979,6 +17680,17 @@ public string GetValue(string key) _ => throw new InvalidOperationException("Unexpected index.") }; } + + public object GetValue() + { + return _index switch + { + 0 => _value0, + 1 => _value1, + 2 => _value2, + _ => throw new InvalidOperationException("Unexpected index.") + }; + } } public readonly struct MozAppearance : IProperty @@ -13006,6 +17718,16 @@ public string GetValue(string key) _ => throw new InvalidOperationException("Unexpected index.") }; } + + public object GetValue() + { + return _index switch + { + 0 => _value0, + 1 => _value1, + _ => throw new InvalidOperationException("Unexpected index.") + }; + } } public readonly struct MozBinding : IProperty @@ -13033,6 +17755,16 @@ public string GetValue(string key) _ => throw new InvalidOperationException("Unexpected index.") }; } + + public object GetValue() + { + return _index switch + { + 0 => _value0, + 1 => _value1, + _ => throw new InvalidOperationException("Unexpected index.") + }; + } } public readonly struct MozBorderBottomColors : IProperty @@ -13060,6 +17792,16 @@ public string GetValue(string key) _ => throw new InvalidOperationException("Unexpected index.") }; } + + public object GetValue() + { + return _index switch + { + 0 => _value0, + 1 => _value1, + _ => throw new InvalidOperationException("Unexpected index.") + }; + } } public readonly struct MozBorderLeftColors : IProperty @@ -13087,6 +17829,16 @@ public string GetValue(string key) _ => throw new InvalidOperationException("Unexpected index.") }; } + + public object GetValue() + { + return _index switch + { + 0 => _value0, + 1 => _value1, + _ => throw new InvalidOperationException("Unexpected index.") + }; + } } public readonly struct MozBorderRightColors : IProperty @@ -13114,6 +17866,16 @@ public string GetValue(string key) _ => throw new InvalidOperationException("Unexpected index.") }; } + + public object GetValue() + { + return _index switch + { + 0 => _value0, + 1 => _value1, + _ => throw new InvalidOperationException("Unexpected index.") + }; + } } public readonly struct MozBorderTopColors : IProperty @@ -13141,6 +17903,16 @@ public string GetValue(string key) _ => throw new InvalidOperationException("Unexpected index.") }; } + + public object GetValue() + { + return _index switch + { + 0 => _value0, + 1 => _value1, + _ => throw new InvalidOperationException("Unexpected index.") + }; + } } public readonly struct MozContextProperties : IProperty @@ -13168,6 +17940,16 @@ public string GetValue(string key) _ => throw new InvalidOperationException("Unexpected index.") }; } + + public object GetValue() + { + return _index switch + { + 0 => _value0, + 1 => _value1, + _ => throw new InvalidOperationException("Unexpected index.") + }; + } } public readonly struct MozFloatEdge : IProperty @@ -13195,6 +17977,16 @@ public string GetValue(string key) _ => throw new InvalidOperationException("Unexpected index.") }; } + + public object GetValue() + { + return _index switch + { + 0 => _value0, + 1 => _value1, + _ => throw new InvalidOperationException("Unexpected index.") + }; + } } public readonly struct MozForceBrokenImageIcon : IProperty @@ -13222,6 +18014,16 @@ public string GetValue(string key) _ => throw new InvalidOperationException("Unexpected index.") }; } + + public object GetValue() + { + return _index switch + { + 0 => _value0, + 1 => _value1, + _ => throw new InvalidOperationException("Unexpected index.") + }; + } } public readonly struct MozImageRegion : IProperty @@ -13249,6 +18051,16 @@ public string GetValue(string key) _ => throw new InvalidOperationException("Unexpected index.") }; } + + public object GetValue() + { + return _index switch + { + 0 => _value0, + 1 => _value1, + _ => throw new InvalidOperationException("Unexpected index.") + }; + } } public readonly struct MozOrient : IProperty @@ -13276,6 +18088,16 @@ public string GetValue(string key) _ => throw new InvalidOperationException("Unexpected index.") }; } + + public object GetValue() + { + return _index switch + { + 0 => _value0, + 1 => _value1, + _ => throw new InvalidOperationException("Unexpected index.") + }; + } } public readonly struct MozOutlineRadius : IProperty @@ -13307,6 +18129,17 @@ public string GetValue(string key) _ => throw new InvalidOperationException("Unexpected index.") }; } + + public object GetValue() + { + return _index switch + { + 0 => _value0, + 1 => _value1, + 2 => _value2, + _ => throw new InvalidOperationException("Unexpected index.") + }; + } } public readonly struct MozOutlineRadiusBottomleft : IProperty @@ -13338,6 +18171,17 @@ public string GetValue(string key) _ => throw new InvalidOperationException("Unexpected index.") }; } + + public object GetValue() + { + return _index switch + { + 0 => _value0, + 1 => _value1, + 2 => _value2, + _ => throw new InvalidOperationException("Unexpected index.") + }; + } } public readonly struct MozOutlineRadiusBottomright : IProperty @@ -13369,6 +18213,17 @@ public string GetValue(string key) _ => throw new InvalidOperationException("Unexpected index.") }; } + + public object GetValue() + { + return _index switch + { + 0 => _value0, + 1 => _value1, + 2 => _value2, + _ => throw new InvalidOperationException("Unexpected index.") + }; + } } public readonly struct MozOutlineRadiusTopleft : IProperty @@ -13400,6 +18255,17 @@ public string GetValue(string key) _ => throw new InvalidOperationException("Unexpected index.") }; } + + public object GetValue() + { + return _index switch + { + 0 => _value0, + 1 => _value1, + 2 => _value2, + _ => throw new InvalidOperationException("Unexpected index.") + }; + } } public readonly struct MozOutlineRadiusTopright : IProperty @@ -13431,6 +18297,17 @@ public string GetValue(string key) _ => throw new InvalidOperationException("Unexpected index.") }; } + + public object GetValue() + { + return _index switch + { + 0 => _value0, + 1 => _value1, + 2 => _value2, + _ => throw new InvalidOperationException("Unexpected index.") + }; + } } public readonly struct MozStackSizing : IProperty @@ -13458,6 +18335,16 @@ public string GetValue(string key) _ => throw new InvalidOperationException("Unexpected index.") }; } + + public object GetValue() + { + return _index switch + { + 0 => _value0, + 1 => _value1, + _ => throw new InvalidOperationException("Unexpected index.") + }; + } } public readonly struct MozTextBlink : IProperty @@ -13485,6 +18372,16 @@ public string GetValue(string key) _ => throw new InvalidOperationException("Unexpected index.") }; } + + public object GetValue() + { + return _index switch + { + 0 => _value0, + 1 => _value1, + _ => throw new InvalidOperationException("Unexpected index.") + }; + } } public readonly struct MozUserFocus : IProperty @@ -13512,6 +18409,16 @@ public string GetValue(string key) _ => throw new InvalidOperationException("Unexpected index.") }; } + + public object GetValue() + { + return _index switch + { + 0 => _value0, + 1 => _value1, + _ => throw new InvalidOperationException("Unexpected index.") + }; + } } public readonly struct MozUserInput : IProperty @@ -13539,6 +18446,16 @@ public string GetValue(string key) _ => throw new InvalidOperationException("Unexpected index.") }; } + + public object GetValue() + { + return _index switch + { + 0 => _value0, + 1 => _value1, + _ => throw new InvalidOperationException("Unexpected index.") + }; + } } public readonly struct MozUserModify : IProperty @@ -13561,8 +18478,18 @@ public string GetValue(string key) { return _index switch { - 0 => FormatValue(key, _value0), - 1 => FormatValue(key, _value1), + 0 => FormatValue(key, _value0), + 1 => FormatValue(key, _value1), + _ => throw new InvalidOperationException("Unexpected index.") + }; + } + + public object GetValue() + { + return _index switch + { + 0 => _value0, + 1 => _value1, _ => throw new InvalidOperationException("Unexpected index.") }; } @@ -13593,6 +18520,16 @@ public string GetValue(string key) _ => throw new InvalidOperationException("Unexpected index.") }; } + + public object GetValue() + { + return _index switch + { + 0 => _value0, + 1 => _value1, + _ => throw new InvalidOperationException("Unexpected index.") + }; + } } public readonly struct MozWindowShadow : IProperty @@ -13620,6 +18557,16 @@ public string GetValue(string key) _ => throw new InvalidOperationException("Unexpected index.") }; } + + public object GetValue() + { + return _index switch + { + 0 => _value0, + 1 => _value1, + _ => throw new InvalidOperationException("Unexpected index.") + }; + } } public readonly struct MsAccelerator : IProperty @@ -13647,6 +18594,16 @@ public string GetValue(string key) _ => throw new InvalidOperationException("Unexpected index.") }; } + + public object GetValue() + { + return _index switch + { + 0 => _value0, + 1 => _value1, + _ => throw new InvalidOperationException("Unexpected index.") + }; + } } public readonly struct MsBlockProgression : IProperty @@ -13674,6 +18631,16 @@ public string GetValue(string key) _ => throw new InvalidOperationException("Unexpected index.") }; } + + public object GetValue() + { + return _index switch + { + 0 => _value0, + 1 => _value1, + _ => throw new InvalidOperationException("Unexpected index.") + }; + } } public readonly struct MsContentZoomChaining : IProperty @@ -13701,6 +18668,16 @@ public string GetValue(string key) _ => throw new InvalidOperationException("Unexpected index.") }; } + + public object GetValue() + { + return _index switch + { + 0 => _value0, + 1 => _value1, + _ => throw new InvalidOperationException("Unexpected index.") + }; + } } public readonly struct MsContentZoomLimit : IProperty @@ -13728,6 +18705,16 @@ public string GetValue(string key) _ => throw new InvalidOperationException("Unexpected index.") }; } + + public object GetValue() + { + return _index switch + { + 0 => _value0, + 1 => _value1, + _ => throw new InvalidOperationException("Unexpected index.") + }; + } } public readonly struct MsContentZoomLimitMax : IProperty @@ -13755,6 +18742,16 @@ public string GetValue(string key) _ => throw new InvalidOperationException("Unexpected index.") }; } + + public object GetValue() + { + return _index switch + { + 0 => _value0, + 1 => _value1, + _ => throw new InvalidOperationException("Unexpected index.") + }; + } } public readonly struct MsContentZoomLimitMin : IProperty @@ -13782,6 +18779,16 @@ public string GetValue(string key) _ => throw new InvalidOperationException("Unexpected index.") }; } + + public object GetValue() + { + return _index switch + { + 0 => _value0, + 1 => _value1, + _ => throw new InvalidOperationException("Unexpected index.") + }; + } } public readonly struct MsContentZoomSnap : IProperty @@ -13809,6 +18816,16 @@ public string GetValue(string key) _ => throw new InvalidOperationException("Unexpected index.") }; } + + public object GetValue() + { + return _index switch + { + 0 => _value0, + 1 => _value1, + _ => throw new InvalidOperationException("Unexpected index.") + }; + } } public readonly struct MsContentZoomSnapPoints : IProperty @@ -13836,6 +18853,16 @@ public string GetValue(string key) _ => throw new InvalidOperationException("Unexpected index.") }; } + + public object GetValue() + { + return _index switch + { + 0 => _value0, + 1 => _value1, + _ => throw new InvalidOperationException("Unexpected index.") + }; + } } public readonly struct MsContentZoomSnapType : IProperty @@ -13863,6 +18890,16 @@ public string GetValue(string key) _ => throw new InvalidOperationException("Unexpected index.") }; } + + public object GetValue() + { + return _index switch + { + 0 => _value0, + 1 => _value1, + _ => throw new InvalidOperationException("Unexpected index.") + }; + } } public readonly struct MsContentZooming : IProperty @@ -13890,6 +18927,16 @@ public string GetValue(string key) _ => throw new InvalidOperationException("Unexpected index.") }; } + + public object GetValue() + { + return _index switch + { + 0 => _value0, + 1 => _value1, + _ => throw new InvalidOperationException("Unexpected index.") + }; + } } public readonly struct MsFilter : IProperty @@ -13917,6 +18964,16 @@ public string GetValue(string key) _ => throw new InvalidOperationException("Unexpected index.") }; } + + public object GetValue() + { + return _index switch + { + 0 => _value0, + 1 => _value1, + _ => throw new InvalidOperationException("Unexpected index.") + }; + } } public readonly struct MsFlowFrom : IProperty @@ -13944,6 +19001,16 @@ public string GetValue(string key) _ => throw new InvalidOperationException("Unexpected index.") }; } + + public object GetValue() + { + return _index switch + { + 0 => _value0, + 1 => _value1, + _ => throw new InvalidOperationException("Unexpected index.") + }; + } } public readonly struct MsFlowInto : IProperty @@ -13971,6 +19038,16 @@ public string GetValue(string key) _ => throw new InvalidOperationException("Unexpected index.") }; } + + public object GetValue() + { + return _index switch + { + 0 => _value0, + 1 => _value1, + _ => throw new InvalidOperationException("Unexpected index.") + }; + } } public readonly struct MsGridColumns : IProperty @@ -14002,6 +19079,17 @@ public string GetValue(string key) _ => throw new InvalidOperationException("Unexpected index.") }; } + + public object GetValue() + { + return _index switch + { + 0 => _value0, + 1 => _value1, + 2 => _value2, + _ => throw new InvalidOperationException("Unexpected index.") + }; + } } public readonly struct MsGridRows : IProperty @@ -14033,6 +19121,17 @@ public string GetValue(string key) _ => throw new InvalidOperationException("Unexpected index.") }; } + + public object GetValue() + { + return _index switch + { + 0 => _value0, + 1 => _value1, + 2 => _value2, + _ => throw new InvalidOperationException("Unexpected index.") + }; + } } public readonly struct MsHighContrastAdjust : IProperty @@ -14060,6 +19159,16 @@ public string GetValue(string key) _ => throw new InvalidOperationException("Unexpected index.") }; } + + public object GetValue() + { + return _index switch + { + 0 => _value0, + 1 => _value1, + _ => throw new InvalidOperationException("Unexpected index.") + }; + } } public readonly struct MsHyphenateLimitChars : IProperty @@ -14091,6 +19200,17 @@ public string GetValue(string key) _ => throw new InvalidOperationException("Unexpected index.") }; } + + public object GetValue() + { + return _index switch + { + 0 => _value0, + 1 => _value1, + 2 => _value2, + _ => throw new InvalidOperationException("Unexpected index.") + }; + } } public readonly struct MsHyphenateLimitLines : IProperty @@ -14122,6 +19242,17 @@ public string GetValue(string key) _ => throw new InvalidOperationException("Unexpected index.") }; } + + public object GetValue() + { + return _index switch + { + 0 => _value0, + 1 => _value1, + 2 => _value2, + _ => throw new InvalidOperationException("Unexpected index.") + }; + } } public readonly struct MsHyphenateLimitZone : IProperty @@ -14153,6 +19284,17 @@ public string GetValue(string key) _ => throw new InvalidOperationException("Unexpected index.") }; } + + public object GetValue() + { + return _index switch + { + 0 => _value0, + 1 => _value1, + 2 => _value2, + _ => throw new InvalidOperationException("Unexpected index.") + }; + } } public readonly struct MsImeAlign : IProperty @@ -14180,6 +19322,16 @@ public string GetValue(string key) _ => throw new InvalidOperationException("Unexpected index.") }; } + + public object GetValue() + { + return _index switch + { + 0 => _value0, + 1 => _value1, + _ => throw new InvalidOperationException("Unexpected index.") + }; + } } public readonly struct MsOverflowStyle : IProperty @@ -14207,6 +19359,16 @@ public string GetValue(string key) _ => throw new InvalidOperationException("Unexpected index.") }; } + + public object GetValue() + { + return _index switch + { + 0 => _value0, + 1 => _value1, + _ => throw new InvalidOperationException("Unexpected index.") + }; + } } public readonly struct MsScrollChaining : IProperty @@ -14234,6 +19396,16 @@ public string GetValue(string key) _ => throw new InvalidOperationException("Unexpected index.") }; } + + public object GetValue() + { + return _index switch + { + 0 => _value0, + 1 => _value1, + _ => throw new InvalidOperationException("Unexpected index.") + }; + } } public readonly struct MsScrollLimit : IProperty @@ -14261,6 +19433,16 @@ public string GetValue(string key) _ => throw new InvalidOperationException("Unexpected index.") }; } + + public object GetValue() + { + return _index switch + { + 0 => _value0, + 1 => _value1, + _ => throw new InvalidOperationException("Unexpected index.") + }; + } } public readonly struct MsScrollLimitXMax : IProperty @@ -14292,6 +19474,17 @@ public string GetValue(string key) _ => throw new InvalidOperationException("Unexpected index.") }; } + + public object GetValue() + { + return _index switch + { + 0 => _value0, + 1 => _value1, + 2 => _value2, + _ => throw new InvalidOperationException("Unexpected index.") + }; + } } public readonly struct MsScrollLimitXMin : IProperty @@ -14323,6 +19516,17 @@ public string GetValue(string key) _ => throw new InvalidOperationException("Unexpected index.") }; } + + public object GetValue() + { + return _index switch + { + 0 => _value0, + 1 => _value1, + 2 => _value2, + _ => throw new InvalidOperationException("Unexpected index.") + }; + } } public readonly struct MsScrollLimitYMax : IProperty @@ -14354,6 +19558,17 @@ public string GetValue(string key) _ => throw new InvalidOperationException("Unexpected index.") }; } + + public object GetValue() + { + return _index switch + { + 0 => _value0, + 1 => _value1, + 2 => _value2, + _ => throw new InvalidOperationException("Unexpected index.") + }; + } } public readonly struct MsScrollLimitYMin : IProperty @@ -14385,6 +19600,17 @@ public string GetValue(string key) _ => throw new InvalidOperationException("Unexpected index.") }; } + + public object GetValue() + { + return _index switch + { + 0 => _value0, + 1 => _value1, + 2 => _value2, + _ => throw new InvalidOperationException("Unexpected index.") + }; + } } public readonly struct MsScrollRails : IProperty @@ -14412,6 +19638,16 @@ public string GetValue(string key) _ => throw new InvalidOperationException("Unexpected index.") }; } + + public object GetValue() + { + return _index switch + { + 0 => _value0, + 1 => _value1, + _ => throw new InvalidOperationException("Unexpected index.") + }; + } } public readonly struct MsScrollSnapPointsX : IProperty @@ -14439,6 +19675,16 @@ public string GetValue(string key) _ => throw new InvalidOperationException("Unexpected index.") }; } + + public object GetValue() + { + return _index switch + { + 0 => _value0, + 1 => _value1, + _ => throw new InvalidOperationException("Unexpected index.") + }; + } } public readonly struct MsScrollSnapPointsY : IProperty @@ -14466,6 +19712,16 @@ public string GetValue(string key) _ => throw new InvalidOperationException("Unexpected index.") }; } + + public object GetValue() + { + return _index switch + { + 0 => _value0, + 1 => _value1, + _ => throw new InvalidOperationException("Unexpected index.") + }; + } } public readonly struct MsScrollSnapType : IProperty @@ -14493,6 +19749,16 @@ public string GetValue(string key) _ => throw new InvalidOperationException("Unexpected index.") }; } + + public object GetValue() + { + return _index switch + { + 0 => _value0, + 1 => _value1, + _ => throw new InvalidOperationException("Unexpected index.") + }; + } } public readonly struct MsScrollSnapX : IProperty @@ -14520,6 +19786,16 @@ public string GetValue(string key) _ => throw new InvalidOperationException("Unexpected index.") }; } + + public object GetValue() + { + return _index switch + { + 0 => _value0, + 1 => _value1, + _ => throw new InvalidOperationException("Unexpected index.") + }; + } } public readonly struct MsScrollSnapY : IProperty @@ -14547,6 +19823,16 @@ public string GetValue(string key) _ => throw new InvalidOperationException("Unexpected index.") }; } + + public object GetValue() + { + return _index switch + { + 0 => _value0, + 1 => _value1, + _ => throw new InvalidOperationException("Unexpected index.") + }; + } } public readonly struct MsScrollTranslation : IProperty @@ -14569,8 +19855,18 @@ public string GetValue(string key) { return _index switch { - 0 => FormatValue(key, _value0), - 1 => FormatValue(key, _value1), + 0 => FormatValue(key, _value0), + 1 => FormatValue(key, _value1), + _ => throw new InvalidOperationException("Unexpected index.") + }; + } + + public object GetValue() + { + return _index switch + { + 0 => _value0, + 1 => _value1, _ => throw new InvalidOperationException("Unexpected index.") }; } @@ -14601,6 +19897,16 @@ public string GetValue(string key) _ => throw new InvalidOperationException("Unexpected index.") }; } + + public object GetValue() + { + return _index switch + { + 0 => _value0, + 1 => _value1, + _ => throw new InvalidOperationException("Unexpected index.") + }; + } } public readonly struct MsScrollbarArrowColor : IProperty @@ -14628,6 +19934,16 @@ public string GetValue(string key) _ => throw new InvalidOperationException("Unexpected index.") }; } + + public object GetValue() + { + return _index switch + { + 0 => _value0, + 1 => _value1, + _ => throw new InvalidOperationException("Unexpected index.") + }; + } } public readonly struct MsScrollbarBaseColor : IProperty @@ -14655,6 +19971,16 @@ public string GetValue(string key) _ => throw new InvalidOperationException("Unexpected index.") }; } + + public object GetValue() + { + return _index switch + { + 0 => _value0, + 1 => _value1, + _ => throw new InvalidOperationException("Unexpected index.") + }; + } } public readonly struct MsScrollbarDarkshadowColor : IProperty @@ -14682,6 +20008,16 @@ public string GetValue(string key) _ => throw new InvalidOperationException("Unexpected index.") }; } + + public object GetValue() + { + return _index switch + { + 0 => _value0, + 1 => _value1, + _ => throw new InvalidOperationException("Unexpected index.") + }; + } } public readonly struct MsScrollbarFaceColor : IProperty @@ -14709,6 +20045,16 @@ public string GetValue(string key) _ => throw new InvalidOperationException("Unexpected index.") }; } + + public object GetValue() + { + return _index switch + { + 0 => _value0, + 1 => _value1, + _ => throw new InvalidOperationException("Unexpected index.") + }; + } } public readonly struct MsScrollbarHighlightColor : IProperty @@ -14736,6 +20082,16 @@ public string GetValue(string key) _ => throw new InvalidOperationException("Unexpected index.") }; } + + public object GetValue() + { + return _index switch + { + 0 => _value0, + 1 => _value1, + _ => throw new InvalidOperationException("Unexpected index.") + }; + } } public readonly struct MsScrollbarShadowColor : IProperty @@ -14763,6 +20119,16 @@ public string GetValue(string key) _ => throw new InvalidOperationException("Unexpected index.") }; } + + public object GetValue() + { + return _index switch + { + 0 => _value0, + 1 => _value1, + _ => throw new InvalidOperationException("Unexpected index.") + }; + } } public readonly struct MsScrollbarTrackColor : IProperty @@ -14790,6 +20156,16 @@ public string GetValue(string key) _ => throw new InvalidOperationException("Unexpected index.") }; } + + public object GetValue() + { + return _index switch + { + 0 => _value0, + 1 => _value1, + _ => throw new InvalidOperationException("Unexpected index.") + }; + } } public readonly struct MsTextAutospace : IProperty @@ -14817,6 +20193,16 @@ public string GetValue(string key) _ => throw new InvalidOperationException("Unexpected index.") }; } + + public object GetValue() + { + return _index switch + { + 0 => _value0, + 1 => _value1, + _ => throw new InvalidOperationException("Unexpected index.") + }; + } } public readonly struct MsTouchSelect : IProperty @@ -14844,6 +20230,16 @@ public string GetValue(string key) _ => throw new InvalidOperationException("Unexpected index.") }; } + + public object GetValue() + { + return _index switch + { + 0 => _value0, + 1 => _value1, + _ => throw new InvalidOperationException("Unexpected index.") + }; + } } public readonly struct MsUserSelect : IProperty @@ -14871,6 +20267,16 @@ public string GetValue(string key) _ => throw new InvalidOperationException("Unexpected index.") }; } + + public object GetValue() + { + return _index switch + { + 0 => _value0, + 1 => _value1, + _ => throw new InvalidOperationException("Unexpected index.") + }; + } } public readonly struct MsWrapFlow : IProperty @@ -14898,6 +20304,16 @@ public string GetValue(string key) _ => throw new InvalidOperationException("Unexpected index.") }; } + + public object GetValue() + { + return _index switch + { + 0 => _value0, + 1 => _value1, + _ => throw new InvalidOperationException("Unexpected index.") + }; + } } public readonly struct MsWrapMargin : IProperty @@ -14929,6 +20345,17 @@ public string GetValue(string key) _ => throw new InvalidOperationException("Unexpected index.") }; } + + public object GetValue() + { + return _index switch + { + 0 => _value0, + 1 => _value1, + 2 => _value2, + _ => throw new InvalidOperationException("Unexpected index.") + }; + } } public readonly struct MsWrapThrough : IProperty @@ -14956,6 +20383,16 @@ public string GetValue(string key) _ => throw new InvalidOperationException("Unexpected index.") }; } + + public object GetValue() + { + return _index switch + { + 0 => _value0, + 1 => _value1, + _ => throw new InvalidOperationException("Unexpected index.") + }; + } } public readonly struct WebkitAppearance : IProperty @@ -14983,6 +20420,16 @@ public string GetValue(string key) _ => throw new InvalidOperationException("Unexpected index.") }; } + + public object GetValue() + { + return _index switch + { + 0 => _value0, + 1 => _value1, + _ => throw new InvalidOperationException("Unexpected index.") + }; + } } public readonly struct WebkitBorderBefore : IProperty @@ -15014,6 +20461,17 @@ public string GetValue(string key) _ => throw new InvalidOperationException("Unexpected index.") }; } + + public object GetValue() + { + return _index switch + { + 0 => _value0, + 1 => _value1, + 2 => _value2, + _ => throw new InvalidOperationException("Unexpected index.") + }; + } } public readonly struct WebkitBorderBeforeColor : IProperty @@ -15041,6 +20499,16 @@ public string GetValue(string key) _ => throw new InvalidOperationException("Unexpected index.") }; } + + public object GetValue() + { + return _index switch + { + 0 => _value0, + 1 => _value1, + _ => throw new InvalidOperationException("Unexpected index.") + }; + } } public readonly struct WebkitBorderBeforeStyle : IProperty @@ -15068,6 +20536,16 @@ public string GetValue(string key) _ => throw new InvalidOperationException("Unexpected index.") }; } + + public object GetValue() + { + return _index switch + { + 0 => _value0, + 1 => _value1, + _ => throw new InvalidOperationException("Unexpected index.") + }; + } } public readonly struct WebkitBorderBeforeWidth : IProperty @@ -15099,6 +20577,17 @@ public string GetValue(string key) _ => throw new InvalidOperationException("Unexpected index.") }; } + + public object GetValue() + { + return _index switch + { + 0 => _value0, + 1 => _value1, + 2 => _value2, + _ => throw new InvalidOperationException("Unexpected index.") + }; + } } public readonly struct WebkitBoxReflect : IProperty @@ -15130,6 +20619,17 @@ public string GetValue(string key) _ => throw new InvalidOperationException("Unexpected index.") }; } + + public object GetValue() + { + return _index switch + { + 0 => _value0, + 1 => _value1, + 2 => _value2, + _ => throw new InvalidOperationException("Unexpected index.") + }; + } } public readonly struct WebkitLineClamp : IProperty @@ -15161,6 +20661,17 @@ public string GetValue(string key) _ => throw new InvalidOperationException("Unexpected index.") }; } + + public object GetValue() + { + return _index switch + { + 0 => _value0, + 1 => _value1, + 2 => _value2, + _ => throw new InvalidOperationException("Unexpected index.") + }; + } } public readonly struct WebkitMask : IProperty @@ -15192,6 +20703,17 @@ public string GetValue(string key) _ => throw new InvalidOperationException("Unexpected index.") }; } + + public object GetValue() + { + return _index switch + { + 0 => _value0, + 1 => _value1, + 2 => _value2, + _ => throw new InvalidOperationException("Unexpected index.") + }; + } } public readonly struct WebkitMaskAttachment : IProperty @@ -15219,6 +20741,16 @@ public string GetValue(string key) _ => throw new InvalidOperationException("Unexpected index.") }; } + + public object GetValue() + { + return _index switch + { + 0 => _value0, + 1 => _value1, + _ => throw new InvalidOperationException("Unexpected index.") + }; + } } public readonly struct WebkitMaskClip : IProperty @@ -15246,6 +20778,16 @@ public string GetValue(string key) _ => throw new InvalidOperationException("Unexpected index.") }; } + + public object GetValue() + { + return _index switch + { + 0 => _value0, + 1 => _value1, + _ => throw new InvalidOperationException("Unexpected index.") + }; + } } public readonly struct WebkitMaskComposite : IProperty @@ -15273,6 +20815,16 @@ public string GetValue(string key) _ => throw new InvalidOperationException("Unexpected index.") }; } + + public object GetValue() + { + return _index switch + { + 0 => _value0, + 1 => _value1, + _ => throw new InvalidOperationException("Unexpected index.") + }; + } } public readonly struct WebkitMaskImage : IProperty @@ -15300,6 +20852,16 @@ public string GetValue(string key) _ => throw new InvalidOperationException("Unexpected index.") }; } + + public object GetValue() + { + return _index switch + { + 0 => _value0, + 1 => _value1, + _ => throw new InvalidOperationException("Unexpected index.") + }; + } } public readonly struct WebkitMaskOrigin : IProperty @@ -15327,6 +20889,16 @@ public string GetValue(string key) _ => throw new InvalidOperationException("Unexpected index.") }; } + + public object GetValue() + { + return _index switch + { + 0 => _value0, + 1 => _value1, + _ => throw new InvalidOperationException("Unexpected index.") + }; + } } public readonly struct WebkitMaskPosition : IProperty @@ -15358,6 +20930,17 @@ public string GetValue(string key) _ => throw new InvalidOperationException("Unexpected index.") }; } + + public object GetValue() + { + return _index switch + { + 0 => _value0, + 1 => _value1, + 2 => _value2, + _ => throw new InvalidOperationException("Unexpected index.") + }; + } } public readonly struct WebkitMaskPositionX : IProperty @@ -15389,6 +20972,17 @@ public string GetValue(string key) _ => throw new InvalidOperationException("Unexpected index.") }; } + + public object GetValue() + { + return _index switch + { + 0 => _value0, + 1 => _value1, + 2 => _value2, + _ => throw new InvalidOperationException("Unexpected index.") + }; + } } public readonly struct WebkitMaskPositionY : IProperty @@ -15420,6 +21014,17 @@ public string GetValue(string key) _ => throw new InvalidOperationException("Unexpected index.") }; } + + public object GetValue() + { + return _index switch + { + 0 => _value0, + 1 => _value1, + 2 => _value2, + _ => throw new InvalidOperationException("Unexpected index.") + }; + } } public readonly struct WebkitMaskRepeat : IProperty @@ -15447,6 +21052,16 @@ public string GetValue(string key) _ => throw new InvalidOperationException("Unexpected index.") }; } + + public object GetValue() + { + return _index switch + { + 0 => _value0, + 1 => _value1, + _ => throw new InvalidOperationException("Unexpected index.") + }; + } } public readonly struct WebkitMaskRepeatX : IProperty @@ -15474,6 +21089,16 @@ public string GetValue(string key) _ => throw new InvalidOperationException("Unexpected index.") }; } + + public object GetValue() + { + return _index switch + { + 0 => _value0, + 1 => _value1, + _ => throw new InvalidOperationException("Unexpected index.") + }; + } } public readonly struct WebkitMaskRepeatY : IProperty @@ -15501,6 +21126,16 @@ public string GetValue(string key) _ => throw new InvalidOperationException("Unexpected index.") }; } + + public object GetValue() + { + return _index switch + { + 0 => _value0, + 1 => _value1, + _ => throw new InvalidOperationException("Unexpected index.") + }; + } } public readonly struct WebkitMaskSize : IProperty @@ -15532,6 +21167,17 @@ public string GetValue(string key) _ => throw new InvalidOperationException("Unexpected index.") }; } + + public object GetValue() + { + return _index switch + { + 0 => _value0, + 1 => _value1, + 2 => _value2, + _ => throw new InvalidOperationException("Unexpected index.") + }; + } } public readonly struct WebkitOverflowScrolling : IProperty @@ -15559,6 +21205,16 @@ public string GetValue(string key) _ => throw new InvalidOperationException("Unexpected index.") }; } + + public object GetValue() + { + return _index switch + { + 0 => _value0, + 1 => _value1, + _ => throw new InvalidOperationException("Unexpected index.") + }; + } } public readonly struct WebkitTapHighlightColor : IProperty @@ -15577,12 +21233,22 @@ private WebkitTapHighlightColor(int index, PropertySkip value0 = default, string public static implicit operator WebkitTapHighlightColor(PropertySkip t) => new(0, value0: t); public static implicit operator WebkitTapHighlightColor(string t) => new(1, value1: t); - public string GetValue(string key) + public string GetValue(string key) + { + return _index switch + { + 0 => FormatValue(key, _value0), + 1 => FormatValue(key, _value1), + _ => throw new InvalidOperationException("Unexpected index.") + }; + } + + public object GetValue() { return _index switch { - 0 => FormatValue(key, _value0), - 1 => FormatValue(key, _value1), + 0 => _value0, + 1 => _value1, _ => throw new InvalidOperationException("Unexpected index.") }; } @@ -15613,6 +21279,16 @@ public string GetValue(string key) _ => throw new InvalidOperationException("Unexpected index.") }; } + + public object GetValue() + { + return _index switch + { + 0 => _value0, + 1 => _value1, + _ => throw new InvalidOperationException("Unexpected index.") + }; + } } public readonly struct WebkitTextStroke : IProperty @@ -15644,6 +21320,17 @@ public string GetValue(string key) _ => throw new InvalidOperationException("Unexpected index.") }; } + + public object GetValue() + { + return _index switch + { + 0 => _value0, + 1 => _value1, + 2 => _value2, + _ => throw new InvalidOperationException("Unexpected index.") + }; + } } public readonly struct WebkitTextStrokeColor : IProperty @@ -15671,6 +21358,16 @@ public string GetValue(string key) _ => throw new InvalidOperationException("Unexpected index.") }; } + + public object GetValue() + { + return _index switch + { + 0 => _value0, + 1 => _value1, + _ => throw new InvalidOperationException("Unexpected index.") + }; + } } public readonly struct WebkitTextStrokeWidth : IProperty @@ -15702,6 +21399,17 @@ public string GetValue(string key) _ => throw new InvalidOperationException("Unexpected index.") }; } + + public object GetValue() + { + return _index switch + { + 0 => _value0, + 1 => _value1, + 2 => _value2, + _ => throw new InvalidOperationException("Unexpected index.") + }; + } } public readonly struct WebkitTouchCallout : IProperty @@ -15729,6 +21437,16 @@ public string GetValue(string key) _ => throw new InvalidOperationException("Unexpected index.") }; } + + public object GetValue() + { + return _index switch + { + 0 => _value0, + 1 => _value1, + _ => throw new InvalidOperationException("Unexpected index.") + }; + } } public readonly struct WebkitUserModify : IProperty @@ -15756,6 +21474,16 @@ public string GetValue(string key) _ => throw new InvalidOperationException("Unexpected index.") }; } + + public object GetValue() + { + return _index switch + { + 0 => _value0, + 1 => _value1, + _ => throw new InvalidOperationException("Unexpected index.") + }; + } } public readonly struct AlignmentBaseline : IProperty @@ -15783,6 +21511,16 @@ public string GetValue(string key) _ => throw new InvalidOperationException("Unexpected index.") }; } + + public object GetValue() + { + return _index switch + { + 0 => _value0, + 1 => _value1, + _ => throw new InvalidOperationException("Unexpected index.") + }; + } } public readonly struct BaselineShift : IProperty @@ -15814,6 +21552,17 @@ public string GetValue(string key) _ => throw new InvalidOperationException("Unexpected index.") }; } + + public object GetValue() + { + return _index switch + { + 0 => _value0, + 1 => _value1, + 2 => _value2, + _ => throw new InvalidOperationException("Unexpected index.") + }; + } } public readonly struct ClipRule : IProperty @@ -15841,6 +21590,16 @@ public string GetValue(string key) _ => throw new InvalidOperationException("Unexpected index.") }; } + + public object GetValue() + { + return _index switch + { + 0 => _value0, + 1 => _value1, + _ => throw new InvalidOperationException("Unexpected index.") + }; + } } public readonly struct ColorInterpolation : IProperty @@ -15868,6 +21627,16 @@ public string GetValue(string key) _ => throw new InvalidOperationException("Unexpected index.") }; } + + public object GetValue() + { + return _index switch + { + 0 => _value0, + 1 => _value1, + _ => throw new InvalidOperationException("Unexpected index.") + }; + } } public readonly struct ColorRendering : IProperty @@ -15895,6 +21664,16 @@ public string GetValue(string key) _ => throw new InvalidOperationException("Unexpected index.") }; } + + public object GetValue() + { + return _index switch + { + 0 => _value0, + 1 => _value1, + _ => throw new InvalidOperationException("Unexpected index.") + }; + } } public readonly struct DominantBaseline : IProperty @@ -15922,6 +21701,16 @@ public string GetValue(string key) _ => throw new InvalidOperationException("Unexpected index.") }; } + + public object GetValue() + { + return _index switch + { + 0 => _value0, + 1 => _value1, + _ => throw new InvalidOperationException("Unexpected index.") + }; + } } public readonly struct Fill : IProperty @@ -15949,6 +21738,16 @@ public string GetValue(string key) _ => throw new InvalidOperationException("Unexpected index.") }; } + + public object GetValue() + { + return _index switch + { + 0 => _value0, + 1 => _value1, + _ => throw new InvalidOperationException("Unexpected index.") + }; + } } public readonly struct FillOpacity : IProperty @@ -15980,6 +21779,17 @@ public string GetValue(string key) _ => throw new InvalidOperationException("Unexpected index.") }; } + + public object GetValue() + { + return _index switch + { + 0 => _value0, + 1 => _value1, + 2 => _value2, + _ => throw new InvalidOperationException("Unexpected index.") + }; + } } public readonly struct FillRule : IProperty @@ -16007,6 +21817,16 @@ public string GetValue(string key) _ => throw new InvalidOperationException("Unexpected index.") }; } + + public object GetValue() + { + return _index switch + { + 0 => _value0, + 1 => _value1, + _ => throw new InvalidOperationException("Unexpected index.") + }; + } } public readonly struct FloodColor : IProperty @@ -16034,6 +21854,16 @@ public string GetValue(string key) _ => throw new InvalidOperationException("Unexpected index.") }; } + + public object GetValue() + { + return _index switch + { + 0 => _value0, + 1 => _value1, + _ => throw new InvalidOperationException("Unexpected index.") + }; + } } public readonly struct FloodOpacity : IProperty @@ -16065,6 +21895,17 @@ public string GetValue(string key) _ => throw new InvalidOperationException("Unexpected index.") }; } + + public object GetValue() + { + return _index switch + { + 0 => _value0, + 1 => _value1, + 2 => _value2, + _ => throw new InvalidOperationException("Unexpected index.") + }; + } } public readonly struct GlyphOrientationVertical : IProperty @@ -16096,6 +21937,17 @@ public string GetValue(string key) _ => throw new InvalidOperationException("Unexpected index.") }; } + + public object GetValue() + { + return _index switch + { + 0 => _value0, + 1 => _value1, + 2 => _value2, + _ => throw new InvalidOperationException("Unexpected index.") + }; + } } public readonly struct LightingColor : IProperty @@ -16123,6 +21975,16 @@ public string GetValue(string key) _ => throw new InvalidOperationException("Unexpected index.") }; } + + public object GetValue() + { + return _index switch + { + 0 => _value0, + 1 => _value1, + _ => throw new InvalidOperationException("Unexpected index.") + }; + } } public readonly struct Marker : IProperty @@ -16150,6 +22012,16 @@ public string GetValue(string key) _ => throw new InvalidOperationException("Unexpected index.") }; } + + public object GetValue() + { + return _index switch + { + 0 => _value0, + 1 => _value1, + _ => throw new InvalidOperationException("Unexpected index.") + }; + } } public readonly struct MarkerEnd : IProperty @@ -16177,6 +22049,16 @@ public string GetValue(string key) _ => throw new InvalidOperationException("Unexpected index.") }; } + + public object GetValue() + { + return _index switch + { + 0 => _value0, + 1 => _value1, + _ => throw new InvalidOperationException("Unexpected index.") + }; + } } public readonly struct MarkerMid : IProperty @@ -16204,6 +22086,16 @@ public string GetValue(string key) _ => throw new InvalidOperationException("Unexpected index.") }; } + + public object GetValue() + { + return _index switch + { + 0 => _value0, + 1 => _value1, + _ => throw new InvalidOperationException("Unexpected index.") + }; + } } public readonly struct MarkerStart : IProperty @@ -16231,6 +22123,16 @@ public string GetValue(string key) _ => throw new InvalidOperationException("Unexpected index.") }; } + + public object GetValue() + { + return _index switch + { + 0 => _value0, + 1 => _value1, + _ => throw new InvalidOperationException("Unexpected index.") + }; + } } public readonly struct ShapeRendering : IProperty @@ -16258,6 +22160,16 @@ public string GetValue(string key) _ => throw new InvalidOperationException("Unexpected index.") }; } + + public object GetValue() + { + return _index switch + { + 0 => _value0, + 1 => _value1, + _ => throw new InvalidOperationException("Unexpected index.") + }; + } } public readonly struct StopColor : IProperty @@ -16285,6 +22197,16 @@ public string GetValue(string key) _ => throw new InvalidOperationException("Unexpected index.") }; } + + public object GetValue() + { + return _index switch + { + 0 => _value0, + 1 => _value1, + _ => throw new InvalidOperationException("Unexpected index.") + }; + } } public readonly struct StopOpacity : IProperty @@ -16316,6 +22238,17 @@ public string GetValue(string key) _ => throw new InvalidOperationException("Unexpected index.") }; } + + public object GetValue() + { + return _index switch + { + 0 => _value0, + 1 => _value1, + 2 => _value2, + _ => throw new InvalidOperationException("Unexpected index.") + }; + } } public readonly struct Stroke : IProperty @@ -16343,6 +22276,16 @@ public string GetValue(string key) _ => throw new InvalidOperationException("Unexpected index.") }; } + + public object GetValue() + { + return _index switch + { + 0 => _value0, + 1 => _value1, + _ => throw new InvalidOperationException("Unexpected index.") + }; + } } public readonly struct StrokeDasharray : IProperty @@ -16374,6 +22317,17 @@ public string GetValue(string key) _ => throw new InvalidOperationException("Unexpected index.") }; } + + public object GetValue() + { + return _index switch + { + 0 => _value0, + 1 => _value1, + 2 => _value2, + _ => throw new InvalidOperationException("Unexpected index.") + }; + } } public readonly struct StrokeDashoffset : IProperty @@ -16405,6 +22359,17 @@ public string GetValue(string key) _ => throw new InvalidOperationException("Unexpected index.") }; } + + public object GetValue() + { + return _index switch + { + 0 => _value0, + 1 => _value1, + 2 => _value2, + _ => throw new InvalidOperationException("Unexpected index.") + }; + } } public readonly struct StrokeLinecap : IProperty @@ -16432,6 +22397,16 @@ public string GetValue(string key) _ => throw new InvalidOperationException("Unexpected index.") }; } + + public object GetValue() + { + return _index switch + { + 0 => _value0, + 1 => _value1, + _ => throw new InvalidOperationException("Unexpected index.") + }; + } } public readonly struct StrokeLinejoin : IProperty @@ -16459,6 +22434,16 @@ public string GetValue(string key) _ => throw new InvalidOperationException("Unexpected index.") }; } + + public object GetValue() + { + return _index switch + { + 0 => _value0, + 1 => _value1, + _ => throw new InvalidOperationException("Unexpected index.") + }; + } } public readonly struct StrokeMiterlimit : IProperty @@ -16490,6 +22475,17 @@ public string GetValue(string key) _ => throw new InvalidOperationException("Unexpected index.") }; } + + public object GetValue() + { + return _index switch + { + 0 => _value0, + 1 => _value1, + 2 => _value2, + _ => throw new InvalidOperationException("Unexpected index.") + }; + } } public readonly struct StrokeOpacity : IProperty @@ -16521,6 +22517,17 @@ public string GetValue(string key) _ => throw new InvalidOperationException("Unexpected index.") }; } + + public object GetValue() + { + return _index switch + { + 0 => _value0, + 1 => _value1, + 2 => _value2, + _ => throw new InvalidOperationException("Unexpected index.") + }; + } } public readonly struct StrokeWidth : IProperty @@ -16552,6 +22559,17 @@ public string GetValue(string key) _ => throw new InvalidOperationException("Unexpected index.") }; } + + public object GetValue() + { + return _index switch + { + 0 => _value0, + 1 => _value1, + 2 => _value2, + _ => throw new InvalidOperationException("Unexpected index.") + }; + } } public readonly struct TextAnchor : IProperty @@ -16579,6 +22597,16 @@ public string GetValue(string key) _ => throw new InvalidOperationException("Unexpected index.") }; } + + public object GetValue() + { + return _index switch + { + 0 => _value0, + 1 => _value1, + _ => throw new InvalidOperationException("Unexpected index.") + }; + } } public readonly struct VectorEffect : IProperty @@ -16606,6 +22634,16 @@ public string GetValue(string key) _ => throw new InvalidOperationException("Unexpected index.") }; } + + public object GetValue() + { + return _index switch + { + 0 => _value0, + 1 => _value1, + _ => throw new InvalidOperationException("Unexpected index.") + }; + } } } } diff --git a/src/Css/PropertyT.cs b/src/Css/PropertyT.cs index b3a0147..3393d2d 100644 --- a/src/Css/PropertyT.cs +++ b/src/Css/PropertyT.cs @@ -49,6 +49,15 @@ public string GetValue(string key) _ => throw new InvalidOperationException("Unexpected index.") }; } + + public object GetValue() + { + return _index switch + { + 0 => _value0, + _ => throw new InvalidOperationException("Unexpected index.") + }; + } } public readonly struct Property : IProperty @@ -102,6 +111,16 @@ public string GetValue(string key) _ => throw new InvalidOperationException("Unexpected index.") }; } + + public object GetValue() + { + return _index switch + { + 0 => _value0, + 1 => _value1, + _ => throw new InvalidOperationException("Unexpected index.") + }; + } } public readonly struct Property : IProperty @@ -160,6 +179,17 @@ public string GetValue(string key) _ => throw new InvalidOperationException("Unexpected index.") }; } + + public object GetValue() + { + return _index switch + { + 0 => _value0, + 1 => _value1, + 2 => _value2, + _ => throw new InvalidOperationException("Unexpected index.") + }; + } } public readonly struct Property : IProperty @@ -223,5 +253,17 @@ public string GetValue(string key) _ => throw new InvalidOperationException("Unexpected index.") }; } + + public object GetValue() + { + return _index switch + { + 0 => _value0, + 1 => _value1, + 2 => _value2, + 3 => _value3, + _ => throw new InvalidOperationException("Unexpected index.") + }; + } } } diff --git a/src/Styles/Style.cs b/src/Styles/Style.cs index a705588..2fee2f8 100644 --- a/src/Styles/Style.cs +++ b/src/Styles/Style.cs @@ -1,6 +1,7 @@ using Microsoft.AspNetCore.Components; using Microsoft.AspNetCore.Components.Rendering; using System; +using System.Collections.Generic; using System.Text; namespace CssInCSharp @@ -28,23 +29,45 @@ protected override void BuildRenderTree(RenderTreeBuilder builder) { var csses = StyleFn().ToCssArray(); var sb = new StringBuilder(); + var effects = new List<(string, string)>(); foreach (var css in csses) { - sb.Append(css?.SerializeCss(HashId)); + sb.Append(css?.SerializeCss(HashId, effects)); } - return new StyleCache.Item + var item = new StyleCache.Item { StyleStr = sb.ToString(), TokenKey = TokenKey, - StyleId = "" + StyleId = "", + Effects = new Dictionary(), }; + if (effects.Count > 0) + { + foreach (var (effectName, effect) in effects) + { + if (!StyleCache.Instance.HasEffect(effectName)) + { + item.Effects.TryAdd(effectName, effect); + } + } + } + return item; }); - builder.OpenElement(0, "style"); - builder.AddAttribute(1, "data-css-hash", cache.StyleId); - builder.AddAttribute(2, "data-token-hash", cache.TokenKey); - builder.AddAttribute(3, "data-cache-path", Path); - builder.AddContent(4, cache.StyleStr); + var i = 0; + builder.OpenElement(i++, "style"); + builder.AddAttribute(i++, "data-css-hash", cache.StyleId); + builder.AddAttribute(i++, "data-token-hash", cache.TokenKey); + builder.AddAttribute(i++, "data-cache-path", Path); + builder.AddContent(i++, cache.StyleStr); builder.CloseElement(); + // gen animation effect + foreach (var effect in cache.Effects) + { + builder.OpenElement(i++, "style"); + builder.AddAttribute(i++, "data-css-hash", $"_effect-{effect.Key}"); + builder.AddContent(i++, effect.Value); + builder.CloseElement(); + } } } } diff --git a/src/Styles/StyleCache.cs b/src/Styles/StyleCache.cs index 9688f06..0feac4c 100644 --- a/src/Styles/StyleCache.cs +++ b/src/Styles/StyleCache.cs @@ -1,5 +1,7 @@ using System; using System.Collections.Concurrent; +using System.Collections.Generic; +using System.Linq; namespace CssInCSharp { @@ -10,6 +12,7 @@ internal class Item public string StyleStr { get; set; } public string TokenKey { get; set; } public string StyleId { get; set; } + public Dictionary Effects { get; set; } } private readonly ConcurrentDictionary _cache = new(); @@ -22,9 +25,12 @@ public Item GetOrAdd(string key, Func func) return _cache.GetOrAdd(key, func); } - public bool Exists(string key) + public bool HasEffect(string effectKey) { - return _cache.ContainsKey(key); + return _cache + .Values + .SelectMany(x => x.Effects.Keys) + .Contains(effectKey); } } } diff --git a/test/CssInCSharp.Tests/CSSObjectTests.cs b/test/CssInCSharp.Tests/CSSObjectTests.cs index 4359556..d455591 100644 --- a/test/CssInCSharp.Tests/CSSObjectTests.cs +++ b/test/CssInCSharp.Tests/CSSObjectTests.cs @@ -8,7 +8,7 @@ public class CSSObjectTests [Fact] public void Number_Without_Pxwrap() { - new CSSObject + var css = new CSSObject { [".test"] = new CSSObject { @@ -34,9 +34,8 @@ public void Number_Without_Pxwrap() Zoom = 1, WebkitLineClamp = 1, } - } - .ToString() - .ShouldBe(".test{animation-iteration-count:1;aspect-ratio:1;border-image-outset:1;border-image-slice:1;border-image-width:1;column-count:1;columns:1;flex:1;flex-grow:1;-ms-flex-positive:1px;flex-shrink:1;font-weight:1;line-height:1;opacity:1;order:1;orphans:1;tab-size:1;widows:1;z-index:1;zoom:1;-webkit-line-clamp:1;}"); + }; + css.ToString().ShouldBe(".test{animation-iteration-count:1;aspect-ratio:1;border-image-outset:1;border-image-slice:1;border-image-width:1;column-count:1;columns:1;flex:1;flex-grow:1;-ms-flex-positive:1px;flex-shrink:1;font-weight:1;line-height:1;opacity:1;order:1;orphans:1;tab-size:1;widows:1;z-index:1;zoom:1;-webkit-line-clamp:1;}"); } [Fact] @@ -81,37 +80,47 @@ public void Animation() messageMoveIn.ToString().ShouldBe("MessageMoveIn;@keyframes MessageMoveIn{0%{padding:0;transform:translateY(-100%);opacity:0;}100%{padding:100px;transform:translateY(0);opacity:1;}}"); } - [Fact] - public void Should_Property_Skip_Pxwrap() - { - new CSSObject() - { - [".test"] = new CSSObject() - { + [Fact] + public void Should_Property_Skip_Pxwrap() + { + var css = new CSSObject() + { + [".test"] = new CSSObject() + { Left = new PropertySkip() { SkipCheck = true, Value = 12 } - } - } - .ToString() - .ShouldBe(".test{left:12px;}"); - } + } + }; + css.ToString().ShouldBe(".test{left:12px;}"); + } - [Fact] - public void Should_Where_Inject_To_All_Selectors() - { - new CSSObject() - { + [Fact] + public void Should_Where_Inject_To_All_Selectors() + { + var css1 = new CSSObject() + { [".ant-zoom-big-fast-enter,.ant-zoom-big-fast-appear"] = new CSSObject() { Transform = "scale(0)", Opacity = 0, } - } - .SerializeCss("css-3nv711") - .ShouldBe(":where(.css-3nv711).ant-zoom-big-fast-enter,:where(.css-3nv711).ant-zoom-big-fast-appear{transform:scale(0);opacity:0;}"); - } - } + }; + css1.SerializeCss("css-3nv711").ShouldBe(":where(.css-3nv711).ant-zoom-big-fast-enter,:where(.css-3nv711).ant-zoom-big-fast-appear{transform:scale(0);opacity:0;}"); + + var css2 = new CSSObject() + { + ["[class^=\"ant-affix\"], [class*=\" ant-affix\"]"] = new CSSObject() + { + ["&::before, &::after"] = new CSSObject() + { + BoxSizing = "border-box", + } + }, + }; + css2.SerializeCss("css-3nv711").ShouldBe(":where(.css-3nv711)[class^=\"ant-affix\"]::before,:where(.css-3nv711)[class*=\" ant-affix\"]::before,:where(.css-3nv711)[class^=\"ant-affix\"]::after,:where(.css-3nv711)[class*=\" ant-affix\"]::after{box-sizing:border-box;}"); + } + } } diff --git a/test/CssInCSharp.Tests/StyleTests.cs b/test/CssInCSharp.Tests/StyleTests.cs index a9a4569..77ec637 100644 --- a/test/CssInCSharp.Tests/StyleTests.cs +++ b/test/CssInCSharp.Tests/StyleTests.cs @@ -59,5 +59,48 @@ public void RenderStyle() .Add(p => p.StyleFn, render)); cut.MarkupMatches(@""); } + + [Fact] + public void Should_AnimationName_Render_As_A_Separate_Style_Tag() + { + var render = (Func)(() => new CSSObject() + { + [".transform"] = new CSSObject() + { + Width = 120, + Height = 120, + ["& .animation"] = new CSSObject + { + Width = 100, + Height = 100, + BackgroundColor = "rgba(0, 0, 255, 0.5)", + AnimationDuration = "3s", + AnimationName = new Keyframe("transformAnimation") + { + ["from"] = new() + { + Transform = "translateX(0px)", + Opacity = 1 + }, + ["to"] = new() + { + Transform = "translateX(100px)", + Opacity = 0.2f + } + } + } + } + }); + var cut = RenderComponent", + "" + })); + } } }