Calculates the size needed to paint the SmartItem.
'Declaration
Protected Overrides Function CalculateSize( _
ByVal As Graphics, _
ByVal As Font, _
ByVal As StringFormat _
) As Size
'Usage
Dim instance As Task
Dim graphics As Graphics
Dim font As Font
Dim format As StringFormat
Dim value As Size
value = instance.CalculateSize(graphics, font, format)
Parameters
- graphics
- A System.Drawing.Graphics object representing the graphics that will be used to draw the SmartItem.
- font
- A System.Drawing.Font object representing the font that will be used by the SmartItem.
- format
- A System.Drawing.StringFormat object representing the string format that will be used by the SmartItem.
Return Value
A
System.Drawing.Size structure representing the size needed to paint the SmartItem.
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