Skip to main content
A newer version of this page is available. .

ISupportDocumentActions.OnQueryDocumentActions(IDocumentActionsArgs) Method

Called each time a Document that implements the ISupportDocumentActions interface is activated.

Namespace: DevExpress.XtraBars.Docking2010.Views.WindowsUI

Assembly: DevExpress.XtraBars.v18.1.dll

Declaration

void OnQueryDocumentActions(
    IDocumentActionsArgs args
)

Parameters

Name Type Description
args IDocumentActionsArgs

An IDocumentActionArgs object that contains data for the current method.

Remarks

You can implement the ISupportDocumentActions interface for your User Controls that serve as Document content. In this case, you can override the interface’s OnQueryDocumentActions method and add a custom Document Action to the IDocumentActionsArgs.DocumentActions collection. When it’s done, these Actions will appear as buttons in every Content Container that activated the related Document. Note that SlideGroup and SplitGroup containers do not have an activated Document, except for the Detail screen (see the WindowsUIView.ZoomLevel property). It is recommended that you use Document Actions within Page and PageGroup containers only.

Another way to add Document Actions is to handle the WindowsUIView.QueryDocumentActions event. See the How To: Create Custom Document Actions topic to learn more.

The following code snippet (auto-collected from DevExpress Examples) contains a reference to the OnQueryDocumentActions(IDocumentActionsArgs) method.

Note

The algorithm used to collect these code examples remains a work in progress. Accordingly, the links and snippets below may produce inaccurate results. If you encounter an issue with code examples below, please use the feedback form on this page to report the issue.

See Also