C# 클래스 EnterpriseWebLibrary.EnterpriseWebFramework.FormItemBlock

Helps lay out form items in useful ways.
상속: System.Web.UI.WebControls.WebControl, ControlTreeDataLoader
파일 보기 프로젝트 열기: enduracode/enterprise-web-library

공개 메소드들

메소드 설명
AddFormItems ( ) : void

Add any number of form items. This method can be called repeatedly.

CreateFormItemList ( bool hideIfEmpty = false, string heading = "", int numberOfColumns = null, int defaultFormItemCellSpan = 1, TableCellVerticalAlignment verticalAlignment = TableCellVerticalAlignment.NotSpecified, IEnumerable formItems = null ) : FormItemBlock

Creates a block with the given number of columns where each form item control's label is placed directly on top of it. NumberOfColumns defaults to the sum of the cellspans of the given form items.

CreateFormItemTable ( bool hideIfEmpty = false, string heading = "", System.Web.UI.WebControls.Unit firstColumnWidth = null, System.Web.UI.WebControls.Unit secondColumnWidth = null, IEnumerable formItems = null ) : FormItemBlock

Creates a block with a classic "label on the left, value on the right" layout.

비공개 메소드들

메소드 설명
ControlTreeDataLoader ( ) : void
FormItemBlock ( bool hideIfEmpty, string heading, bool useFormItemListMode, int numberOfColumns, int defaultFormItemCellSpan, System.Web.UI.WebControls.Unit firstColumnWidth, System.Web.UI.WebControls.Unit secondColumnWidth, TableCellVerticalAlignment verticalAlignment, IEnumerable formItems ) : System
getCellSpan ( FormItem formItem ) : int
getFormItemRows ( IEnumerable formItems, int numberOfColumns ) : IEnumerable>

Returns a list of rows with each row containing as many form items as it can fit, but guaranteed not to exceed the number of columns. Does not add any placeholders, however.

getPlaceholderFormItem ( ) : FormItem
getTableForFormItemList ( ) : WebControl
getTableForFormItemTable ( ) : WebControl

메소드 상세

AddFormItems() 공개 메소드

Add any number of form items. This method can be called repeatedly.
public AddFormItems ( ) : void
리턴 void

CreateFormItemList() 공개 정적인 메소드

Creates a block with the given number of columns where each form item control's label is placed directly on top of it. NumberOfColumns defaults to the sum of the cellspans of the given form items.
public static CreateFormItemList ( bool hideIfEmpty = false, string heading = "", int numberOfColumns = null, int defaultFormItemCellSpan = 1, TableCellVerticalAlignment verticalAlignment = TableCellVerticalAlignment.NotSpecified, IEnumerable formItems = null ) : FormItemBlock
hideIfEmpty bool
heading string
numberOfColumns int
defaultFormItemCellSpan int
verticalAlignment TableCellVerticalAlignment
formItems IEnumerable
리턴 FormItemBlock

CreateFormItemTable() 공개 정적인 메소드

Creates a block with a classic "label on the left, value on the right" layout.
public static CreateFormItemTable ( bool hideIfEmpty = false, string heading = "", System.Web.UI.WebControls.Unit firstColumnWidth = null, System.Web.UI.WebControls.Unit secondColumnWidth = null, IEnumerable formItems = null ) : FormItemBlock
hideIfEmpty bool
heading string
firstColumnWidth System.Web.UI.WebControls.Unit
secondColumnWidth System.Web.UI.WebControls.Unit
formItems IEnumerable
리턴 FormItemBlock