TX Text Control Blog

Indents and numbered lists

Blogged by Björn Meyer on March 23, 2005 and tagged with sample, activex.

If you use the TX Text Control ActiveX button bar to insert a numbered list, you will get a different result than when you insert a numbered list simply using the ListType property.

Why is this?

The button bar implements an indent that defines the position between the number character and the text. This button behavior can be easily reproduced using the IndentL and IndentFL properties.

The following code reproduces this behavior exactly:

Private Sub Command1_Click() TXTextControl1.NumberingAttribute(txNumberingFormatChar) = 0 TXTextControl1.ListType = txListNumbered TXTextControl1.IndentL = 360 TXTextControl1.IndentFL = -360 TXTextControl1.SelText = "Line 1" + Chr(11) + "Line 2" End Sub
 
 
 

Products

Support

Downloads

Corporate

Buy Now