GrapeCity.Win.MultiRow.v80 アセンブリ > GrapeCity.Win.MultiRow 名前空間 : NamedCellStyleDictionary クラス |
Public NotInheritable Class NamedCellStyleDictionary
public sealed class NamedCellStyleDictionary
void setFirstNamedCellStyle_Click(object sender, EventArgs e) { CellStyle alternatingColumnsDefaultCellStyle = new CellStyle(); alternatingColumnsDefaultCellStyle.BackColor = Color.FromArgb(150, 160, 159); alternatingColumnsDefaultCellStyle.ForeColor = Color.White; alternatingColumnsDefaultCellStyle.NullValue = "Text"; //Change the "AlternatingColumnsDefaultCellStyle" this.gcMultiRow1.NamedCellStyles["AlternatingColumnsDefaultCellStyle"] = alternatingColumnsDefaultCellStyle; CellStyle columnsDefaultCellStyle = new CellStyle(); columnsDefaultCellStyle.BackColor = Color.FromArgb(226, 228, 228); columnsDefaultCellStyle.ForeColor = Color.Black; columnsDefaultCellStyle.NullValue = "Text"; //Change the "ColumnsDefaultCellStyle" this.gcMultiRow1.NamedCellStyles["ColumnsDefaultCellStyle"] = columnsDefaultCellStyle; //You can load one predefined NamedCellStyleDictionary from one file. //this.gcMultiRow1.NamedCellStyles.Load(@"C:\temp\NamedCellStyles.xml"); //You can save the NamedCellStyleDictionary to one file. //this.gcMultiRow1.NamedCellStyles.Save(@"C:\temp\NamedCellStyles.xml"); }
Private Sub setFirstNamedCellStyle_Click(ByVal sender As Object, ByVal e As EventArgs) Handles setFirstStyle.Click Dim alternatingColumnsDefaultCellStyle As New CellStyle() alternatingColumnsDefaultCellStyle.BackColor = Color.FromArgb(150, 160, 159) alternatingColumnsDefaultCellStyle.ForeColor = Color.White alternatingColumnsDefaultCellStyle.NullValue = "Text" 'Change the "AlternatingColumnsDefaultCellStyle" Me.gcMultiRow1.NamedCellStyles("AlternatingColumnsDefaultCellStyle") = alternatingColumnsDefaultCellStyle Dim columnsDefaultCellStyle As New CellStyle() columnsDefaultCellStyle.BackColor = Color.FromArgb(226, 228, 228) columnsDefaultCellStyle.ForeColor = Color.Black columnsDefaultCellStyle.NullValue = "Text" 'Change the "ColumnsDefaultCellStyle" Me.gcMultiRow1.NamedCellStyles("ColumnsDefaultCellStyle") = columnsDefaultCellStyle 'You can load one predefined NamedCellStyleDictionary from one file. 'this.gcMultiRow1.NamedCellStyles.Load(@"C:\temp\NamedCellStyles.xml"); 'You can save the NamedCellStyleDictionary to one file. 'this.gcMultiRow1.NamedCellStyles.Save(@"C:\temp\NamedCellStyles.xml"); End Sub
System.Object
GrapeCity.Win.MultiRow.NamedCellStyleDictionary