Nevron.UI.WinForm.Controls Namespace / NDataGridViewDetailsCell Class / GetPreferredSize(Graphics,DataGridViewCellStyle,Int32,Size) Method


In This Topic
    GetPreferredSize(Graphics,DataGridViewCellStyle,Int32,Size) Method
    In This Topic
    Syntax
    'Declaration
     
    
    Protected Overridable Function GetPreferredSize( _
       ByVal graphics As System.Drawing.Graphics, _
       ByVal cellStyle As System.Windows.Forms.DataGridViewCellStyle, _
       ByVal rowIndex As System.Integer, _
       ByVal constraintSize As System.Drawing.Size _
    ) As System.Drawing.Size
    'Usage
     
    
    Dim instance As NDataGridViewDetailsCell
    Dim graphics As System.Drawing.Graphics
    Dim cellStyle As System.Windows.Forms.DataGridViewCellStyle
    Dim rowIndex As System.Integer
    Dim constraintSize As System.Drawing.Size
    Dim value As System.Drawing.Size
     
    value = instance.GetPreferredSize(graphics, cellStyle, rowIndex, constraintSize)
    protected virtual System.Drawing.Size GetPreferredSize( 
       System.Drawing.Graphics graphics,
       System.Windows.Forms.DataGridViewCellStyle cellStyle,
       System.int rowIndex,
       System.Drawing.Size constraintSize
    )

    Parameters

    graphics
    cellStyle
    rowIndex
    constraintSize
    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