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


In This Topic
    GridElement Class
    In This Topic
    Represents any element in the grid and exposes properties and methods that allow their manipulations.
    Syntax
    'Declaration
     
    <DesignerAttribute("Xceed.Grid.Design.GridElementDesigner,Xceed.Grid.v4.3.Design,Version=4.3.25455.6282,Culture=neutral,PublicKeyToken=ba83ff368b7563c6")>
    <DesignTimeVisibleAttribute(False)>
    <DefaultPropertyAttribute("BackColor")>
    <DefaultEventAttribute("BackColorChanged")>
    <ToolboxItemAttribute(False)>
    Public MustInherit Class GridElement 
       Inherits GridElementBase
    'Usage
     
    Dim instance As GridElement
    [Designer("Xceed.Grid.Design.GridElementDesigner,Xceed.Grid.v4.3.Design,Version=4.3.25455.6282,Culture=neutral,PublicKeyToken=ba83ff368b7563c6")]
    [DesignTimeVisible(false)]
    [DefaultProperty("BackColor")]
    [DefaultEvent("BackColorChanged")]
    [ToolboxItem(false)]
    public abstract class GridElement : GridElementBase 
    Remarks

    When setting properties that modify the contents of a grid element, for example the Font or ForeColor properties, it is important to remember that if the grid element is a cell, then only the cell will be modified. If the grid element is a row or column, then all the cells in the row or column will be modified.

    The GridElement class implements the System.ComponentModel.IComponent interface which derives from the System.IDisposable interface. This was necessary in order for each grid element to be a component in the Grid Designer and thus individually selectable. It is not necessary however to call the System.IDisposable.Dispose method on the GridElement class nor on any class that derives from the GridElement class.

    When creating a class that derives from GridElement (or any of its derived classes), code should not be placed within the System.IDisposable.Dispose method since Dispose will not be called.
    Inheritance Hierarchy

    System.Object
       System.MarshalByRefObject
          Xceed.Grid.GridElementBase
             Xceed.Grid.GridElement
                Xceed.Grid.Column
                Xceed.Grid.GroupBase
                Xceed.Grid.VisualGridElement

    Public Properties
     NameDescription
    Public PropertyGets the alignment of the element's content.  
    Public PropertyGets the ambient parent of the grid element.  
    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 the GridControl in which all the grid elements are contained.  
    Public PropertyGets or sets the horizontal alignment of the grid element's content.  
    Public PropertyGets a boolean value indicating if the BackColor property gets its value from its parent.  
    Public PropertyGets a boolean value indicating if the ClipPartialLine property gets its value from its parent.  
    Public PropertyGets a boolean value indicating if the Font property gets its value from its parent.  
    Public PropertyGets a boolean value indicating if the ForeColor property gets its value from its parent.  
    Public PropertyGets a boolean value indicating if the HorizontalAlignment property gets its value from its parent.  
    Public PropertyGets a boolean value indicating if the OverrideUIStyle property gets its value from its parent.  
    Public PropertyGets a boolean value indicating whether the OverrideUIStyle property has been explicitly set.  
    Public PropertyGets a boolean value indicating if the ReadOnly property gets its value from its parent.  
    Public PropertyGets a boolean value indicating if one or more properties of the ReportStyle have been explicitly set.  
    Public PropertyGets a boolean value indicating if the Trimming property gets its value from its parent.  
    Public PropertyGets a boolean value indicating if the VerticalAlignment property gets its value from its parent.  
    Public PropertyGets a boolean value indicating if the WordWrap property gets its value from its parent.  
    Public PropertyGets or sets a boolean value indicating whether any theming based on the UIStyle property of the GridControl will be overridden.  
    Public PropertyGets the parent grid of the grid element.  
    Public PropertyGets or sets a boolean value indicating if the content of cell(s) can be edited.  
    Public PropertyGets the report style of the grid element.  
    Public PropertyGets or sets the object that contains data about the grid element.  
    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.  
    Public PropertyGets or sets a boolean value indicating if the GridElement is visible.  
    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 ambient value of the grid element's BackColor property.  
    Protected PropertyGets the ambient value of the grid element's ClipPartialLine property.  
    Protected PropertyGets the ambient value of the grid element's Font property.  
    Protected PropertyGets the ambient value of the grid element's ForeColor property.  
    Protected PropertyGets the ambient value of the grid element's HorizontalAlignment property.  
    Protected PropertyGets the ambient value of the grid elements's OverrideUIStyle property.  
    Protected PropertyGets the ambient value of the grid element's ReadOnly property.  
    Protected PropertyGets the ambient value of the grid element's Trimming property.  
    Protected PropertyGets the ambient value of the grid element's VerticalAlignment property.  
    Protected PropertyGets the ambient value of the grid element's WordWrap property.  
    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 ReadOnly property.  
    Protected PropertyGets the default value of the Tag 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 Visible property.  
    Protected PropertyGets the default value of the WordWrap property.  
    Protected PropertyGets a list of the events to which the grid element is subscribed. (Inherited from Xceed.Grid.GridElementBase)
    Protected PropertyGets a boolean value indicating if the GridElement's parent is visible.  
    Protected PropertyGets a collection of property names whose values have been explicitly set as well as the corresponding values. (Inherited from Xceed.Grid.GridElementBase)
    Protected Internal PropertyThis property is reserved for internal use and is not intended to be used directly from your code.  
    Top
    Public Methods
     NameDescription
    Public MethodBrings the grid element into the visible area of the grid.  
    Public Method (Inherited from System.MarshalByRefObject)
    Public Method (Inherited from System.MarshalByRefObject)
    Public Method (Inherited from System.MarshalByRefObject)
    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 ReadOnly property to its default value, DefaultReadOnly.  
    Public MethodResets the property values of the ReportStyle.  
    Public MethodResets the values of the properties affected by a GridElementStyle to their default values.  
    Public MethodResets the value of the Tag property to its default value, DefaultTag.  
    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 Visible property to its default value, DefaultVisible.  
    Public MethodResets the value of the WordWrap property to its default value, DefaultWordWrap.  
    Top
    Protected Methods
     NameDescription
    Protected Internal Method (Inherited from Xceed.Grid.GridElementBase)
    Protected Internal MethodRetrieves the value of the specified property in the Properties collection. (Inherited from Xceed.Grid.GridElementBase)
    Protected Internal MethodRetrieves a boolean value indicating if the specified property has been explicitly set. (Inherited from Xceed.Grid.GridElementBase)
    Protected Method (Inherited from Xceed.Grid.GridElementBase)
    Protected MethodOverloaded.  (Inherited from System.MarshalByRefObject)
    Protected MethodRaises the BackColorChanged event.  
    Protected MethodRaises the ClipPartialLineChanged event.  
    Protected MethodRaises the FontChanged event.  
    Protected MethodRaises the ForeColorChanged event.  
    Protected MethodRaises the HorizontalAlignmentChanged event.  
    Protected MethodRaises the OverrideUIStyleChanged event.  
    Protected MethodRaises the ReadOnlyChanged event.  
    Protected MethodRaises the TrimmingChanged event.  
    Protected MethodRaises the VerticalAlignmentChanged event.  
    Protected MethodRaises the VisibleChanged event.  
    Protected MethodRaises the WordWrapChanged event.  
    Protected MethodRaises the specified event. (Inherited from Xceed.Grid.GridElementBase)
    Protected Internal Method (Inherited from Xceed.Grid.GridElementBase)
    Protected MethodRemoves the specified property from the Properties collection. (Inherited from Xceed.Grid.GridElementBase)
    Protected Internal Method (Inherited from Xceed.Grid.GridElementBase)
    Protected MethodThis method is reserved for internal use and is not intended to be used directly from your code.  
    Top
    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 the ReadOnly property is 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 Visible 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