protected override Property SetSubprop(Property baseProp, string subpropName, Property subProp) { CondLength val = baseProp.GetCondLength(); val.SetComponent(subpropName, subProp, false); return(baseProp); }
protected override Property MakeCompound(PropertyList pList, FObj fo) { CondLength p = new CondLength(); Property subProp; subProp = GetSubpropMaker("length").Make(pList, getDefaultForLength(), fo); p.SetComponent("length", subProp, true); subProp = GetSubpropMaker("conditionality").Make(pList, getDefaultForConditionality(), fo); p.SetComponent("conditionality", subProp, true); return(new CondLengthProperty(p)); }
public override Property ConvertProperty(Property p, PropertyList pList, FObj fo) { if (p is CondLengthProperty) { return(p); } if (!(p is EnumProperty)) { p = m_shorthandMaker.ConvertProperty(p, pList, fo); } if (p != null) { Property prop = MakeCompound(pList, fo); CondLength pval = prop.GetCondLength(); pval.SetComponent("length", p, false); return(prop); } else { return(null); } }
public override Property GetSubpropValue(Property baseProp, string subpropName) { CondLength val = baseProp.GetCondLength(); return(val.GetComponent(subpropName)); }
public CondLengthProperty(CondLength condLength) { this.condLength = condLength; }
public void setPadding(int side, CondLength width) { padding[side] = new ResolvedCondLength(width); }
public void setBorder(int side, int style, CondLength width, ColorType color) { borderInfo[side] = new BorderInfo(style, width, color); }
internal BorderInfo(int style, CondLength width, ColorType color) { mStyle = style; mWidth = new ResolvedCondLength(width); mColor = color; }
internal ResolvedCondLength(CondLength length) { bDiscard = length.IsDiscard(); iLength = length.MValue(); }