AD
Administrator
Syncfusion Team
January 3, 2007 06:35 AM UTC
Hi Simon,
Using the StyleInfo.Interior property to specify a solid backcolor, gradient, or pattern style with both back and forecolor for a cell's background.The default value for the Interior property is SystemColors.Window. The property affects the behavior or appearance of the all built-in cell types. Below code snippet from the GridStyleInfo.cs class sets designtime editor for Interior property in a grid.
[
Description("Lets you specify a solid backcolor, gradient, or pattern style with both back and forecolor for a cell's background."),
Browsable(true),
SRCategory("StyleCategoryAppearance"),
NotifyParentProperty(true)
]
public BrushInfo Interior
{
[DebuggerStepThrough()]
get
{
return (BrushInfo) GetValue(GridStyleInfoStore.InteriorProperty);
}
set
{
SetValue(GridStyleInfoStore.InteriorProperty, value);
}
}
Let me know if this helps.
Best Regards,
Haneef
SK
Simon Kakon
January 3, 2007 10:23 AM UTC
Thanks, it works fine.
>Hi Simon,
Using the StyleInfo.Interior property to specify a solid backcolor, gradient, or pattern style with both back and forecolor for a cell's background.The default value for the Interior property is SystemColors.Window. The property affects the behavior or appearance of the all built-in cell types. Below code snippet from the GridStyleInfo.cs class sets designtime editor for Interior property in a grid.
[
Description("Lets you specify a solid backcolor, gradient, or pattern style with both back and forecolor for a cell's background."),
Browsable(true),
SRCategory("StyleCategoryAppearance"),
NotifyParentProperty(true)
]
public BrushInfo Interior
{
[DebuggerStepThrough()]
get
{
return (BrushInfo) GetValue(GridStyleInfoStore.InteriorProperty);
}
set
{
SetValue(GridStyleInfoStore.InteriorProperty, value);
}
}
Let me know if this helps.
Best Regards,
Haneef