See Also

UIElement Class  | UIElement Members

Language

Visual Basic

C#

Show All

defaultDrawParams
UIElementDrawParams structure used as the default values for rendering the element.
See Also Languages Infragistics2.Win.v7.2

DrawElement Method

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 );

Parameters

defaultDrawParams
UIElementDrawParams structure used as the default values for rendering the element.

Remarks

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.

See Also

UIElement Class  | UIElement Members

E-mail your feedback on this topic.

Opinion about our help? Take our survey.

Copyright © 1996-2007 Infragistics, Inc. All rights reserved.

Build Version: 7.2.20072.1063