New to Telerik UI for WinForms? Start 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

Property descriptor for the second color used by the custom cell fill.

C#
public static RadProperty BackColor2Property

Property descriptor for the third color used by the custom cell fill.

C#
public static RadProperty BackColor3Property

Property descriptor for the fourth color used by the custom cell fill.

C#
public static RadProperty BackColor4Property

Property descriptor for the first color used by the custom cell fill.

C#
public static RadProperty BackColorProperty

Property descriptor for the custom cell border's bottom-edge color.

C#
public static RadProperty BorderBottomColorProperty

Property descriptor for the width of the custom cell border's bottom edge.

C#
public static RadProperty BorderBottomWidthProperty

Property descriptor for the box style used to draw the custom cell border.

C#
public static RadProperty BorderBoxStyleProperty

Property descriptor for the second color used by the custom cell border.

C#
public static RadProperty BorderColor2Property

Property descriptor for the third color used by the custom cell border.

C#
public static RadProperty BorderColor3Property

Property descriptor for the fourth color used by the custom cell border.

C#
public static RadProperty BorderColor4Property

Property descriptor for the first color used by the custom cell border.

C#
public static RadProperty BorderColorProperty

Property descriptor for the angle of the custom cell border gradient.

C#
public static RadProperty BorderGradientAngleProperty

Property descriptor for the gradient mode used by the custom cell border.

C#
public static RadProperty BorderGradientStyleProperty

Property descriptor for the second color used by the custom cell's inner border.

C#
public static RadProperty BorderInnerColor2Property

Property descriptor for the third color used by the custom cell's inner border.

C#
public static RadProperty BorderInnerColor3Property

Property descriptor for the fourth color used by the custom cell's inner border.

C#
public static RadProperty BorderInnerColor4Property

Property descriptor for the first color used by the custom cell's inner border.

C#
public static RadProperty BorderInnerColorProperty

Property descriptor for the custom cell border's left-edge color.

C#
public static RadProperty BorderLeftColorProperty

Property descriptor for the width of the custom cell border's left edge.

C#
public static RadProperty BorderLeftWidthProperty

Property descriptor for the custom cell border's right-edge color.

C#
public static RadProperty BorderRightColorProperty

Property descriptor for the width of the custom cell border's right edge.

C#
public static RadProperty BorderRightWidthProperty

Property descriptor for the custom cell border's top-edge color.

C#
public static RadProperty BorderTopColorProperty

Property descriptor for the width of the custom cell border's top edge.

C#
public static RadProperty BorderTopWidthProperty

Property descriptor for the overall width of the custom cell border.

C#
public static RadProperty BorderWidthProperty

Property descriptor for the flag that enables this style's border settings on the cell.

C#
public static RadProperty CustomizeBorderProperty

Property descriptor for the flag that enables this style's fill settings on the cell.

C#
public static RadProperty CustomizeFillProperty

Property descriptor for whether the custom cell border is drawn when border customization is enabled.

C#
public static RadProperty DrawBorderProperty

Property descriptor for whether the custom cell fill is drawn when fill customization is enabled.

C#
public static RadProperty DrawFillProperty

Property descriptor for a cell-specific font; the cell element applies it only when set locally.

C#
public static RadProperty FontProperty

Property descriptor for the foreground color applied to a cell with this style.

C#
public static RadProperty ForeColorProperty

Property descriptor for the angle of the custom cell fill gradient.

C#
public static RadProperty GradientAngleProperty

Property descriptor for the second transition percentage used by the custom cell fill.

C#
public static RadProperty GradientPercentage2Property

Property descriptor for the first transition percentage used by the custom cell fill.

C#
public static RadProperty GradientPercentageProperty

Property descriptor for the gradient mode used by the custom cell fill.

C#
public static RadProperty GradientStyleProperty

Property descriptor for the number of colors used by the custom cell fill.

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

Persists a changed style property to the owning cell and invalidates its row.

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

The property change notification.

Overrides: RadObject.OnPropertyChanged(RadPropertyChangedEventArgs)

Reset cell's style to its initial state.

C#
public void Reset()