Nevron .NET Vision
Nevron.Diagram Namespace / NShape Class / SizeToText Method
padding to apply to the estimated text size (in scene units)


In This Topic
    SizeToText Method (NShape)
    In This Topic
    Tries to resize the shape to fit the primary text of the shape. This implementation get the desired size of the label in scene units and resizes the shape accordingly.
    Syntax
    'Declaration
     
    
    Public Overridable Function SizeToText( _
       ByVal padding As NMarginsF _
    ) As System.Boolean
    'Usage
     
    
    Dim instance As NShape
    Dim padding As NMarginsF
    Dim value As System.Boolean
     
    value = instance.SizeToText(padding)
    public virtual System.bool SizeToText( 
       NMarginsF padding
    )

    Parameters

    padding
    padding to apply to the estimated text size (in scene units)
    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