SpreadsheetGear
GetSize(Graphics) Method
See Also  Send Feedback
SpreadsheetGear.Drawing Namespace > Image Class > GetSize Method : GetSize(Graphics) Method

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

Syntax

Visual Basic (Declaration) 
Public Overloads Function GetSize( _
   ByVal graphics As Graphics _
) As Size
C# 
public Size GetSize( 
   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

Platforms: Windows 2000, Windows XP, Windows Vista, Windows Server 2003 and Windows Server 2008. SpreadsheetGear 2009 requires the Microsoft .NET Framework 2.0 and supports .NET 3.0 and .NET 3.5.

See Also

Copyright © 2003-2009 SpreadsheetGear LLC. All Rights Reserved.Help Powered by Innovasys   
SpreadsheetGear is a registered trademark of SpreadsheetGear LLC.
Microsoft, Microsoft Excel and Visual Studio are trademarks or registered trademarks of Microsoft Corporation.