• HOME
  • PRODUCTS
  • DEMOS
  • BUY
  • BLOG
  • FORUM
  • DOCUMENTATION
  • ABOUT
  • FREE EVALUATION
Search Results for

    Show / Hide Table of Contents

    ScreenToDisplay Method

    ScreenToDisplay(Int32, Int32)

    Converts given screen coordinates to display coordinates (index of line and character).

    Declaration
    public virtual Point ScreenToDisplay(int x, int y)
    Parameters
    Type Name Description
    Int32 x

    Horizontal screen coordinate to convert.

    Int32 y

    Vertical screen coordinate to convert.

    Returns
    Type Description
    Point

    The Point representing display coordinate.

    Implements
    ISyntaxEdit.ScreenToDisplay(Int32, Int32)
    Remarks

    Display coordinate represents point in SyntaxEdit control, it may be different from text coordinate due to tabulations, wordwrap and outlining.

    ScreenToDisplay(Int32, Int32, Boolean)

    Converts given screen coordinates to display coordinates (index of line and character).

    Declaration
    public virtual Point ScreenToDisplay(int x, int y, bool checkBeyondEof)
    Parameters
    Type Name Description
    Int32 x

    Horizontal screen coordinate to convert.

    Int32 y

    Vertical screen coordinate to convert.

    Boolean checkBeyondEof

    Checks if if y-coordinate is beyond the last text line and returns it in this case.

    Returns
    Type Description
    Point

    The Point representing display coordinate.

    Implements
    ISyntaxEdit.ScreenToDisplay(Int32, Int32, Boolean)
    Remarks

    Display coordinate represents point in SyntaxEdit control, it may be different from text coordinate due to tabulations, wordwrap and outlining.

    In This Article
    Back to top Copyright AlterNET Software Download PDF