[Expand]General Information
[Expand]WinForms Controls
[Expand]ASP.NET Controls and MVC Extensions
[Expand]ASP.NET Bootstrap Controls
[Expand]ASP.NET Core Bootstrap Controls
[Expand]WPF Controls
[Expand]Xamarin Controls
[Expand]Windows 10 App Controls
[Expand]Office File API
[Expand]Report and Dashboard Server
[Expand]eXpressApp Framework
[Expand]eXpress Persistent Objects
  System Requirements
  Improve Performance
 [Expand]Features by Language
 [Expand]Getting Started
 [Expand]How To
 [Expand]Coding Assistance
 [Expand]Navigation and Search Tools
 [Expand]Static Code Analysis
 [Expand]Visualization Tools
 [Expand]Code Style Assistance
  Building Assistance
  Debugging Assistance
 [Expand]Refactoring Assistance
 [Expand]Unit Testing Assistance
 [Expand]Decompiling Tools
 [Expand]Configuration Options
   Adding a Dictionary for the Spell Checker
  [Collapse]Custom Templates Creation
    Adding a Template
    Using Text Commands
    Referencing Namespaces
    Linking Identifiers
    Providing Input Fields
    Using Variables
    Iterating Through Elements
    Template Name Variables
    Alternative Template Expansions
   [Collapse]Text Commands
    [Expand]Add References
    [Expand]Auto Completion
    [Expand]Code Context
    [Expand]Code Generation
    [Expand]Code Templates
    [Expand]Change Caret Position
    [Expand]Iterate Through Elements
    [Expand]Text Fields
    [Expand]Text Operation
    String Providers
  [Expand]Context Providers
   Specify a Default Filter for the Jump to Symbol Window
[Expand]CodeRush Classic
[Expand]Cross-Platform Core Libraries
[Expand]Tools and Utilities
 End-User Documentation
View this topic on docs.devexpress.com (Learn more)

Text Commands

This section describes text commands and provides a usage example.

Expanded How to Insert Text Command into Template

  • Open the Editor | All Languages | Templates options page.

  • Choose the language for your template.

  • Add a template or choose a template from the list.

  • Use the (Select to insert) drop-down list to insert a text command into your template expansion code.


Text Commands are inserted without their signature. To pass one or more parameters, enclose them in parentheses after the Text Command name.

The following example shows how to insert the AddAssemblyReference text command into the template expansion code and run the template.

Is this topic helpful?​​​​​​​