Пример #1
0
        /// <summary>
        /// 持久化为XML
        /// </summary>
        /// <returns></returns>
        public string ToXmlStub()
        {
            StringBuilder sb = new StringBuilder();

            sb.Append("<Envelope>");
            sb.Append("<MinX>" + MinHorizontal.ToString("0.0000000") + "</MinX>");
            sb.Append("<MinY>" + MinVertical.ToString("0.0000000") + "</MinY>");
            sb.Append("<MaxX>" + MaxHorizontal.ToString("0.0000000") + "</MaxX>");
            sb.Append("<MaxY>" + MaxVertical.ToString("0.0000000") + "</MaxY>");
            sb.Append("</Envelope>");
            return(sb.ToString());
        }
Пример #2
0
 /// <summary>
 /// 自定义的格式化输出。
 /// </summary>
 /// <returns></returns>
 public override string ToString()
 {
     return("Envelope [maxX=" + MaxHorizontal.ToString("0.#####") + ", maxY=" + MaxVertical.ToString("0.#####") + ", minX=" + MinHorizontal.ToString("0.#####")
            + ", minY=" + MinVertical.ToString("0.#####") + "]");
 }