aboutsummaryrefslogtreecommitdiffstats
path: root/Software/Visual_Studio/Tango.Editors/ElementEditorConfiguration.cs
blob: 2ef9f1ff5005775269fe9f0ecd4843cb8e2a04aa (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
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; }
    }
}