DialogBase.OnUserPreferenceChanged Method
Alerts listeners when a user changes the preferences for the operating system.
Namespace: Microsoft.VisualStudio.Modeling.Shell
Assembly: Microsoft.VisualStudio.Modeling.Sdk.Shell.10.0 (in Microsoft.VisualStudio.Modeling.Sdk.Shell.10.0.dll)
Syntax
'Déclaration
Protected Overridable Sub OnUserPreferenceChanged ( _
sender As Object, _
e As UserPreferenceChangedEventArgs _
)
protected virtual void OnUserPreferenceChanged(
Object sender,
UserPreferenceChangedEventArgs e
)
protected:
virtual void OnUserPreferenceChanged(
Object^ sender,
UserPreferenceChangedEventArgs^ e
)
abstract OnUserPreferenceChanged :
sender:Object *
e:UserPreferenceChangedEventArgs -> unit
override OnUserPreferenceChanged :
sender:Object *
e:UserPreferenceChangedEventArgs -> unit
protected function OnUserPreferenceChanged(
sender : Object,
e : UserPreferenceChangedEventArgs
)
Parameters
- sender
Type: System.Object
The sending object. This value is always null.
- e
Type: Microsoft.Win32.UserPreferenceChangedEventArgs
The preference that changed.
Remarks
This method invokes the CPropExchange::ExchangeFontProp method.
Preferences for the operating system include the title bar height and font size for windows.
.NET Framework Security
- Full trust for the immediate caller. This member cannot be used by partially trusted code. For more information, see Using Libraries from Partially Trusted Code.