Class GridUtil
Inheritance
System.Object
    GridUtil
  Inherited Members
      System.Object.Equals(System.Object)
    
      System.Object.Equals(System.Object, System.Object)
    
      System.Object.GetHashCode()
    
      System.Object.GetType()
    
      System.Object.MemberwiseClone()
    
      System.Object.ReferenceEquals(System.Object, System.Object)
    
      System.Object.ToString()
    
Namespace: Syncfusion.Windows.Forms.CellGrid.Utility
Assembly: Syncfusion.Spreadsheet.Windows.dll
Syntax
public static class GridUtil
  Methods
Descendant(Control, ref List<Control>)
Generic method to get the list of DescendantChilds of a DependenctObject
Declaration
public static void Descendant(Control root, ref List<Control> list)
  Parameters
| Type | Name | Description | 
|---|---|---|
| System.Windows.Forms.Control | root | |
| System.Collections.Generic.List<System.Windows.Forms.Control> | list | 
FindDescendant<T>(Control)
Generic method to find visual parent of specified type.
Declaration
public static Control FindDescendant<T>(this Control source)
  Parameters
| Type | Name | Description | 
|---|---|---|
| System.Windows.Forms.Control | source | 
Returns
| Type | 
|---|
| System.Windows.Forms.Control | 
Type Parameters
| Name | Description | 
|---|---|
| T | type of parent  | 
      
FindDescendantChildByName(Control, String)
Generic method to find the DeccendantChild of the FrameworkElement by specifying the name
Declaration
public static Control FindDescendantChildByName(Control element, string name)
  Parameters
| Type | Name | Description | 
|---|---|---|
| System.Windows.Forms.Control | element | |
| System.String | name | 
Returns
| Type | 
|---|
| System.Windows.Forms.Control | 
FromLTRB(Int32, Int32, Int32, Int32)
Generic method to Get the Rectangle using left, top, right and bottom
Declaration
public static Rectangle FromLTRB(int left, int top, int right, int bottom)
  Parameters
| Type | Name | Description | 
|---|---|---|
| System.Int32 | left | |
| System.Int32 | top | |
| System.Int32 | right | |
| System.Int32 | bottom | 
Returns
| Type | 
|---|
| System.Drawing.Rectangle | 
GetChildObject<T>(Control, String)
Generic method to get the child object
Declaration
public static T GetChildObject<T>(Control obj, string name)
    where T : Control
  Parameters
| Type | Name | Description | 
|---|---|---|
| System.Windows.Forms.Control | obj | |
| System.String | name | 
Returns
| Type | 
|---|
| T | 
Type Parameters
| Name | 
|---|
| T | 
GetNavigatableDescendants(Control, ref List<Control>)
Generic method to get the navigatable child Controls
Declaration
public static void GetNavigatableDescendants(Control uiElement, ref List<Control> list)
  Parameters
| Type | Name | Description | 
|---|---|---|
| System.Windows.Forms.Control | uiElement | |
| System.Collections.Generic.List<System.Windows.Forms.Control> | list | 
GetVisualChild<T>(Control)
Declaration
public static T GetVisualChild<T>(Control parent)
    where T : Control
  Parameters
| Type | Name | Description | 
|---|---|---|
| System.Windows.Forms.Control | parent | 
Returns
| Type | 
|---|
| T | 
Type Parameters
| Name | 
|---|
| T | 
IsComplexType(Type)
Indicates whether the specified Type has nested properties.
Declaration
public static bool IsComplexType(Type t)
  Parameters
| Type | Name | Description | 
|---|---|---|
| System.Type | t | The Type to be checked.  | 
      
Returns
| Type | Description | 
|---|---|
| System.Boolean | True if nested properties are found; False otherwise.  | 
      
IsEqual(Pen, Pen)
Declaration
public static bool IsEqual(this Pen pen1, Pen pen2)
  Parameters
| Type | Name | Description | 
|---|---|---|
| System.Drawing.Pen | pen1 | |
| System.Drawing.Pen | pen2 | 
Returns
| Type | 
|---|
| System.Boolean |