Friday, January 11, 2013

Set/Remove Style

IHtmlStyle *objHtmlStyle;
tempElem->get_style(&objHtmlStyle);
objHtmlStyle->put_listStyleType(Attrib.bstrVal);
objHtmlStyle->Release();
 
//Remove
VARIANT_BOOL bSuccess;
tempElem->removeAttribute(_bstr_t("style"),1,&bSuccess);

No comments:

Followers

Link