menu

WinForms

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

    Show / Hide Table of Contents

    Class GridVisualStylesVista

    Implements the functionalities of Vista look and feel.

    Inheritance
    System.Object
    NonFinalizeDisposable
    Disposable
    GridVisualStylesVista
    Implements
    System.IDisposable
    IVisualStylesDrawing
    Inherited Members
    NonFinalizeDisposable.Dispose()
    NonFinalizeDisposable.Dispose(Boolean)
    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.GridHelperClasses
    Assembly: Syncfusion.GridHelperClasses.Windows.dll
    Syntax
    public class GridVisualStylesVista : Disposable, IDisposable, IVisualStylesDrawing

    Constructors

    GridVisualStylesVista(GridVisualStyles)

    Creates a new instance of GridVisualStylesVista class.

    Declaration
    public GridVisualStylesVista(GridVisualStyles style)
    Parameters
    Type Name Description
    GridVisualStyles style

    The current visual style.

    Properties

    ThemeName

    Gets the current theme name.

    Declaration
    public string ThemeName { get; }
    Property Value
    Type
    System.String

    VisualStyle

    Gets the current VisualStyles.

    Declaration
    public GridVisualStyles VisualStyle { get; }
    Property Value
    Type
    GridVisualStyles

    Methods

    DrawCheckBoxStyle(Graphics, Rectangle, ButtonState, Boolean)

    Draws the CheckBox skins

    Declaration
    public void DrawCheckBoxStyle(Graphics g, Rectangle rect, ButtonState state, bool mixedState)
    Parameters
    Type Name Description
    System.Drawing.Graphics g

    A System.Drawing.Graphics object.

    System.Drawing.Rectangle rect

    A System.Drawing.Rectangle object that represents the drawing area.

    System.Windows.Forms.ButtonState state

    The current state of the checkbox

    System.Boolean mixedState

    Specifies whether the button is tri-stated.

    DrawCheckBoxStyle(Graphics, Rectangle, ButtonState, Boolean, Boolean)

    Draws the CheckBox skins.

    Declaration
    public void DrawCheckBoxStyle(Graphics g, Rectangle rect, ButtonState state, bool mixedState, bool intermediate)
    Parameters
    Type Name Description
    System.Drawing.Graphics g

    A System.Drawing.Graphics object.

    System.Drawing.Rectangle rect

    A System.Drawing.Rectangle object that represents the drawing area.

    System.Windows.Forms.ButtonState state

    The current state of the checkbox

    System.Boolean mixedState

    Specifies whether the button is tri-stated.

    System.Boolean intermediate

    Specifies whether the button is intermediate state

    DrawComboBoxStyle(Graphics, Rectangle, ThemedComboBoxDrawing.DropDownState, Color)

    Draws the ComboBox skins.

    Declaration
    public void DrawComboBoxStyle(Graphics g, Rectangle rect, ThemedComboBoxDrawing.DropDownState state, Color clrBack)
    Parameters
    Type Name Description
    System.Drawing.Graphics g

    A System.Drawing.Graphics object.

    System.Drawing.Rectangle rect

    A System.Drawing.Rectangle object that represents the drawing area.

    ThemedComboBoxDrawing.DropDownState state

    The current state of the combo button.

    System.Drawing.Color clrBack

    Arrow color.

    DrawHeaderStyle(Graphics, Rectangle, ThemedHeaderDrawing.HeaderState)

    Draws the header skins.

    Declaration
    public void DrawHeaderStyle(Graphics g, Rectangle rect, ThemedHeaderDrawing.HeaderState state)
    Parameters
    Type Name Description
    System.Drawing.Graphics g

    A System.Drawing.Graphics object.

    System.Drawing.Rectangle rect

    A System.Drawing.Rectangle object that represents the drawing area.

    ThemedHeaderDrawing.HeaderState state

    The current state of the header.

    DrawPushButtonStyle(Graphics, Rectangle, ButtonState)

    Draws the PushButton skins.

    Declaration
    public void DrawPushButtonStyle(Graphics g, Rectangle rect, ButtonState state)
    Parameters
    Type Name Description
    System.Drawing.Graphics g

    A System.Drawing.Graphics object.

    System.Drawing.Rectangle rect

    A System.Drawing.Rectangle object that represents the drawing area.

    System.Windows.Forms.ButtonState state

    The current state of the button.

    DrawRadioStyle(Graphics, Rectangle, ButtonState)

    Draws the RadioButton skins

    Declaration
    public void DrawRadioStyle(Graphics g, Rectangle rect, ButtonState state)
    Parameters
    Type Name Description
    System.Drawing.Graphics g

    A System.Drawing.Graphics object.

    System.Drawing.Rectangle rect

    A System.Drawing.Rectangle object that represents the drawing area.

    System.Windows.Forms.ButtonState state

    The current state of the radio button

    DrawSpinButtonStyle(Graphics, Rectangle, ButtonID, ButtonState, Color)

    Draws the SpinButton skins.

    Declaration
    public void DrawSpinButtonStyle(Graphics g, Rectangle rect, ButtonID btnId, ButtonState btnState, Color clrBack)
    Parameters
    Type Name Description
    System.Drawing.Graphics g

    A System.Drawing.Graphics object.

    System.Drawing.Rectangle rect

    A System.Drawing.Rectangle object that represents the drawing area.

    ButtonID btnId

    An integer that represents the type of the button.

    System.Windows.Forms.ButtonState btnState

    The current state of the spin button.

    System.Drawing.Color clrBack

    Arrow color.

    GetGroupDropAreaColors(out Color, out Color, out Color)

    Returns the back color and header interior for GroupDropArea.

    Declaration
    public bool GetGroupDropAreaColors(out Color backColor, out Color headerBorderTop, out Color headerBorderLeft)
    Parameters
    Type Name Description
    System.Drawing.Color backColor

    The back color for GroupDropArea.

    System.Drawing.Color headerBorderTop

    The top border color for GroupDropArea header.

    System.Drawing.Color headerBorderLeft

    The left border color for GroupDropArea header.

    Returns
    Type Description
    System.Boolean

    The Boolean value.

    GetHeaderBorderColors(out Color, out Color, out Color, out Color)

    Returns the Header Border Colors.

    Declaration
    public bool GetHeaderBorderColors(out Color clrBottom, out Color clrRight, out Color clrInteriorFirst, out Color clrInteriorLast)
    Parameters
    Type Name Description
    System.Drawing.Color clrBottom

    The bottom border color.

    System.Drawing.Color clrRight

    The right border color.

    System.Drawing.Color clrInteriorFirst

    The gradient start color for the header interior.

    System.Drawing.Color clrInteriorLast

    The gradient end color for the header interior.

    Returns
    Type Description
    System.Boolean

    A Boolean value.

    GetSortIconBrush(out Brush, out Pen)

    Returns the SortIcon interior.

    Declaration
    public void GetSortIconBrush(out Brush brush, out Pen pen)
    Parameters
    Type Name Description
    System.Drawing.Brush brush

    The brush used to fill the sort icon.

    System.Drawing.Pen pen

    The pen used to draw the sort icon.

    Implements

    System.IDisposable
    IVisualStylesDrawing
    Back to top Generated by DocFX
    Copyright © 2001 - 2025 Syncfusion Inc. All Rights Reserved