Version

UIElementDrawParams Structure Members

The following tables list the members exposed by UIElementDrawParams.

Public Constructors
 NameDescription
Public ConstructorUIElementDrawParams ConstructorConstructor  
Public Fields
 NameDescription
Public FieldAppearanceDataThe appearance data structure for this element  
Public Properties
 NameDescription
Public PropertyAlphaBlendModeReturns the current AlphaBlendMode  
Public PropertyBackBrushThe brush used to draw the back color (read-only)  
Public Propertystatic (Shared in Visual Basic)CheckBoxGlyphInfoDetermines how check boxes are drawn.  
Public PropertyControlElementThe main control, top level element (read-only).  
Public PropertyDrawPhaseThe current phase of the drawing operation (read-only).  
Public PropertyDrawPhaseAlphaLevelReturns the alpha level that is operational based on the current phase of the drawing operation and the settings in AppearanceData. This will return a value between 0 and 255 (0 is transparent, 255 is completely opague). This property is read-only.  
Public PropertyElementThe UIElement (read-only).  
Public PropertyElementDrawingClipRectGets the element's ClipRect taking RightToLeft into account.  
Public PropertyElementDrawingRectGets the rectangle (taking RightToLeft into account) used during the element's rendering.  
Public PropertyElementDrawingRectInsideBordersGets the element's RectInsideBorders taking RightToLeft into account.  
Public PropertyFontReturns a font  
Public PropertyForceDrawAsFocusedTrue if the element draws a focus rect even when its parent control does not have the input focus (read-only).  
Public PropertyGraphicsThe graphics object (read-only)  
Public PropertyInvalidRectThe intersection of the original invalid rect, this element's rect and all of its parent rects (read-only).  
Public PropertyIsAlphaBlendingSupportedTrue if alpha blending is supported (read-only).  
Public PropertyIsDrawingTransitionReturns a boolean indicating if the element is being rendered as part of a transition. When true, elements should not perform any rendering operations.  
Public Propertystatic (Shared in Visual Basic)Office2007CheckBoxGlyphInfoReturns the default CheckBoxGlyphInfo object for Office2007 CheckBox glyphs.  
Public Propertystatic (Shared in Visual Basic)Office2007RadioButtonGlyphInfoReturns the default CheckBoxGlyphInfo object for Office2007 RadioButton glyphs.  
Public Propertystatic (Shared in Visual Basic)Office2010CheckBoxGlyphInfoReturns the default CheckBoxGlyphInfo object for Office 2010 CheckBox glyphs using the current Office2010ColorTable.ColorScheme.  
Public Propertystatic (Shared in Visual Basic)Office2010RadioButtonGlyphInfoReturns the default RadioButtonGlyphInfo object for Office 2010 RadioButton glyphs.  
Public Propertystatic (Shared in Visual Basic)Office2013CheckBoxGlyphInfoReturns the default CheckBoxGlyphInfo object for Office 2013 CheckBox glyphs using the current Office2013ColorTable.ColorScheme.  
Public Propertystatic (Shared in Visual Basic)Office2013RadioButtonGlyphInfoReturns the default RadioButtonGlyphInfo object for Office 2013 RadioButton glyphs.  
Public Propertystatic (Shared in Visual Basic)RadioButtonGlyphInfoDetermines how radio buttons are drawn.  
Public PropertyRightToLeftReturns whether the drawing of the current element is RightToLeft.  
Public Propertystatic (Shared in Visual Basic)ScenicRibbonCheckBoxGlyphInfoReturns the default CheckBoxGlyphInfo object for ScenicRibbon CheckBox glyphs.  
Public Propertystatic (Shared in Visual Basic)ScenicRibbonRadioButtonGlyphInfoReturns the default RadioButtonGlyphInfo object for ScenicRibbon RadioButton glyphs.  
Public Propertystatic (Shared in Visual Basic)StandardCheckBoxGlyphInfoReturns the default CheckBoxGlyphInfo object for standard CheckBox glyphs.  
Public Propertystatic (Shared in Visual Basic)StandardRadioButtonGlyphInfoReturns the default CheckBoxGlyphInfo object for standard radio button glyphs.  
Public PropertyTextBrushThe brush used to draw text (read-only)  
Public PropertyTextRenderingModeReturns the text rendering mode. Note that this can be Default, in which case the DrawUtility.UseGDIPlusTextRendering value.  
Public PropertyUsesThemesTrue if the themes are supported (read-only).  
Public PropertyZoomFactorThe zoom factor of the ControlUIElement.  
Public Methods
 NameDescription
Public MethodAdjustForDrawingOverloaded. Helper method that adjust the rectangle for drawing by adjusting it for right to left and zooming.  
Public MethodAdjustForRightToLeftTakes a rectangle relative to the UIElement and adjusts it for RightToLeft, if needed.  
Public MethodAdjustForZoomingOverloaded. Adjusts the rectangle based on the drawParams' zoom factor.  
Public MethodCreateHatchBrushCreates a System.Drawing.Drawing2D.HatchBrush with the specified colors adjusted based on the alpha settings  
Public MethodCreateSolidBrushCreates a System.Drawing.SolidBrush with specified color adjusted based on the alpha settings  
Public MethodDrawArrowIndicatorOverloaded. Draws the arrow for a scroll button, dropdown button, etc.  
Public MethodDrawBackColorOverloaded. Fills back color into a supplied rect (based on the current appearance settings.  
Public MethodDrawBordersOverloaded. Draws the borders around the current element.  
Public MethodDrawButtonBordersOverloaded. Draws button borders around the element.  
Public MethodDrawButtonRegionRenders button borders using the specified ImageRegion  
Public MethodDrawCheckBoxOverloaded. Renders a checkbox into the Graphics object using the current alphablend settings.  
Public MethodDrawFocusRectangleOverloaded. Draws a focus rectangle within the bounds of the element's borders.  
Public MethodDrawImageOverloaded. Renders the specified image on the graphics object.  
Public MethodDrawImageBackgroundOverloaded. Renders the ImageBackground for the current Element  
Public MethodDrawMixedCheckBoxOverloaded. Renders a checkbox into the Graphics object using the current alphablend settings.  
Public MethodDrawOffice2010ArrowIndicatorDraws the arrow for a scroll button, dropdown button, etc.  
Public MethodDrawRadioButtonOverloaded. Renders a radion/option button into the Graphics object using the current alphablend settings.  
Public MethodDrawStringDraws textToRender in specified rectangle.  
Public MethodDrawZoomedImageRenders and scales the specified image in the center of the graphics object.  
Public MethodGetAlphaBlendColorReturns a color with a modified Alpha channel based on whether AlphaBlending is supported and the current DrawPhaseAlphaLevel  
Public Methodstatic (Shared in Visual Basic)GetGlyphSizeOverloaded. Attempts to determine the glyph size for an element by walking up the parent chain and looking for the editor element or the ControlElement and calling GetGlyphInfo.  
Public MethodGetPenReturns a cached pen of the requested type. This pen should not be disposed of. It will be cleaned up eventually when the dispose method of this class is called.  
Public MethodInitUIElementThis method is used internally to initialize the UIElementDrawParams when rendering a specific element.  
Public MethodMirrorPointIfNeededOverloaded. Takes a point and mirrors it with respect to the UIElement if the interior of the element is RightToLeft.  
Public Methodstatic (Shared in Visual Basic)MirrorRectTakes a rectangle and mirrors it with respect to the parent rect.  
Public MethodMirrorRectIfNeededOverloaded. Takes a rectangle and mirrors it with respect to the UIElement if the interior of the element is RightToLeft.  
See Also