Otter SDK Reference
Version:

CExtensions Class

Contains Control-related extension methods.

Inheritance Hierarchy

  • object
    • Inedo.Web.Controls.CExtensions

Syntax

public class CExtensions

Methods

Name Description
Add(System.Web.UI.ControlCollection toControl, System.Web.UI.Control[] controls)

Adds controls to the specified control collection.

Add(System.Web.UI.ControlCollection toControl, CExtensions.CreateControl createControlDelegate)
AddHtml(System.Web.UI.ControlCollection toControl, string tagName, string innerHtml)

Adds an instance of a System.Web.UI.HtmlGenericControl to a control collection.

AddHtmlEncoded(System.Web.UI.ControlCollection toControl, string tagName, string innerText)

Adds an instance of a System.Web.UI.HtmlGenericControl to a control collection.

AddLiteral(System.Web.UI.ControlCollection toControl, string literal)

Creates an instance of a System.Web.UI.LiteralControl containing the supplied string.

AddLiteral(System.Web.UI.ControlCollection toControl, string literalFormatString, object[] formatArgs)

Creates an instance of a System.Web.UI.LiteralControl containing a string generated from the supplied format string and arguments.

AddRange(System.Web.UI.ControlCollection toControl, System.Collections.Generic.IEnumerable<System.Web.UI.Control> controls)

Adds a collection of controls to another control's collection.

AddRange(System.Web.UI.WebControls.ListItemCollection collection, System.Collections.Generic.IEnumerable<System.Web.UI.WebControls.ListItem> listItems)

Adds the range.

BindVisibility(System.Web.UI.ControlCollection toControl, System.Web.UI.WebControls.CheckBox checkBox, System.Web.UI.Control boundControl)

Binds the visibility of a control to a CheckBox control.

Find<TControl>(System.Web.UI.ControlCollection controls)

Returns all of the controls in a control tree that are of the specified type.

IncludeClientResourceInPage(System.Web.UI.Control control, Inedo.Web.ClientResources.ClientResource clientResource)

Includes the specified client resource in the parent page of a control.

Interleave(System.Collections.Generic.IEnumerable<System.Web.UI.Control> controls, System.Func<System.Web.UI.Control> getSeparator)

Interleaves controls created from a factory method between each control in the sequence.