Share via


VertexChannelCollection.Add Method (String, Type, IEnumerable)

Note

This method is available only when developing for Windows.

Adds a new vertex channel to the end of the collection.

Syntax

'Declaration
Public Function Add ( _
         name As String, _
         elementType As Type, _
         channelData As IEnumerable _
) As VertexChannel 
public VertexChannel Add (
         string name,
         Type elementType,
         IEnumerable channelData
)
public:
VertexChannel Add(
         String name,
         Type elementType,
         IEnumerable channelData
)

Parameters

  • name
    Type: String
    Name of the new channel.
  • elementType
    Type: Type
    Type of data to be contained in the new channel.
  • channelData
    Type: IEnumerable
    Initial data for the new channel. If null, the channel is filled with the default value for that type.

Return Value

Type: VertexChannel
The newly added 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