GridUtil Class
  
  
  
  
    Inheritance
    System.Object
    GridUtil
   
  
  Assembly: Syncfusion.Spreadsheet.Windows.dll
  
  
    public static class GridUtil : Object
   
  Methods
  
  
  
  
  
  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 | 
         | 
      
    
  
  
  
  
  
  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 
 | 
      
    
  
  
  
  
  
  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 | 
        
      
    
  
  
  
  
  
  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 | 
        
      
    
  
  
  
  
  
  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 Parameters
  
  
  
  
  
  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 | 
         | 
      
    
  
  
  
  
  
  
  
  Declaration
  
    public static T GetVisualChild<T>(Control parent)
    where T : Control
   
  Parameters
  
    
      
        | Type | 
        Name | 
        Description | 
      
    
    
      
        | System.Windows.Forms.Control | 
        parent | 
         | 
      
    
  
  Returns
  
  Type Parameters
  
  
  
  
  
  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. 
 | 
      
    
  
  
  
  
  
  
  
  Declaration
  
    public static bool IsEqual(this Pen pen1, Pen pen2)
   
  Parameters
  
    
      
        | Type | 
        Name | 
        Description | 
      
    
    
      
        | System.Drawing.Pen | 
        pen1 | 
         | 
      
      
        | System.Drawing.Pen | 
        pen2 | 
         | 
      
    
  
  Returns