コード例 #1
0
ファイル: SVGProperties.cs プロジェクト: jdluzen/xamsvg
		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);
		}
コード例 #2
0
        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);
            }
        }
コード例 #3
0
ファイル: SVGProperties.cs プロジェクト: znsoft/TUSA
        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]);
            }
        }