Exemplo n.º 1
0
        public static List <Rectangle> DecodeListRectangle(string value)
        {
            int index            = 0;
            int nextIndex        = 0;
            List <Rectangle> tmp = new List <Rectangle>();

            while (nextIndex != -1)
            {
                nextIndex = value.IndexOf(",", index);
                if (nextIndex != -1) //if element found
                {
                    tmp.Add(RsSerilization.DecodeRectangle(value.Substring(index, nextIndex - index)));
                    index = nextIndex + 1;
                    if (index >= value.Length)
                    {
                        break;
                    }
                }
            }
            return(tmp);
        }
Exemplo n.º 2
0
 public Rectangle ReadAttributeRectangle(string name)
 {
     return(RsSerilization.DecodeRectangle(Reader.GetAttribute(name)));
 }