Sdílet prostřednictvím


VertexChannelCollection.Add Generic Method (String, Generic IEnumerable)

Note

This generic method is available only when developing for Windows.

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

Syntax

'Declaration
Public Function Add(Of ElementType) ( _
         name As String, _
         channelData As IEnumerable(Of ElementType) _
) As VertexChannel(Of ElementType) 
public VertexChannel<ElementType> Add<ElementType> (
         string name,
         IEnumerable<ElementType> channelData
)
public:
generic<typename ElementType>
VertexChannel<ElementType> Add(
         String name,
         IEnumerable<ElementType> channelData
)

Type Parameters

  • ElementType
    Type of the channel.

Parameters

  • name
    Type: String
    Name of the new channel.
  • channelData
    Type: IEnumerable<ElementType>
    Initial data for the new channel. If null, the channel is filled with the default value for that type.

Return Value

Type: VertexChannel<ElementType>
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