System.Windows.Forms.RichTextBoxで、LineNumberから文字位置に変換する方法は?

StackOverflow https://stackoverflow.com/questions/1434660

  •  07-07-2019
  •  | 
  •  

質問

RichTextBox.GetLineFromCharIndex()

行番号があり、その行のcharインデックスを取得したい。 このメソッドは、 RichTextBox.GetCharIndexFromLine()と呼ばれる場合があります。

単純に可能ですか?

役に立ちましたか?

解決

richTextBox1.GetFirstCharIndexFromLine(int lineNumber)

他のヒント

はい、メソッドはRichTextBox.GetFirstCharIndexFromLine(LineNumber)です

ライセンス: CC-BY-SA帰属
所属していません StackOverflow
scroll top