Navigation: T4 Template Language Reference > Directives >Property Directive | |
<;#@ property processor='PropertyProcessor' name='OutputFile'displayname=“Output File” type='System.String' defaultValue='none' editor='System.Windows.Forms.Design.FileNameEditor' #>
The 'property' directive defines an editable property of the template. It corresponds to a #PROMPT in our Win32 template language.
attributes:
processor= 'PropertyProcessor' (required)
name= internal name
displayname= this is the property name that is displayed in the Property grid
type= defines the type of value that is accepted
defaultValue= provides an optional default value
editor= the editor that is used to edit the property
see his topic for information on available Property editors
Examples:
<;#@ property name=“BrowseTable” type=“System.String” editor=“SoftVelocity.DataDictionary.Design.ITableTypeEditor”#>
<;#@ property name=“BrowseColumnsList” type=“System.String” displayname=“Columns list” editor=“ITableColumnNameCollectionTypeEditor” scope=“BrowseTable”#>