共用方式為


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

例外狀況

Behavior 堆疊是空的。

備註

從內部維護BehaviorService的行為堆疊中移除目前的 Behavior

適用於

另請參閱