Class AutoFormat
Represents a class for defining automatic formatting options for UI elements.
Inheritance
Inherited Members
Namespace: Syncfusion.EJ2.TreeGridExport
Assembly: Syncfusion.EJ2.GridExport.dll
Syntax
public class AutoFormat
Remarks
This class provides a comprehensive set of properties that allow customization of various formatting aspects of UI elements, such as font styles, colors, and backgrounds. These options can be applied to different parts of the UI, like headers, content, rows, and captions. The class also includes methods to set themes based on the specified properties, which can be used for consistent theming across the application.
Constructors
AutoFormat()
Declaration
public AutoFormat()
Properties
AltRowBgColor
Gets or sets a value that specifies the background EJ2Color.Color for an alternate row.
Declaration
public Color AltRowBgColor { get; set; }
Property Value
Type |
---|
System.Drawing.Color |
BlockBGColor
Gets or sets a value that specifies the background EJ2Color.Color for the block section.
Declaration
public Color BlockBGColor { get; set; }
Property Value
Type |
---|
System.Drawing.Color |
BorderSize
Gets or sets a value that indicates the border-size for an element with four values.
Declaration
public int BorderSize { get; set; }
Property Value
Type |
---|
System.Int32 |
BorderType
Gets or sets a value that indicates the border-type for an element.
Declaration
public string BorderType { get; set; }
Property Value
Type |
---|
System.String |
CaptionBGColor
Gets or sets a value that specifies the background EJ2Color.Color for the caption.
Declaration
public Color CaptionBGColor { get; set; }
Property Value
Type |
---|
System.Drawing.Color |
ContentBgColor
Gets or sets a value that specifies the background EJ2Color.Color for the group header.
Declaration
public Color ContentBgColor { get; set; }
Property Value
Type |
---|
System.Drawing.Color |
ContentBorderColor
Gets or sets a value that specifies the border EJ2Color.Color for the content.
Declaration
public Color ContentBorderColor { get; set; }
Property Value
Type |
---|
System.Drawing.Color |
ContentFontColor
Gets or sets a value that specifies the font EJ2Color.Color for the content.
Declaration
public Color ContentFontColor { get; set; }
Property Value
Type |
---|
System.Drawing.Color |
ContentFontSize
Gets or sets a value that specifies the font size for the content.
Declaration
public int ContentFontSize { get; set; }
Property Value
Type |
---|
System.Int32 |
ContentFontWeight
Gets or sets how thick or thin characters in content should be displayed.
Declaration
public string ContentFontWeight { get; set; }
Property Value
Type |
---|
System.String |
DefaultBgEndColor
Gets or sets a value that specifies the default background end EJ2Color.Color for an element.
Declaration
public Color DefaultBgEndColor { get; set; }
Property Value
Type |
---|
System.Drawing.Color |
DefaultBgStColor
Gets or sets a value that specifies the default background start EJ2Color.Color for an element.
Declaration
public Color DefaultBgStColor { get; set; }
Property Value
Type |
---|
System.Drawing.Color |
DefaultBorderColor
Gets or sets a value that specifies the default border EJ2Color.Color for an element.
Declaration
public Color DefaultBorderColor { get; set; }
Property Value
Type |
---|
System.Drawing.Color |
DefaultFontColor
Gets or sets a value that specifies the default font EJ2Color.Color for an element.
Declaration
public Color DefaultFontColor { get; set; }
Property Value
Type |
---|
System.Drawing.Color |
FontFamily
Gets or sets a value that indicates the font-family for an element.
Declaration
public string FontFamily { get; set; }
Property Value
Type |
---|
System.String |
FontSize
Gets or sets a value that indicates the font-size for an element.
Declaration
public int FontSize { get; set; }
Property Value
Type |
---|
System.Int32 |
GCaptionBorderColor
Gets or sets a value that specifies the border EJ2Color.Color for the groupcaption.
Declaration
public Color GCaptionBorderColor { get; set; }
Property Value
Type |
---|
System.Drawing.Color |
GContentBgColor
Gets or sets a value that specifies the background EJ2Color.Color for the content.
Declaration
public Color GContentBgColor { get; set; }
Property Value
Type |
---|
System.Drawing.Color |
GContentFontColor
Gets or sets a value that specifies the font EJ2Color.Color for the groupcontent.
Declaration
public Color GContentFontColor { get; set; }
Property Value
Type |
---|
System.Drawing.Color |
GDropareaBorderColor
Gets or sets a value that specifies the border EJ2Color.Color for the groupdroparea.
Declaration
public Color GDropareaBorderColor { get; set; }
Property Value
Type |
---|
System.Drawing.Color |
GDropareaEndBgColor
Gets or sets a value that specifies the background end EJ2Color.Color for the groupdroparea.
Declaration
public Color GDropareaEndBgColor { get; set; }
Property Value
Type |
---|
System.Drawing.Color |
GDropareaFontColor
Gets or sets a value that specifies the font EJ2Color.Color for the groupdroparea.
Declaration
public Color GDropareaFontColor { get; set; }
Property Value
Type |
---|
System.Drawing.Color |
GDropareaStBgColor
Gets or sets a value that specifies the background start EJ2Color.Color for the groupdroparea.
Declaration
public Color GDropareaStBgColor { get; set; }
Property Value
Type |
---|
System.Drawing.Color |
GHeaderBgColor
Gets or sets a value that specifies the background EJ2Color.Color for the group header.
Declaration
public Color GHeaderBgColor { get; set; }
Property Value
Type |
---|
System.Drawing.Color |
GHeaderBorderColor
Gets or sets a value that specifies the border EJ2Color.Color for the group header.
Declaration
public Color GHeaderBorderColor { get; set; }
Property Value
Type |
---|
System.Drawing.Color |
GHeaderFontColor
Gets or sets a value that specifies the font EJ2Color.Color for the group header.
Declaration
public Color GHeaderFontColor { get; set; }
Property Value
Type |
---|
System.Drawing.Color |
GHeaderFontSize
Gets or sets a value that specifies the font size for the group header.
Declaration
public int GHeaderFontSize { get; set; }
Property Value
Type |
---|
System.Int32 |
HeaderBgEndColor
Gets or sets a value that specifies the background end EJ2Color.Color for header element.
Declaration
public Color HeaderBgEndColor { get; set; }
Property Value
Type |
---|
System.Drawing.Color |
HeaderBgStColor
Gets or sets a value that specifies the background start EJ2Color.Color for header element.
Declaration
public Color HeaderBgStColor { get; set; }
Property Value
Type |
---|
System.Drawing.Color |
HeaderBorderBottomColor
Gets or sets a value that specifies the border bottom EJ2Color.Color for header element.
Declaration
public Color HeaderBorderBottomColor { get; set; }
Property Value
Type |
---|
System.Drawing.Color |
HeaderBorderColor
Gets or sets a value that specifies the border EJ2Color.Color for header element.
Declaration
public Color HeaderBorderColor { get; set; }
Property Value
Type |
---|
System.Drawing.Color |
HeaderFontColor
Gets or sets a value that specifies the font EJ2Color.Color for header element.
Declaration
public Color HeaderFontColor { get; set; }
Property Value
Type |
---|
System.Drawing.Color |
HeaderFontSize
Gets or sets a value that specifies the font size for header element.
Declaration
public int HeaderFontSize { get; set; }
Property Value
Type |
---|
System.Int32 |
HeaderFontWeight
Gets or sets how thick or thin characters in text should be displayed for header element.
Declaration
public string HeaderFontWeight { get; set; }
Property Value
Type |
---|
System.String |
RowBorderColor
Gets or sets a value that specifies the border EJ2Color.Color for an row.
Declaration
public Color RowBorderColor { get; set; }
Property Value
Type |
---|
System.Drawing.Color |
RowSelectionBgColor
Gets or sets a value that specifies the font EJ2Color.Color for an row selecting.
Declaration
public Color RowSelectionBgColor { get; set; }
Property Value
Type |
---|
System.Drawing.Color |
RowSelectionFontColor
Gets or sets a value that specifies the font EJ2Color.Color for an row selected.
Declaration
public Color RowSelectionFontColor { get; set; }
Property Value
Type |
---|
System.Drawing.Color |
Methods
SetTheme(AutoFormat, String)
Declaration
public void SetTheme(AutoFormat autoFormat, string theme)
Parameters
Type | Name | Description |
---|---|---|
AutoFormat | autoFormat | |
System.String | theme |