Export (0) Print
Expand All

MaskedTextProvider.FindEditPositionFrom Method

Returns the position of the first editable position after the specified position using the specified search direction.

Namespace: System.ComponentModel
Assembly: System (in system.dll)

public int FindEditPositionFrom (
	int position,
	bool direction
)
public int FindEditPositionFrom (
	int position, 
	boolean direction
)
public function FindEditPositionFrom (
	position : int, 
	direction : boolean
) : int
Not applicable.

Parameters

position

The zero-based position in the formatted string to start the search.

direction

A Boolean indicating the search direction; either true to search forward or false to search backward.

Return Value

If successful, an Int32 representing the zero-based position of the first editable position encountered; otherwise InvalidIndex.

The FindEditPositionFrom method is used to search for the next assigned or unassigned editable position in the formatted string after the specified position.

The FindNonEditPositionFrom method is the complement of this method.

Windows 98, Windows Server 2000 SP4, Windows Millennium Edition, Windows Server 2003, Windows XP Media Center Edition, Windows XP Professional x64 Edition, Windows XP SP2, Windows XP Starter Edition

The Microsoft .NET Framework 3.0 is supported on Windows Vista, Microsoft Windows XP SP2, and Windows Server 2003 SP1.

.NET Framework

Supported in: 3.0, 2.0

Community Additions

ADD
Show:
© 2014 Microsoft