Archived
forked from RDTKEditor/RDTKEditor
39 lines
1001 B
C#
39 lines
1001 B
C#
namespace RhythmBase.Events
|
|
{
|
|
/// <summary>
|
|
/// Represents an action to set the visibility of a decoration.
|
|
/// </summary>
|
|
public class SetVisible : BaseDecorationAction
|
|
{
|
|
/// <summary>
|
|
/// Initializes a new instance of the <see cref="SetVisible"/> class.
|
|
/// </summary>
|
|
public SetVisible()
|
|
{
|
|
Type = EventType.SetVisible;
|
|
Tab = Tabs.Decorations;
|
|
}
|
|
|
|
/// <summary>
|
|
/// Gets the type of the event.
|
|
/// </summary>
|
|
public override EventType Type { get; }
|
|
|
|
/// <summary>
|
|
/// Gets the tab to which the event belongs.
|
|
/// </summary>
|
|
public override Tabs Tab { get; }
|
|
|
|
/// <summary>
|
|
/// Gets or sets a value indicating whether the decoration is visible.
|
|
/// </summary>
|
|
public bool Visible { get; set; }
|
|
|
|
/// <summary>
|
|
/// Returns a string that represents the current object.
|
|
/// </summary>
|
|
/// <returns>A string that represents the current object.</returns>
|
|
public override string ToString() => base.ToString() + string.Format(" {0}", Visible);
|
|
}
|
|
}
|