Back to Devexpress

RichEditRibbonGroupNames.ViewDocumentViews Property

blazor-devexpress-dot-blazor-dot-richedit-dot-richeditribbongroupnames-1dd5fd6a.md

latest2.8 KB
Original Source

RichEditRibbonGroupNames.ViewDocumentViews Property

Gets the name of the View tab’s Document Views group.

Namespace : DevExpress.Blazor.RichEdit

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

NuGet Package : DevExpress.Blazor.RichEdit

Declaration

csharp
public static string ViewDocumentViews { get; }

Property Value

TypeDescription
String

The “ViewDocumentViews” string.

|

Remarks

The Document Views group is in the View tab and includes the following items:

Switch to Print LayoutThe checkable button sets the Rich Text Editor’s view mode to Print Layout and displays document pages with applied format settings.Switch to Simple ViewThe checkable button sets the Rich Text Editor’s view mode to Simple View and displays the document as a website, ignoring the page layout.

Use the ViewDocumentViews property to perform the following operations:

The following code snippet removes an item from this group.

razor
<DxRichEdit CustomizeRibbon="onCustomizeRibbon" />

@code {
    void onCustomizeRibbon(IRibbon ribbon) {
        string tabName = RichEditRibbonTabNames.View;
        string groupName = RichEditRibbonGroupNames.ViewDocumentViews;
        string itemName = RichEditBarItemNames.SwitchToPrintLayout;
        ribbon.Tabs[tabName].Groups[groupName].Items.Remove(itemName);
    }
}

See Also

RichEditRibbonGroupNames Class

RichEditRibbonGroupNames Members

DevExpress.Blazor.RichEdit Namespace