Skip to main content
A newer version of this page is available. .

UserLookAndFeel.SetStyle(LookAndFeelStyle, Boolean, Boolean) Method

Sets the look and feel settings of the current object.

Namespace: DevExpress.LookAndFeel

Assembly: DevExpress.Utils.v19.1.dll

Declaration

public void SetStyle(
    LookAndFeelStyle style,
    bool useWindowsXPTheme,
    bool useDefaultLookAndFeel
)

Parameters

Name Type Description
style LookAndFeelStyle

A LookAndFeelStyle enumeration value which specifies the style of the current object.

useWindowsXPTheme Boolean

true if a control should be painted using the WindowsXP theme; otherwise, false.

useDefaultLookAndFeel Boolean

true to use the look and feel settings provided by the parent object or default look and feel object; false to apply the current object’s settings.

Remarks

This method sets the UserLookAndFeel.Style, UserLookAndFeel.UseWindowsXPTheme and UserLookAndFeel.UseDefaultLookAndFeel properties to match the values of the corresponding parameters.

See Also