BehaviorService.PopBehavior(Behavior) 方法

定义

移除并返回位于堆栈顶部的 Behavior

public:
 System::Windows::Forms::Design::Behavior::Behavior ^ PopBehavior(System::Windows::Forms::Design::Behavior::Behavior ^ behavior);
public System.Windows.Forms.Design.Behavior.Behavior PopBehavior (System.Windows.Forms.Design.Behavior.Behavior behavior);
public System.Windows.Forms.Design.Behavior.Behavior? PopBehavior (System.Windows.Forms.Design.Behavior.Behavior behavior);
member this.PopBehavior : System.Windows.Forms.Design.Behavior.Behavior -> System.Windows.Forms.Design.Behavior.Behavior
Public Function PopBehavior (behavior As Behavior) As Behavior

参数

behavior
Behavior

要从堆栈移除的 Behavior

返回

从堆栈移除的 Behavior

例外

注解

从内部维护BehaviorService的行为堆栈中删除当前Behavior

适用于

另请参阅