BoldDeskWe are launching BoldDesk on Product Hunt soon. Learn more & follow us.
Hi Alexander,
Thank you for using Syncfusion products.
Query |
Response |
ConvertOffsetToVirtualPosition method returns wrong value |
I would like to inform that , the ConvertOffsetToVirtualPosition function returns the correct value and I have attached the sample as per your requirement. please make use of the sample from the attachments. |
How I can get Column and Line or position? |
You can get the current column value by using the following code snippets.
Code snippet: MessageBox.Show(this.editControl1.CurrentLine.ToString());
|
Please let us know if you have any concerns.
Regards
Chandran R
Hi Alexander,
Thanks for the update.
Query |
Response |
Get position |
I would like to inform that , I have attached the sample for getting the position. You can get the position with mouse position. Please make use of the sample from the attachments.
Note: Displaying incorrect position due to incorrect index value.
|
Please let us know if you have any concerns.
Regards,
Chandran R
Hi Alexander,
Thanks for the update.
Query |
Response |
How I can get Column and Line or position? |
You can find the string by using the method Findtext , after finding the string we can get the position by using the current position. Please make use of the sample from the attachments. |
Please let us know if you have any concerns.
Regards,
Chandran R
I find solution:
Dim index As Int32 = RTB.GetTextWithNewLineStyle().IndexOf("Private Sub ")
Dim vp As Point = RTB.ConvertOffsetToVirtualPosition(index)
Dim Offset As Int32 = RTB.ConvertVirtualPositionToOffset(vp) / 2 - 1 'for Unicode encoding
Dim Offset As Int32 = RTB.ConvertVirtualPositionToOffset(vp) 'for ASCII
Hi Alexander,
Thanks for the update.
We are glad that you have found solution for your query and kindly let us know if you have any other query in this category.
Regards,
Chandran R