This document is archived and information here might be outdated. Recommended version. |
Provides access to members that control the Attribute query window.
Use the IQueryAttributes interface to manage the attribute query dialog.
First set the Application property with a reference to the application.
Then you may set the other properties: the selection CombinationMethod, the Layer on which the selection will be performed and optionally the default query expression in Expression.
The SelectFeaturesInLayerOnOK specifies whether or not the selection will be performed when the user clicks Apply in the dialog and whether or not error messages will be shown. Setting it to true may be useful only if you want to use this dialog to get some input and process it in some way of your own.
Open the dialog with the DoModal method. If you need to open the dialog as modeless you may cast the IQueryAttributes into an ImodelessQueryAttributes and use its Show method.
On return, the QueryFilter property contains the expression actually used for the selection. The CombinationMethod and Layer are also updated with the user's choices
Name | Description | |
---|---|---|
Application | Provides the window with a reference to the application. | |
CombinationMethod | CombinationMethod on form. | |
DoModal | Shows attribute query window in a modal state. | |
Expression | Default expression. | |
Layer | Layer selected by the user. | |
QueryFilter | Provide a QueryFilter after form has been executed. | |
SelectFeaturesInLayerOnOK | When the user presses OK, select features. If there is an error, don't return. Default: FALSE. |
CoClasses and Classes | Description |
---|---|
QueryAttributes | Display query attribute dialog in Mx. |
IModelessQueryAttributes Interface