Method PointToDisplayPoint
PointToDisplayPoint(int, int)
Converts the specified text coordinates into display coordinates.
public virtual Point PointToDisplayPoint(int x, int y)
Parameters
x
intThe X-constituent of the Point value that specifies the text coordinates to be converted.
y
intThe Y-constituent of the Point value that specifies the text coordinates to be converted.
Returns
- Point
Display coordinates of the specified point.
Remarks
Display coordinate represents point in Edit control, it may be different from text coordinate due to tabulations, wordwrap and outlining.
PointToDisplayPoint(Point)
Converts the specified text coordinates into display coordinates.
public virtual Point PointToDisplayPoint(Point position)
Parameters
position
PointThe Point value that specifies text coordinates to convert.
Returns
- Point
Display coordinates of the specified point.
Remarks
Display coordinate represents point in Edit control, it may be different from text coordinate due to tabulations, wordwrap and outlining.
PointToDisplayPoint(int, int, bool)
Converts the specified text coordinates to display coordinates.
public virtual Point PointToDisplayPoint(int x, int y, bool lineEnd)
Parameters
x
intThe X-constituent of the Point value that specifies the text coordinates to be converted.
y
intThe Y-constituent of the Point value that specifies the text coordinates to be converted.
lineEnd
boolBoolean value indicating if the text position can be set to the end of the wrapped line.
Returns
- Point
Display coordinates of the specified text point.
Remarks
Display coordinate represents point in Edit control, it may be different from text coordinate due to tabulations, wordwrap and outlining.