Tech
Forums
Jobs
Books
Events
Interviews
Live
More
Learn
Training
Career
Members
Videos
News
Blogs
Login
Sign Up
Ask Question
2
Reply
Error Can't convrt strng to systm.collectn.generic.dictnry<>
Aisha Srivastava
May 13 2015 5:28 AM
492
Reply
Error Can't convrt string to system.collection.generic.dictionary<string,string>
c
ode:
HtmlElement paragraph = this.editorWebBrowser.Document.GetElementById(paragraphId);
Dictionary<string, string> 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...
Upload Source Code
Select only zip and rar file.
Post
Reset
Cancel
Answers (
2
)
Next Recommended Forum
How to make online chatting in vb
general school application