Softelvdm.Controls Class Library for Windows Controls 1.0

Paint Method, CellBaseClass Class

Softel vdm, Inc.

Paints the cell.

Syntax      CellBaseClass Class (Softelvdm.Controls)

VB   

Public Sub Paint( _
     ByVal g As Graphics, _
     ByVal rCell As Rectangle, _
     ByVal fAlwaysVisible As Boolean )
Public Overridable MustOverride Sub Paint( _
     ByVal g As Graphics, _
     ByVal rCell As Rectangle, _
     ByVal fAlwaysVisible As Boolean, _
     ByVal HighlightPart As GenericPartClass )

C#   

public void Paint(
     Graphics g,
     Rectangle rCell,
     bool fAlwaysVisible );
public abstract void Paint(
     Graphics g,
     Rectangle rCell,
     bool fAlwaysVisible,
     GenericPartClass HighlightPart );

C++   

public: void Paint(
     Graphics^ g,
     Rectangle rCell,
     bool fAlwaysVisible );
public: virtual void Paint(
     Graphics^ g,
     Rectangle rCell,
     bool fAlwaysVisible,
     GenericPartClass^ HighlightPart ) abstract;

fAlwaysVisible

Defines whether all parts of the cell are to be visible even if they are normally hidden.

g

Defines the drawing surface to render the cell.

HighlightPart

Defines the cell part to highlight (using SystemColors.Highlight). Specify null/Nothing if no part is to be highlighted.

rCell

Defines the rectangle of the area where the cell is to be rendered.

Comments

The Paint method paints the cell.

This function is used to render a cell on the specified drawing surface. This could be used by an application to render a cell elsewhere, possibly a status bar or in an informational or error message dialog.

For example, our cell editing dialog, used at design time, uses the Paint method to display the current cell being designed on the dialog.

Version Information

Supported in version 1.0.
Products Table


Feedback / comments / error reports for this topic
© 2007 - Softel vdm, Inc. - www.softelvdm.com