// Copyright (c) AlphaSierraPapa for the SharpDevelop Team (for details please see \doc\copyright.txt)
// This code is distributed under the GNU LGPL (for details please see \doc\license.txt)
using System;
namespace ICSharpCode.AvalonEdit.Snippets
{
///
/// Provides information about the event that occured during use of snippets.
///
public class SnippetEventArgs : EventArgs
{
///
/// Gets the reason for deactivation.
///
public DeactivateReason Reason { get; private set; }
///
/// Creates a new SnippetEventArgs object, with a DeactivateReason.
///
public SnippetEventArgs(DeactivateReason reason)
{
this.Reason = reason;
}
}
///
/// Describes the reason for deactivation of a .
///
public enum DeactivateReason
{
///
/// Unknown reason.
///
Unknown,
///
/// Snippet was deleted.
///
Deleted,
///
/// There are no active elements in the snippet.
///
NoActiveElements,
///
/// The SnippetInputHandler was detached.
///
InputHandlerDetached,
///
/// Return was pressed by the user.
///
ReturnPressed,
///
/// Escape was pressed by the user.
///
EscapePressed
}
}