Collapse All Expand All Code: All Code: Multiple Code: C# Code: Visual Basic

C#
Visual Basic

Azuki 1.7 Documentation
DefaultWordProc..::..PrevWordEnd Method
DefaultWordProc Class See Also Send Feedback

Searches document backward for end position of a word.

Namespace: Sgry.Azuki
Assembly: Azuki (in Azuki.dll) Version: 1.7.13.40248

# Syntax

C#
    public virtual int PrevWordEnd(
    	Document doc,
    	int startIndex
    )

Visual Basic
    Public Overridable Function PrevWordEnd (
    	doc As Document,
    	startIndex As Integer
    ) As Integer

#### Parameters

doc
  Type: Sgry.Azuki..::..Document
  The document in which to search.

startIndex
  Type: System..::..Int32
  The index to start the search from.

#### Return Value

Type: Int32
Index of end position of a word if found, or length of the document if no word was found.

#### Implements

IWordProc..::..PrevWordEnd(Document, Int32)

# Exceptions

Exception | Condition
--- | ---
System..::..ArgumentNullException | doc is null.
System..::..ArgumentOutOfRangeException | startIndex is less than 0 or greater than length of the document.

# See Also

DefaultWordProc Class
DefaultWordProc..::..DefaultWordProc Members
Sgry.Azuki Namespace
IWordProc.PrevWordEnd method