Xceed Grid for WinForms v4.3 Documentation
Xceed.Grid.v4.3 Assembly / Xceed.Grid Namespace / GridElementStyle Class
Members


In This Topic
    GridElementStyle Class
    In This Topic
    Represents the style of a GridElement.
    Syntax
    'Declaration
     
    <DesignTimeVisibleAttribute(False)>
    <DefaultPropertyAttribute("BackColor")>
    <DefaultEventAttribute("BackColorChanged")>
    <ToolboxItemAttribute(False)>
    Public Class GridElementStyle 
    'Usage
     
    Dim instance As GridElementStyle
    [DesignTimeVisible(false)]
    [DefaultProperty("BackColor")]
    [DefaultEvent("BackColorChanged")]
    [ToolboxItem(false)]
    public class GridElementStyle 
    Remarks
    If a property that modifies the appearance of the style is added to a derived class, the OnStyleChanged method must be called when the value of the property is modified, otherwise the grid will not be repainted to reflect the changes. This only applies to the GridControl.DataRowTemplateStyles.
    Inheritance Hierarchy

    System.Object
       Xceed.Grid.GridElementStyle
          Xceed.Grid.StatelessVisualGridElementStyle

    Public Constructors
     NameDescription
    Public ConstructorOverloaded.   
    Top
    Public Properties
     NameDescription
    Public PropertyGets or sets the background color of the grid element.  
    Public PropertyGets or sets a boolean value indicating if partial lines should be clipped.  
    Public PropertyGets or sets the font of the grid element.  
    Public PropertyGets or sets the foreground color of the grid element.  
    Public PropertyGets or sets the horizontal alignment of the grid element's content.  
    Public PropertyGets a boolean value indicating if the BackColor property has been explicitly set.  
    Public PropertyGets a boolean value indicating if the ClipPartialLine property has been explicitly set.  
    Public PropertyGets a boolean value indicating if the Font property has been explicitly set.  
    Public PropertyGets a boolean value indicating if the ForeColor property has been explicitly set.  
    Public PropertyGets a boolean value indicating if the HorizontalAlignment property has been explicitly set.  
    Public PropertyGets a boolean value indicating whether the OverrideUIStyle property has been explicitly set.  
    Public PropertyGets a boolean value indicating if the Trimming property has been explicitly set.  
    Public PropertyGets a boolean value indicating if the VerticalAlignment property has been explicitly set.  
    Public PropertyGets a boolean value indicating if the WordWrap property has been explicitly set.  
    Public PropertyGets or sets a boolean value indicating whether any theming based on the UIStyle property of the GridControl will be overridden.  
    Public PropertyGets or sets a value indicating how text displayed in the cell will be trimmed when it exceeds the edges of the layout rectangle.  
    Public PropertyGets or sets the vertical alignment of the grid element's content when it is printed in a report.  
    Public PropertyGets or sets a boolean value indicating if the text of the grid element should be wrapped.  
    Top
    Protected Properties
     NameDescription
    Protected PropertyGets the default value of the BackColor property  
    Protected PropertyGets the default value of the ClipPartialLine property.  
    Protected PropertyGets the default value of the Font property.  
    Protected PropertyGets the default value of the ForeColor property  
    Protected PropertyGets the default value of the HorizontalAlignment property.  
    Protected PropertyGets the default value of the OverrideUIStyle property.  
    Protected PropertyGets the default value of the Trimming property.  
    Protected PropertyGets the default value of the VerticalAlignment property.  
    Protected PropertyGets the default value of the WordWrap property.  
    Protected PropertyGets a collection of property names whose values have been explicitly set as well as the corresponding values.  
    Top
    Public Methods
     NameDescription
    Public MethodOverloaded. Applies the style to the specified grid element.  
    Public MethodCreates an exact copy of the style.  
    Public MethodDetermines whether the specified object is equal to the current GridElementStyle.  
    Public MethodServes as a hash function for the GridElementStyle object, suitable for use in hashing algorithms and data structures such as a hash table.  
    Public MethodResets all of the properties that have been explicitly set back to their default values.  
    Public MethodResets the value of the BackColor property to its default value, DefaultBackColor.  
    Public MethodResets the value of the ClipPartialLine property to its default value, DefaultClipPartialLine.  
    Public MethodResets the value of the Font property to its default value, DefaultFont.  
    Public MethodResets the value of the ForeColor property to its default value, DefaultForeColor.  
    Public MethodResets the value of the HorizontalAlignment property to its default value, DefaultHorizontalAlignment.  
    Public MethodResets the value of the OverrideUIStyle property to its default value, DefaultOverrideUIStyle.  
    Public MethodResets the value of the Trimming property to its default value, DefaultTrimming.  
    Public MethodResets the value of the VerticalAlignment property to its default value, DefaultVerticalAlignment.  
    Public MethodResets the value of the WordWrap property to its default value, DefaultWordWrap.  
    Top
    Protected Methods
    Public Events
     NameDescription
    Public EventRaised when the value of the BackColor property is changed.  
    Public EventRaised when the value of the ClipPartialLine property is changed.  
    Public EventRaised when the value of the Font property is changed.  
    Public EventRaised when the value of the ForeColor property is changed.  
    Public EventRaised when the value of the HorizontalAlignment property is changed.  
    Public EventRaised when the value of the OverrideUIStyle property is changed.  
    Public EventRaised when the value of any visual property has been changed.  
    Public EventRaised when the value of the Trimming property is changed.  
    Public EventRaised when the value of the VerticalAlignment property is changed.  
    Public EventRaised when the value of the WordWrap property is changed.  
    Top
    Requirements

    Target Platforms: 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