Share via


Pivot.PivotItemUnloading 事件

定义

用于提供在数据透视项被删除时动态加载、更改或删除其内容的机会的事件。

// Register
event_token PivotItemUnloading(TypedEventHandler<Pivot, PivotItemEventArgs const&> const& handler) const;

// Revoke with event_token
void PivotItemUnloading(event_token const* cookie) const;

// Revoke with event_revoker
Pivot::PivotItemUnloading_revoker PivotItemUnloading(auto_revoke_t, TypedEventHandler<Pivot, PivotItemEventArgs const&> const& handler) const;
public event TypedEventHandler<Pivot,PivotItemEventArgs> PivotItemUnloading;
function onPivotItemUnloading(eventArgs) { /* Your code */ }
pivot.addEventListener("pivotitemunloading", onPivotItemUnloading);
pivot.removeEventListener("pivotitemunloading", onPivotItemUnloading);
- or -
pivot.onpivotitemunloading = onPivotItemUnloading;
Public Custom Event PivotItemUnloading As TypedEventHandler(Of Pivot, PivotItemEventArgs) 
<Pivot PivotItemUnloading="eventhandler" />

事件类型

适用于