blob: 2ef9f1ff5005775269fe9f0ecd4843cb8e2a04aa (
plain)
1
2
3
4
5
6
7
8
9
10
11
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
using System.Windows.Media;
using Tango.Editors;
namespace Tango.Editors
{
/// <summary>
/// <para><img class="classImage" src="../Media/Configuration.png" /></para>
/// Represents an <see cref="ElementEditor"/> configuration which can be saved or load from a file or stream.
/// </summary>
/// <seealso cref="IConfiguration" />
[Serializable]
public class ElementEditorConfiguration : IConfiguration
{
/// <summary>
/// Initializes a new instance of the <see cref="ElementEditorConfiguration"/> class.
/// </summary>
public ElementEditorConfiguration()
{
ConfigurableType = typeof(ElementEditor);
}
/// <summary>
/// Initializes a new instance of the <see cref="ElementEditorConfiguration"/> class.
/// </summary>
/// <param name="baseConfiguration">The base configuration.</param>
internal ElementEditorConfiguration(ElementEditorConfiguration baseConfiguration)
{
baseConfiguration.MapTo(this);
}
/// <summary>
/// Gets or sets the unique editor identifier.
/// </summary>
public String ID { get; set; }
/// <summary>
/// Gets or sets a value indicating whether the hosted element will be displayed within the editor.
/// </summary>
public bool ElementDetached { get; set; }
/// <summary>
/// Gets or sets a string representation of the editor's background.
/// </summary>
public String BackgroundBrushString { get; set; }
/// <summary>
/// Gets or sets the left position.
/// </summary>
public double Left { get; set; }
/// <summary>
/// Gets or sets the top position.
/// </summary>
public double Top { get; set; }
/// <summary>
/// Gets or sets the width.
/// </summary>
public double Width { get; set; }
/// <summary>
/// Gets or sets the height.
/// </summary>
public double Height { get; set; }
/// <summary>
/// Gets or sets the angle.
/// </summary>
public double Angle { get; set; }
/// <summary>
/// Gets or sets the configurable type.
/// </summary>
public Type ConfigurableType { get; set; }
}
}
|