Custom toolbar item for pen with color white

I would like to add a custom toolbar item (FooterToolbarItem) that will bring up a pen tool with Color.White. How can I do that?

Thanks,
Madhu

1 Reply 1 reply marked as answer

RS Ramya Soundar Rajan Syncfusion Team October 9, 2020 08:17 AM UTC

Hi Madhu Ganesh, 
 
Greetings from Syncfusion. 
 
We have prepared a sample to add the custom footer toolbar item to draw a path with white color. Please find the code snippet below. 
 
editor.ToolbarSettings.ToolbarItems.Add(new FooterToolbarItem() { Text="Draw" });         
 
    … 
 
private void ToolbarSettings_ToolbarItemSelected(object sender, ToolbarItemSelectedEventArgs e) 
       
            if (e.ToolbarItem.Text == "Draw") 
           
                editor.AddShape(ShapeType.Path,new PenSettings() {Color= Color.White }); 
           
       
 
 
 
Regards, 
Ramya S 


Marked as answer
Loader.
Up arrow icon