Hide

SftTree/NET 2.0 - Tree Control for Windows Forms

Display
Print

Paint Method, CellBaseClass Class

Paints the cell.

Class: CellBaseClass
Namespace: Softelvdm.Controls
Assembly: Softelvdm.SftTreeNET

Syntax

public void Paint(
    Graphics g,
    Rectangle rCell,
    bool fAlwaysVisible );
public void Paint(
    Graphics g,
    Rectangle rCell,
    bool fAlwaysVisible,
    GenericPartClass HighlightPart );
Public Sub Paint(
    ByVal g As Graphics,
    ByVal rCell As Rectangle,
    ByVal fAlwaysVisible As Boolean )
Public Overrides Sub Paint(
    ByVal g As Graphics,
    ByVal rCell As Rectangle,
    ByVal fAlwaysVisible As Boolean,
    ByVal HighlightPart As GenericPartClass )

Parameters

g

Defines the drawing surface to render the cell.

rCell

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

fAlwaysVisible

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

HighlightPart

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

Comments

Paints the cell.

This method 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.

See Also CellBaseClass Class | Classes | SftTree/NET 2.0