A
albert Price
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.
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.