# DismissLine(Action)

Method in [VoiceOverView](https://docs.yarnspinner.dev/2.2/api/csharp/yarn.unity/yarn.unity.voiceoverview)

## Summary

Ends any existing playback, and reports that the line has finished dismissing.

```csharp
public override void DismissLine(Action onDismissalComplete)
```

## Remarks

{% hint style="warning" %}
This method is not intended to be called from your code. Instead, the [DialogueRunner](https://docs.yarnspinner.dev/2.2/api/csharp/yarn.unity/yarn.unity.dialoguerunner) class will call it at the appropriate time.
{% endhint %}

## Parameters

| Name                         | Description                                                                      |
| ---------------------------- | -------------------------------------------------------------------------------- |
| `Action` onDismissalComplete | The method that should be called when the view has finished dismissing the line. |

## See Also

* [DialogueViewBase.DismissLine(Action)](https://docs.yarnspinner.dev/2.2/api/csharp/yarn.unity/yarn.unity.dialogueviewbase/yarn.unity.dialogueviewbase.dismissline): Called by the [DialogueRunner](https://docs.yarnspinner.dev/2.2/api/csharp/yarn.unity/yarn.unity.dialoguerunner) to signal that the view should dismiss its current line from display, and clean up.
