FlexGrid for UWP/WinRT
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>
Requirements

Target Platforms: Windows 7, Windows Vista SP1 or later, Windows XP SP3, Windows Server 2008 (Server Core not supported), Windows Server 2008 R2 (Server Core supported with SP1 or later), Windows Server 2003 SP2

参照

関連項目

RowCol クラス
RowCol メンバ

Send Feedback