Method DisplayPointToPoint
DisplayPointToPoint(int, int)
Converts the specified display coordinates to text coordinates.
public virtual Point DisplayPointToPoint(int x, int y)
Parameters
xintThe X-constituent of the Point value that specifies display coordinates to be converted.
yintThe Y-constituent of the Point value that specifies display coordinates to be converted.
Returns
- Point
Text coordinates of specified display point.
Remarks
Display coordinate represents point in Edit control, it may be different from text coordinate due to tabulations, wordwrap and outlining.
DisplayPointToPoint(Point)
Converts the specified display coordinates to text coordinates.
public virtual Point DisplayPointToPoint(Point position)
Parameters
positionPointThe Point value that specifies the display coordinates to be converted.
Returns
- Point
Text coordinates of specified display point.
Remarks
Display coordinate represents point in Edit control, it may be different from text coordinate due to tabulations, wordwrap and outlining.
DisplayPointToPoint(int, int, ref bool)
Converts the specified display coordinates to the text coordinates.
public virtual Point DisplayPointToPoint(int x, int y, ref bool lineEnd)
Parameters
xintThe X-constituent of the Point value that specifies display coordinates to be converted.
yintThe Y-constituent of the Point value that specifies display coordinates to be converted.
lineEndboolReceives boolean value indicating if the caret is at the line end of the wrapped line.
Returns
- Point
Text coordinates of specified display point.
Remarks
Display coordinate represents point in Edit control, it may be different from text coordinate due to tabulations, wordwrap and outlining.
DisplayPointToPoint(int, int, bool, bool, bool)
Converts the specified display coordinates to the text coordinates.
public virtual Point DisplayPointToPoint(int x, int y, bool wrapEnd, bool rangeStart, bool tabEnd)
Parameters
xintThe X-constituent of the Point value that specifies display coordinates to be converted.
yintThe Y-constituent of the Point value that specifies display coordinates to be converted.
wrapEndboolReserved for internal use.
rangeStartboolReserved for internal use.
tabEndboolReserved for internal use.
Returns
- Point
Text coordinates of specified display point.
Remarks
Display coordinate represents point in Edit control, it may be different from text coordinate due to tabulations, wordwrap and outlining.
DisplayPointToPoint(int, int, bool, bool, bool, ref bool)
protected Point DisplayPointToPoint(int x, int y, bool wrapEnd, bool rangeStart, bool tabEnd, ref bool lineEnd)