AnimatGuiCtrls.Collections.KeyFrameCollection.Add C# (CSharp) Method

Add() public method

public Add ( KeyFrame keyFrame ) : KeyFrame
keyFrame AnimatGuiCtrls.Controls.KeyFrame
return AnimatGuiCtrls.Controls.KeyFrame
        public KeyFrame Add(KeyFrame keyFrame)
        {
            return Add(keyFrame, false);
        }

Same methods

KeyFrameCollection::Add ( KeyFrame keyFrame, bool bSuspendRedraw ) : KeyFrame

Usage Example

        public KeyFrameCollection Copy()
        {
            KeyFrameCollection clone = new KeyFrameCollection(_Ruler);

            // Copy each reference across
            foreach(KeyFrame c in base.List)
                clone.Add(c);

            return clone;
        }