Spread Windows Forms 6.0 Product Documentation
MeasureString(Graphics,Size,Object) Method
See Also  Support Options
FarPoint.Win.Spread Assembly > FarPoint.Win.Spread.CellType Namespace > RichTextCellType Class : MeasureString(Graphics,Size,Object) Method


g
Graphics device interface for painting the string
defaultSize
Default size
value
Value

Glossary Item Box

Measures the string size.

Syntax

Visual Basic (Declaration) 
Protected Overridable Function MeasureString( _
   ByVal g As Graphics, _
   ByVal defaultSize As Size, _
   ByVal value As Object _
) As Size
Visual Basic (Usage)Copy Code
Dim instance As RichTextCellType
Dim g As Graphics
Dim defaultSize As Size
Dim value As Object
Dim value As Size
 
value = instance.MeasureString(g, defaultSize, value)
C# 
protected virtual Size MeasureString( 
   Graphics g,
   Size defaultSize,
   object value
)

Parameters

g
Graphics device interface for painting the string
defaultSize
Default size
value
Value

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

© 2002-2012 ComponentOne, a division of GrapeCity. All Rights Reserved.