[]
        
(Showing Draft Content)

GrapeCity.Documents.Excel.Drawing.IColorFormat.ObjectThemeColor

ObjectThemeColor Property

ObjectThemeColor

Gets or sets the workbook theme color used by this color format.

Setting this property uses the ThemeColor value to define the color and changes the color type to Theme.

Declaration
ThemeColor ObjectThemeColor { get; set; }
Property ObjectThemeColor As ThemeColor
Examples
IShape shape = worksheet.Shapes.AddShape(AutoShapeType.Rectangle, 10, 10, 120, 60);
IColorFormat colorFormat = shape.Fill.Color;
colorFormat.ObjectThemeColor = ThemeColor.Accent2;
ThemeColor themeColor = colorFormat.ObjectThemeColor;