Back to Devexpress

RichEditToolbarGroupNames.Picture Property

blazor-devexpress-dot-blazor-dot-richedit-dot-richedittoolbargroupnames-e470dcba.md

latest2.3 KB
Original Source

RichEditToolbarGroupNames.Picture Property

Gets the name of the toolbar’s Picture group.

Namespace : DevExpress.Blazor.RichEdit

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

NuGet Package : DevExpress.Blazor.RichEdit

Declaration

csharp
public static string Picture { get; }

Property Value

TypeDescription
String

The “Picture” string.

|

Remarks

The Rich Text Editor’s toolbar consists of multiple groups. The Picture group includes the Insert Inline Picture item that allows users to insert a picture from a file as an inline image.

Use the Picture property to perform the following operations:

The following code snippet removes the Insert Inline Picture item from the toolbar.

razor
<DxRichEdit CustomizeToolbar="onCustomizeToolbar"
            BarMode=BarMode.Toolbar/>

@code {
    void onCustomizeToolbar(IToolbar toolbar) {
        string groupName = RichEditToolbarGroupNames.Picture;
        string itemName = RichEditBarItemNames.InsertInlinePicture;
        toolbar.Groups[groupName].Items.Remove(itemName);
    }
}

See Also

RichEditToolbarGroupNames Class

RichEditToolbarGroupNames Members

DevExpress.Blazor.RichEdit Namespace