編輯

共用方式為


FieldTemplateFactory Class

Definition

Creates a field template.

public ref class FieldTemplateFactory : System::Web::DynamicData::IFieldTemplateFactory
public class FieldTemplateFactory : System.Web.DynamicData.IFieldTemplateFactory
type FieldTemplateFactory = class
    interface IFieldTemplateFactory
Public Class FieldTemplateFactory
Implements IFieldTemplateFactory
Inheritance
FieldTemplateFactory
Implements

Remarks

By default, this class implements the IFieldTemplateFactory interface, and uses the UserControl class to create field templates.

Constructors

FieldTemplateFactory()

Initializes an instance of the FieldTemplateFactory class.

Properties

Model

Gets or sets the MetaModel that is associated with the FieldTemplateFactory class.

TemplateFolderVirtualPath

Gets or sets the folder in which to create a field template.

Methods

BuildVirtualPath(String, MetaColumn, DataBoundControlMode)

Builds the virtual path to a field template based on the field template name and the mode.

CreateFieldTemplate(MetaColumn, DataBoundControlMode, String)

Creates an instance of a field template using the MetaColumn class, the DataBoundControlMode class and UIHint property.

Equals(Object)

Determines whether the specified object is equal to the current object.

(Inherited from Object)
GetFieldTemplateVirtualPath(MetaColumn, DataBoundControlMode, String)

Determines the virtual path of a field template.

GetHashCode()

Serves as the default hash function.

(Inherited from Object)
GetType()

Gets the Type of the current instance.

(Inherited from Object)
Initialize(MetaModel)

Associates a MetaModel with a FieldTemplateFactory.

MemberwiseClone()

Creates a shallow copy of the current Object.

(Inherited from Object)
PreprocessMode(MetaColumn, DataBoundControlMode)

Changes the mode of the data column.

ToString()

Returns a string that represents the current object.

(Inherited from Object)

Applies to

See also