SpreadsheetGear 2017
GetSize(Graphics) Method






SpreadsheetGear.Drawing Namespace > Image Class > GetSize Method : GetSize(Graphics) Method
Specifies the GDI+ drawing surface whose device units and font metrics will be used to determine the size required to draw the represented range or shape.
Returns the size in device units for the specified GDI+ drawing surface required to draw the represented range or shape.
Syntax
'Declaration
 
Public Overloads Function GetSize( _
   ByVal graphics As System.Drawing.Graphics _
) As System.Drawing.Size
'Usage
 
Dim instance As Image
Dim graphics As System.Drawing.Graphics
Dim value As System.Drawing.Size
 
value = instance.GetSize(graphics)
public System.Drawing.Size GetSize( 
   System.Drawing.Graphics graphics
)
public function GetSize( 
    graphics: System.Drawing.Graphics
): System.Drawing.Size; 
public function GetSize( 
   graphics : System.Drawing.Graphics
) : System.Drawing.Size;
public: System.Drawing.Size GetSize( 
   System.Drawing.Graphics* graphics
) 
public:
System.Drawing.Size GetSize( 
   System.Drawing.Graphics^ graphics
) 

Parameters

graphics
Specifies the GDI+ drawing surface whose device units and font metrics will be used to determine the size required to draw the represented range or shape.

Return Value

The size in device units for the specified GDI+ drawing surface required to draw the represented range or shape.
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

Image Class
Image Members
Overload List