-
Notifications
You must be signed in to change notification settings - Fork 0
/
AcSmSheet.cs
51 lines (43 loc) · 1.17 KB
/
AcSmSheet.cs
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
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Xml;
using System.Threading.Tasks;
namespace AcSmSheetSetMgr
{
class AcSmSheet : AcSmClassWithCustomPropertyBag
{
protected void SetClass()
{
this.ClassName = "AcSmSheet";
this.clsGuid = Guid.Parse("g16A07941-BC15-4D48-A880-9D5A211D5065");
this.fID = Guid.NewGuid();
//this.propname = "Sheet";
//this.vt = 13;
}
public AcSmSheet()
{
this.SetClass();
this.Child.Add(new AcSmProp("Title", 8, "New1"));
}
public AcSmSheet(string nName)
{
this.SetClass();
this.Child.Add(new AcSmProp("Title", 8, nName));
}
public AcSmSheet(XmlElement wEl) : base(wEl)
{
}
public void SetName(string nName)
{
AcSmProp wP = (AcSmProp)this.FindChild("AcSmProp", "Title");
wP.SetValue(nName);
}
public string GetName()
{
AcSmProp wP = (AcSmProp)this.FindChild("AcSmProp", "Title");
return wP.value;
}
}
}