FarPoint.Win アセンブリ > FarPoint.Win 名前空間 > ElementControl クラス > SetBounds メソッド : SetBounds(Rectangle) メソッド |
'使用法 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)