menu

WinForms

  • Code Examples
  • Upgrade Guide
  • User Guide
  • Demos
  • Support
  • Forums
  • Download
Class GridImportTableStyleConverter - WindowsForms API Reference | Syncfusion

    Show / Hide Table of Contents

    Class GridImportTableStyleConverter

    Provides support to import the style of the tables defined in the Excel sheet.

    Inheritance
    System.Object
    GridImportTableStyleConverter
    Inherited Members
    System.Object.Equals(System.Object)
    System.Object.Equals(System.Object, System.Object)
    System.Object.GetHashCode()
    System.Object.GetType()
    System.Object.MemberwiseClone()
    System.Object.ReferenceEquals(System.Object, System.Object)
    System.Object.ToString()
    Namespace: Syncfusion.GridConverter
    Assembly: Syncfusion.GridConverter.Windows.dll
    Syntax
    public class GridImportTableStyleConverter

    Constructors

    GridImportTableStyleConverter()

    Initializes a new instance of the GridImportTableStyleConverter class.

    Declaration
    public GridImportTableStyleConverter()

    Methods

    ApplyBorder(GridStyleInfo, GridImportTableStyleConverter.TableBorderStyle, Color)

    Applies the Excel table border style to grid.

    Declaration
    protected void ApplyBorder(GridStyleInfo cell, GridImportTableStyleConverter.TableBorderStyle tableBorderStyle, Color borderColor)
    Parameters
    Type Name Description
    GridStyleInfo cell

    the destination grid cell.

    GridImportTableStyleConverter.TableBorderStyle tableBorderStyle

    The source Excel table border style.

    System.Drawing.Color borderColor

    The color of the border.

    ApplyHeaderStyle(IListObject, GridStyleInfo, TableBuiltInStyles)

    Applies the header style to cell.

    Declaration
    protected void ApplyHeaderStyle(IListObject table, GridStyleInfo cell, TableBuiltInStyles tablestyle)
    Parameters
    Type Name Description
    IListObject table

    The Table.

    GridStyleInfo cell

    The Cell.

    TableBuiltInStyles tablestyle

    The Tablestyle.

    ApplyTableContentStyle(IListObject, GridStyleInfo, TableBuiltInStyles)

    Applies the table content style to Grid cells.

    Declaration
    protected void ApplyTableContentStyle(IListObject table, GridStyleInfo cell, TableBuiltInStyles tablestyle)
    Parameters
    Type Name Description
    IListObject table

    The Table.

    GridStyleInfo cell

    The Cell.

    TableBuiltInStyles tablestyle

    The Tablestyle.

    CheckForTableCell(IRange, GridStyleInfo, IWorksheet)

    Checks for the cells is in table.

    Declaration
    public bool CheckForTableCell(IRange range, GridStyleInfo cell, IWorksheet sheet)
    Parameters
    Type Name Description
    IRange range

    The source Excel sheet range.

    GridStyleInfo cell

    The destination grid cell.

    IWorksheet sheet

    The source Excel sheet.

    Returns
    Type Description
    System.Boolean

    True if Excel sheet range has Tables otherwise False.

    GetTableContentBackGround(TableBuiltInStyles, out Color, out Color, out Boolean)

    Gets the table content back ground.

    Declaration
    protected void GetTableContentBackGround(TableBuiltInStyles tablestyle, out Color firstBackgroundColor, out Color secondBackgroundColor, out bool entireRow)
    Parameters
    Type Name Description
    TableBuiltInStyles tablestyle

    The Tablestyle.

    System.Drawing.Color firstBackgroundColor

    First color of the background.

    System.Drawing.Color secondBackgroundColor

    Color of the second background.

    System.Boolean entireRow

    if set to true apply bockground to entire row.

    GetTableContentBorderStyle(TableBuiltInStyles, out GridImportTableStyleConverter.TableBorderStyle, out Color)

    Gets the table content border style.

    Declaration
    protected void GetTableContentBorderStyle(TableBuiltInStyles tablestyle, out GridImportTableStyleConverter.TableBorderStyle tableBorderStyle, out Color borderColor)
    Parameters
    Type Name Description
    TableBuiltInStyles tablestyle

    The Tablestyle.

    GridImportTableStyleConverter.TableBorderStyle tableBorderStyle

    The Table border style.

    System.Drawing.Color borderColor

    Color of the border.

    GetTableContentForeground(TableBuiltInStyles)

    Gets the table content foreground.

    Declaration
    protected Color GetTableContentForeground(TableBuiltInStyles tablestyle)
    Parameters
    Type Name Description
    TableBuiltInStyles tablestyle

    The Tablestyle.

    Returns
    Type Description
    System.Drawing.Color

    The color for the grid cell.

    GetTableHeaderBackGround(TableBuiltInStyles)

    Gets the table header background.

    Declaration
    protected Color GetTableHeaderBackGround(TableBuiltInStyles tablestyle)
    Parameters
    Type Name Description
    TableBuiltInStyles tablestyle

    The Tablestyle.

    Returns
    Type Description
    System.Drawing.Color

    The color for grid cell.

    GetTableHeaderBorderStyle(TableBuiltInStyles, out GridImportTableStyleConverter.TableBorderStyle, out Color)

    Gets the table header border style.

    Declaration
    protected void GetTableHeaderBorderStyle(TableBuiltInStyles tablestyle, out GridImportTableStyleConverter.TableBorderStyle tableBorderStyle, out Color borderColor)
    Parameters
    Type Name Description
    TableBuiltInStyles tablestyle

    The Tablestyle.

    GridImportTableStyleConverter.TableBorderStyle tableBorderStyle

    The Table border style.

    System.Drawing.Color borderColor

    Color of the border.

    GetTableHeaderForeground(TableBuiltInStyles)

    Gets the table header foreground.

    Declaration
    protected Color GetTableHeaderForeground(TableBuiltInStyles tablestyle)
    Parameters
    Type Name Description
    TableBuiltInStyles tablestyle

    The Tablestyle.

    Returns
    Type
    System.Drawing.Color
    Back to top Generated by DocFX
    Copyright © 2001 - 2025 Syncfusion Inc. All Rights Reserved