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); }
public Rectangle ReadAttributeRectangle(string name) { return(RsSerilization.DecodeRectangle(Reader.GetAttribute(name))); }