UIElementCollection.ReplaceAll(UIElement[]) Method
Definition
Important
Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.
Initially clears the collection, then inserts the provided array as new items.
public:
virtual void ReplaceAll(Platform::Array <UIElement ^> ^ items) = IVector<UIElement ^>::ReplaceAll;
void ReplaceAll(winrt::array_view <UIElement const&> const& items);
public void ReplaceAll(UIElement[] items);
function replaceAll(items)
Public Sub ReplaceAll (items As UIElement())
Parameters
- items
- UIElement[]
The new collection items.
Implements
Remarks
For implementations that track a "changed" event, the initial reset fires an event, but the items added do not fire discrete per-item events.
If you are programming using C# or Microsoft Visual Basic, there is no single-call equivalent to ReplaceAll. Use Clear and then successive calls to Add.
Applies to
See also
Feedback
https://aka.ms/ContentUserFeedback.
Coming soon: Throughout 2024 we will be phasing out GitHub Issues as the feedback mechanism for content and replacing it with a new feedback system. For more information see:Submit and view feedback for