duheng
2025-03-18 97f59d8ee14145e92073fa168bccfe66a1e4806b
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
namespace IStation.Epanet.Network.Structures
{
 
    ///<summary>Text label</summary>
    public class Label
    {
        public enum MeterTypes
        {
            None,
            Node,
            Link
        }
 
        public Label(string text)
        {
            Text = text;
            Position = EnPoint.Invalid;
        }
 
        ///<summary>Label position.</summary>
        public EnPoint Position { get; set; }
 
        ///<summary>Label text.</summary>
        public string Text { get; set; }
        public Node Anchor { get; set; }
        public string FontName { get; set; }
        public int FontSize { get; set; }
        public bool FontBold { get; set; }
        public bool FontItalic { get; set; }
        public MeterTypes MeterType { get; set; }
        public string MeterId { get; set; }
    }
 
}