編輯

共用方式為


_OlkTextBox.SelLength Property

Definition

Returns or sets an Integer (int in C#) value that specifies the number of characters in the current selection. Read/write.

public:
 property int SelLength { int get(); void set(int value); };
public int SelLength { get; set; }
Public Property SelLength As Integer

Property Value

Remarks

The current selection is specified by SelText, which is a portion of the control's Value. The maximum number of characters that can be supported for Value is MaxLength.

The default value is zero, which means no text is currently selected.

The SelLength property is always valid, even when the control does not have focus.

Setting SelLength to a value less than zero causes an error. Attempting to set the value greater than MaxLength results in setting SelLength to MaxLength.

Applies to