Search
DiagramItem.Animate Method
See Also
 





Animates the item.

Namespace: MindFusion.Diagramming
Assembly: MindFusion.Diagramming

 Syntax

C#  Copy Code

public void Animate (
    ItemAnimation animation
)

Visual Basic  Copy Code

Public Sub Animate( _
    animation As ItemAnimation _
)

 Parameters

animation

An ItemAnimation -derived object.

 Remarks

Item's animated values are considered transient and do not change actual property values. If you want to assign last value from animation to actual property such as Bounds or Opacity, set the KeepLastValue flag in AnimationOptions as in example below.

 Example

C#  Copy Code
node.Animate(
    new PathAnimation(
        new List<PointF>
        {
            new PointF(30, 30),
            new PointF(50, 30),
            new PointF(75, 66),
            new PointF(125, 88)
        },
        new AnimationOptions
        {
            KeepLastValue = true
        }));

 See Also