FarPoint.Win アセンブリ > FarPoint.Win 名前空間 > SuperEditBase クラス : AlignText プロパティ |
'Declaration Public Overrides Property AlignText As TextAlign
'使用法 Dim instance As SuperEditBase Dim value As TextAlign instance.AlignText = value value = instance.AlignText
public override TextAlign AlignText {get; set;}
このプロパティが使用できるのは実行時のみです。
編集コントロールの内容の水平方向の配置を指定するには、AlignHorzプロパティを設定します。
control.Text = "Alignment test"; control.Picture = System.Drawing.Image.FromFile("d:\mail16A.ico") control.PictureMargin = 25 control.PictureOrientation = FarPoint.Win.PictureOrientation.PictureRotate90; control.PictureTransparencyColor = Color.Blue; control.AlignText = FarPoint.Win.TextAlign.TextLeftPictRight; control.TextOrientation = FarPoint.Win.TextOrientation.TextTopDown;
control.Text = "Alignment test" control.Picture = System.Drawing.Image.FromFile("d:\mail16A.ico") control.PictureMargin = 25 control.PictureOrientation = FarPoint.Win.PictureOrientation.PictureRotate90 control.PictureTransparencyColor = Color.Blue control.AlignText = FarPoint.Win.TextAlign.TextLeftPictRight control.TextOrientation = FarPoint.Win.TextOrientation.TextTopDown