Method DisplayPointToPoint
DisplayPointToPoint(int, int)
Converts the specified display coordinates to text coordinates.
public virtual Point DisplayPointToPoint(int x, int y)
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.
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
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)
Converts the specified display coordinates to the text coordinates.
public virtual 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)
Converts the specified display coordinates to the text coordinates.
public virtual 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.
DisplayPointToPoint(int, int, bool, bool, bool, ref bool)
protected Point DisplayPointToPoint(int x, int y, bool wrapEnd, bool rangeStart, bool tabEnd, ref bool lineEnd)