Class GridUtil
Inheritance
System.Object
GridUtil
Assembly: Syncfusion.SfGridCommon.UWP.dll
Syntax
public static class GridUtil : Object
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 |
Windows.UI.Xaml.DependencyObject |
root |
|
System.Collections.Generic.List<Windows.UI.Xaml.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 |
Windows.UI.Xaml.DependencyObject |
source |
|
Returns
Type |
Windows.UI.Xaml.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 |
Windows.UI.Xaml.FrameworkElement |
element |
|
System.String |
name |
|
Returns
Type |
Windows.UI.Xaml.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 |
Windows.UI.Xaml.DependencyObject |
parent |
|
Returns
Type |
System.Collections.Generic.IEnumerable<T> |
Type Parameters
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 |
Windows.Foundation.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 |
Windows.UI.Xaml.DependencyObject |
obj |
|
System.String |
name |
|
Returns
Type Parameters
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 |
Windows.UI.Xaml.UIElement |
uiElement |
|
System.Collections.Generic.List<Windows.UI.Xaml.Controls.Control> |
list |
|
GetVisualChild<T>(DependencyObject)
Declaration
public static T GetVisualChild<T>(DependencyObject parent)
where T : DependencyObject
Parameters
Type |
Name |
Description |
Windows.UI.Xaml.DependencyObject |
parent |
|
Returns
Type Parameters
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 |
Pen |
pen1 |
|
Pen |
pen2 |
|
Returns
Compare two brushes are equal or not
Declaration
public static bool IsEqual(this Brush aBrush1, Brush aBrush2)
Parameters
Type |
Name |
Description |
Windows.UI.Xaml.Media.Brush |
aBrush1 |
|
Windows.UI.Xaml.Media.Brush |
aBrush2 |
|
Returns
Type |
Description |
System.Boolean |
Returns true, if brushes are equal
|