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

制御アイテムが影響を及ぼす範囲の列数

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

データ タイプ - 整数

詳細

ColumnSpan プロパティは、 managed コントロールがアンカーされているセルの水平範囲を指定します。
 
ColumnSpan は、値が大きすぎる場合は、その値の小さい方または使用可能な列数を使用します。

この例では、異なるスパン、 sizing および Alignments を使用してコントロールを配置し、そのサイズを決定しています。
Begin_Com Role(*EXTENDS #PRIM_WEB) Height(401) Width(761) Layoutmanager(#TableLayout1)
 
   Define_Com Class(#PRIM_VS.Style) Name(#Style1) Backgroundbrush(#Brush1)
   Define_Com Class(#PRIM_VS.SolidBrush) Name(#Brush1) Color(Theme400)
 
   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)
   Define_Com Class(#PRIM_TBLO.Column) Name(#Column2) Displayposition(2) Parent(#TableLayout1)
   Define_Com Class(#PRIM_TBLO.Column) Name(#Column3) Displayposition(3) Parent(#TableLayout1)
   Define_Com Class(#PRIM_TBLO.Row) Name(#Row1) Displayposition(1) Parent(#TableLayout1)
   Define_Com Class(#PRIM_TBLO.Row) Name(#Row2) Displayposition(2) Parent(#TableLayout1)
   Define_Com Class(#PRIM_TBLO.Row) Name(#Row3) Displayposition(3) Parent(#TableLayout1)
   Define_Com Class(#PRIM_TBLO.Item) Name(#LayoutItem1) Column(#Column1) Manage(#Label1) Parent(#TableLayout1) Row(#Row1) Columnspan(3)
   Define_Com Class(#PRIM_TBLO.Item) Name(#LayoutItem2) Column(#Column1) Manage(#Label2) Parent(#TableLayout1) Row(#Row2) Rowspan(2)
   Define_Com Class(#PRIM_TBLO.Item) Name(#LayoutItem3) Column(#Column2) Manage(#Label3) Parent(#TableLayout1) Row(#Row2) Sizing(None) Rowspan(2) Columnspan(2)
 
   Define_Com Class(#PRIM_LABL) Name(#Label1) Displayposition(1) Left(0) Parent(#COM_OWNER) Tabposition(1) Tabstop(False) Top(0) Height(134) Width(761) Style(#Style1) Caption('Row 1, Column 1, Column Span 3, FitBoth') Alignment(Center) Verticalalignment(Center)
   Define_Com Class(#PRIM_LABL) Name(#Label2) Displayposition(2) Left(0) Parent(#COM_OWNER) Tabposition(3) Tabstop(False) Top(134) Height(267) Width(254) Style(#Style2) Caption('Row 2, Column 1, Row Span 2, Column Span 1, FitBoth') Alignment(Center) Verticalalignment(Center)
   Define_Com Class(#PRIM_LABL) Name(#Label3) Displayposition(3) Left(306) Parent(#COM_OWNER) Tabposition(2) Tabstop(False) Top(207) Height(121) Width(402) Style(#Style2) Caption('Row 2, Column 2, Row Span 2, Column Span 2, Centered') Alignment(Center) Verticalalignment(Center)
 
 End_Com

参照

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

テクニカルリファレンス

2018 - V14SP1