AvalonEdit
GetPositionFloor Method (visualPosition)
NamespacesICSharpCode.AvalonEdit.RenderingTextViewGetPositionFloor(Point)
Gets the text view position from the specified visual position. If the position is inside a character, the position in front of the character is returned.
Declaration Syntax
C#Visual BasicVisual C++
public Nullable<TextViewPosition> GetPositionFloor(
	Point visualPosition
)
Public Function GetPositionFloor ( _
	visualPosition As Point _
) As Nullable(Of TextViewPosition)
public:
Nullable<TextViewPosition> GetPositionFloor(
	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