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

UserLookAndFeel.SetStyle(LookAndFeelStyle, Boolean, Boolean, String, Boolean, Single) Method

OBSOLETE

This method is obsolete. Use the SetStyle method without the touchUI and touchScaleFactor parameters. To enable Touch UI and TouchScaleFactor, use the WindowsFormsSettings.TouchUIMode and WindowsFormsSettings.TouchScaleFactor properties.

Sets the look and feel settings of the current object to the specified values.

Namespace: DevExpress.LookAndFeel

Assembly: DevExpress.Utils.v19.1.dll

Declaration

[Browsable(false)]
[Obsolete("This method is obsolete. Use the SetStyle method without the touchUI and touchScaleFactor parameters. To enable Touch UI and TouchScaleFactor, use the WindowsFormsSettings.TouchUIMode and WindowsFormsSettings.TouchScaleFactor properties.")]
public void SetStyle(
    LookAndFeelStyle style,
    bool useWindowsXPTheme,
    bool useDefaultLookAndFeel,
    string skinName,
    bool touchUI,
    float touchScaleFactor
)

Parameters

Name Type Description
style LookAndFeelStyle

A LookAndFeelStyle enumeration value which specifies the style of the current object. This value is assigned to the UserLookAndFeel.Style property.

useWindowsXPTheme Boolean

true, if a control should be painted using the WindowsXP theme; otherwise, false. This value is assigned to the UserLookAndFeel.UseWindowsXPTheme property.

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. This value is assigned to the UserLookAndFeel.UseDefaultLookAndFeel property.

skinName String

A string value specifying the skin name. This value is assigned to the UserLookAndFeel.SkinName property.

touchUI Boolean

true, to enable the touch-aware mode; otherwise, false. This value is assigned to the TouchUIMode property.

touchScaleFactor Single

The scale factor applied when touch-aware mode is enabled. This value is assigned to the WindowsFormsSettings.TouchScaleFactor property.

See Also