[RichTextBox] Winforms Get Current Selected Line + Count Lines [Source Code]

preview_player
Показать описание
Download source code:

PLEASE READ - Source Code Available
RichtextBox Windows Form C#

This project will run on Visual Studio 2013 and above
This code will show how to:
1) Get current line on the RichTextBox text
2) How to get the index of the end of the line

With some modifications you will be able to get current Line text
Delete or update certain Line using its index.
Read Line by Line

Download source code:

Este proyecto corre en Visual Studio 2013 y siguientes
El código te mostrará como:
1) Obtener la linea actual del texto del RichtextBox
2) Obtener los index del final de cada linea

Con algunas modificaciones podrá obtener el texto de la linea actual.
Actualizar o Eliminar una Linea usando el indice
Leer linea por linea

Descargar codigo fuente:
Рекомендации по теме
Комментарии
Автор

It's won't work if your line is long and auto cut down to another line

tranhuuang
Автор

Very Nice
Good Job, it's exactly what I wanted

cerebro