Gets a particular item from the collection.

GetItem()

public MisspelledWord GetItem();
Public Function GetItem() As MisspelledWord

GetItem(MisspelledWordKind)

public MisspelledWord GetItem(MisspelledWordKind kind);
Public Function GetItem(ByVal kind As MisspelledWordKind) As MisspelledWord

GetItem(System.Drawing.Point)

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

GetItem(Int)

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

GetItem(Int, MisspelledWordKind)

public MisspelledWord GetItem(int textPosition, MisspelledWordKind kind);
Public Function GetItem(ByVal textPosition As Integer, ByVal kind As MisspelledWordKind) As MisspelledWord

Parameters

Parameter Description
kind Specifies the word's kind. It must be one or more values of the MisspelledWordKind enumeration.
location Specifies the word's location. The point must be specified in pixels with an origin at the top left corner of the control. If there is no misspelled word at the specified location, null is returned.
textPosition Specifies a zero-based text postion. The text positions in front of a word and behind a word belong to the word. If there is no misspelled word, the next possible word is returned. If there is no misspelled word between the specified text position and the end of the text, the first word is returned.

Return Value

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