Xceed SmartUI for WinForms v3.6 Documentation
CalculateSize Method (LabelTool)


Xceed.SmartUI.Controls.v3.6 Assembly > Xceed.SmartUI.Controls.ToolBar Namespace > LabelTool Class : CalculateSize Method
A System.Drawing.Graphics object representing the graphics that will be used to draw the label tool.
A System.Drawing.Font object representing the font that will be used by the label tool.
A System.Drawing.StringFormat object representing the string format that will be used by the label tool.
Calculates the size needed to paint the label tool.
Syntax
'Declaration
 
Protected Overrides Function CalculateSize( _
   ByVal graphics As Graphics, _
   ByVal font As Font, _
   ByVal format As StringFormat _
) As Size
'Usage
 
Dim instance As LabelTool
Dim graphics As Graphics
Dim font As Font
Dim format As StringFormat
Dim value As Size
 
value = instance.CalculateSize(graphics, font, format)
protected override Size CalculateSize( 
   Graphics graphics,
   Font font,
   StringFormat format
)

Parameters

graphics
A System.Drawing.Graphics object representing the graphics that will be used to draw the label tool.
font
A System.Drawing.Font object representing the font that will be used by the label tool.
format
A System.Drawing.StringFormat object representing the string format that will be used by the label tool.

Return Value

A System.Drawing.Size structure representing the size needed to paint the label tool.
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

LabelTool Class
LabelTool Members
Base Implementation in CalculateSize