public override Property GetShorthand(PropertyList propertyList) { Property p = null; ListProperty listprop; if (p == null) { listprop = (ListProperty) propertyList.GetExplicitProperty("border-top"); if (listprop != null) { IShorthandParser shparser = new GenericShorthandParser(listprop); p = shparser.GetValueForProperty(PropName, this, propertyList); } } if (p == null) { listprop = (ListProperty) propertyList.GetExplicitProperty("border-width"); if (listprop != null) { IShorthandParser shparser = new BoxPropShorthandParser(listprop); p = shparser.GetValueForProperty(PropName, this, propertyList); } } if (p == null) { listprop = (ListProperty) propertyList.GetExplicitProperty("border"); if (listprop != null) { IShorthandParser shparser = new GenericShorthandParser(listprop); p = shparser.GetValueForProperty(PropName, this, propertyList); } } return p; }
public override Property GetShorthand(PropertyList propertyList) { Property p = null; ListProperty listprop; if (p == null) { listprop = (ListProperty)propertyList.GetExplicitProperty("border-style"); if (listprop != null) { IShorthandParser shparser = new BoxPropShorthandParser(listprop); p = shparser.GetValueForProperty(PropName, this, propertyList); } } return(p); }
public override Property GetShorthand(PropertyList propertyList) { Property p = null; ListProperty listprop; if (p == null) { listprop = (ListProperty)propertyList.GetExplicitProperty("border-left"); if (listprop != null) { // Get a parser for the shorthand to set the individual properties IShorthandParser shparser = new GenericShorthandParser(listprop); p = shparser.GetValueForProperty(PropName, this, propertyList); } } if (p == null) { listprop = (ListProperty)propertyList.GetExplicitProperty("border-color"); if (listprop != null) { // Get a parser for the shorthand to set the individual properties IShorthandParser shparser = new BoxPropShorthandParser(listprop); p = shparser.GetValueForProperty(PropName, this, propertyList); } } if (p == null) { listprop = (ListProperty)propertyList.GetExplicitProperty("border"); if (listprop != null) { // Get a parser for the shorthand to set the individual properties IShorthandParser shparser = new GenericShorthandParser(listprop); p = shparser.GetValueForProperty(PropName, this, propertyList); } } return p; }
public override Property GetShorthand(PropertyList propertyList) { Property p = null; ListProperty listprop; if (p == null) { listprop = (ListProperty)propertyList.GetExplicitProperty("border-left"); if (listprop != null) { // Get a parser for the shorthand to set the individual properties IShorthandParser shparser = new GenericShorthandParser(listprop); p = shparser.GetValueForProperty(PropName, this, propertyList); } } if (p == null) { listprop = (ListProperty)propertyList.GetExplicitProperty("border-width"); if (listprop != null) { // Get a parser for the shorthand to set the individual properties IShorthandParser shparser = new BoxPropShorthandParser(listprop); p = shparser.GetValueForProperty(PropName, this, propertyList); } } if (p == null) { listprop = (ListProperty)propertyList.GetExplicitProperty("border"); if (listprop != null) { // Get a parser for the shorthand to set the individual properties IShorthandParser shparser = new GenericShorthandParser(listprop); p = shparser.GetValueForProperty(PropName, this, propertyList); } } return(p); }