FarPoint.Win アセンブリ > FarPoint.Win 名前空間 > ElementControl クラス > SetBounds メソッド : SetBounds(Int32,Int32,Int32,Int32) メソッド |
'Declaration Public Overloads Overridable Shadows Sub SetBounds( _ ByVal x As Integer, _ ByVal y As Integer, _ ByVal width As Integer, _ ByVal height As Integer _ )
'使用法 Dim instance As ElementControl Dim x As Integer Dim y As Integer Dim width As Integer Dim height As Integer instance.SetBounds(x, y, width, height)
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);
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)