public CssPropertyDeclaration(WellknownCssPropertyName wellNamePropertyName, CssCodeValueExpression value) { //from another this.WellknownPropertyName = wellNamePropertyName; _firstValue = value; _markedAsInherit = value.IsInherit; //auto gen from another prop _isAutoGen = true; }
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; }
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; } }
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; }
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; } }
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; } }
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(' '); } } } }
public void AddFuncArg(CssCodeValueExpression arg) { _funcArgs.Add(arg); }
public void AddFuncArg(CssCodeValueExpression arg) { this.funcArgs.Add(arg); }