TXTextControl.ParagraphCollection.GetItem Method

Gets a particular paragraph from the collection.

GetItem(Point)

Gets the paragraph at a certain geometrical position.

[C#]
public Paragraph GetItem(System.Drawing.Point location);
[Visual Basic]
Public Function GetItem(ByVal location As System.Drawing.Point) As Paragraph
Parameter Description
location

Specifies the paragraph's location. The point must be specified in pixels with an origin at the top left corner of the control.

GetItem(Int32)

Gets the paragraph at a certain text input position.

[C#]
public Paragraph GetItem(int textPosition);
[Visual Basic]
Public Function GetItem(ByVal textPosition As Integer) As Paragraph
Parameter Description
textPosition

Specifies a zero-based text position.

Return Value

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

See Also