Map for WinForms | ComponentOne
C1.FlexMap Namespace / IMapDevice Interface / MeasureString Method
The string to be measured.
The maxinum width.
The style used to measure.

In This Topic
    MeasureString Method (IMapDevice)
    In This Topic
    Gets the size of the string.
    Syntax
    'Declaration
     
    
    Function MeasureString( _
       ByVal text As String, _
       ByVal width As Double, _
       ByVal style As IMapStyle _
    ) As C1.Win.Interop.Size
    C1.Win.Interop.Size MeasureString( 
       string text,
       double width,
       IMapStyle style
    )

    Parameters

    text
    The string to be measured.
    width
    The maxinum width.
    style
    The style used to measure.

    Return Value

    The pixels size the the content, using the specified style.
    See Also