Back to Devexpress

RichEditBarItemNames.ZoomLevel Property

blazor-devexpress-dot-blazor-dot-richedit-dot-richeditbaritemnames-9bfae840.md

latest2.0 KB
Original Source

RichEditBarItemNames.ZoomLevel Property

Gets the Zoom Level item’s name.

Namespace : DevExpress.Blazor.RichEdit

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

NuGet Package : DevExpress.Blazor.RichEdit

Declaration

csharp
public static string ZoomLevel { get; }

Property Value

TypeDescription
String

The “ZoomLevel” string.

|

Remarks

The Zoom Level item is a combo box in the ribbon’s Zoom group. This combo box allows users to change the document’s zoom level.

Use the ZoomLevel property to perform the following operations:

The following code snippet removes the Zoom Level item from the ribbon:

razor
<DxRichEdit CustomizeRibbon="onCustomizeRibbon" />

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

See Also

RichEditBarItemNames Class

RichEditBarItemNames Members

DevExpress.Blazor.RichEdit Namespace