Spread Windows Forms 17
GrapeCity.Spreadsheet Assembly / GrapeCity.Spreadsheet.Slicers Namespace / Slicer Class / CalculatePaintingArea Method
Boundary of the slicer
Boundary of the header.
Boundary of the items.
The size of each item.
Boundary of the scrollbar.
The header style format.
Zoom scale


In This Topic
    CalculatePaintingArea Method
    In This Topic
    Calculates the painting area of each section.
    Syntax
    'Declaration
     
    
    Public Sub CalculatePaintingArea( _
       ByVal graphics As WindowsGraphics, _
       ByVal rect As Rectangle, _
       ByRef header As Rectangle, _
       ByRef itemsRect As Rectangle, _
       ByRef itemSize As Size, _
       ByRef scrollbarRect As Rectangle, _
       ByRef headerStyleFormat As StyleFormat, _
       Optional ByVal zoomFactor As Single _
    ) 
    'Usage
     
    
    Dim instance As Slicer
    Dim graphics As WindowsGraphics
    Dim rect As Rectangle
    Dim header As Rectangle
    Dim itemsRect As Rectangle
    Dim itemSize As Size
    Dim scrollbarRect As Rectangle
    Dim headerStyleFormat As StyleFormat
    Dim zoomFactor As Single
     
    instance.CalculatePaintingArea(graphics, rect, header, itemsRect, itemSize, scrollbarRect, headerStyleFormat, zoomFactor)
    public void CalculatePaintingArea( 
       WindowsGraphics graphics,
       Rectangle rect,
       out Rectangle header,
       out Rectangle itemsRect,
       out Size itemSize,
       out Rectangle scrollbarRect,
       out StyleFormat headerStyleFormat,
       float zoomFactor
    )

    Parameters

    graphics
    rect
    Boundary of the slicer
    header
    Boundary of the header.
    itemsRect
    Boundary of the items.
    itemSize
    The size of each item.
    scrollbarRect
    Boundary of the scrollbar.
    headerStyleFormat
    The header style format.
    zoomFactor
    Zoom scale
    See Also