Class DataGridHeaderStyle
- Namespace
- Myra.Graphics2D.UI.Styles
- Assembly
- Myra.dll
Defines the visual style of DataGrid header cells, including the header label appearance and the images used for the sort indicators.
public class DataGridHeaderStyle : ButtonStyle
- Inheritance
-
DataGridHeaderStyle
- Inherited Members
Constructors
DataGridHeaderStyle()
Initializes a new instance of the DataGridHeaderStyle class.
public DataGridHeaderStyle()
DataGridHeaderStyle(DataGridHeaderStyle)
Initializes a new instance of the DataGridHeaderStyle class as a deep copy of the specified style.
public DataGridHeaderStyle(DataGridHeaderStyle style)
Parameters
styleDataGridHeaderStyleThe style to copy.
Properties
ContentPadding
Gets or sets the padding applied around the header cell content.
public Thickness ContentPadding { get; set; }
Property Value
LabelStyle
Gets or sets the style applied to the header text labels.
public LabelStyle LabelStyle { get; set; }
Property Value
SortAscendingImage
Gets or sets the image displayed next to the header when the column is sorted ascending.
public IImage SortAscendingImage { get; set; }
Property Value
SortDescendingImage
Gets or sets the image displayed next to the header when the column is sorted descending.
public IImage SortDescendingImage { get; set; }
Property Value
SortImageTextSpacing
Gets or sets the spacing between the header text and the sort indicator image.
public int SortImageTextSpacing { get; set; }
Property Value
Methods
Clone()
Creates a deep copy of this DataGrid header style.
public override WidgetStyle Clone()
Returns
- WidgetStyle
A new DataGridHeaderStyle instance with the same properties.