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

PrintBarManager.GetBarItemByCommand(PrintingSystemCommand) Method

Provides access to a bar item corresponding to the specified command.

Namespace: DevExpress.XtraPrinting.Preview

Assembly: DevExpress.XtraPrinting.v19.2.dll

Declaration

public BarItem GetBarItemByCommand(
    PrintingSystemCommand command
)

Parameters

Name Type Description
command PrintingSystemCommand

A PrintingSystemCommand enumeration value, specifying the command corresponding to the bar item in question.

Returns

Type Description
BarItem

A BarItem object, specifying the bar item corresponding to the specified command.

Remarks

Each printing system command corresponds to a bar item representing this command in Print Preview GUI.

This method searches the collection for the first bar item executing the specified command and returns this item. When a matching bar item is not found, this method returns an empty BarItem object.

The following code snippets (auto-collected from DevExpress Examples) contain references to the GetBarItemByCommand(PrintingSystemCommand) 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