GeometryCollection.InsertAt(UInt32, Geometry) Method
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.
Inserts the specified item at the specified index.
public:
virtual void InsertAt(unsigned int index, Geometry ^ value) = IVector<Geometry ^>::InsertAt;
void InsertAt(uint32_t const& index, Geometry const& value);
public void InsertAt(uint index, Geometry value);
function insertAt(index, value)
Public Sub InsertAt (index As UInteger, value As Geometry)
- index
-
UInt32
unsigned int
uint32_t
The index at which to set the value.
- value
- Geometry
The value to set.
1.InsertAt(System.UInt32,
0)
M:Windows.Foundation.Collections.IVector1.InsertAt(unsigned int,
0)
M:Windows.Foundation.Collections.IVector1.InsertAt(uint32_t,
0)
InsertAt expands the collection and moves all subsequent index items by one.
In contrast, SetAt replaces the item at the index, and the collection count remains the same.
Product | Versions |
---|---|
WinRT | Build 10240, Build 10586, Build 14383, Build 15063, Build 16299, Build 17134, Build 17763, Build 18362, Build 19041, Build 20348, Build 22000, Build 22621, Build 26100 |