Method DisplayPointToPoint
DisplayPointToPoint(int, int)
When implemented by a class, converts the specified display coordinates to text coordinates.
Point DisplayPointToPoint(int x, int y)
Parameters
x
intThe X-constituent of the Point value that specifies the display coordinates to be converted.
y
intThe Y-constituent of the 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(Point)
When implemented by a class, converts the specified display coordinates to the text coordinates.
Point DisplayPointToPoint(Point position)
Parameters
position
PointThe 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)
When implemented by a class, converts the specified display coordinates to the text coordinates.
Point DisplayPointToPoint(int x, int y, ref bool lineEnd)
Parameters
x
intThe X-constituent of the Point value that specifies display coordinates to be converted.
y
intThe Y-constituent of the Point value that specifies display coordinates to be converted.
lineEnd
boolReceives 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)
When implemented by a class, converts the specified display coordinates to the text coordinates.
Point DisplayPointToPoint(int x, int y, bool wrapEnd, bool rangeStart, bool tabEnd)
Parameters
x
intThe X-constituent of the Point value that specifies display coordinates to be converted.
y
intThe Y-constituent of the Point value that specifies display coordinates to be converted.
wrapEnd
boolReserved for internal use.
rangeStart
boolReserved for internal use.
tabEnd
boolReserved 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.