Table of Contents

Class DataGridStyle

Namespace
Myra.Graphics2D.UI.Styles
Assembly
Myra.dll

Defines the visual style for a DataGrid widget, including the header, filter, and cell styles, as well as scrollbar appearance.

public class DataGridStyle : GridStyle
Inheritance
DataGridStyle
Inherited Members

Constructors

DataGridStyle()

Initializes a new instance of the DataGridStyle class.

public DataGridStyle()

DataGridStyle(DataGridStyle)

Initializes a new instance of the DataGridStyle class as a deep copy of the specified style.

public DataGridStyle(DataGridStyle style)

Parameters

style DataGridStyle

The style to copy.

Properties

CheckCellStyle

Gets or sets the style applied to check box cell content.

public ImageStyle CheckCellStyle { get; set; }

Property Value

ImageStyle

FilterStyle

Gets or sets the style applied to the filter row text inputs.

public TextBoxStyle FilterStyle { get; set; }

Property Value

TextBoxStyle

HeaderStyle

Gets or sets the style applied to the header cells.

public DataGridHeaderStyle HeaderStyle { get; set; }

Property Value

DataGridHeaderStyle

ImageCellStyle

Gets or sets the style applied to image cell content.

public WidgetStyle ImageCellStyle { get; set; }

Property Value

WidgetStyle

TextCellStyle

Gets or sets the style applied to text cell content.

public LabelStyle TextCellStyle { get; set; }

Property Value

LabelStyle

VerticalScrollBackground

Gets or sets the image used for the vertical scrollbar track background.

public IImage VerticalScrollBackground { get; set; }

Property Value

IImage

VerticalScrollKnob

Gets or sets the image used for the vertical scrollbar thumb (knob).

public IImage VerticalScrollKnob { get; set; }

Property Value

IImage

Methods

Clone()

Creates a deep copy of this DataGrid style.

public override WidgetStyle Clone()

Returns

WidgetStyle

A new DataGridStyle instance with the same properties.