public SVGProperties(SVGProperties pParentSVGProperties, Attributes pAttributes, bool pAttributesDeepCopy) { this.mAttributes = (pAttributesDeepCopy) ? new Attributes(pAttributes) : pAttributes; this.mAttributes = pAttributes; this.mParentSVGProperties = pParentSVGProperties; var styleAttr = pAttributes.GetStringAttribute (SVGConstants.ATTRIBUTE_STYLE); if (styleAttr != null) mSVGStyleSet = new SVGStyleSet (styleAttr); }
public SVGProperties(SVGProperties pParentSVGProperties, Attributes pAttributes, bool pAttributesDeepCopy) { this.mAttributes = (pAttributesDeepCopy) ? new Attributes(pAttributes) : pAttributes; this.mAttributes = pAttributes; this.mParentSVGProperties = pParentSVGProperties; var styleAttr = pAttributes.GetStringAttribute(SVGConstants.ATTRIBUTE_STYLE); if (styleAttr != null) { mSVGStyleSet = new SVGStyleSet(styleAttr); } }
public SVGProperties(SVGProperties pParentSVGProperties, Attributes pAttributes, bool pAttributesDeepCopy) { this.mAttributes = (pAttributesDeepCopy) ? new Attributes(pAttributes) : pAttributes; this.mAttributes = pAttributes; this.mParentSVGProperties = pParentSVGProperties; var styleAttr = pAttributes.GetStringAttribute(SVGConstants.ATTRIBUTE_STYLE); if (styleAttr != null) { mSVGStyleSet = new SVGStyleSet(styleAttr); } foreach (string skey in styleattributes.Split(';')) { if (!pAttributes.ContainsKey(skey)) { continue; } if (styleAttr != null) { mSVGStyleSet = new SVGStyleSet(); } mSVGStyleSet.AddStyleAttribute(skey, pAttributes[skey]); } }