menu

WPF

  • Code Examples
  • Upgrade Guide
  • User Guide
  • Demos
  • Support
  • Forums
  • Download
Class GridUtil - WPF API Reference | Syncfusion

    Show / Hide Table of Contents

    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.UI.Xaml.Grid.Utility
    Assembly: Syncfusion.SfGridCommon.WPF.dll
    Syntax
    public static class GridUtil

    Methods

    Descendant(DependencyObject, ref List<DependencyObject>)

    Generic method to get the list of DescendantChilds of a DependenctObject

    Declaration
    public static void Descendant(DependencyObject root, ref List<DependencyObject> list)
    Parameters
    Type Name Description
    System.Windows.DependencyObject root
    System.Collections.Generic.List<System.Windows.DependencyObject> list

    FindDescendant<T>(DependencyObject)

    Generic method to find visual parent of specified type.

    Declaration
    public static DependencyObject FindDescendant<T>(this DependencyObject source)
    Parameters
    Type Name Description
    System.Windows.DependencyObject source
    Returns
    Type
    System.Windows.DependencyObject
    Type Parameters
    Name Description
    T

    type of parent

    FindDescendantChildByName(FrameworkElement, String)

    Generic method to find the DeccendantChild of the FrameworkElement by specifying the name

    Declaration
    public static FrameworkElement FindDescendantChildByName(FrameworkElement element, string name)
    Parameters
    Type Name Description
    System.Windows.FrameworkElement element
    System.String name
    Returns
    Type
    System.Windows.FrameworkElement

    FindVisualChildrenOfType<T>(DependencyObject)

    Returns the visual children of specified type from the parent object.

    Declaration
    public static IEnumerable<T> FindVisualChildrenOfType<T>(DependencyObject parent)
        where T : DependencyObject
    Parameters
    Type Name Description
    System.Windows.DependencyObject parent
    Returns
    Type
    System.Collections.Generic.IEnumerable<T>
    Type Parameters
    Name
    T

    FromLTRB(Double, Double, Double, Double)

    Generic method to Get the Rectangle using left, top, right and bottom

    Declaration
    public static Rect FromLTRB(double left, double top, double right, double bottom)
    Parameters
    Type Name Description
    System.Double left
    System.Double top
    System.Double right
    System.Double bottom
    Returns
    Type
    System.Windows.Rect

    GetChildObject<T>(DependencyObject, String)

    Generic method to get the child object

    Declaration
    public static T GetChildObject<T>(DependencyObject obj, string name)
        where T : DependencyObject
    Parameters
    Type Name Description
    System.Windows.DependencyObject obj
    System.String name
    Returns
    Type
    T
    Type Parameters
    Name
    T

    GetDataRelation(PropertyDescriptor)

    Returns the PropertyDescriptorCollection for the relation or nested collection.

    Declaration
    public static DataRelation GetDataRelation(PropertyDescriptor pd)
    Parameters
    Type Name Description
    System.ComponentModel.PropertyDescriptor pd
    Returns
    Type
    System.Data.DataRelation

    GetNavigatableDescendants(UIElement, ref List<Control>)

    Generic method to get the navigatable child Controls

    Declaration
    public static void GetNavigatableDescendants(UIElement uiElement, ref List<Control> list)
    Parameters
    Type Name Description
    System.Windows.UIElement uiElement
    System.Collections.Generic.List<System.Windows.Controls.Control> list

    GetVisualChild<T>(DependencyObject)

    Declaration
    public static T GetVisualChild<T>(DependencyObject parent)
        where T : DependencyObject
    Parameters
    Type Name Description
    System.Windows.DependencyObject 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(Brush, Brush)

    Compare two brushes are equal or not

    Declaration
    public static bool IsEqual(this Brush aBrush1, Brush aBrush2)
    Parameters
    Type Name Description
    System.Windows.Media.Brush aBrush1
    System.Windows.Media.Brush aBrush2
    Returns
    Type Description
    System.Boolean

    Returns true, if brushes are equal

    IsEqual(Pen, Pen)

    Declaration
    public static bool IsEqual(this Pen pen1, Pen pen2)
    Parameters
    Type Name Description
    System.Windows.Media.Pen pen1
    System.Windows.Media.Pen pen2
    Returns
    Type
    System.Boolean
    Back to top Generated by DocFX
    Copyright © 2001 - 2025 Syncfusion Inc. All Rights Reserved