BehaviorService.PopBehavior Method (Behavior)

 

Removes and returns the Behavior at the top of the stack.

Namespace:   System.Windows.Forms.Design.Behavior
Assembly:  System.Design (in System.Design.dll)

public Behavior PopBehavior(
	Behavior behavior
)

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
Return to top
Show: