| Infragistics.Win Namespace > UIElement Class : DrawElement Method (UIElement) |
Renders the element into the graphics object of the specified defaultDrawParams. This method will recursively invoke itself for rendering the descendant elements.
[Visual Basic]
Public Sub DrawElement( _
ByRef defaultDrawParams As UIElementDrawParams _
) [C#]
public void DrawElement(
ref UIElementDrawParams defaultDrawParams
);Normally, rendering of the the element is done using the various Draw method overloads. However, when performing lots of separate draw operations of different elements within the same control at the same time, this method is will provide better performance then invoking the Draw method multiple times.
Note: It is up to the caller to manage the lifetime of the DrawCache for which the defaultDrawParams is created.