C# Класс WinHtmlEditor.ToolStripColorPicker

Наследование: System.Windows.Forms.ToolStripSplitButton
Показать файл Открыть проект

Private Properties

Свойство Тип Описание
GetOpenPoint Point
HandleSelectedColorChanged void
InitControl void
PaintUnderLine void
PaintUnderLineImage System.Drawing.Size
PaintUnderLineText void
Refresh void
UpdateDisplayStyle void

Открытые методы

Метод Описание
OnButtonPortionClicked ( EventArgs e ) : void

Fires the ButtonPortionClicked event.

OnSelectedColorChanged ( EventArgs e ) : void

Fires the SelectedColorChanged event.

ToolStripColorPicker ( ) : System

Initializes a new instance of the ToolStripColorPicker that holds OfficeColorPicker control inside a ToolStripItem to add to ToolStrip containers.

ToolStripColorPicker ( Color startingColor ) : System

Initializes a new instance of the ToolStripColorPicker that holds OfficeColorPicker control inside a ToolStripItem to add to ToolStrip containers.

Защищенные методы

Метод Описание
Dispose ( bool disposing ) : void

Clean up any resources being used.

OnButtonClick ( EventArgs e ) : void
OnDropDownOpened ( EventArgs e ) : void
OnPaint ( PaintEventArgs e ) : void

Overrides, Paint the image in the specified scale and the color line if defined.

Приватные методы

Метод Описание
GetOpenPoint ( ) : Point

Gets the button position by the parent ToolStrip

HandleSelectedColorChanged ( object sender, EventArgs e ) : void

Repaint the button with the new color

InitControl ( ) : void

Set starting properties for the control and register the needed events.

PaintUnderLine ( Graphics g ) : void

Paints the underline rectangle.

PaintUnderLineImage ( Graphics g ) : Size

Paints the under line image

PaintUnderLineText ( Graphics g, Size imageSize ) : void

Paints the underline text

Refresh ( ) : void

Repaint the parent tool strip and the button tool tip

UpdateDisplayStyle ( ) : void

Set the painting properties by the _buttonDisplayStyle property.

Описание методов

Dispose() защищенный Метод

Clean up any resources being used.
protected Dispose ( bool disposing ) : void
disposing bool true if managed resources should be disposed; otherwise, false.
Результат void

OnButtonClick() защищенный Метод

protected OnButtonClick ( EventArgs e ) : void
e System.EventArgs
Результат void

OnButtonPortionClicked() публичный Метод

Fires the ButtonPortionClicked event.
public OnButtonPortionClicked ( EventArgs e ) : void
e System.EventArgs
Результат void

OnDropDownOpened() защищенный Метод

protected OnDropDownOpened ( EventArgs e ) : void
e System.EventArgs
Результат void

OnPaint() защищенный Метод

Overrides, Paint the image in the specified scale and the color line if defined.
protected OnPaint ( PaintEventArgs e ) : void
e PaintEventArgs
Результат void

OnSelectedColorChanged() публичный Метод

Fires the SelectedColorChanged event.
public OnSelectedColorChanged ( EventArgs e ) : void
e System.EventArgs
Результат void

ToolStripColorPicker() публичный Метод

Initializes a new instance of the ToolStripColorPicker that holds OfficeColorPicker control inside a ToolStripItem to add to ToolStrip containers.
public ToolStripColorPicker ( ) : System
Результат System

ToolStripColorPicker() публичный Метод

Initializes a new instance of the ToolStripColorPicker that holds OfficeColorPicker control inside a ToolStripItem to add to ToolStrip containers.
public ToolStripColorPicker ( Color startingColor ) : System
startingColor Color The color to assign to the color picker control
Результат System