Exemplo n.º 1
0
 public CssPropertyDeclaration(WellknownCssPropertyName wellNamePropertyName, CssCodeValueExpression value)
 {
     //from another
     this.WellknownPropertyName = wellNamePropertyName;
     _firstValue      = value;
     _markedAsInherit = value.IsInherit;
     //auto gen from another prop
     _isAutoGen = true;
 }
Exemplo n.º 2
0
 public CssPropertyDeclaration(WellknownCssPropertyName wellNamePropertyName, CssCodeValueExpression value)
 {
     //from another 
     this.WellknownPropertyName = wellNamePropertyName;
     this.propertyValue = value;
     this.markedAsInherit = value.IsInherit;
     //auto gen from another prop
     this.isAutoGen = true;
 }
Exemplo n.º 3
0
 public void ReplaceValue(int index, CssCodeValueExpression value)
 {
     if (index == 0)
     {
         _firstValue = value;
     }
     else
     {
         _moreValues[index - 1] = value;
     }
 }
 public void ReplaceValue(int index, CssCodeValueExpression value)
 {
     if (index == 0)
     {
         this.firstValue = value;
     }
     else
     {
         moreValues[index - 1] = value;
     }
 }
Exemplo n.º 5
0
        public CssPropertyDeclaration(WellknownCssPropertyName wellNamePropertyName, CssCodeValueExpression value)
        {
            //if (this.dbugId == 221)
            //{
            //}

            //from another
            this.WellknownPropertyName = wellNamePropertyName;
            this.firstValue            = value;
            this.markedAsInherit       = value.IsInherit;
            //auto gen from another prop
            this.isAutoGen = true;
        }
Exemplo n.º 6
0
 public void AddValue(CssCodeValueExpression value)
 {
     if (_firstValue == null)
     {
         _markedAsInherit = value.IsInherit;
         _firstValue      = value;
     }
     else
     {
         if (_moreValues == null)
         {
             _moreValues = new List <CssCodeValueExpression>();
         }
         _moreValues.Add(value);
         _markedAsInherit = false;
     }
 }
 public void AddValue(CssCodeValueExpression value)
 {
     if (firstValue == null)
     {
         this.markedAsInherit = value.IsInherit;
         this.firstValue = value;
     }
     else
     {
         if (moreValues == null)
         {
             moreValues = new List<CssCodeValueExpression>();
         }
         moreValues.Add(value);
         markedAsInherit = false;
     }
 }
Exemplo n.º 8
0
 public void AddValue(CssCodeValueExpression value)
 {
     if (firstValue == null)
     {
         this.markedAsInherit = value.IsInherit;
         this.firstValue      = value;
     }
     else
     {
         if (moreValues == null)
         {
             moreValues = new List <CssCodeValueExpression>();
         }
         moreValues.Add(value);
         markedAsInherit = false;
     }
 }
Exemplo n.º 9
0
 void CollectValues(StringBuilder stBuilder)
 {
     if (_firstValue != null)
     {
         stBuilder.Append(_firstValue.ToString());
     }
     if (_moreValues != null)
     {
         int j = _moreValues.Count;
         for (int i = 0; i < j; ++i)
         {
             CssCodeValueExpression propV = _moreValues[i];
             stBuilder.Append(propV.ToString());
             if (i < j - 1)
             {
                 stBuilder.Append(' ');
             }
         }
     }
 }
Exemplo n.º 10
0
 public void AddFuncArg(CssCodeValueExpression arg)
 {
     _funcArgs.Add(arg);
 }
 public void AddFuncArg(CssCodeValueExpression arg)
 {
     this.funcArgs.Add(arg);
 }