テーブル レイアウト項目 - MarginRight プロパティ

右の余白を設定します

テーブル レイアウト項目 (PRIM_TBLO.Item) のメンバ

データ タイプ - 整数

詳細

MarginRight プロパティは、コントロールが RowColumnAlignment および Flow によって定義された自然な位置から左に移動するピクセル数を定義します。
 
FitWidth または FitBoth に Sizing する場合、  MarginRight と MarginLeft は、コントロールのサイズを変更するために連携して動作します。
 
Sizing しない場合は、 MarginLeft を使用すると効果的に MarginRight が無効になります。

この例では、 Top と Bottom の効果を示します。
Begin_Com Role(*EXTENDS #PRIM_WEB) Height(457) Width(889) Layoutmanager(#TableLayout1)
 
   Define_Com Class(#PRIM_VS.Style) Name(#Style1) Backgroundbrush(#Brush1)
   Define_Com Class(#PRIM_VS.SolidBrush) Name(#Brush1) Color(Theme600)
 
   Define_Com Class(#PRIM_VS.Style) Name(#Style2) Backgroundbrush(#Brush2)
   Define_Com Class(#PRIM_VS.SolidBrush) Name(#Brush2) Color(Theme300)
 
   Define_Com Class(#PRIM_TBLO) Name(#TableLayout1)
   Define_Com Class(#PRIM_TBLO.Column) Name(#Column1) Displayposition(1) Parent(#TableLayout1) Width(0.57)
   Define_Com Class(#PRIM_TBLO.Column) Name(#Column2) Displayposition(2) Parent(#TableLayout1) Width(1.9)
   Define_Com Class(#PRIM_TBLO.Column) Name(#Column3) Displayposition(3) Parent(#TableLayout1) Width(0.53)
   Define_Com Class(#PRIM_TBLO.Row) Name(#Row1) Displayposition(1) Parent(#TableLayout1) Height(0.56)
   Define_Com Class(#PRIM_TBLO.Row) Name(#Row2) Displayposition(2) Parent(#TableLayout1) Height(1.92)
   Define_Com Class(#PRIM_TBLO.Row) Name(#Row3) Displayposition(3) Parent(#TableLayout1) Height(0.52)
   Define_Com Class(#PRIM_TBLO.Item) Name(#LayoutItem1) Alignment(TopRight) Column(#Column2) Manage(#Label1) Parent(#TableLayout1) Row(#Row2) Sizing(None) Marginleft(10) Marginright(10)
   Define_Com Class(#PRIM_TBLO.Item) Name(#LayoutItem2) Alignment(BottomRight) Column(#Column2) Manage(#Label2) Parent(#TableLayout1) Row(#Row2) Sizing(FitToWidth) Marginleft(10) Marginright(10)
   Define_Com Class(#PRIM_TBLO.Item) Name(#LayoutItem3) Column(#Column2) Manage(#Panel1) Parent(#TableLayout1) Row(#Row2)
   Define_Com Class(#PRIM_TBLO.Item) Name(#LayoutItem4) Alignment(CenterRight) Column(#Column2) Manage(#Label3) Parent(#TableLayout1) Row(#Row2) Sizing(None) Marginright(10)
 
   Define_Com Class(#PRIM_LABL) Name(#Label1) Caption('Left(10) and Right(10) Sizing(None)') Displayposition(1) Ellipses(Word) Height(58) Left(573) Parent(#COM_OWNER) Tabposition(2) Tabstop(False) Top(86) Verticalalignment(Center) Width(159) Alignment(Center) Style(#Style1)
   Define_Com Class(#PRIM_LABL) Name(#Label2) Caption('Left(10) and Right(10) Sizing(FitWidth)') Displayposition(2) Ellipses(Word) Height(66) Left(179) Parent(#COM_OWNER) Tabposition(3) Tabstop(False) Top(312) Verticalalignment(Center) Width(543) Alignment(Center) Style(#Style1)
   Define_Com Class(#PRIM_PANL) Name(#Panel1) Displayposition(4) Left(169) Parent(#COM_OWNER) Tabposition(4) Tabstop(False) Top(86) Height(292) Width(563) Style(#Style2)
   Define_Com Class(#PRIM_LABL) Name(#Label3) Caption('Right(10) Sizing(None)') Displayposition(3) Ellipses(Word) Height(64) Left(563) Parent(#COM_OWNER) Tabposition(1) Tabstop(False) Top(200) Verticalalignment(Center) Width(159) Alignment(Center) Style(#Style1)
 
 End_Com

参照

すべてのコンポーネント クラス

テクニカルリファレンス

2018 - V14SP1