Tech
Forums
Jobs
Books
Events
Interviews
Live
More
Learn
Training
Career
Members
Videos
News
Blogs
Login
Sign Up
Ask Question
0
Reply
indent selected paragraph where cursor is present
Aisha Srivastava
Mar 12 2015 7:33 AM
597
Reply
hi,
I am using web browser control in winform to make htmleditor and want to indent paragraph where my cursor is and leaving other paragraph as same as it is , I am using htmldocument and want to do it like below as in code below but could not
style
it
margin-indent:50px.
Got stuck ....
HtmlDocument doc = webBrowser.Document;
HtmlElementCollection para= doc.GetElementsByTagName("p");
HtmlElement element in para
{
string cls = element.GetAttribute("<p class="current">");
cls.style=margin-indent:50px;
}
could not succeed please let me know if any change needed .....in above
Upload Source Code
Select only zip and rar file.
Post
Reset
Cancel
Answers (
0
)
Next Recommended Forum
A call to SSPI failed, see inner exception.
hanging indent