Tech
Forums
Jobs
Books
Events
Videos
Live
More
Interviews
Certification
Training
Career
Members
News
Blogs
Contribute
An Article
A Blog
A Video
An Ebook
An Interview Question
Register
Login
0
Answer
indent selected paragraph where cursor is present
Aisha Srivastava
9y
615
1
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
Post
Reset
Cancel
Answers (
0
)
Next Recommended Forum
A call to SSPI failed, see inner exception.
hanging indent