Version

EditButtonSpaceHolderUIElement Class

UI element used to render background of the space reserved for an edit button element when using the ColumnStyle of Edit.
Syntax
'Declaration
 
Public Class EditButtonSpaceHolderUIElement 
   Inherits Infragistics.Win.UIElement
   Implements Infragistics.Win.UIAutomation.IProvideUIAutomation 
public class EditButtonSpaceHolderUIElement : Infragistics.Win.UIElement, Infragistics.Win.UIAutomation.IProvideUIAutomation  
Remarks

When using the column style of Edit, the edit button is displayed according to the UltraGridColumn.ButtonDisplayStyle property setting, which by default is when the mouse is over the cell. When the edit button is not displayed and the horizontal alignment of the cell content is center or right, the space where the edit button would be dispalyed when the mouse is moved over the cell is reserved so when the edit button is displayed, the cell contents do not have to be shifted left (otherwise the edit button would override the contents). However this poses a problem in that the cell itself doesn't draw its background color. The editor element draws the background color. The editor element doesn't occupy the space reserved for the edit button. Therefore there is a need for the cell background color to be drawn in the area when the edit button's space is reserved. This is precisely the purpose that this ui element serves. Note that if you are using gradients, you may want to set the BackGradientAlignment to Container or another suitable setting so the backgrounds of the editor element and this element aren't distinguished in regards to gradient rendering.

Requirements

Target Platforms: Windows 10, Windows 8.1, Windows 8, Windows 7, Windows Server 2012, Windows 7, Windows Vista SP1 or later, Windows XP SP3, Windows Server 2008 (Server Core not supported), Windows Server 2008 R2 (Server Core supported with SP1 or later), Windows Server 2003 SP2

See Also