public int LewaWspolrzednaOknaOpcje() { String WordLeft = "Left:"; String Zwrot; String Left; Zwrot = OpcjeOkno.GetAttribute("BoundingRectangle"); Left = Zwrot.Substring(Zwrot.IndexOf(WordLeft) + WordLeft.Length, Zwrot.IndexOf(" ", Zwrot.IndexOf(WordLeft) + 1) - Zwrot.IndexOf(WordLeft) - WordLeft.Length); return(Int32.Parse(Left)); }
public int TopWspolrzednaOknaOpcje() { String WordTop = "Top:"; String Zwrot; String Top; Zwrot = OpcjeOkno.GetAttribute("BoundingRectangle"); Top = Zwrot.Substring(Zwrot.IndexOf(WordTop) + WordTop.Length, Zwrot.IndexOf(" ", Zwrot.IndexOf(WordTop) + 1) - Zwrot.IndexOf(WordTop) - WordTop.Length); return(Int32.Parse(Top)); }
public String WymiaryPolaKod() { String WordWidth = "Width:"; String WordHeight = "Height:"; String WymiarWidth; String WymiarHeight; String Zwrot;; Okno.Click(); Zwrot = KodPole.GetAttribute("BoundingRectangle"); WymiarWidth = Zwrot.Substring(Zwrot.IndexOf(WordWidth) + WordWidth.Length, Zwrot.IndexOf(" ", Zwrot.IndexOf(WordWidth) + 1) - Zwrot.IndexOf(WordWidth) - WordWidth.Length); WymiarHeight = Zwrot.Substring(Zwrot.IndexOf(WordHeight) + WordHeight.Length); return(WymiarWidth + " " + WymiarHeight); }