none
[VB]Using IWpfTextView to get Character at Specified Column

    Question

  • I am looking to get the character at a specific column (not index) using IWpfTextView. I have managed to get the current column of the cursor using the CurrentColumn property of a TextSelection. My ultimate goal is to get the characters to the left, top, right, and bottom of the current character. I would like to have a way to do this without needing to manually adjust the values for the tab characters every time. Is there a good way to do this? Thanks.

    Nathan Sokalski njsokalski@hotmail.com http://www.nathansokalski.com/

    Tuesday, April 9, 2019 7:22 PM

All replies

  • Hi friend,

    Welcome to MSDN forum.

    Sorry for the delay.

    By IWpfTextView, there seems no method defined in it to get the character directly. If the character you mean is something like a letter?

    Best Regards

    Lance


    MSDN Community Support
    Please remember to click "Mark as Answer" the responses that resolved your issue, and to click "Unmark as Answer" if not. This can be beneficial to other community members reading this thread. If you have any compliments or complaints to MSDN Support, feel free to contact MSDNFSF@microsoft.com.

    Thursday, April 18, 2019 4:15 AM