# CompoundStroke class

Namespace: [Grasshopper2.UI.Animation](https://developer.rhino3d.com/api/gh2/namespace/grasshopper2.ui.animation.md) · Assembly: [Grasshopper2](https://developer.rhino3d.com/api/gh2/assembly/grasshopper2.md)

```cs
public sealed class CompoundStroke : IAnimatedStroke
```

Represents a continuous collection of animated strokes.

## Constructors

- [CompoundStroke](https://developer.rhino3d.com/api/gh2/type/grasshopper2.ui.animation.compoundstroke/ctor.md): (2 overloads) Create a new compound.

## Properties

- [Count](https://developer.rhino3d.com/api/gh2/type/grasshopper2.ui.animation.compoundstroke/count.md): Gets the number of strokes.
- [Length](https://developer.rhino3d.com/api/gh2/type/grasshopper2.ui.animation.compoundstroke/length.md): Gets the length of this stroke.
- [Point0](https://developer.rhino3d.com/api/gh2/type/grasshopper2.ui.animation.compoundstroke/point0.md): Gets the start point of this stroke.
- [Point1](https://developer.rhino3d.com/api/gh2/type/grasshopper2.ui.animation.compoundstroke/point1.md): Gets the end point of this stroke.

## Methods

- [AppendStroke](https://developer.rhino3d.com/api/gh2/type/grasshopper2.ui.animation.compoundstroke/appendstroke.md): Append this stroke to a path.
- [ToArray](https://developer.rhino3d.com/api/gh2/type/grasshopper2.ui.animation.compoundstroke/toarray.md): Convert this compound to an array of individual strokes.
