Information
The topic you requested is included in another documentation set. For convenience, it's displayed below. Choose Switch to see the topic in its original location.

DpiChangedEventArgs Class

 

Provides data for the DPIChanged events of a form or control.

Namespace:   System.Windows.Forms
Assembly:  System.Windows.Forms (in System.Windows.Forms.dll)

System::Object
  System::EventArgs
    System.ComponentModel::CancelEventArgs
      System.Windows.Forms::DpiChangedEventArgs

public ref class DpiChangedEventArgs sealed : CancelEventArgs

NameDescription
System_CAPS_pubpropertyCancel

Gets or sets a value indicating whether the event should be canceled.(Inherited from CancelEventArgs.)

System_CAPS_pubpropertyDeviceDpiNew

Gets the DPI value for the new display device where the control or form is currently being displayed.

System_CAPS_pubpropertyDeviceDpiOld

Gets the DPI value for the display device where the control or form was previously displayed.

System_CAPS_pubpropertySuggestedRectangle

Gets a Rectangle that represents the new bounding rectangle for the control or form based on the DPI of the display device where it's displayed.

NameDescription
System_CAPS_pubmethodEquals(Object^)

Determines whether the specified object is equal to the current object.(Inherited from Object.)

System_CAPS_pubmethodGetHashCode()

Serves as the default hash function. (Inherited from Object.)

System_CAPS_pubmethodGetType()

Gets the Type of the current instance.(Inherited from Object.)

System_CAPS_pubmethodToString()

Creates and returns a string representation of the current DpiChangedEventArgs.(Overrides Object::ToString().)

.NET Framework
Available since 4.7

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

Return to top
Show: