共用方式為


VertexContent.Add Method

Note

This method is available only when developing for Windows.

Appends a new vertex index to the end of the PositionIndices collection.

Other vertex channels will automatically be extended and the new indices populated with default values.

Syntax

'Declaration
Public Function Add ( _
         positionIndex As Integer _
) As Integer 
public int Add (
         int positionIndex
)
public:
int Add(
         int positionIndex
)

Parameters

Return Value

Type: Int32
Index of the new entry. This can be added to the Indices member of the parent.

Requirements

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

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

See Also

Reference

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

Platforms

Windows 7, Windows Vista, Windows XP