Back to Devexpress

ISupportDocumentActions.OnQueryDocumentActions(IDocumentActionsArgs) Method

windowsforms-devexpress-dot-xtrabars-dot-docking2010-dot-views-dot-windowsui-dot-isupportdocumentactions-dot-onquerydocumentactions-x28-devexpress-dot-xtrabars-dot-docking2010-dot-views-dot-windowsui-dot-idocumentactionsargs-x29.md

latest3.9 KB
Original Source

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.v25.2.dll

NuGet Package : DevExpress.Win.Navigation

Declaration

csharp
void OnQueryDocumentActions(
    IDocumentActionsArgs args
)
vb
Sub OnQueryDocumentActions(
    args As IDocumentActionsArgs
)

Parameters

NameTypeDescription
argsIDocumentActionsArgs

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.

See Also

DocumentActions

QueryDocumentActions

How To: Create Custom Document Actions

ISupportDocumentActions Interface

ISupportDocumentActions Members

DevExpress.XtraBars.Docking2010.Views.WindowsUI Namespace