ToolStripContentPanelRenderEventArgs ToolStripContentPanelRenderEventArgs ToolStripContentPanelRenderEventArgs ToolStripContentPanelRenderEventArgs Class

Definición

Proporciona datos para el evento RendererChanged.Provides data for the RendererChanged event.

public ref class ToolStripContentPanelRenderEventArgs : EventArgs
public class ToolStripContentPanelRenderEventArgs : EventArgs
type ToolStripContentPanelRenderEventArgs = class
    inherit EventArgs
Public Class ToolStripContentPanelRenderEventArgs
Inherits EventArgs
Herencia
ToolStripContentPanelRenderEventArgsToolStripContentPanelRenderEventArgsToolStripContentPanelRenderEventArgsToolStripContentPanelRenderEventArgs

Ejemplos

En el ejemplo de código siguiente se muestra el uso de este tipo.The following code example demonstrates the use of this type. En el ejemplo, un controlador de eventos informa sobre la aparición de la RenderToolStripContentPanelBackground eventos.In the example, an event handler reports on the occurrence of the RenderToolStripContentPanelBackground event. Este informe le ayuda a saber cuándo el evento se produce y puede ayudarle a depurar.This report helps you to learn when the event occurs and can assist you in debugging.

Para ejecutar el ejemplo de código, péguelo en un proyecto que contiene una instancia de un tipo que hereda de ToolStripRenderer, como un ToolStripSystemRenderer o ToolStripProfessionalRenderer.To run the example code, paste it into a project that contains an instance of a type that inherits from ToolStripRenderer, such as a ToolStripSystemRenderer or ToolStripProfessionalRenderer. A continuación, asigne a la instancia ToolStripRenderer1 y asegúrese de que está asociado el controlador de eventos con el RenderToolStripContentPanelBackground eventos.Then name the instance ToolStripRenderer1 and ensure that the event handler is associated with the RenderToolStripContentPanelBackground event.

private void ToolStripRenderer1_RenderToolStripContentPanelBackground(Object sender, ToolStripContentPanelRenderEventArgs e) {

System.Text.StringBuilder messageBoxCS = new System.Text.StringBuilder();
messageBoxCS.AppendFormat("{0} = {1}", "Graphics", e.Graphics );
messageBoxCS.AppendLine();
messageBoxCS.AppendFormat("{0} = {1}", "Handled", e.Handled );
messageBoxCS.AppendLine();
messageBoxCS.AppendFormat("{0} = {1}", "ToolStripContentPanel", e.ToolStripContentPanel );
messageBoxCS.AppendLine();
MessageBox.Show(messageBoxCS.ToString(), "RenderToolStripContentPanelBackground Event" );
}
Private Sub ToolStripRenderer1_RenderToolStripContentPanelBackground(sender as Object, e as ToolStripContentPanelRenderEventArgs) _ 
     Handles ToolStripRenderer1.RenderToolStripContentPanelBackground

    Dim messageBoxVB as New System.Text.StringBuilder()
    messageBoxVB.AppendFormat("{0} = {1}", "Graphics", e.Graphics)
    messageBoxVB.AppendLine()
    messageBoxVB.AppendFormat("{0} = {1}", "Handled", e.Handled)
    messageBoxVB.AppendLine()
    messageBoxVB.AppendFormat("{0} = {1}", "ToolStripContentPanel", e.ToolStripContentPanel)
    messageBoxVB.AppendLine()
    MessageBox.Show(messageBoxVB.ToString(),"RenderToolStripContentPanelBackground Event")

End Sub

Constructores

ToolStripContentPanelRenderEventArgs(Graphics, ToolStripContentPanel) ToolStripContentPanelRenderEventArgs(Graphics, ToolStripContentPanel) ToolStripContentPanelRenderEventArgs(Graphics, ToolStripContentPanel) ToolStripContentPanelRenderEventArgs(Graphics, ToolStripContentPanel)

Inicializa una nueva instancia de la clase ToolStripContentPanelRenderEventArgs.Initializes a new instance of the ToolStripContentPanelRenderEventArgs class.

Propiedades

Graphics Graphics Graphics Graphics

Obtiene el objeto que se va utilizar para dibujar.Gets the object to use for drawing.

Handled Handled Handled Handled

Obtiene o establece un valor que indica si se controló el evento.Gets or sets a value indicating whether the event was handled.

ToolStripContentPanel ToolStripContentPanel ToolStripContentPanel ToolStripContentPanel

Obtiene la clase ToolStripContentPanel a la que afecta cuando se hace clic.Gets the ToolStripContentPanel affected by the click.

Métodos

Equals(Object) Equals(Object) Equals(Object) Equals(Object)

Determina si el objeto especificado es igual al objeto actual.Determines whether the specified object is equal to the current object.

(Inherited from Object)
GetHashCode() GetHashCode() GetHashCode() GetHashCode()

Sirve como la función hash predeterminada.Serves as the default hash function.

(Inherited from Object)
GetType() GetType() GetType() GetType()

Obtiene el Type de la instancia actual.Gets the Type of the current instance.

(Inherited from Object)
MemberwiseClone() MemberwiseClone() MemberwiseClone() MemberwiseClone()

Crea una copia superficial del Object actual.Creates a shallow copy of the current Object.

(Inherited from Object)
ToString() ToString() ToString() ToString()

Devuelve una cadena que representa el objeto actual.Returns a string that represents the current object.

(Inherited from Object)

Se aplica a