User Tools

Site Tools


property_directive.htm
Navigation:  T4 Template Language Reference > Directives >Property Directive Previous pageReturn to chapter overviewNext page

<;#@ 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”#>

property_directive.htm.txt · Last modified: 2021/04/15 15:57 by 127.0.0.1