AvalonEdit
GetTextViewPosition Method (visualPosition, allowVirtualSpace)
NamespacesICSharpCode.AvalonEdit.RenderingVisualLineGetTextViewPosition(Point, Boolean)
Gets the text view position from the specified visual position. If the position is within a character, it is rounded to the next character boundary.
Declaration Syntax
C#Visual BasicVisual C++
public TextViewPosition GetTextViewPosition(
	Point visualPosition,
	bool allowVirtualSpace
)
Public Function GetTextViewPosition ( _
	visualPosition As Point, _
	allowVirtualSpace As Boolean _
) As TextViewPosition
public:
TextViewPosition GetTextViewPosition(
	Point visualPosition, 
	bool allowVirtualSpace
)
Parameters
visualPosition (Point)
The position in WPF device-independent pixels relative to the top left corner of the document.
allowVirtualSpace (Boolean)
Controls whether positions in virtual space may be returned.

Assembly: ICSharpCode.AvalonEdit (Module: ICSharpCode.AvalonEdit.dll) Version: 5.0.0.4238