RichEditControl.DockLayoutManagerName Property
Obtains the name of the DockLayoutManager containing RichEditControl and Reviewing Pane.
Namespace: DevExpress.Xpf.RichEdit
Assembly: DevExpress.Xpf.RichEdit.v20.2.dll
NuGet Packages: DevExpress.WindowsDesktop.Wpf.RichEdit, DevExpress.Wpf.RichEdit
Declaration
Property Value
Type | Description |
---|---|
String | A string that is the name of the DockLayoutManager used to access the Reviewing Pane. |
Remarks
Use the DockLayoutManagerName property to access the Reviewing Pane and customize it, as shown in the code snippet below.
Example
//Access the DockLayoutManager in the template:
string name = RichEditControl.DockLayoutManagerName;
DockLayoutManager manager = (DockLayoutManager)richEdit.Template.FindName(name, richEdit);
//Retireve the Reviewing Pane
LayoutPanel commentPanel = manager.LayoutRoot.Items[0] as LayoutPanel;
DocumentPanel documentPanel = manager.LayoutRoot.Items[1] as DocumentPanel;
//Dock panel to the right
manager.DockController.Dock(commentPanel, documentPanel, DockType.Right);
//Hide the pane to the tab
commentPanel.AutoHidden = true;
//Disable floating
commentPanel.AllowFloat = false;
Related GitHub Examples
The following code snippet (auto-collected from DevExpress Examples) contains a reference to the DockLayoutManagerName property.
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.