CalculatePaintingArea Method
In This Topic
Calculates the painting area of each section.
Syntax
'Declaration
Public Sub CalculatePaintingArea( _
ByVal As WindowsGraphics, _
ByVal As Rectangle, _
ByRef As Rectangle, _
ByRef As Rectangle, _
ByRef As Size, _
ByRef As Rectangle, _
ByRef As StyleFormat, _
Optional ByVal 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 ,
Rectangle ,
out Rectangle ,
out Rectangle ,
out Size ,
out Rectangle ,
out StyleFormat ,
float
)
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