BehaviorService::PopBehavior Method (Behavior^)
.NET Framework (current version)
Removes and returns the Behavior at the top of the stack.
Assembly: System.Design (in System.Design.dll)
Parameters
- behavior
-
Type:
System.Windows.Forms.Design.Behavior::Behavior^
The Behavior to remove from the stack.
Return Value
Type: System.Windows.Forms.Design.Behavior::Behavior^The Behavior that was removed from the stack.
| Exception | Condition |
|---|---|
| InvalidOperationException | The Behavior stack is empty. |
Removes the current Behavior from the behavior stack internally maintained by the BehaviorService.
.NET Framework
Available since 2.0
Available since 2.0
Show: