Skybound Rebar

Rebar.Customizing Event

Occurs before a band is customized.

[Visual Basic]
Public Event Customizing As RebarCustomizingEventHandler
[C#]
public event RebarCustomizingEventHandler Customizing;

Event Data

The event handler receives an argument of type RebarCustomizingEventArgs containing data related to this event. The following RebarCustomizingEventArgs properties provide information specific to this event.

Property Description
Band Gets the band to customize.
ShowDefaultDialog Gets or sets a value that specifies whether to show the default customize dialog.

Remarks

The RebarCustomizingEventArgs argument passed to a Customizing event handler provides a reference to the band being customized and a ShowDialog method you can use to show a customize dialog that contains a localized version of RebarBandCustomizer.

Example

The following example demonstrates how to handle the Customizing event. In the example, it is assumed that we have created a control called LocalizedCustomizer that inherits from RebarBandCustomizer. An instance of this control is displayed instead in the customize dialog.

For more information about creating your own localized customize dialog, see 9. Using and Extending the Customize Dialog in the Programmer's Guide section.

            
// The Customizing event handler:
private void rebar_Customizing(object sender, Skybound.Rebar.CustomizingEventArgs e)
{
    // Show our own customizer
    e.ShowDialog(new LocalizedCustomizeDialog());
}
            

See Also

Rebar Class | Skybound.Rebar Namespace