dbicDigit Send comments on this topic.
UserDrawnCharacter Event
See Also 
dbicDigit Assembly > Dbi.WinControl.Digit Namespace > dbiDigit Class : UserDrawnCharacter Event

Fires before any character is rendered in the display of the control, allowing the developer the chance to custom draw the entire character.

Syntax

Visual Basic (Declaration) 
Public Event UserDrawnCharacter As dbiDigit.EventUserDrawnCharacterHandler
C# 
public event dbiDigit.EventUserDrawnCharacterHandler UserDrawnCharacter

Event Data

The event handler receives an argument of type UserDrawnCharacterEventArgs containing data related to this event. The following UserDrawnCharacterEventArgs properties provide information specific to this event.

PropertyDescription
Character The character from the control's Text property.
Graphics A handle to the Graphics object responsible for the drawing.
IsValid Determines if the current character is a valid one the control can render in its display.
PaintCharacter Indicates to the control if the default painting routines should be used or not.
Position The index of the character within the control's Text property.
Rect The rectangle representing the size and location of the area for character in the control's display.

Remarks

This event is the only way to render characters that the control won't normally display.

Requirements

Target Platforms: Current Windows operating system with .NET 8.

See Also