SelectionMargin Property

Applies To

ComboBox control, TextBox control.

Description

Specifies whether the user can select a line of text by clicking in the region to the left of the text.

Syntax

object.SelectionMargin [= Boolean]

The SelectionMargin property syntax has these parts:

Part

Description

object

Required. A valid object.

Boolean

Optional. Whether clicking in the margin selects a line of text.


Settings

The settings for Boolean are:

Value

Description

True

Clicking in margin causes selection of text (default).

False

Clicking in margin does not cause selection of text.


Remarks

When the SelectionMargin property is True, the selection margin occupies a thin strip along the left edge of a control's edit region. When set to False, the entire edit region can store text.

If the SelectionMargin property is set to True when a control is printed, the selection margin also prints.