Error Can't convrt string to system.collection.generic.dictionary
code:
HtmlElement paragraph = this.editorWebBrowser.Document.GetElementById(paragraphId);
Dictionary styleDictionary = GetStyleDictionary(paragraph.Style);
string currentMargin = paragraph.Style.ToString();
currentMargin = Regex.Match(currentMargin, @"-?\d+").Value;
int numericMargin = Int32.Parse(currentMargin);
styleDictionary = (numericMargin + 15).ToString() + "px";
******************************************************
Basically i have to add value to my existing style value by 15;
ie:
Margin-left:15px
then
get that style
and add 15 px more: Margin-left:30px so on...
2 Replies
Know the answer? Post it — somebody with the same question will find it here.
Sign in to answer this question
It is the same account you read, post and publish with — and you will come straight back to this page.

Nanhe SiddiquePosted May 13, 2015, 7:16 AM
https://msdn.microsoft.com/en-us/library/xfhwa508%28v=vs.110%29.aspx
it may help you
Gowtham RajamanickamPosted May 13, 2015, 6:48 AM