AvalonEdit
GetPosition Method (visualPosition)
NamespacesICSharpCode.AvalonEdit.RenderingTextViewGetPosition(Point)
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 Nullable<TextViewPosition> GetPosition(
	Point visualPosition
)
Public Function GetPosition ( _
	visualPosition As Point _
) As Nullable(Of TextViewPosition)
public:
Nullable<TextViewPosition> GetPosition(
	Point visualPosition
)
Parameters
visualPosition (Point)
The position in WPF device-independent pixels relative to the top left corner of the document.
Return Value
The logical position, or null if the position is outside the document.

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