←Select platform

OwnerDraw Property

Summary

Indicates whether the control automatically renders the view and items.

Syntax

C#
VB
C++
public virtual bool OwnerDraw { get; set; } 
Public Overridable Property OwnerDraw() As Boolean 
   Get 
   Set 
public:  
   virtual property bool OwnerDraw 
   { 
      bool get() 
      void set(bool value) 
   } 

Property Value

true if the control automatically renders the view and items, otherwise; false.

Remarks

When the value of OwnerDraw is set to false, the render cycle is not performed by the viewer and nothing is rendered on its surface by the control. It is up to the user to perform all the necessary rendering needed.

To customize only part of the rendering, use the various events fired during the render cycle. For an example, refer to PostRender.

For more information, refer to Image Viewer Rendering.

Requirements

Target Platforms

Help Version 19.0.2017.10.27
Products | Support | Contact Us | Copyright Notices
© 1991-2017 LEAD Technologies, Inc. All Rights Reserved.

Leadtools.Controls.WinForms Assembly