Spread Windows Forms 6.0 Product Documentation
DrawCustomButton Method
See Also  Support Options
FarPoint.Win.Spread Assembly > FarPoint.Win.Spread Namespace > DefaultScrollBarRenderer Class : DrawCustomButton Method


g
Graphics device interface for drawing the custom button
bounds
Rectangular bounds of the drawing
element
FarPoint scroll bar button object

Glossary Item Box

Draw the custom button.

Syntax

Visual Basic (Declaration) 
Public Overridable Sub DrawCustomButton( _
   ByVal g As Graphics, _
   ByVal bounds As Rectangle, _
   ByVal element As FpScrollBarButton _
) 
Visual Basic (Usage)Copy Code
Dim instance As DefaultScrollBarRenderer
Dim g As Graphics
Dim bounds As Rectangle
Dim element As FpScrollBarButton
 
instance.DrawCustomButton(g, bounds, element)
C# 
public virtual void DrawCustomButton( 
   Graphics g,
   Rectangle bounds,
   FpScrollBarButton element
)

Parameters

g
Graphics device interface for drawing the custom button
bounds
Rectangular bounds of the drawing
element
FarPoint scroll bar button object

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

© 2002-2012 ComponentOne, a division of GrapeCity. All Rights Reserved.