Spread WPF Documentation
GrapeCity.Windows.SpreadSheet.Data Namespace / ThemeColor Class / Accent1 Property
Example


In This Topic
    Accent1 Property
    In This Topic
    Gets or sets the accent1.
    Syntax
    'Declaration
     
    Public Property Accent1 As Color
    'Usage
     
    Dim instance As ThemeColor
    Dim value As Color
     
    instance.Accent1 = value
     
    value = instance.Accent1
    public Color Accent1 {get; set;}

    Property Value

    The accent1.
    Example
    This example sets the Accent1 property.
    SpreadTheme customTheme = new SpreadTheme("customTheme1");
    customTheme.Colors.Accent1 = Colors.Red;
    customTheme.Colors.Accent2 = Colors.Green;
    gcSpreadSheet1.Themes.Add(customTheme);
    gcSpreadSheet1.CurrentThemeName = "customTheme1";
    gcSpreadSheet1.Sheets[0].Cells[1, 1].BackgroundThemeColor = "Accent 1 50";
    Dim customTheme As New SpreadTheme("customTheme1")
    customTheme.Colors.Accent1 = Colors.Red
    customTheme.Colors.Accent2 = Colors.Green
    GcSpreadSheet1.Themes.Add(customTheme)
    GcSpreadSheet1.CurrentThemeName = "customTheme1"
    GcSpreadSheet1.Sheets(0).Cells(1, 1).BackgroundThemeColor = "Accent 1 50"
    See Also