[]
        
(Showing Draft Content)

C1.Win.C1Editor.ToolStrips.C1EditorToolStripBase.OnInitialize

OnInitialize Method

OnInitialize()

Adds default items to the toolstrip.

Declaration
protected virtual void OnInitialize()
Remarks

The OnInitialize method allows derived classes to define their own set of default items.

Examples

The following code example demonstrates how to create a custom toolstrip that has Style combo box and Undo, Redo buttons.

public class MyToolStrip : C1EditorToolStripBase
{
   protected override void OnInitialize()
   {
    AddComboBox(CommandComboBox.Style);
    AddButton(CommandButton.Undo);
    AddButton(CommandButton.Redo);
   }
}