Returns or sets a value that determines if a paragraph in the RichTextBox control containing the current selection or insertion point has the bullet style. Not available at design time.
Syntax
object.SelBullet [= value]
The SelBullet property syntax has these parts:
Part | Description |
object | An object expression that evaluates to an object in the Applies To list. |
Value | An integer or constant that determines the bullet style of the paragraph(s), as described in Settings. |
Settings
The settings for value are:
Setting | Description |
Null | Neither. The selection spans more than one paragraph and contains a mixture of bullet and non-bullet styles. |
True | The paragraphs in the selection have the bullet style. |
False | (Default) The paragraphs in the selection don't have the bullet style. |
Remarks
Use the SelBullet property to build a list of bulleted items in a RichTextBox control.
To distinguish between the values of Null and False when reading this property at run time, use the IsNull function with the If...Then...Else statement. For example:
If IsNull(RichTextBox1.SelBullet) = True Then
' Code to run when selection is mixed.
ElseIf RichTextBox1.SelBullet = False Then
' Code to run when selection doesn't have bullet style.
...
End If