Skip to main content
All docs
V24.2

RibbonControl.CloseMessage(RibbonMessageArgs, DialogResult) Method

Closes the specified message.

Namespace: DevExpress.XtraBars.Ribbon

Assembly: DevExpress.XtraBars.v24.2.dll

Declaration

public void CloseMessage(
    RibbonMessageArgs args,
    DialogResult result
)

Parameters

Name Type Description
args RibbonMessageArgs

An object that identifies the message to close.

result DialogResult

A value that specifies the return value of the message.

Remarks

The Ribbon control stores the messages in the Messages collection. Use the CloseMessage method to close a specific message in code. The Ribbon control raises the MessageClosed event after the message is closed.

Read the following topic for information: Ribbon Message.

See Also