GrapeCity SPREAD for WPF 2.0J
ContentTemplate プロパティ (ButtonCellType)

ButtonCellType の内容の表示に使用されるデータテンプレートを取得または設定します。
構文
'Declaration
 
Public Property ContentTemplate As DataTemplate
public DataTemplate ContentTemplate {get; set;}

プロパティ値

データテンプレート。既定値は null 参照 (Visual Basicでは Nothing) です。
次のサンプルは ButtonCellType にデータテンプレートを使用して下線を設定する方法を説明します。
<DataTemplate x:Key ="UnderLineTemplate">
    <TextBlock Text="{Binding}" TextDecorations="UnderLine"/>
</DataTemplate>
ButtonCellType button = new ButtonCellType();
button.Content = "Custom TextFormat";
button.ContentTemplate = this.Resources["UnderLineTemplate"] as DataTemplate;
gcSpreadGrid1[0,0].CellType = button;
Dim button As New ButtonCellType()
button.Content = "Custom TextFormat"
button.ContentTemplate = TryCast(Me.Resources("UnderLineTemplate"), DataTemplate)
gcSpreadGrid1(0, 0).CellType = button
参照

ButtonCellType クラス
ButtonCellType メンバ

 

 


Copyright © 2012 GrapeCity inc. All rights reserved.