共用方式為


GradientStopCollection.ReplaceAll(GradientStop[]) 方法

定義

一開始會清除集合,然後將提供的數位插入為新專案。

public:
 virtual void ReplaceAll(Platform::Array <GradientStop ^> ^ items) = IVector<GradientStop ^>::ReplaceAll;
void ReplaceAll(winrt::array_view <GradientStop const&> const& items);
public void ReplaceAll(GradientStop[] items);
function replaceAll(items)
Public Sub ReplaceAll (items As GradientStop())

參數

items
GradientStop[]

新的集合專案。

實作

備註

對於追蹤「已變更」事件的實作,初始重設會引發事件,但新增的專案不會引發離散事件。

適用於