Spread Windows Forms 7.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 2000 Professional (SP4), Windows 2000 Server, Windows 2003 Server (SP1), Windows 2008, Windows XP (SP2), Windows Vista, Windows 7, Windows 8

See Also

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