C# Class EnterpriseWebLibrary.EnterpriseWebFramework.Controls.ControlStack

Used to stack inline controls vertically. Implemented with div blocks.
Inheritance: System.Web.UI.WebControls.WebControl, ControlTreeDataLoader
显示文件 Open project: enduracode/enterprise-web-library Class Usage Examples

Public Methods

Method Description
AddControls ( ) : void

Adds the specified controls to the stack.

AddItem ( ControlListItem item ) : void

Adds an item to the control stack.

AddModificationErrorItem ( EwfValidation validation, ErrorDisplayStyle displayStyle ) : void

Adds an item for the error messages from the specified validation. If there aren't any error messages, the control getter is not called and no item is added.

AddText ( ) : void

Add the given list of strings to the control stack. Do not pass null for any of the strings. If you do, it will be converted to the empty string.

Create ( bool isStandard, IEnumerable tailUpdateRegions = null, IEnumerable itemInsertionUpdateRegions = null ) : ControlStack

Creates a blank vertical stack of controls.

CreateWithControls ( bool isStandard ) : ControlStack

Creates a control stack and adds the specified controls to it.

CreateWithText ( bool isStandard ) : ControlStack

Creates a vertical stack of text controls out of the given list of strings.

Private Methods

Method Description
ControlStack ( bool isStandard, IEnumerable tailUpdateRegions, IEnumerable itemInsertionUpdateRegions ) : System
ControlTreeDataLoader ( ) : void
getItemControl ( bool>.Tuple item ) : IEnumerable

Method Details

AddControls() public method

Adds the specified controls to the stack.
public AddControls ( ) : void
return void

AddItem() public method

Adds an item to the control stack.
public AddItem ( ControlListItem item ) : void
item ControlListItem
return void

AddModificationErrorItem() public method

Adds an item for the error messages from the specified validation. If there aren't any error messages, the control getter is not called and no item is added.
public AddModificationErrorItem ( EwfValidation validation, ErrorDisplayStyle displayStyle ) : void
validation EwfValidation
displayStyle ErrorDisplayStyle
return void

AddText() public method

Add the given list of strings to the control stack. Do not pass null for any of the strings. If you do, it will be converted to the empty string.
public AddText ( ) : void
return void

Create() public static method

Creates a blank vertical stack of controls.
public static Create ( bool isStandard, IEnumerable tailUpdateRegions = null, IEnumerable itemInsertionUpdateRegions = null ) : ControlStack
isStandard bool Sets whether or not this control stack will have standard styling.
tailUpdateRegions IEnumerable
itemInsertionUpdateRegions IEnumerable
return ControlStack

CreateWithControls() public static method

Creates a control stack and adds the specified controls to it.
public static CreateWithControls ( bool isStandard ) : ControlStack
isStandard bool
return ControlStack

CreateWithText() public static method

Creates a vertical stack of text controls out of the given list of strings.
public static CreateWithText ( bool isStandard ) : ControlStack
isStandard bool
return ControlStack