ToolStripRenderer.DrawSeparator(ToolStripSeparatorRenderEventArgs) Metoda

Definicja

Rysuje element ToolStripSeparator.

public:
 void DrawSeparator(System::Windows::Forms::ToolStripSeparatorRenderEventArgs ^ e);
public void DrawSeparator (System.Windows.Forms.ToolStripSeparatorRenderEventArgs e);
member this.DrawSeparator : System.Windows.Forms.ToolStripSeparatorRenderEventArgs -> unit
Public Sub DrawSeparator (e As ToolStripSeparatorRenderEventArgs)

Parametry

Uwagi

Metoda DrawSeparator udostępnia punkt wejścia do kodu renderowania dla obiektu ToolStripSeparator. Użyj tej metody, aby narysować ToolStripSeparator metodę podczas zastępowania ToolStrip.OnPaint metody lub wymusić rysowanie elementu ToolStripSeparator w niestandardowym ToolStripRendererobiekcie . Aby zmienić sposób renderowania ToolStripSeparator obiektu , przesłoń metodę OnRenderSeparator w klasie pochodzącej z ToolStripRendererklasy .

Dotyczy