[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
 [Collapse]Coding Assistance
  [Expand]Code Templates
  [Expand]Auto Completion
  [Expand]Clipboard Tools
  [Expand]Selection Tools
  [Expand]Code Providers
  [Collapse]Declare Menu
   [Expand]Declare Providers
  [Expand]Typing Helpers
 [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
[Expand]CodeRush Classic
[Expand]Cross-Platform Core Libraries
[Expand]Tools and Utilities
 End-User Documentation
View this topic on docs.devexpress.com (Learn more)

Declare Menu

The Declare menu allows you to add a members group to your types. You can use the Declare Menu to generate a pattern, change/overload base class members, etc.

Expanded How to Use

  1. Place the caret in a member definition and press Alt+Insert.

The Declare menu appears.

  1. Choose the action from the menu (for example, Properties) and press Enter.

  1. Use the mouse or Space key to select members for which to generate properties.

  1. Press Ctrl to open the Options menu (optionally).
  • Use the mouse or corresponding letter keys listed in the menu to change options.

  • Press Enter to close the menu.
  1. Press Enter to confirm the selection and perform the declaration.

The code snippet below shows the declared property.

Expanded Declare Items

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