By using this site, you agree to our updated Privacy Policy and our Terms of Use. Manage your Cookies Settings.
459,625 Members | 1,604 Online
Bytes IT Community
+ Ask a Question
Need help? Post your question and get tips & solutions from a community of 459,625 IT Pros & Developers. It's quick & easy.

RTF and selectiontabs

P: n/a
I am trying to set the tabs by code in a richtextbox.
according to the documentation it says select the text and
then you can set the tabs using the selectiontabs property.
(see below)
i do that and and i get an index out of bounds exception.
I test for the length of the array and I get 560.
Itry to test for the individual members of the array and
I get 0

what gives?

Thanks AL

This property enables you to obtain an array that contains
the spacing for each tab in the current text selection
within the RichTextBox control. You can then use this
property to adjust the size of each tab within the text
selection. For example, if you want to adjust the tab
space within the document, you can select the entire
document and obtain the list of tab spaces using the
SelectionTabs property. You can then adjust them to new
values and reassign them to this property.
Nov 20 '05 #1
Share this Question
Share on Google+
1 Reply

P: n/a
Hi Albert,

Could you post some code showing what you are doing?

Nov 20 '05 #2

This discussion thread is closed

Replies have been disabled for this discussion.