Back to Devexpress

RichEditBarItemNames.ShowHorizontalRuler Property

blazor-devexpress-dot-blazor-dot-richedit-dot-richeditbaritemnames-7be378d5.md

latest2.1 KB
Original Source

RichEditBarItemNames.ShowHorizontalRuler Property

Gets the Show Horizontal Ruler item’s name.

Namespace : DevExpress.Blazor.RichEdit

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

NuGet Package : DevExpress.Blazor.RichEdit

Declaration

csharp
public static string ShowHorizontalRuler { get; }

Property Value

TypeDescription
String

The “ShowHorizontalRuler” string.

|

Remarks

Use this property to perform the following operations:

The Show Horizontal Ruler item is a checkable button in the Show group. This button toggles the visibility of the horizontal ruler.

The following code snippet removes the Show Horizontal Ruler item from the ribbon:

razor
<DxRichEdit CustomizeRibbon="onCustomizeRibbon" />

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

See Also

RichEditBarItemNames Class

RichEditBarItemNames Members

DevExpress.Blazor.RichEdit Namespace