Back to Devexpress

RichEditControl.DockLayoutManagerName Field

wpf-devexpress-dot-xpf-dot-richedit-dot-richeditcontrol-d979ccd1.md

latest3.0 KB
Original Source

RichEditControl.DockLayoutManagerName Field

Obtains the name of the DockLayoutManager containing RichEditControl and Reviewing Pane.

Namespace : DevExpress.Xpf.RichEdit

Assembly : DevExpress.Xpf.RichEdit.v25.2.dll

NuGet Package : DevExpress.Wpf.RichEdit

Declaration

csharp
public const string DockLayoutManagerName = "PART_DockLayoutManager"
vb
Public Const DockLayoutManagerName As String = "PART_DockLayoutManager"

Field Value

TypeDescription
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

csharp
//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;
vb
'Access the DockLayoutManager in the template: 
Dim name As String = RichEditControl.DockLayoutManagerName
Dim manager As DockLayoutManager = CType(richEdit.Template.FindName(name, richEdit), DockLayoutManager)

'Retireve the Reviewing Pane 
Dim commentPanel As LayoutPanel = TryCast(manager.LayoutRoot.Items(0), LayoutPanel)
Dim documentPanel As DocumentPanel = TryCast(manager.LayoutRoot.Items(1), 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

See Also

Reviewing Pane

RichEditControl Class

RichEditControl Members

DevExpress.Xpf.RichEdit Namespace