ComponentOne Studio for WinRT XAML
CellStyle プロパティ
使用例 

この行または列内のセルの外観を定義する CellStyle を取得または設定します。
構文
'宣言
 
Public Property CellStyle As CellStyle
public CellStyle CellStyle {get; set;}
解説
このプロパティを使用すると、グリッドの行と列に適用する再利用可能なスタイルを定義できます。XAML またはコードで CellStyle オブジェクトを簡単に作成し、それらをグリッドの行または列に割り当てることができます。
使用例
下の XAML スニペットは、2つの CellStyle オブジェクトを定義し、それらを列に適用します。
<Grid.Resources>
  <c1:CellStyle x:Key="redStyle" 
    Background="Red" Foreground="White"
    FontWeight="Bold" HorizontalAlignment="Center" />
  <c1:CellStyle x:Key="blueStyle" 
    Background="Blue" Foreground="White" FontStyle="Italic"
    HorizontalAlignment="Center" VerticalAlignment="Center" />
</Grid.Resources>
            
<c1:C1FlexGrid Name="_flex" >
  <c1:C1FlexGrid.Columns>
    <c1:Column 
      Header="Hello"
      HeaderCellStyle="{StaticResource redStyle}" 
      CellStyle="{StaticResource blueStyle}" />
   </c1:C1FlexGrid.Columns>
   <c1:C1FlexGrid.Rows>
     <c1:Row/>
     <c1:Row/>
   </c1:C1FlexGrid.Rows>
 </c1:C1FlexGrid>
参照

RowCol クラス
RowCol メンバ

 

 


Copyright © GrapeCity inc. All rights reserved.