FarPoint.Win Assembly > FarPoint.Win Namespace > ElementControl Class > SetBounds Method : SetBounds(Rectangle) Method |
'Usage Dim instance As ElementControl Dim rectInput As Rectangle instance.SetBounds(rectInput)
control.Text = "NO SMOKING"; control.ForeColor = Color.Red; control.TextOrientation = FarPoint.Win.TextOrientation.TextVertical; control.Picture = Image.FromFile(Application.StartupPath + "\\smokes.bmp", true) control.AlignText = FarPoint.Win.TextAlign.TextLeftPictRight; control.AlignHorz = FarPoint.Win.HorizontalAlignment.Center; Rectangle rect = new Rectangle(10,50,200,150); control.SetBounds(rect);
control.Text = "NO SMOKING" control.ForeColor = Color.Red control.TextOrientation = FarPoint.Win.TextOrientation.TextVertical control.Picture = Image.FromFile(Application.StartupPath & "\smokes.bmp", True) control.AlignText = FarPoint.Win.TextAlign.TextLeftPictRight control.AlignHorz = FarPoint.Win.HorizontalAlignment.Center control.SetBounds(10, 50, 300, 250)
Target Platforms: Windows 2000 Professional (SP4), Windows 2000 Server, Windows 2003 Server (SP1), Windows Server 2012 R2, Windows 2008, Windows XP (SP2), Windows Vista, Windows 7, Windows 8, Windows 8.1, Windows 10