LEADTOOLS Medical (Leadtools.MedicalViewer assembly) Send comments on this topic. | Back to Introduction - All Topics | Help Version 17.0.3.31
PrePaint Event
See Also 
Leadtools.MedicalViewer Namespace > MedicalViewerCell Class : PrePaint Event



The PrePaint Event is available as an add-on to the LEADTOOLS Medical Imaging toolkits.

Optional delegate method for additional processing.

Syntax

Visual Basic (Declaration) 
Public Event PrePaint As EventHandler(Of MedicalViewerPaintInformationEventArgs)
Visual Basic (Usage)Copy Code
Dim instance As MedicalViewerCell
Dim handler As EventHandler(Of MedicalViewerPaintInformationEventArgs)
 
AddHandler instance.PrePaint, handler

Event Data

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

PropertyDescription
CellIndex (Read only) Gets the value that indicates the index of the cell that is to be painted. This value is only valid if the cell is add to the MedicalViewer.
ClipRectangle (Inherited from System.Windows.Forms.PaintEventArgs)Gets the rectangle in which to paint.
Draw Gets or sets the value that indicates whether to make the control draw the sub-cell. This is used only with the MedicalViewerCell.PrePaint event.
Graphics (Inherited from System.Windows.Forms.PaintEventArgs)Gets the graphics used to paint.
ImageRectangle (Read only) Gets the rectangle that represents the image rectangle for the cell or sub-cell.
SubCellIndex (Read only) Gets the value that indicates the index of the sub-cell that is to be painted.

Requirements

Target Platforms: Microsoft .NET Framework 2.0, Windows 2000, Windows XP, Windows Server 2003 family, Windows Server 2008 family, Windows Vista, Windows 7

See Also

Leadtools.MedicalViewer requires a Medical Imaging license and unlock key. For more information, refer to: Imaging Pro/Document/Medical Features