MaskedTextBox.GetLineFromCharIndex(Int32) 方法

定義

擷取控制項文字內指定字元位置的行號。 MaskedTextBox 不支援這個方法。

public:
 override int GetLineFromCharIndex(int index);
public override int GetLineFromCharIndex (int index);
override this.GetLineFromCharIndex : int -> int
Public Overrides Function GetLineFromCharIndex (index As Integer) As Integer

參數

index
Int32

不使用這個參數。

傳回

Int32

這個方法一定會傳回 0。

備註

方法 GetLineFromCharIndex 繼承自基 TextBoxBase 類。 不過,因為 MaskedTextBox 控制項不支援多行組態,所以不支援這個方法。

適用於

另請參閱