C# Class DotNetNuke.Extensions.Web.ControlExtensions

Exnteion methods for control.
显示文件 Open project: JonHaywood/DotNetNuke.Extensions

Public Methods

Method Description
FindControl ( this parentControl, bool>.Func filterFunc ) : Control

Finds the first control in the control hierarchy that matches the filter function.

FindControlById ( this parentControl, string id ) : Control

Finds the control by id.

FindControls ( this parentControl, bool>.Func filterFunc ) : List

Finds all controls that are in the control hierarchy below this control.

FindControlsByPrefix ( this parentControl, string idPrefix ) : List

Finds the controls by the ID prefix.

Private Methods

Method Description
FindControls ( Control parentControl, bool findOne, bool>.Func filterFunc ) : List

Finds all controls that are in the control hierarchy below this control.

Method Details

FindControl() public static method

Finds the first control in the control hierarchy that matches the filter function.
public static FindControl ( this parentControl, bool>.Func filterFunc ) : Control
parentControl this The parent control.
filterFunc bool>.Func Function that tests each control to see if it matches our criteria.
return System.Web.UI.Control

FindControlById() public static method

Finds the control by id.
public static FindControlById ( this parentControl, string id ) : Control
parentControl this The parent control.
id string The id.
return System.Web.UI.Control

FindControls() public static method

Finds all controls that are in the control hierarchy below this control.
public static FindControls ( this parentControl, bool>.Func filterFunc ) : List
parentControl this The parent control.
filterFunc bool>.Func Function that tests each control to see if it matches our criteria.
return List

FindControlsByPrefix() public static method

Finds the controls by the ID prefix.
public static FindControlsByPrefix ( this parentControl, string idPrefix ) : List
parentControl this The parent control.
idPrefix string The id prefix.
return List