Xceed Grid for WinForms v4.3 Documentation
Xceed.Grid.v4.3 Assembly / Xceed.Grid.Viewers Namespace / CellViewerManager Class / CalculateAreas Method
The default width, in pixels, of the viewer's System.Drawing.Image.
The padding of the viewer's System.Drawing.Image.
The padding of the viewer's text.
A System.Drawing.Rectangle representing the associated cell's Xceed.Grid.VisualGridElement.DisplayRectangle.
A System.Drawing.Rectangle representing the area where the viewer's text is to be displayed.
A System.Drawing.Rectangle representing the area where the viewer's image is to be displayed.


In This Topic
    CalculateAreas Method
    In This Topic
    Calculates the text and image areas of the cell viewer.
    Syntax
    'Declaration
     
    Protected Sub CalculateAreas( _
       ByVal defaultImageWidth As Integer, _
       ByVal imagePadding As Margins, _
       ByVal textPadding As Margins, _
       ByVal cellDisplayRectangle As Rectangle, _
       ByRef textArea As Rectangle, _
       ByRef imageArea As Rectangle _
    ) 
    'Usage
     
    Dim instance As CellViewerManager
    Dim defaultImageWidth As Integer
    Dim imagePadding As Margins
    Dim textPadding As Margins
    Dim cellDisplayRectangle As Rectangle
    Dim textArea As Rectangle
    Dim imageArea As Rectangle
     
    instance.CalculateAreas(defaultImageWidth, imagePadding, textPadding, cellDisplayRectangle, textArea, imageArea)
    protected void CalculateAreas( 
       int defaultImageWidth,
       Margins imagePadding,
       Margins textPadding,
       Rectangle cellDisplayRectangle,
       out Rectangle textArea,
       out Rectangle imageArea
    )

    Parameters

    defaultImageWidth
    The default width, in pixels, of the viewer's System.Drawing.Image.
    imagePadding
    The padding of the viewer's System.Drawing.Image.
    textPadding
    The padding of the viewer's text.
    cellDisplayRectangle
    A System.Drawing.Rectangle representing the associated cell's Xceed.Grid.VisualGridElement.DisplayRectangle.
    textArea
    A System.Drawing.Rectangle representing the area where the viewer's text is to be displayed.
    imageArea
    A System.Drawing.Rectangle representing the area where the viewer's image is to be displayed.
    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