SpreadsheetGear 2010
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

Target Platforms: Windows 98, Windows NT 4.0, Windows Millennium Edition, Windows 2000, Windows XP Home Edition, Windows XP Professional, Windows Server 2003 family, Windows Vista, Windows Server 2008 family

See Also

Copyright © 2003-2010 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.