Version

UIElement Class Methods

For a list of all members of this type, see UIElement members.

Public Methods
 NameDescription
Public MethodAdjustableElementFromPointOverloaded. Returns an element reference if the passed in point is over the AdjustableArea of this element (or any of its child elements)  
Public MethodAdjustRectForRightToLeftTakes a rect and adjusts it for RightToLeft relative to this UIElement.  
Public MethodAdjustRectForZoomingAdjust the rectangle size and position based on the zoom factor of the ControlUIElement.  
Public MethodAdjustRegionToZoomFactorAdjusts the region for the provided zoom factor  
Public MethodContainsOverloaded. Checks if the point is over the element. This may be overridden in derived classes for specialized hit test logic.  
Public MethodCreateObjRefCreates an object that contains all the relevant information required to generate a proxy used to communicate with a remote object. (Inherited from System.MarshalByRefObject)
Public MethodDirtyChildElementsOverloaded. Sets the dirty flag so that the next time the element is drawn it will reposition its child elements  
Public MethodDispose (Inherited from Infragistics.Shared.DisposableObject)
Public MethodDrawOverloaded. Draws the element.  
Public MethodDrawElementRenders the element into the graphics object of the specified defaultDrawParams. This method will recursively invoke itself for rendering the descendant elements.  
Public MethodDrawToBitmapReturns a bitmap into which the UIElement has been drawn.  
Public MethodElementFromPointOverloaded. Returns the lowest level element that contains the passed in point  
Public Methodstatic (Shared in Visual Basic)FindElementInDirectionOverloaded. Find the closest element to this one in the element's control element.  
Public MethodGetAdjustableCursorThe adjustable cursor is used by any element that can be moved or resized. Returning null means the element can not be adjusted by clicking on the passed in point.  
Public MethodGetAdjustmentRangeReturns the range limits for adjusting the element in either or both dimensions. It also returns the initial rects for the vertical and horizontal bars that will need to be inverted during the mouse drag operation. Default implementation sets everything to zero.  
Public MethodGetAncestorWalks up the parent chain until it reaches the parent of the requested type. Also, if this element is of the passed in type then this elemnt will be returned.  
Public MethodGetBorderWidthsReturns the widths of all four borders  
Public Methodstatic (Shared in Visual Basic)GetCommonAncestorStatic method that returns the deepest nested element that is a common ancestor element of both the passed in elements.  
Public MethodGetContextOverloaded. Returns the primary context object.  
Public MethodGetDescendantOverloaded. Returns an element of the requested type or null.  
Public Methodstatic (Shared in Visual Basic)GetDeskTopWorkAreaGets the desktop area. In a multi-monitor setup, it gets the desktop area of the monitor that most of the rect resides in.  
Public MethodGetLifetimeServiceRetrieves the current lifetime service object that controls the lifetime policy for this instance. (Inherited from System.MarshalByRefObject)
Public MethodHasAncestorReturns true if the passed in element is in this elment's parent chain  
Public MethodHasContextOverloaded. Returns true if this element (or any of its ancestors) has this context  
Public MethodHitTestRetrieves the child accessible object at the specified screen coordinates.  
Public MethodInitializeLifetimeServiceObtains a lifetime service object to control the lifetime policy for this instance. (Inherited from System.MarshalByRefObject)
Public MethodInvalidateOverloaded. Invalidates this element  
Public Methodstatic (Shared in Visual Basic)IsContextOfTypeDetermines if the context is of the specified type.  
Public MethodIsDescendantOfReturns true if this element is the same as the specified element or if this element is a descendant of the specified element.  
Public MethodNavigateOverloaded. Navigates to another accessible object  
Public MethodOffsetOverloaded. Offsets this element rect and all of its child elements  
Public MethodPointInAdjustableAreaReturns true if the passed in point is over an area of this element that would require the AdjustableCursor to be displayed  
Public MethodPointInElementOverloaded. Checks if the point is over the element and is not over an overlapping sibling element.  
Public MethodPrintDraws the element into a printer dc.  
Public MethodVerifyChildElementsOverloaded. Called to ensure that all child elements are created and positioned properly. If the ChildElementsDirty flag is true then the PositionChildElements will be called and the dirty flag will be reset. This method gets called recursively for all descendant elements.  
Public MethodVerifyNotDisposed (Inherited from Infragistics.Shared.DisposableObject)
Protected Methods
 NameDescription
Protected MethodContinueDescendantSearchThis method is called from GetDescendant(Type) as an optimization to prevent searching down element paths that can't possibly contain the element that is being searched for.  
Protected MethodCreateUIAutomationProviderFactory method which creates a UI Automation wrapper for the specified context.  
Protected MethodDrawBackColorDefault backcolor drawing just does a FillRectangle with the backcolor.  
Protected MethodDrawBordersDefault border rendering  
Protected MethodDrawChildElementsDefault child element rendering - draws each of the child elements.  
Protected MethodDrawFocusDefault drawfocus method draws a focus rect inside the element's borders  
Protected MethodDrawForegroundDefault foreground rendering - does nothing  
Protected MethodDrawImageDefault image rendering - does nothing  
Protected MethodDrawImageBackgroundDefault background picture drawing  
Protected MethodDrawThemeUsed by an element to render using the system theme. This method will not be invoked if the themes are not supported.  
Protected Methodstatic (Shared in Visual Basic)ExtractExistingElementOverloaded. Static method that searches thru the passed in collection and returns the first object of the requested type that it finds  
Protected MethodGetUIRoleHelper method for obtaining a Infragistics.Win.AppStyling.UIRole for a particular role name.  
Protected MethodInitAppearanceInitialize the appearance structure for this element  
Protected MethodInternalCursorFromAppearanceExtracts the cursor from the appearance object this method is overridden by an element with a mousepointer set  
Protected MethodInternalSetElementsChangedDefault implementation just walks up the parent chain. This is overriden by the ControlUIElementBase class which maintains a flag that some descendant element may have changed  
Protected MethodIntersectInvalidRectReturns the intersection of the element's rect with the invalid rect for the current draw operation.  
Protected MethodMemberwiseCloneOverloaded. Creates a shallow copy of the current System.MarshalByRefObject object. (Inherited from System.MarshalByRefObject)
Protected MethodOnAfterDrawA virtual method that gets called after the element draw operation finishes.  
Protected MethodOnBeforeDrawA virtual method that gets called before the element draw process starts.  
Protected MethodOnDisposeOverridden. Called when element is disposed of.  
Protected MethodOnMousePanCaptureCalled when this element is captured to begin a mouse panning operation.  
Protected MethodOnMousePanCaptureTerminatedCalled when capture is released from this element to end a mouse panning operation.  
Protected MethodOnMousePanHorizontalVirtual method that is called each time the mouse pans horizontally Derived classes should override this method  
Protected MethodOnMousePanVerticalVirtual method that is called each time the mouse pans vertically Derived classes should override this method  
Protected MethodPositionChildElementsMakes sure that the child elements for this element are in the ChildElements array and that they are positioned properly. This needs to be overridden if the element has any child elements.  
Protected MethodSetParentSets the parent element  
Protected MethodWantsInputNotificationReturns true if this ui element is interested in getting notificaions of type inputType at the specified location. Default implementation always returns true.  
See Also

Reference

UIElement Class
Infragistics.Win Namespace
Infragistics.Shared.DisposableObject