VertexChannelCollection.Insert Method (Int32, String, Type, IEnumerable)

Note

This method is available only when developing for Windows.

Inserts a new vertex channel at the specified position.

Syntax

'Declaration
Public Function Insert ( _
         index As Integer, _
         name As String, _
         elementType As Type, _
         channelData As IEnumerable _
) As VertexChannel 
public VertexChannel Insert (
         int index,
         string name,
         Type elementType,
         IEnumerable channelData
)
public:
VertexChannel Insert(
         int index,
         String name,
         Type elementType,
         IEnumerable channelData
)

Parameters

  • index
    Type: Int32
    Index for channel insertion.
  • name
    Type: String
    Name of the new channel.
  • elementType
    Type: Type
    Type of the new channel.
  • channelData
    Type: IEnumerable
    Initial data for the new channel. If null, it is filled with the default value.

Return Value

Type: VertexChannel
The inserted vertex channel.

Requirements

Namespace: Microsoft.Xna.Framework.Content.Pipeline.Graphics

Assembly: Microsoft.Xna.Framework.Content.Pipeline (in microsoft.xna.framework.content.pipeline.dll)

See Also

Reference

VertexChannelCollection Class
VertexChannelCollection Members
Microsoft.Xna.Framework.Content.Pipeline.Graphics Namespace

Platforms

Windows 7, Windows Vista, Windows XP