MESCIUS SPREAD for Windows Forms 15.0J
MarginTop プロパティ (ElementContainerControl)
使用例 

コントロール上端と内容の間の余白を取得または設定します。
構文
'宣言
 
Public Overridable Property MarginTop As Integer
public virtual int MarginTop {get; set;}
使用例
control.Picture = Image.FromFile(Application.StartupPath + "\\smokes.bmp"); control.PictureMargin = 34; control.MarginTop = 3; control.MarginBottom = 3; control.MarginLeft = 3; control.MarginRight = 3; control.PictureOrientation = FarPoint.Win.PictureOrientation.PictureRotate180; control.AlignText = FarPoint.Win.TextAlign.TextLeftPictRight; control.AlignHorz = FarPoint.Win.HorizontalAlignment.Left; control.BackColor = Color.Red; control.Text = "NO SMOKING";
control.Picture = Image.FromFile(Application.StartupPath + "\\smokes.bmp") control.PictureMargin = 34 control.MarginTop = 3 control.MarginBottom = 3 control.MarginLeft = 3 control.MarginRight = 3 control.PictureOrientation = FarPoint.Win.PictureOrientation.PictureRotate180 control.MarginTop = 3 control.MarginBottom = 3 control.AlignText = FarPoint.Win.TextAlign.TextLeftPictRight control.AlignHorz = FarPoint.Win.HorizontalAlignment.Left control.BackColor = Color.Red control.Text = "NO SMOKING"
参照

ElementContainerControl クラス
ElementContainerControl メンバ

 

 


© MESCIUS inc. All rights reserved.