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
styleDataGridStyleThe style to copy.
Properties
CheckCellStyle
Gets or sets the style applied to check box cell content.
public ImageStyle CheckCellStyle { get; set; }
Property Value
FilterStyle
Gets or sets the style applied to the filter row text inputs.
public TextBoxStyle FilterStyle { get; set; }
Property Value
HeaderStyle
Gets or sets the style applied to the header cells.
public DataGridHeaderStyle HeaderStyle { get; set; }
Property Value
ImageCellStyle
Gets or sets the style applied to image cell content.
public WidgetStyle ImageCellStyle { get; set; }
Property Value
TextCellStyle
Gets or sets the style applied to text cell content.
public LabelStyle TextCellStyle { get; set; }
Property Value
VerticalScrollBackground
Gets or sets the image used for the vertical scrollbar track background.
public IImage VerticalScrollBackground { get; set; }
Property Value
VerticalScrollKnob
Gets or sets the image used for the vertical scrollbar thumb (knob).
public IImage VerticalScrollKnob { get; set; }
Property Value
Methods
Clone()
Creates a deep copy of this DataGrid style.
public override WidgetStyle Clone()
Returns
- WidgetStyle
A new DataGridStyle instance with the same properties.