public static T FindDescendantByProperty <T>(this GuiHTMLViewer HTMLViewer, Func <T, bool> Property = null)
     where T : class
 {
     if (Property == null)
     {
         Property = new Func <T, bool>(t => true);
     }
     return(findDescendantByPropertyTemplate <T>(HTMLViewer.Children, Property));
 }
 public static IEnumerable <T> FindAllByName <T>(this GuiHTMLViewer HTMLViewer, string Name)
     where T : class
 {
     return(findAllByNameTemplate <T>(Name, HTMLViewer.FindAllByName));
 }
Exemple #3
0
 public static T FindById <T>(this GuiHTMLViewer HTMLViewer, string Id)
     where T : class
 {
     return(findByIdTemplate <T>(Id, HTMLViewer.FindById));
 }
Exemple #4
0
 public static T FindByName <T>(this GuiHTMLViewer HTMLViewer, string Name)
     where T : class
 {
     return(findByNameTemplate <T>(Name, HTMLViewer.FindByName));
 }
Exemple #5
0
 public static T FindChildByProperty <T>(this GuiHTMLViewer HTMLViewer, Func <T, bool> Property = null)
     where T : class
 {
     return(findChildByPropertyTemplate <T>(HTMLViewer.Children, Property));
 }
 public static T FindByNameEx <T>(this GuiHTMLViewer HTMLViewer, string Name, int TypeId)
     where T : class
 {
     return(findByNameExTemplate <T>(Name, TypeId, HTMLViewer.FindByNameEx));
 }
Exemple #7
0
 public static IEnumerable <T> FindDescendantsByProperty <T>(this GuiHTMLViewer HTMLViewer, Func <T, bool> Property = null)
     where T : class
 {
     return(findDescendantsByPropertyTemplate <T>(HTMLViewer.Children, Property));
 }