SystemParameters2 Class

Contains properties that you can use to query system settings of the non-client area of a window.

Inheritance Hierarchy

System.Object
  Microsoft.Windows.Shell.SystemParameters2

Namespace:  Microsoft.Windows.Shell
Assembly:  Microsoft.Windows.Shell (in Microsoft.Windows.Shell.dll)

Syntax

'Declaration
Public Class SystemParameters2 _
    Implements INotifyPropertyChanged
public class SystemParameters2 : INotifyPropertyChanged
public ref class SystemParameters2 : INotifyPropertyChanged
type SystemParameters2 =  
    class
        interface INotifyPropertyChanged
    end
public class SystemParameters2 implements INotifyPropertyChanged

The SystemParameters2 type exposes the following members.

Properties

  Name Description
Public propertyStatic member Current Gets an instance of the SystemParameters2 class.
Public property HighContrast Gets a value that indicates whether the high contrast feature is being used.
Public property IsGlassEnabled Gets a value that indicates whether glass window frames are being used.
Public property SmallIconSize Gets the recommended size, in pixels, of a small icon.
Public property UxThemeColor Gets the color theme name.
Public property UxThemeName Gets the theme name.
Public property WindowCaptionButtonsLocation Gets a Rect that indicates the default location of the minimize, maximize, and close buttons.
Public property WindowCaptionHeight Gets the height of the area that contains the minimize, maximize, and close buttons.
Public property WindowCornerRadius Gets the degree to which the corners of a window are rounded.
Public property WindowGlassBrush Gets the brush that paints the glass window frame.
Public property WindowGlassColor Gets the color that is used to paint the glass window frame.
Public property WindowNonClientFrameThickness Gets the size of the non-client area of the window.
Public property WindowResizeBorderThickness Gets the size of the resizing border around the window.

Top

Methods

  Name Description
Public method Equals Determines whether the specified Object is equal to the current Object. (Inherited from Object.)
Protected method Finalize Allows an object to try to free resources and perform other cleanup operations before it is reclaimed by garbage collection. (Inherited from Object.)
Public method GetHashCode Serves as a hash function for a particular type. (Inherited from Object.)
Public method GetType Gets the Type of the current instance. (Inherited from Object.)
Protected method MemberwiseClone Creates a shallow copy of the current Object. (Inherited from Object.)
Public method ToString Returns a string that represents the current object. (Inherited from Object.)

Top

Events

  Name Description
Public event PropertyChanged Occurs when one of the properties changes.

Top

Thread Safety

Any public static (Shared in Visual Basic) members of this type are thread safe. Any instance members are not guaranteed to be thread safe.

See Also

Reference

Microsoft.Windows.Shell Namespace