语言

TextBox.Select(Int32, Int32) 方法

定义

在文本框中选择一系列文本。

public:
 virtual void Select(int start, int length) = Select;
void Select(int const& start, int const& length);
public void Select(int start, int length);
function select(start, length)
Public Sub Select (start As Integer, length As Integer)

参数

start
Int32

int

所选内容中第一个字符的从零开始的索引。

length
Int32

int

所选内容的长度(以字符为单位)。

适用于