Gets a particular line from the collection.

GetItem(System.Drawing.Point)

public Line GetItem(System.Drawing.Point location);
Public Function GetItem(ByVal location As System.Drawing.Point) As Line

GetItem(Int)

public Line GetItem(int textPosition);
Public Function GetItem(ByVal textPosition As Integer) As Line

Parameters

Parameter Description
location Specifies the line's location. The point must be specified in pixels with an origin at the top left corner of the control.
textPosition Specifies a zero-based text position.

Return Value

The return value is null, if a line could not be found. Otherwise, it is an object of the type Line.