[]
        
(Showing Draft Content)

FarPoint.Win.Spread.CellType.ListBoxCellType.DoPaint

DoPaint Method

DoPaint(Graphics, Rectangle, Color, Color, Font, HorizontalAlignment, VerticalAlignment, ArrayList, Array, bool, ImageList, int, bool, SelectionMode)

Paints the list box cell.

Declaration
public static void DoPaint(Graphics g, Rectangle r, Color backColor, Color foreColor, Font font, HorizontalAlignment halign, VerticalAlignment valign, ArrayList radioList, Array selectedItems, bool bLocked, ImageList imgList, int itemHeight, bool rightToLeft, SelectionMode selMode)
Public Shared Sub DoPaint(g As Graphics, r As Rectangle, backColor As Color, foreColor As Color, font As Font, halign As HorizontalAlignment, valign As VerticalAlignment, radioList As ArrayList, selectedItems As Array, bLocked As Boolean, imgList As ImageList, itemHeight As Integer, rightToLeft As Boolean, selMode As SelectionMode)
Parameters
Type Name Description
Graphics g

Graphics device interface for painting the column header cell

Rectangle r

Rectangle around the column header cell

Color backColor

Background color for the column header cell

Color foreColor

Text color for the column header cell

Font font

Font for the column header cell

HorizontalAlignment halign

Horizontal alignment of text in the column header cell

VerticalAlignment valign

Vertical alignment of text in the column header cell

ArrayList radioList

List of items

Array selectedItems

Selected items from the list

bool bLocked

Whether the list is locked

ImageList imgList

List of pictures that correspond with the items

int itemHeight

Height in pixels of each item

bool rightToLeft

Whether to draw the object with a right-to-left orientation

SelectionMode selMode

The selection mode indicates how the specified ListBoxCellType control is selected.

DoPaint(Graphics, Rectangle, Color, Color, Font, HorizontalAlignment, VerticalAlignment, ArrayList, int, bool, ImageList, int, bool)

Paints the list box cell.

Declaration
public static void DoPaint(Graphics g, Rectangle r, Color backColor, Color foreColor, Font font, HorizontalAlignment halign, VerticalAlignment valign, ArrayList radioList, int selectedItem, bool bLocked, ImageList imgList, int itemHeight, bool rightToLeft)
Public Shared Sub DoPaint(g As Graphics, r As Rectangle, backColor As Color, foreColor As Color, font As Font, halign As HorizontalAlignment, valign As VerticalAlignment, radioList As ArrayList, selectedItem As Integer, bLocked As Boolean, imgList As ImageList, itemHeight As Integer, rightToLeft As Boolean)
Parameters
Type Name Description
Graphics g

Graphics device interface for painting the column header cell

Rectangle r

Rectangle around the column header cell

Color backColor

Background color for the column header cell

Color foreColor

Text color for the column header cell

Font font

Font for the column header cell

HorizontalAlignment halign

Horizontal alignment of text in the column header cell

VerticalAlignment valign

Vertical alignment of text in the column header cell

ArrayList radioList

List of items

int selectedItem

Selected item from the list

bool bLocked

Whether the list is locked

ImageList imgList

List of pictures that correspond with the items

int itemHeight

Height in pixels of each item

bool rightToLeft

Whether to draw the object with a right-to-left orientation

DoPaint(Graphics, Rectangle, Color, Color, Font, HorizontalAlignment, VerticalAlignment, ArrayList, int, bool, ImageList, int, bool, SelectionMode)

Paints the list box cell.

Declaration
public static void DoPaint(Graphics g, Rectangle r, Color backColor, Color foreColor, Font font, HorizontalAlignment halign, VerticalAlignment valign, ArrayList radioList, int selectedItem, bool bLocked, ImageList imgList, int itemHeight, bool rightToLeft, SelectionMode selMode)
Public Shared Sub DoPaint(g As Graphics, r As Rectangle, backColor As Color, foreColor As Color, font As Font, halign As HorizontalAlignment, valign As VerticalAlignment, radioList As ArrayList, selectedItem As Integer, bLocked As Boolean, imgList As ImageList, itemHeight As Integer, rightToLeft As Boolean, selMode As SelectionMode)
Parameters
Type Name Description
Graphics g

Graphics device interface for painting the column header cell

Rectangle r

Rectangle around the column header cell

Color backColor

Background color for the column header cell

Color foreColor

Text color for the column header cell

Font font

Font for the column header cell

HorizontalAlignment halign

Horizontal alignment of text in the column header cell

VerticalAlignment valign

Vertical alignment of text in the column header cell

ArrayList radioList

List of items

int selectedItem

Selected item from the list

bool bLocked

Whether the list is locked

ImageList imgList

List of pictures that correspond with the items

int itemHeight

Height in pixels of each item

bool rightToLeft

Whether to draw the object with a right-to-left orientation

SelectionMode selMode

SelectionMode of ListBox