Sdílet prostřednictvím


AnimationChannel.Add Method

Note

This method is available only when developing for Windows.

Adds a new keyframe to the collection, automatically sorting the contents according to keyframe times.

Syntax

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

Parameters

Return Value

Type: Int32
Index of the new keyframe.

Requirements

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

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

See Also

Reference

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

Platforms

Windows 7, Windows Vista, Windows XP