C# Class TexturedFontEditor.Helper

Mostra file Open project: 9chu/LuaSTGPlus

Public Methods

Method Description
GetFirstElement ( XmlElement Xml, string TagName ) : XmlElement
GetXmlResValue ( XmlElement Xml, string TagName, string Attribute = "Value" ) : string
IsXmlHasElement ( XmlElement Xml, string TagName ) : bool
ShowErr ( string Msg, string Caption = "错误" ) : void
StringToColor ( string Data ) : Color
StringToPointF ( string Data ) : PointF
StringToRectangleF ( string Data ) : RectangleF
WriteFSTGXmlType ( XmlDocument XmlDoc, string TargetFile ) : void
XmlElementToColor ( XmlElement Node, string NodeName, string Attribute = "Value" ) : Color
XmlElementToPointF ( XmlElement Node, string NodeName, string Attribute = "Value" ) : PointF
XmlElementToRectangleF ( XmlElement Node, string NodeName, string Attribute = "Value" ) : RectangleF

Method Details

GetFirstElement() public static method

public static GetFirstElement ( XmlElement Xml, string TagName ) : XmlElement
Xml System.Xml.XmlElement
TagName string
return System.Xml.XmlElement

GetXmlResValue() public static method

public static GetXmlResValue ( XmlElement Xml, string TagName, string Attribute = "Value" ) : string
Xml System.Xml.XmlElement
TagName string
Attribute string
return string

IsXmlHasElement() public static method

public static IsXmlHasElement ( XmlElement Xml, string TagName ) : bool
Xml System.Xml.XmlElement
TagName string
return bool

ShowErr() public static method

public static ShowErr ( string Msg, string Caption = "错误" ) : void
Msg string
Caption string
return void

StringToColor() public static method

public static StringToColor ( string Data ) : Color
Data string
return Color

StringToPointF() public static method

public static StringToPointF ( string Data ) : PointF
Data string
return System.Drawing.PointF

StringToRectangleF() public static method

public static StringToRectangleF ( string Data ) : RectangleF
Data string
return System.Drawing.RectangleF

WriteFSTGXmlType() public static method

public static WriteFSTGXmlType ( XmlDocument XmlDoc, string TargetFile ) : void
XmlDoc System.Xml.XmlDocument
TargetFile string
return void

XmlElementToColor() public static method

public static XmlElementToColor ( XmlElement Node, string NodeName, string Attribute = "Value" ) : Color
Node System.Xml.XmlElement
NodeName string
Attribute string
return Color

XmlElementToPointF() public static method

public static XmlElementToPointF ( XmlElement Node, string NodeName, string Attribute = "Value" ) : PointF
Node System.Xml.XmlElement
NodeName string
Attribute string
return System.Drawing.PointF

XmlElementToRectangleF() public static method

public static XmlElementToRectangleF ( XmlElement Node, string NodeName, string Attribute = "Value" ) : RectangleF
Node System.Xml.XmlElement
NodeName string
Attribute string
return System.Drawing.RectangleF