SpreadsheetGear 2017
OnGetDpiScaledSize Method






SpreadsheetGear.Windows.Forms Namespace > WorkbookDesigner Class : OnGetDpiScaledSize Method
Syntax
'Declaration
 
<System.ComponentModel.BrowsableAttribute(True)>
<System.ComponentModel.EditorBrowsableAttribute(EditorBrowsableState.Advanced)>
Protected Overridable Function OnGetDpiScaledSize( _
   ByVal deviceDpiOld As System.Integer, _
   ByVal deviceDpiNew As System.Integer, _
   ByRef desiredSize As System.Drawing.Size _
) As System.Boolean
'Usage
 
Dim instance As WorkbookDesigner
Dim deviceDpiOld As System.Integer
Dim deviceDpiNew As System.Integer
Dim desiredSize As System.Drawing.Size
Dim value As System.Boolean
 
value = instance.OnGetDpiScaledSize(deviceDpiOld, deviceDpiNew, desiredSize)
[System.ComponentModel.Browsable(true)]
[System.ComponentModel.EditorBrowsable(EditorBrowsableState.Advanced)]
protected virtual System.bool OnGetDpiScaledSize( 
   System.int deviceDpiOld,
   System.int deviceDpiNew,
   ref System.Drawing.Size desiredSize
)
protected function OnGetDpiScaledSize( 
    deviceDpiOld: System.Integer;
    deviceDpiNew: System.Integer;
   var  desiredSize: System.Drawing.Size
): System.Boolean; virtual; 
System.ComponentModel.BrowsableAttribute()
System.ComponentModel.EditorBrowsableAttribute(EditorBrowsableState.Advanced)
protected function OnGetDpiScaledSize( 
   deviceDpiOld : System.int,
   deviceDpiNew : System.int,
   desiredSize : System.Drawing.Size
) : System.boolean;
[System.ComponentModel.Browsable(true)]
[System.ComponentModel.EditorBrowsable(EditorBrowsableState.Advanced)]
protected: virtual System.bool OnGetDpiScaledSize( 
   System.int deviceDpiOld,
   System.int deviceDpiNew,
   ref System.Drawing.Size desiredSize
) 
[System.ComponentModel.Browsable(true)]
[System.ComponentModel.EditorBrowsable(EditorBrowsableState.Advanced)]
protected:
virtual System.bool OnGetDpiScaledSize( 
   System.int deviceDpiOld,
   System.int deviceDpiNew,
   System.Drawing.Size% desiredSize
) 

Parameters

deviceDpiOld
deviceDpiNew
desiredSize
Requirements

Target Platforms: Windows 7, Windows Vista SP1 or later, Windows XP SP3, Windows Server 2008 (Server Core not supported), Windows Server 2008 R2 (Server Core supported with SP1 or later), Windows Server 2003 SP2

See Also

Reference

WorkbookDesigner Class
WorkbookDesigner Members