_OlkTextBox.SelLength Property
Definition
Important
Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.
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
意見反應
https://aka.ms/ContentUserFeedback。
即將登場:在 2024 年,我們將逐步淘汰 GitHub 問題作為內容的意見反應機制,並將它取代為新的意見反應系統。 如需詳細資訊,請參閱:提交並檢視相關的意見反應