New to Telerik UI for WinFormsStart a free 30-day trial

Represents the style of a grid cell.

Definition

Namespace:Telerik.WinControls.UI

Assembly:Telerik.WinControls.GridView.dll

Syntax:

C#
public class GridViewCellStyle : RadObject, IDisposable, INotifyPropertyChanged, ICustomTypeDescriptor

Inheritance: objectDisposableObjectRadObjectGridViewCellStyle

Implements: ICustomTypeDescriptorIDisposableINotifyPropertyChanged

Inherited Members RadObject.BindingContextPropertyRadObject.RadTypeRadObject.ReplaceDefaultDescriptors(PropertyDescriptorCollection)RadObject.DisposeManagedResources()RadObject.ClearPropertyStore()RadObject.SuspendPropertyNotifications()RadObject.ResumePropertyNotifications()RadObject.GetPropertyValue(RadProperty)RadObject.SetDefaultValueOverride(RadProperty, object)RadObject.GetValue(RadProperty)RadObject.SetValue(RadProperty, object)RadObject.ResetValue(RadProperty)RadObject.ResetLocalValue(RadProperty)RadObject.ResetValue(RadProperty, ValueResetFlags)RadObject.UpdateValue(RadProperty)RadObject.GetValueSource(RadProperty)RadObject.GetRegisteredRadProperty(string)RadObject.UpdateValueCore(RadPropertyValue)RadObject.SetValueCore(RadPropertyValue, object, object, ValueSource)RadObject.ResetValueCore(RadPropertyValue, ValueResetFlags)RadObject.GetDefaultValue(RadPropertyValue, object)RadObject.CoerceValue(RadPropertyValue, object)RadObject.ShouldSerializeProperty(RadProperty)RadObject.CanRaisePropertyChangeNotifications(RadPropertyValue)RadObject.BindProperty(RadProperty, RadObject, RadProperty, PropertyBindingOptions)RadObject.UnbindProperty(RadProperty)RadObject.AddStylePropertySetting(IPropertySetting)RadObject.GetInheritedValue(RadProperty)RadObject.OnPropertyChanging(RadPropertyChangingEventArgs)RadObject.OnNotifyPropertyChanged(string)RadObject.OnNotifyPropertyChanged(PropertyChangedEventArgs)RadObject.OnShouldSerializeProperty(ShouldSerializePropertyEventArgs)RadObject.IsPropertyCancelable(RadPropertyMetadata)RadObject.PropertyValuesRadObject.PropertyFilterRadObject.RadObjectTypeRadObject.BindingContextRadObject.PropertyChangedRadObject.RadPropertyChangedRadObject.RadPropertyChangingDisposableObject.GetBitState(long)DisposableObject.SetBitState(long, bool)DisposableObject.OnBitStateChanged(long, bool, bool)DisposableObject.Dispose()DisposableObject.Dispose(bool)DisposableObject.PerformDispose(bool)DisposableObject.DisposeUnmanagedResources()DisposableObject.BitStateDisposableObject.EventsDisposableObject.IsDisposingDisposableObject.IsDisposedDisposableObject.DisposedDisposableObject.Disposing...

Constructors

Initializes a new instance of the GridViewCellStyle class.

C#
public GridViewCellStyle()

Initializes a new instance of the GridViewCellStyle class.

C#
public GridViewCellStyle(GridViewCellInfo ownerCell)
Parameters:ownerCellGridViewCellInfo

The owner cell.

Fields

C#
public static RadProperty BackColor2Property
C#
public static RadProperty BackColor3Property
C#
public static RadProperty BackColor4Property
C#
public static RadProperty BackColorProperty
C#
public static RadProperty BorderBottomColorProperty
C#
public static RadProperty BorderBottomWidthProperty
C#
public static RadProperty BorderBoxStyleProperty
C#
public static RadProperty BorderColor2Property
C#
public static RadProperty BorderColor3Property
C#
public static RadProperty BorderColor4Property
C#
public static RadProperty BorderColorProperty
C#
public static RadProperty BorderGradientAngleProperty
C#
public static RadProperty BorderGradientStyleProperty
C#
public static RadProperty BorderInnerColor2Property
C#
public static RadProperty BorderInnerColor3Property
C#
public static RadProperty BorderInnerColor4Property
C#
public static RadProperty BorderInnerColorProperty
C#
public static RadProperty BorderLeftColorProperty
C#
public static RadProperty BorderLeftWidthProperty
C#
public static RadProperty BorderRightColorProperty
C#
public static RadProperty BorderRightWidthProperty
C#
public static RadProperty BorderTopColorProperty
C#
public static RadProperty BorderTopWidthProperty
C#
public static RadProperty BorderWidthProperty
C#
public static RadProperty CustomizeBorderProperty
C#
public static RadProperty CustomizeFillProperty
C#
public static RadProperty DrawBorderProperty
C#
public static RadProperty DrawFillProperty
C#
public static RadProperty FontProperty
C#
public static RadProperty ForeColorProperty
C#
public static RadProperty GradientAngleProperty
C#
public static RadProperty GradientPercentage2Property
C#
public static RadProperty GradientPercentageProperty
C#
public static RadProperty GradientStyleProperty
C#
public static RadProperty NumberOfColorsProperty

Properties

Gets or sets the color of the back.

C#
public Color BackColor { get; set; }
Property Value:

The color of the back.

Gets or sets the back color2.

C#
public Color BackColor2 { get; set; }
Property Value:

The back color2.

Gets or sets the back color3.

C#
public Color BackColor3 { get; set; }
Property Value:

The back color3.

Gets or sets the back color4.

C#
public Color BackColor4 { get; set; }
Property Value:

The back color4.

Gets or sets the color of the bottom border.

C#
public Color BorderBottomColor { get; set; }
Property Value:

The color of the border bottom.

Gets or sets the width of the bottom border.

C#
public float BorderBottomWidth { get; set; }
Property Value:

The width of the border bottom.

Gets or sets the border box style.

C#
public BorderBoxStyle BorderBoxStyle { get; set; }
Property Value:

The border box style.

Gets or sets the color of the border.

C#
public Color BorderColor { get; set; }
Property Value:

The color of the border.

Gets or sets the border color2.

C#
public Color BorderColor2 { get; set; }
Property Value:

The border color2.

Gets or sets the border color3.

C#
public Color BorderColor3 { get; set; }
Property Value:

The border color3.

Gets or sets the border color4.

C#
public Color BorderColor4 { get; set; }
Property Value:

The border color4.

Gets or sets the border gradient angle.

C#
public float BorderGradientAngle { get; set; }
Property Value:

The border gradient angle.

Gets or sets the border gradient style.

C#
public GradientStyles BorderGradientStyle { get; set; }
Property Value:

The border gradient style.

Gets or sets the color of the inner border.

C#
public Color BorderInnerColor { get; set; }
Property Value:

The color of the inner border.

Gets or sets the border inner color2.

C#
public Color BorderInnerColor2 { get; set; }
Property Value:

The border inner color2.

Gets or sets the border inner color3.

C#
public Color BorderInnerColor3 { get; set; }
Property Value:

The border inner color3.

Gets or sets the border inner color4.

C#
public Color BorderInnerColor4 { get; set; }
Property Value:

The border inner color4.

Gets or sets the color of the left border.

C#
public Color BorderLeftColor { get; set; }
Property Value:

The color of the border left.

Gets or sets the width of the left border.

C#
public float BorderLeftWidth { get; set; }
Property Value:

The width of the left border.

Gets or sets the color of the right border.

C#
public Color BorderRightColor { get; set; }
Property Value:

The color of the border right.

Gets or sets the width of the right border.

C#
public float BorderRightWidth { get; set; }
Property Value:

The width of the border right.

Gets or sets the color of the top border.

C#
public Color BorderTopColor { get; set; }
Property Value:

The color of the border top.

Gets or sets the width of the top border.

C#
public float BorderTopWidth { get; set; }
Property Value:

The width of the top border.

Gets or sets the width of the border.

C#
public float BorderWidth { get; set; }
Property Value:

The width of the border.

Gets or sets whether to customize the border.

C#
public bool CustomizeBorder { get; set; }
Property Value:

The customize border.

Gets or sets whether to customize the fill.

C#
public bool CustomizeFill { get; set; }
Property Value:

The customize fill.

Gets or sets whether to draw the border.

C#
public bool DrawBorder { get; set; }
Property Value:

The draw border.

Gets or sets whether to draw the fill.

C#
public bool DrawFill { get; set; }
Property Value:

The draw fill.

Gets or sets the font.

C#
public Font Font { get; set; }
Property Value:

The font.

Gets or sets the color of the fore.

C#
public Color ForeColor { get; set; }
Property Value:

The color of the fore.

Gets or sets the gradient angle.

C#
public float GradientAngle { get; set; }
Property Value:

The gradient angle.

Gets or sets the gradient percentage.

C#
public float GradientPercentage { get; set; }
Property Value:

The gradient percentage.

Gets or sets the gradient percentage2.

C#
public float GradientPercentage2 { get; set; }
Property Value:

The gradient percentage2.

Gets or sets the gradient style.

C#
public GradientStyles GradientStyle { get; set; }
Property Value:

The gradient style.

Gets or sets the number of colors.

C#
public int NumberOfColors { get; set; }
Property Value:

The number of colors.

Methods

Raises the RadPropertyChanged event and the standard .NET PropertyChanged event to notify subscribers of property value changes.

C#
protected override void OnPropertyChanged(RadPropertyChangedEventArgs e)
Parameters:eRadPropertyChangedEventArgs

The RadPropertyChangedEventArgs containing information about the property change.

Overrides: RadObject.OnPropertyChanged(RadPropertyChangedEventArgs)

Reset cell's style to its initial state.

C#
public void Reset()