UltimateEditor Class Library

UltimateEditor.ToolbarRender Event

Raised right before rendering a toolbar to let the user make last minute changes on it.

[Visual Basic]
Public Event ToolbarRender As ToolbarRenderEventHandler
[C#]
public event ToolbarRenderEventHandler ToolbarRender;

Event Data

The event handler receives an argument of type ToolbarRenderEventArgs containing data related to this event. The following ToolbarRenderEventArgs property provides information specific to this event.

Property Description
Toolbar Toolbar to modify right before rendering.

Example

This sample shows how to handle the ToolbarRender event.

private void UltimateEditor1_ToolbarRender(object sender, Karamasoft.WebControls.UltimateEditor.ToolbarRenderEventArgs e) 
{
    // Hide the File toolbar
    if (e.Toolbar.ID == "File")
        e.Toolbar.Visible = false;
}

#region Web Form Designer generated code
override protected void OnInit(EventArgs e)
{
    //
    // CODEGEN: This call is required by the ASP.NET Web Form Designer.
    //
    InitializeComponent();
    base.OnInit(e);
}

/// 
/// Required method for Designer support - do not modify
/// the contents of this method with the code editor.
/// 
private void InitializeComponent()
{    
    this.UltimateEditor1.ToolbarRender += new Karamasoft.WebControls.UltimateEditor.UltimateEditor.ToolbarRenderEventHandler(this.UltimateEditor1_ToolbarRender);
    this.Load += new System.EventHandler(this.Page_Load);

}
#endregion

See Also

UltimateEditor Class | Karamasoft.WebControls.UltimateEditor Namespace