ControlExtensionsGetNextControlT(Control, Boolean, Boolean, Boolean) Method
Retrieves the next control of the specified type forward or back in the tab order of child controls.
Namespace: DevCase.Extensions.ControlExtensionsAssembly: DevCase.net48 (in DevCase.net48.dll) Version: 6.0.0.0 (6.0)
XMLNS for XAML: Not mapped to an xmlns.
[EditorBrowsableAttribute(EditorBrowsableState.Always)]
public static Control GetNextControl<T>(
this Control ctrl,
bool forward,
bool tabStopOnly,
bool wrap
)
where T : Control
<ExtensionAttribute>
<EditorBrowsableAttribute(EditorBrowsableState.Always)>
Public Shared Function GetNextControl(Of T As Control) (
ctrl As Control,
forward As Boolean,
tabStopOnly As Boolean,
wrap As Boolean
) As Control
Dim ctrl As Control
Dim forward As Boolean
Dim tabStopOnly As Boolean
Dim wrap As Boolean
Dim returnValue As Control
returnValue = ctrl.GetNextControl(forward,
tabStopOnly, wrap)
public:
[ExtensionAttribute]
[EditorBrowsableAttribute(EditorBrowsableState::Always)]
generic<typename T>
where T : Control
static Control^ GetNextControl(
Control^ ctrl,
bool forward,
bool tabStopOnly,
bool wrap
)
[<ExtensionAttribute>]
[<EditorBrowsableAttribute(EditorBrowsableState.Always)>]
static member GetNextControl :
ctrl : Control *
forward : bool *
tabStopOnly : bool *
wrap : bool -> Control when 'T : Control
No code example is currently available or this language may not be supported.
- ctrl Control
-
The Control to start the search with.
- forward Boolean
-
True to search forward in the tab order; False to search backward.
- tabStopOnly Boolean
-
True to ignore the controls with the TabStop property set to false;
otherwise, False.
- wrap Boolean
-
True to continue searching from the first control in the tab order after the last control has been reached;
otherwise, False.
- T
-
The type of the Control to search.
Control
The next
Control in the tab order.
In Visual Basic and C#, you can call this method as an instance method on any object of type
Control. When you use instance method syntax to call this method, omit the first parameter. For more information, see
Extension Methods (Visual Basic) or
Extension Methods (C# Programming Guide).