Nevron.UI Namespace / NImageAndTextLayout Class / CalculatePreferredSize Method


In This Topic
    CalculatePreferredSize Method (NImageAndTextLayout)
    In This Topic
    Syntax
    'Declaration
     
    
    Public Overridable Function CalculatePreferredSize( _
       ByVal context As NPaintContext, _
       ByVal item As NImageAndTextItem, _
       ByVal available As NSize _
    ) As NSize
    'Usage
     
    
    Dim instance As NImageAndTextLayout
    Dim context As NPaintContext
    Dim item As NImageAndTextItem
    Dim available As NSize
    Dim value As NSize
     
    value = instance.CalculatePreferredSize(context, item, available)
    public virtual NSize CalculatePreferredSize( 
       NPaintContext context,
       NImageAndTextItem item,
       NSize available
    )

    Parameters

    context
    item
    available
    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