MCPcopy Create free account
hub / github.com/9chu/LuaSTGPlus / GetXmlResValue

Method GetXmlResValue

TexturedFontEditor/Helper.cs:45–53  ·  view source on GitHub ↗
(XmlElement Xml, string TagName, string Attribute = "Value")

Source from the content-addressed store, hash-verified

43 }
44
45 public static string GetXmlResValue(XmlElement Xml, string TagName, string Attribute = "Value")
46 {
47 XmlElement tFirstElemet = GetFirstElement(Xml, TagName);
48
49 if (!tFirstElemet.HasAttribute(Attribute))
50 throw new Exception("找不到属性'"+Attribute+"'于节点'"+TagName+"'.");
51
52 return tFirstElemet.GetAttribute(Attribute);
53 }
54
55 public static PointF StringToPointF(string Data)
56 {

Callers 3

XmlElementToPointFMethod · 0.80
XmlElementToColorMethod · 0.80

Calls

no outgoing calls

Tested by

no test coverage detected