GetPropertyCssValue() public méthode

public GetPropertyCssValue ( string propertyName ) : ICssValue
propertyName string
Résultat ICssValue
    public void TestFuncAttr()
    {
        XmlElement elm = getElm();
                elm.SetAttribute("kalle", "", "roffe");
                CssCollectedStyleDeclaration csd = new CssCollectedStyleDeclaration(elm);
                csd.CollectProperty("foo", 1, CssValue.GetCssValue("attr(kalle)", false), CssStyleSheetType.Author, "");

                CssPrimitiveValue cssPrimValue = csd.GetPropertyCssValue("foo") as CssPrimitiveValue;
                Assert.IsNotNull(cssPrimValue);
                Assert.AreEqual("roffe", cssPrimValue.GetStringValue());
    }
    public void TestExsNotFontSize()
    {
        CssCollectedStyleDeclaration csd = new CssCollectedStyleDeclaration(getElm());
                csd.CollectProperty("notFontSize", 1, CssValue.GetCssValue("2ex", false), CssStyleSheetType.Author, "");

                CssPrimitiveValue cssPrimValue = csd.GetPropertyCssValue("notFontSize") as CssPrimitiveValue;
                Assert.AreEqual(10, cssPrimValue.GetFloatValue(CssPrimitiveType.Px));
    }