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 Answers
Know the answer? Post it. Somebody with the same question will find it here.


Gowtham RajamanickamRank #57 · 29K reputationPosted May 13, 2015, 2:48 AM EDT
Nanhe SiddiqueRank #1,103 · 1.7K reputationPosted May 13, 2015, 3:16 AM EDT
https://msdn.microsoft.com/en-us/library/xfhwa508%28v=vs.110%29.aspx
it may help you