public PeriodicValue(IPropertyValue[] options, IEnumerable <Token> tokens, string[] labels) { _top = options[0]; _right = options[1] ?? _top; _bottom = options[2] ?? _top; _left = options[3] ?? _right; Original = new TokenValue(tokens); _labels = labels; }
internal bool TrySetValue(TokenValue newTokenValue) { var value = Converter.Convert(newTokenValue ?? DotNetCSS.TokenValue.Initial); if (value != null) { DeclaredValue = value; return(true); } return(false); }
internal bool TrySetValue(TokenValue tokenValue) { bool result; if (tokenValue == null) { result = !IsMinimum && !IsMaximum && Converter.ConvertDefault() != null; } else { result = Converter.Convert(tokenValue) != null; } if (result) { _tokenValue = tokenValue; } return(result); }
public BorderRadiusValue(IPropertyValue horizontal, IPropertyValue vertical, TokenValue original) { _horizontal = horizontal; _vertical = vertical; Original = original; }
public OptionsValue(IPropertyValue[] options, IEnumerable <Token> tokens) { _options = options; Original = new TokenValue(tokens); }
public AnyValue(IEnumerable <Token> tokens) { Original = new TokenValue(tokens); }
public ArgumentsValue(IPropertyValue[] arguments, IEnumerable <Token> tokens) { _arguments = arguments; Original = new TokenValue(tokens); }
public FunctionValue(string name, IPropertyValue arguments, IEnumerable <Token> tokens) { _name = name; _arguments = arguments; Original = new TokenValue(tokens); }
public StopValue(IPropertyValue color, IPropertyValue position, IEnumerable <Token> tokens) { _color = color; _position = position; Original = new TokenValue(tokens); }
public UrlValue(string value, IEnumerable <Token> tokens) { _value = value; Original = new TokenValue(tokens); }
public DeclarationCondition(Property property, TokenValue tokenValue) { _property = property; _tokenValue = tokenValue; }
public StartValue(string start, IPropertyValue value, IEnumerable <Token> tokens) { _start = start; _value = value; Original = new TokenValue(tokens); }
public StringsValue(string[] values, IEnumerable <Token> tokens) { _values = values; Original = new TokenValue(tokens); }
public IdentifierValue(string identifier, IEnumerable <Token> tokens) { CssText = identifier; Original = new TokenValue(tokens); }
public ListValue(IPropertyValue[] values, IEnumerable <Token> tokens) { _values = values; Original = new TokenValue(tokens); }
public StructValue(T value, IEnumerable <Token> tokens) { _value = value; Original = new TokenValue(tokens); }
public GradientValue(IPropertyValue initial, IPropertyValue[] stops, IEnumerable <Token> tokens) { _initial = initial; _stops = stops; Original = new TokenValue(tokens); }