DK11 for .NET | TatukGIS.NDK.WinForms.TGIS_ViewerWnd.BeforePaintEvent | Constructors | Fields | Methods | Properties | Events
BeforePaint event. Will be fired before any Paint operation. Uses painting context object.
Available also on: Delphi FMX | ActiveX | Python.
// C# public event TGIS_PaintEvent BeforePaintEvent { add {} remove {} }
' VisualBasic Public Custom Event BeforePaintEvent As TGIS_PaintEvent AddHandler(ByVal value As TGIS_PaintEvent) End AddHandler RemoveHandler(ByVal value As TGIS_PaintEvent) End RemoveHandler End Event
// Oxygene public event BeforePaintEvent : TGIS_PaintEvent add remove;
Type |
---|
TGIS_PaintEvent |
This even can be quite costly. To maintain compatibility with the old code we guarantee proper Graphics context even on SharpDX renderer. Try to replace this event with BeforePaintRendererEvent, which is always fast.