Want to indent my text in web browser control .I am making a html editor in win form.
how to get cursor selection and apply indent on that line ::text-indent:15px
public void indent()
{
}
Loading
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.
Afzaal Ahmad ZeeshanPosted Feb 28, 2015, 11:18 PM
- An indent is a margin on the left side of your document. You can add margins; depending on your framework it would be as, Control.Margin = new Thickness(0); etc.
- You can add a tab spacing in the document at that location.
- You can add a few white-spaces to the document at that location. That is what (I believe) other IDEs do too, because you can somehow select the text that causes an indent in your document.
You can select from these solutions, and implement them in your own case.